]> git.sur5r.net Git - openldap/blob - configure
happy new year
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.640 2006/11/06 23:38:19 ando Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1055     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1056     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1057     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1058     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1059     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1090   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091   --with-pic              try to use only PIC/non-PIC objects [default=use
1092                           both]
1093   --with-tags[=TAGS]
1094                           include additional configurations [automatic]
1095
1096 See INSTALL file for further details.
1097
1098 Some influential environment variables:
1099   CC          C compiler command
1100   CFLAGS      C compiler flags
1101   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102               nonstandard directory <lib dir>
1103   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104               headers in a nonstandard directory <include dir>
1105   CPP         C preprocessor
1106
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1109
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd $ac_popdir
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209
1210 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1212 _ACEOF
1213   exit 0
1214 fi
1215 exec 5>config.log
1216 cat >&5 <<_ACEOF
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1219
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59.  Invocation command line was
1222
1223   $ $0 $@
1224
1225 _ACEOF
1226 {
1227 cat <<_ASUNAME
1228 ## --------- ##
1229 ## Platform. ##
1230 ## --------- ##
1231
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1240
1241 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1242 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1245 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1246 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1247 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1248
1249 _ASUNAME
1250
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 for as_dir in $PATH
1253 do
1254   IFS=$as_save_IFS
1255   test -z "$as_dir" && as_dir=.
1256   echo "PATH: $as_dir"
1257 done
1258
1259 } >&5
1260
1261 cat >&5 <<_ACEOF
1262
1263
1264 ## ----------- ##
1265 ## Core tests. ##
1266 ## ----------- ##
1267
1268 _ACEOF
1269
1270
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1276 ac_configure_args=
1277 ac_configure_args0=
1278 ac_configure_args1=
1279 ac_sep=
1280 ac_must_keep_next=false
1281 for ac_pass in 1 2
1282 do
1283   for ac_arg
1284   do
1285     case $ac_arg in
1286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288     | -silent | --silent | --silen | --sile | --sil)
1289       continue ;;
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     esac
1293     case $ac_pass in
1294     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295     2)
1296       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297       if test $ac_must_keep_next = true; then
1298         ac_must_keep_next=false # Got value, back to normal.
1299       else
1300         case $ac_arg in
1301           *=* | --config-cache | -C | -disable-* | --disable-* \
1302           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304           | -with-* | --with-* | -without-* | --without-* | --x)
1305             case "$ac_configure_args0 " in
1306               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307             esac
1308             ;;
1309           -* ) ac_must_keep_next=true ;;
1310         esac
1311       fi
1312       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313       # Get rid of the leading space.
1314       ac_sep=" "
1315       ;;
1316     esac
1317   done
1318 done
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log.  We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328   # Save into config.log some information that might help in debugging.
1329   {
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1336 _ASBOX
1337     echo
1338     # The following way of writing the cache mishandles newlines in values,
1339 {
1340   (set) 2>&1 |
1341     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342     *ac_space=\ *)
1343       sed -n \
1344         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346       ;;
1347     *)
1348       sed -n \
1349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350       ;;
1351     esac;
1352 }
1353     echo
1354
1355     cat <<\_ASBOX
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1359 _ASBOX
1360     echo
1361     for ac_var in $ac_subst_vars
1362     do
1363       eval ac_val=$`echo $ac_var`
1364       echo "$ac_var='"'"'$ac_val'"'"'"
1365     done | sort
1366     echo
1367
1368     if test -n "$ac_subst_files"; then
1369       cat <<\_ASBOX
1370 ## ------------- ##
1371 ## Output files. ##
1372 ## ------------- ##
1373 _ASBOX
1374       echo
1375       for ac_var in $ac_subst_files
1376       do
1377         eval ac_val=$`echo $ac_var`
1378         echo "$ac_var='"'"'$ac_val'"'"'"
1379       done | sort
1380       echo
1381     fi
1382
1383     if test -s confdefs.h; then
1384       cat <<\_ASBOX
1385 ## ----------- ##
1386 ## confdefs.h. ##
1387 ## ----------- ##
1388 _ASBOX
1389       echo
1390       sed "/^$/d" confdefs.h | sort
1391       echo
1392     fi
1393     test "$ac_signal" != 0 &&
1394       echo "$as_me: caught signal $ac_signal"
1395     echo "$as_me: exit $exit_status"
1396   } >&5
1397   rm -f core *.core &&
1398   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399     exit $exit_status
1400      ' 0
1401 for ac_signal in 1 2 13 15; do
1402   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 done
1404 ac_signal=0
1405
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409 echo >confdefs.h
1410
1411 # Predefined preprocessor variables.
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 _ACEOF
1436
1437
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441   if test "x$prefix" != xNONE; then
1442     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443   else
1444     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445   fi
1446 fi
1447 for ac_site_file in $CONFIG_SITE; do
1448   if test -r "$ac_site_file"; then
1449     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451     sed 's/^/| /' "$ac_site_file" >&5
1452     . "$ac_site_file"
1453   fi
1454 done
1455
1456
1457 # Check that the precious variables saved in the cache have kept the same
1458 # value.
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463   eval ac_new_set=\$ac_env_${ac_var}_set
1464   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465   eval ac_new_val="\$ac_env_${ac_var}_value"
1466   case $ac_old_set,$ac_new_set in
1467     set,)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,set)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,);;
1476     *)
1477       if test "x$ac_old_val" != "x$ac_new_val"; then
1478         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1481 echo "$as_me:   former value:  $ac_old_val" >&2;}
1482         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1483 echo "$as_me:   current value: $ac_new_val" >&2;}
1484         ac_cache_corrupted=:
1485       fi;;
1486   esac
1487   # Pass precious variables to config.status.
1488   if test "$ac_new_set" = set; then
1489     case $ac_new_val in
1490     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492     *) ac_arg=$ac_var=$ac_new_val ;;
1493     esac
1494     case " $ac_configure_args " in
1495       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1496       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497     esac
1498   fi
1499 done
1500 if $ac_cache_corrupted; then
1501   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in no yes traditional ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266
2267         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269   enableval="$enable_ipv6"
2270
2271         ol_arg=invalid
2272         for ol_val in auto yes no ; do
2273                 if test "$enableval" = "$ol_val" ; then
2274                         ol_arg="$ol_val"
2275                 fi
2276         done
2277         if test "$ol_arg" = "invalid" ; then
2278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280    { (exit 1); exit 1; }; }
2281         fi
2282         ol_enable_ipv6="$ol_arg"
2283
2284 else
2285         ol_enable_ipv6=auto
2286 fi;
2287 # end --enable-ipv6
2288 # OpenLDAP --enable-local
2289
2290         # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292   enableval="$enable_local"
2293
2294         ol_arg=invalid
2295         for ol_val in auto yes no ; do
2296                 if test "$enableval" = "$ol_val" ; then
2297                         ol_arg="$ol_val"
2298                 fi
2299         done
2300         if test "$ol_arg" = "invalid" ; then
2301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303    { (exit 1); exit 1; }; }
2304         fi
2305         ol_enable_local="$ol_arg"
2306
2307 else
2308         ol_enable_local=auto
2309 fi;
2310 # end --enable-local
2311
2312 # OpenLDAP --with-cyrus_sasl
2313
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316   withval="$with_cyrus_sasl"
2317
2318         ol_arg=invalid
2319         for ol_val in auto yes no  ; do
2320                 if test "$withval" = "$ol_val" ; then
2321                         ol_arg="$ol_val"
2322                 fi
2323         done
2324         if test "$ol_arg" = "invalid" ; then
2325                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327    { (exit 1); exit 1; }; }
2328         fi
2329         ol_with_cyrus_sasl="$ol_arg"
2330
2331 else
2332         ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2334
2335 # OpenLDAP --with-fetch
2336
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339   withval="$with_fetch"
2340
2341         ol_arg=invalid
2342         for ol_val in auto yes no  ; do
2343                 if test "$withval" = "$ol_val" ; then
2344                         ol_arg="$ol_val"
2345                 fi
2346         done
2347         if test "$ol_arg" = "invalid" ; then
2348                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350    { (exit 1); exit 1; }; }
2351         fi
2352         ol_with_fetch="$ol_arg"
2353
2354 else
2355         ol_with_fetch="auto"
2356 fi; # end --with-fetch
2357
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2360
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363   withval="$with_threads"
2364
2365         ol_arg=invalid
2366         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2367                 if test "$withval" = "$ol_val" ; then
2368                         ol_arg="$ol_val"
2369                 fi
2370         done
2371         if test "$ol_arg" = "invalid" ; then
2372                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374    { (exit 1); exit 1; }; }
2375         fi
2376         ol_with_threads="$ol_arg"
2377
2378 else
2379         ol_with_threads="auto"
2380 fi; # end --with-threads
2381
2382 # OpenLDAP --with-tls
2383
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2386   withval="$with_tls"
2387
2388         ol_arg=invalid
2389         for ol_val in auto openssl yes no  ; do
2390                 if test "$withval" = "$ol_val" ; then
2391                         ol_arg="$ol_val"
2392                 fi
2393         done
2394         if test "$ol_arg" = "invalid" ; then
2395                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397    { (exit 1); exit 1; }; }
2398         fi
2399         ol_with_tls="$ol_arg"
2400
2401 else
2402         ol_with_tls="auto"
2403 fi; # end --with-tls
2404
2405 # OpenLDAP --with-yielding_select
2406
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409   withval="$with_yielding_select"
2410
2411         ol_arg=invalid
2412         for ol_val in auto yes no manual  ; do
2413                 if test "$withval" = "$ol_val" ; then
2414                         ol_arg="$ol_val"
2415                 fi
2416         done
2417         if test "$ol_arg" = "invalid" ; then
2418                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420    { (exit 1); exit 1; }; }
2421         fi
2422         ol_with_yielding_select="$ol_arg"
2423
2424 else
2425         ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2427
2428 # OpenLDAP --with-mp
2429
2430 # Check whether --with-mp or --without-mp was given.
2431 if test "${with_mp+set}" = set; then
2432   withval="$with_mp"
2433
2434         ol_arg=invalid
2435         for ol_val in auto longlong long bignum gmp yes no ; do
2436                 if test "$withval" = "$ol_val" ; then
2437                         ol_arg="$ol_val"
2438                 fi
2439         done
2440         if test "$ol_arg" = "invalid" ; then
2441                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2442 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2443    { (exit 1); exit 1; }; }
2444         fi
2445         ol_with_mp="$ol_arg"
2446
2447 else
2448         ol_with_mp="auto"
2449 fi; # end --with-mp
2450
2451 # OpenLDAP --with-odbc
2452
2453 # Check whether --with-odbc or --without-odbc was given.
2454 if test "${with_odbc+set}" = set; then
2455   withval="$with_odbc"
2456
2457         ol_arg=invalid
2458         for ol_val in auto iodbc unixodbc  ; do
2459                 if test "$withval" = "$ol_val" ; then
2460                         ol_arg="$ol_val"
2461                 fi
2462         done
2463         if test "$ol_arg" = "invalid" ; then
2464                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2465 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2466    { (exit 1); exit 1; }; }
2467         fi
2468         ol_with_odbc="$ol_arg"
2469
2470 else
2471         ol_with_odbc="auto"
2472 fi; # end --with-odbc
2473
2474
2475
2476 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2477 if test "${enable_xxslapdoptions+set}" = set; then
2478   enableval="$enable_xxslapdoptions"
2479
2480 fi;
2481 # OpenLDAP --enable-slapd
2482
2483         # Check whether --enable-slapd or --disable-slapd was given.
2484 if test "${enable_slapd+set}" = set; then
2485   enableval="$enable_slapd"
2486
2487         ol_arg=invalid
2488         for ol_val in auto yes no ; do
2489                 if test "$enableval" = "$ol_val" ; then
2490                         ol_arg="$ol_val"
2491                 fi
2492         done
2493         if test "$ol_arg" = "invalid" ; then
2494                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2496    { (exit 1); exit 1; }; }
2497         fi
2498         ol_enable_slapd="$ol_arg"
2499
2500 else
2501         ol_enable_slapd=yes
2502 fi;
2503 # end --enable-slapd
2504 # OpenLDAP --enable-dynacl
2505
2506         # Check whether --enable-dynacl or --disable-dynacl was given.
2507 if test "${enable_dynacl+set}" = set; then
2508   enableval="$enable_dynacl"
2509
2510         ol_arg=invalid
2511         for ol_val in auto yes no ; do
2512                 if test "$enableval" = "$ol_val" ; then
2513                         ol_arg="$ol_val"
2514                 fi
2515         done
2516         if test "$ol_arg" = "invalid" ; then
2517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2519    { (exit 1); exit 1; }; }
2520         fi
2521         ol_enable_dynacl="$ol_arg"
2522
2523 else
2524         ol_enable_dynacl=no
2525 fi;
2526 # end --enable-dynacl
2527 # OpenLDAP --enable-aci
2528
2529         # Check whether --enable-aci or --disable-aci was given.
2530 if test "${enable_aci+set}" = set; then
2531   enableval="$enable_aci"
2532
2533         ol_arg=invalid
2534         for ol_val in no yes mod ; do
2535                 if test "$enableval" = "$ol_val" ; then
2536                         ol_arg="$ol_val"
2537                 fi
2538         done
2539         if test "$ol_arg" = "invalid" ; then
2540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2542    { (exit 1); exit 1; }; }
2543         fi
2544         ol_enable_aci="$ol_arg"
2545
2546 else
2547         ol_enable_aci=no
2548 fi;
2549 # end --enable-aci
2550 # OpenLDAP --enable-cleartext
2551
2552         # Check whether --enable-cleartext or --disable-cleartext was given.
2553 if test "${enable_cleartext+set}" = set; then
2554   enableval="$enable_cleartext"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_cleartext="$ol_arg"
2568
2569 else
2570         ol_enable_cleartext=yes
2571 fi;
2572 # end --enable-cleartext
2573 # OpenLDAP --enable-crypt
2574
2575         # Check whether --enable-crypt or --disable-crypt was given.
2576 if test "${enable_crypt+set}" = set; then
2577   enableval="$enable_crypt"
2578
2579         ol_arg=invalid
2580         for ol_val in auto yes no ; do
2581                 if test "$enableval" = "$ol_val" ; then
2582                         ol_arg="$ol_val"
2583                 fi
2584         done
2585         if test "$ol_arg" = "invalid" ; then
2586                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2588    { (exit 1); exit 1; }; }
2589         fi
2590         ol_enable_crypt="$ol_arg"
2591
2592 else
2593         ol_enable_crypt=no
2594 fi;
2595 # end --enable-crypt
2596 # OpenLDAP --enable-lmpasswd
2597
2598         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2599 if test "${enable_lmpasswd+set}" = set; then
2600   enableval="$enable_lmpasswd"
2601
2602         ol_arg=invalid
2603         for ol_val in auto yes no ; do
2604                 if test "$enableval" = "$ol_val" ; then
2605                         ol_arg="$ol_val"
2606                 fi
2607         done
2608         if test "$ol_arg" = "invalid" ; then
2609                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2611    { (exit 1); exit 1; }; }
2612         fi
2613         ol_enable_lmpasswd="$ol_arg"
2614
2615 else
2616         ol_enable_lmpasswd=no
2617 fi;
2618 # end --enable-lmpasswd
2619 # OpenLDAP --enable-spasswd
2620
2621         # Check whether --enable-spasswd or --disable-spasswd was given.
2622 if test "${enable_spasswd+set}" = set; then
2623   enableval="$enable_spasswd"
2624
2625         ol_arg=invalid
2626         for ol_val in auto yes no ; do
2627                 if test "$enableval" = "$ol_val" ; then
2628                         ol_arg="$ol_val"
2629                 fi
2630         done
2631         if test "$ol_arg" = "invalid" ; then
2632                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2633 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2634    { (exit 1); exit 1; }; }
2635         fi
2636         ol_enable_spasswd="$ol_arg"
2637
2638 else
2639         ol_enable_spasswd=no
2640 fi;
2641 # end --enable-spasswd
2642 # OpenLDAP --enable-modules
2643
2644         # Check whether --enable-modules or --disable-modules was given.
2645 if test "${enable_modules+set}" = set; then
2646   enableval="$enable_modules"
2647
2648         ol_arg=invalid
2649         for ol_val in auto yes no ; do
2650                 if test "$enableval" = "$ol_val" ; then
2651                         ol_arg="$ol_val"
2652                 fi
2653         done
2654         if test "$ol_arg" = "invalid" ; then
2655                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2656 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2657    { (exit 1); exit 1; }; }
2658         fi
2659         ol_enable_modules="$ol_arg"
2660
2661 else
2662         ol_enable_modules=no
2663 fi;
2664 # end --enable-modules
2665 # OpenLDAP --enable-rewrite
2666
2667         # Check whether --enable-rewrite or --disable-rewrite was given.
2668 if test "${enable_rewrite+set}" = set; then
2669   enableval="$enable_rewrite"
2670
2671         ol_arg=invalid
2672         for ol_val in auto yes no ; do
2673                 if test "$enableval" = "$ol_val" ; then
2674                         ol_arg="$ol_val"
2675                 fi
2676         done
2677         if test "$ol_arg" = "invalid" ; then
2678                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2679 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2680    { (exit 1); exit 1; }; }
2681         fi
2682         ol_enable_rewrite="$ol_arg"
2683
2684 else
2685         ol_enable_rewrite=auto
2686 fi;
2687 # end --enable-rewrite
2688 # OpenLDAP --enable-rlookups
2689
2690         # Check whether --enable-rlookups or --disable-rlookups was given.
2691 if test "${enable_rlookups+set}" = set; then
2692   enableval="$enable_rlookups"
2693
2694         ol_arg=invalid
2695         for ol_val in auto yes no ; do
2696                 if test "$enableval" = "$ol_val" ; then
2697                         ol_arg="$ol_val"
2698                 fi
2699         done
2700         if test "$ol_arg" = "invalid" ; then
2701                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2702 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2703    { (exit 1); exit 1; }; }
2704         fi
2705         ol_enable_rlookups="$ol_arg"
2706
2707 else
2708         ol_enable_rlookups=no
2709 fi;
2710 # end --enable-rlookups
2711 # OpenLDAP --enable-slapi
2712
2713         # Check whether --enable-slapi or --disable-slapi was given.
2714 if test "${enable_slapi+set}" = set; then
2715   enableval="$enable_slapi"
2716
2717         ol_arg=invalid
2718         for ol_val in auto yes no ; do
2719                 if test "$enableval" = "$ol_val" ; then
2720                         ol_arg="$ol_val"
2721                 fi
2722         done
2723         if test "$ol_arg" = "invalid" ; then
2724                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2725 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2726    { (exit 1); exit 1; }; }
2727         fi
2728         ol_enable_slapi="$ol_arg"
2729
2730 else
2731         ol_enable_slapi=no
2732 fi;
2733 # end --enable-slapi
2734 # OpenLDAP --enable-slp
2735
2736         # Check whether --enable-slp or --disable-slp was given.
2737 if test "${enable_slp+set}" = set; then
2738   enableval="$enable_slp"
2739
2740         ol_arg=invalid
2741         for ol_val in auto yes no ; do
2742                 if test "$enableval" = "$ol_val" ; then
2743                         ol_arg="$ol_val"
2744                 fi
2745         done
2746         if test "$ol_arg" = "invalid" ; then
2747                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2748 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2749    { (exit 1); exit 1; }; }
2750         fi
2751         ol_enable_slp="$ol_arg"
2752
2753 else
2754         ol_enable_slp=no
2755 fi;
2756 # end --enable-slp
2757 # OpenLDAP --enable-wrappers
2758
2759         # Check whether --enable-wrappers or --disable-wrappers was given.
2760 if test "${enable_wrappers+set}" = set; then
2761   enableval="$enable_wrappers"
2762
2763         ol_arg=invalid
2764         for ol_val in auto yes no ; do
2765                 if test "$enableval" = "$ol_val" ; then
2766                         ol_arg="$ol_val"
2767                 fi
2768         done
2769         if test "$ol_arg" = "invalid" ; then
2770                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2771 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2772    { (exit 1); exit 1; }; }
2773         fi
2774         ol_enable_wrappers="$ol_arg"
2775
2776 else
2777         ol_enable_wrappers=no
2778 fi;
2779 # end --enable-wrappers
2780
2781 Backends="bdb \
2782         dnssrv \
2783         hdb \
2784         ldap \
2785         meta \
2786         monitor \
2787         null \
2788         passwd \
2789         perl \
2790         relay \
2791         shell \
2792         sql"
2793
2794 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2795 if test "${enable_xxslapbackends+set}" = set; then
2796   enableval="$enable_xxslapbackends"
2797
2798 fi;
2799
2800 # OpenLDAP --enable-backends
2801
2802         # Check whether --enable-backends or --disable-backends was given.
2803 if test "${enable_backends+set}" = set; then
2804   enableval="$enable_backends"
2805
2806         ol_arg=invalid
2807         for ol_val in no yes mod ; do
2808                 if test "$enableval" = "$ol_val" ; then
2809                         ol_arg="$ol_val"
2810                 fi
2811         done
2812         if test "$ol_arg" = "invalid" ; then
2813                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2815    { (exit 1); exit 1; }; }
2816         fi
2817         ol_enable_backends="$ol_arg"
2818
2819 fi;
2820 # end --enable-backends
2821 # OpenLDAP --enable-bdb
2822
2823         # Check whether --enable-bdb or --disable-bdb was given.
2824 if test "${enable_bdb+set}" = set; then
2825   enableval="$enable_bdb"
2826
2827         ol_arg=invalid
2828         for ol_val in no yes mod ; do
2829                 if test "$enableval" = "$ol_val" ; then
2830                         ol_arg="$ol_val"
2831                 fi
2832         done
2833         if test "$ol_arg" = "invalid" ; then
2834                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2835 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2836    { (exit 1); exit 1; }; }
2837         fi
2838         ol_enable_bdb="$ol_arg"
2839
2840 else
2841         ol_enable_bdb=${ol_enable_backends:-yes}
2842 fi;
2843 # end --enable-bdb
2844 # OpenLDAP --enable-dnssrv
2845
2846         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2847 if test "${enable_dnssrv+set}" = set; then
2848   enableval="$enable_dnssrv"
2849
2850         ol_arg=invalid
2851         for ol_val in no yes mod ; do
2852                 if test "$enableval" = "$ol_val" ; then
2853                         ol_arg="$ol_val"
2854                 fi
2855         done
2856         if test "$ol_arg" = "invalid" ; then
2857                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2858 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2859    { (exit 1); exit 1; }; }
2860         fi
2861         ol_enable_dnssrv="$ol_arg"
2862
2863 else
2864         ol_enable_dnssrv=${ol_enable_backends:-no}
2865 fi;
2866 # end --enable-dnssrv
2867 # OpenLDAP --enable-hdb
2868
2869         # Check whether --enable-hdb or --disable-hdb was given.
2870 if test "${enable_hdb+set}" = set; then
2871   enableval="$enable_hdb"
2872
2873         ol_arg=invalid
2874         for ol_val in no yes mod ; do
2875                 if test "$enableval" = "$ol_val" ; then
2876                         ol_arg="$ol_val"
2877                 fi
2878         done
2879         if test "$ol_arg" = "invalid" ; then
2880                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2881 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2882    { (exit 1); exit 1; }; }
2883         fi
2884         ol_enable_hdb="$ol_arg"
2885
2886 else
2887         ol_enable_hdb=${ol_enable_backends:-yes}
2888 fi;
2889 # end --enable-hdb
2890 # OpenLDAP --enable-ldap
2891
2892         # Check whether --enable-ldap or --disable-ldap was given.
2893 if test "${enable_ldap+set}" = set; then
2894   enableval="$enable_ldap"
2895
2896         ol_arg=invalid
2897         for ol_val in no yes mod ; do
2898                 if test "$enableval" = "$ol_val" ; then
2899                         ol_arg="$ol_val"
2900                 fi
2901         done
2902         if test "$ol_arg" = "invalid" ; then
2903                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2905    { (exit 1); exit 1; }; }
2906         fi
2907         ol_enable_ldap="$ol_arg"
2908
2909 else
2910         ol_enable_ldap=${ol_enable_backends:-no}
2911 fi;
2912 # end --enable-ldap
2913 # OpenLDAP --enable-meta
2914
2915         # Check whether --enable-meta or --disable-meta was given.
2916 if test "${enable_meta+set}" = set; then
2917   enableval="$enable_meta"
2918
2919         ol_arg=invalid
2920         for ol_val in no yes mod ; do
2921                 if test "$enableval" = "$ol_val" ; then
2922                         ol_arg="$ol_val"
2923                 fi
2924         done
2925         if test "$ol_arg" = "invalid" ; then
2926                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2927 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2928    { (exit 1); exit 1; }; }
2929         fi
2930         ol_enable_meta="$ol_arg"
2931
2932 else
2933         ol_enable_meta=${ol_enable_backends:-no}
2934 fi;
2935 # end --enable-meta
2936 # OpenLDAP --enable-monitor
2937
2938         # Check whether --enable-monitor or --disable-monitor was given.
2939 if test "${enable_monitor+set}" = set; then
2940   enableval="$enable_monitor"
2941
2942         ol_arg=invalid
2943         for ol_val in no yes mod ; do
2944                 if test "$enableval" = "$ol_val" ; then
2945                         ol_arg="$ol_val"
2946                 fi
2947         done
2948         if test "$ol_arg" = "invalid" ; then
2949                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2950 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2951    { (exit 1); exit 1; }; }
2952         fi
2953         ol_enable_monitor="$ol_arg"
2954
2955 else
2956         ol_enable_monitor=${ol_enable_backends:-yes}
2957 fi;
2958 # end --enable-monitor
2959 # OpenLDAP --enable-null
2960
2961         # Check whether --enable-null or --disable-null was given.
2962 if test "${enable_null+set}" = set; then
2963   enableval="$enable_null"
2964
2965         ol_arg=invalid
2966         for ol_val in no yes mod ; do
2967                 if test "$enableval" = "$ol_val" ; then
2968                         ol_arg="$ol_val"
2969                 fi
2970         done
2971         if test "$ol_arg" = "invalid" ; then
2972                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2973 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2974    { (exit 1); exit 1; }; }
2975         fi
2976         ol_enable_null="$ol_arg"
2977
2978 else
2979         ol_enable_null=${ol_enable_backends:-no}
2980 fi;
2981 # end --enable-null
2982 # OpenLDAP --enable-passwd
2983
2984         # Check whether --enable-passwd or --disable-passwd was given.
2985 if test "${enable_passwd+set}" = set; then
2986   enableval="$enable_passwd"
2987
2988         ol_arg=invalid
2989         for ol_val in no yes mod ; do
2990                 if test "$enableval" = "$ol_val" ; then
2991                         ol_arg="$ol_val"
2992                 fi
2993         done
2994         if test "$ol_arg" = "invalid" ; then
2995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2996 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2997    { (exit 1); exit 1; }; }
2998         fi
2999         ol_enable_passwd="$ol_arg"
3000
3001 else
3002         ol_enable_passwd=${ol_enable_backends:-no}
3003 fi;
3004 # end --enable-passwd
3005 # OpenLDAP --enable-perl
3006
3007         # Check whether --enable-perl or --disable-perl was given.
3008 if test "${enable_perl+set}" = set; then
3009   enableval="$enable_perl"
3010
3011         ol_arg=invalid
3012         for ol_val in no yes mod ; do
3013                 if test "$enableval" = "$ol_val" ; then
3014                         ol_arg="$ol_val"
3015                 fi
3016         done
3017         if test "$ol_arg" = "invalid" ; then
3018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3019 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3020    { (exit 1); exit 1; }; }
3021         fi
3022         ol_enable_perl="$ol_arg"
3023
3024 else
3025         ol_enable_perl=${ol_enable_backends:-no}
3026 fi;
3027 # end --enable-perl
3028 # OpenLDAP --enable-relay
3029
3030         # Check whether --enable-relay or --disable-relay was given.
3031 if test "${enable_relay+set}" = set; then
3032   enableval="$enable_relay"
3033
3034         ol_arg=invalid
3035         for ol_val in no yes mod ; do
3036                 if test "$enableval" = "$ol_val" ; then
3037                         ol_arg="$ol_val"
3038                 fi
3039         done
3040         if test "$ol_arg" = "invalid" ; then
3041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3042 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3043    { (exit 1); exit 1; }; }
3044         fi
3045         ol_enable_relay="$ol_arg"
3046
3047 else
3048         ol_enable_relay=${ol_enable_backends:-yes}
3049 fi;
3050 # end --enable-relay
3051 # OpenLDAP --enable-shell
3052
3053         # Check whether --enable-shell or --disable-shell was given.
3054 if test "${enable_shell+set}" = set; then
3055   enableval="$enable_shell"
3056
3057         ol_arg=invalid
3058         for ol_val in no yes mod ; do
3059                 if test "$enableval" = "$ol_val" ; then
3060                         ol_arg="$ol_val"
3061                 fi
3062         done
3063         if test "$ol_arg" = "invalid" ; then
3064                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3065 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3066    { (exit 1); exit 1; }; }
3067         fi
3068         ol_enable_shell="$ol_arg"
3069
3070 else
3071         ol_enable_shell=${ol_enable_backends:-no}
3072 fi;
3073 # end --enable-shell
3074 # OpenLDAP --enable-sql
3075
3076         # Check whether --enable-sql or --disable-sql was given.
3077 if test "${enable_sql+set}" = set; then
3078   enableval="$enable_sql"
3079
3080         ol_arg=invalid
3081         for ol_val in no yes mod ; do
3082                 if test "$enableval" = "$ol_val" ; then
3083                         ol_arg="$ol_val"
3084                 fi
3085         done
3086         if test "$ol_arg" = "invalid" ; then
3087                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3088 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3089    { (exit 1); exit 1; }; }
3090         fi
3091         ol_enable_sql="$ol_arg"
3092
3093 else
3094         ol_enable_sql=${ol_enable_backends:-no}
3095 fi;
3096 # end --enable-sql
3097
3098 Overlays="accesslog \
3099         auditlog \
3100         constraint \
3101         dds \
3102         dyngroup \
3103         dynlist \
3104         ppolicy \
3105         proxycache \
3106         refint \
3107         retcode \
3108         rwm \
3109         seqmod \
3110         syncprov \
3111         translucent \
3112         unique \
3113         valsort"
3114
3115 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3116 if test "${enable_xxslapoverlays+set}" = set; then
3117   enableval="$enable_xxslapoverlays"
3118
3119 fi;
3120
3121 # OpenLDAP --enable-overlays
3122
3123         # Check whether --enable-overlays or --disable-overlays was given.
3124 if test "${enable_overlays+set}" = set; then
3125   enableval="$enable_overlays"
3126
3127         ol_arg=invalid
3128         for ol_val in no yes mod ; do
3129                 if test "$enableval" = "$ol_val" ; then
3130                         ol_arg="$ol_val"
3131                 fi
3132         done
3133         if test "$ol_arg" = "invalid" ; then
3134                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3136    { (exit 1); exit 1; }; }
3137         fi
3138         ol_enable_overlays="$ol_arg"
3139
3140 fi;
3141 # end --enable-overlays
3142 # OpenLDAP --enable-accesslog
3143
3144         # Check whether --enable-accesslog or --disable-accesslog was given.
3145 if test "${enable_accesslog+set}" = set; then
3146   enableval="$enable_accesslog"
3147
3148         ol_arg=invalid
3149         for ol_val in no yes mod ; do
3150                 if test "$enableval" = "$ol_val" ; then
3151                         ol_arg="$ol_val"
3152                 fi
3153         done
3154         if test "$ol_arg" = "invalid" ; then
3155                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3156 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3157    { (exit 1); exit 1; }; }
3158         fi
3159         ol_enable_accesslog="$ol_arg"
3160
3161 else
3162         ol_enable_accesslog=${ol_enable_overlays:-no}
3163 fi;
3164 # end --enable-accesslog
3165
3166 # OpenLDAP --enable-auditlog
3167
3168         # Check whether --enable-auditlog or --disable-auditlog was given.
3169 if test "${enable_auditlog+set}" = set; then
3170   enableval="$enable_auditlog"
3171
3172         ol_arg=invalid
3173         for ol_val in no yes mod ; do
3174                 if test "$enableval" = "$ol_val" ; then
3175                         ol_arg="$ol_val"
3176                 fi
3177         done
3178         if test "$ol_arg" = "invalid" ; then
3179                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3180 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3181    { (exit 1); exit 1; }; }
3182         fi
3183         ol_enable_auditlog="$ol_arg"
3184
3185 else
3186         ol_enable_auditlog=${ol_enable_overlays:-no}
3187 fi;
3188 # end --enable-auditlog
3189
3190 # OpenLDAP --enable-constraint
3191
3192         # Check whether --enable-constraint or --disable-constraint was given.
3193 if test "${enable_constraint+set}" = set; then
3194   enableval="$enable_constraint"
3195
3196         ol_arg=invalid
3197         for ol_val in no yes mod ; do
3198                 if test "$enableval" = "$ol_val" ; then
3199                         ol_arg="$ol_val"
3200                 fi
3201         done
3202         if test "$ol_arg" = "invalid" ; then
3203                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3205    { (exit 1); exit 1; }; }
3206         fi
3207         ol_enable_constraint="$ol_arg"
3208
3209 else
3210         ol_enable_constraint=${ol_enable_overlays:-no}
3211 fi;
3212 # end --enable-constraint
3213
3214 # OpenLDAP --enable-dds
3215
3216         # Check whether --enable-dds or --disable-dds was given.
3217 if test "${enable_dds+set}" = set; then
3218   enableval="$enable_dds"
3219
3220         ol_arg=invalid
3221         for ol_val in no yes mod ; 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-dds" >&5
3228 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3229    { (exit 1); exit 1; }; }
3230         fi
3231         ol_enable_dds="$ol_arg"
3232
3233 else
3234         ol_enable_dds=${ol_enable_overlays:-no}
3235 fi;
3236 # end --enable-dds
3237
3238 # OpenLDAP --enable-dyngroup
3239
3240         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3241 if test "${enable_dyngroup+set}" = set; then
3242   enableval="$enable_dyngroup"
3243
3244         ol_arg=invalid
3245         for ol_val in no yes mod ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_dyngroup="$ol_arg"
3256
3257 else
3258         ol_enable_dyngroup=${ol_enable_overlays:-no}
3259 fi;
3260 # end --enable-dyngroup
3261
3262 # OpenLDAP --enable-dynlist
3263
3264         # Check whether --enable-dynlist or --disable-dynlist was given.
3265 if test "${enable_dynlist+set}" = set; then
3266   enableval="$enable_dynlist"
3267
3268         ol_arg=invalid
3269         for ol_val in no yes mod ; do
3270                 if test "$enableval" = "$ol_val" ; then
3271                         ol_arg="$ol_val"
3272                 fi
3273         done
3274         if test "$ol_arg" = "invalid" ; then
3275                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3277    { (exit 1); exit 1; }; }
3278         fi
3279         ol_enable_dynlist="$ol_arg"
3280
3281 else
3282         ol_enable_dynlist=${ol_enable_overlays:-no}
3283 fi;
3284 # end --enable-dynlist
3285
3286 # OpenLDAP --enable-ppolicy
3287
3288         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3289 if test "${enable_ppolicy+set}" = set; then
3290   enableval="$enable_ppolicy"
3291
3292         ol_arg=invalid
3293         for ol_val in no yes mod ; do
3294                 if test "$enableval" = "$ol_val" ; then
3295                         ol_arg="$ol_val"
3296                 fi
3297         done
3298         if test "$ol_arg" = "invalid" ; then
3299                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3300 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3301    { (exit 1); exit 1; }; }
3302         fi
3303         ol_enable_ppolicy="$ol_arg"
3304
3305 else
3306         ol_enable_ppolicy=${ol_enable_overlays:-no}
3307 fi;
3308 # end --enable-ppolicy
3309
3310 # OpenLDAP --enable-proxycache
3311
3312         # Check whether --enable-proxycache or --disable-proxycache was given.
3313 if test "${enable_proxycache+set}" = set; then
3314   enableval="$enable_proxycache"
3315
3316         ol_arg=invalid
3317         for ol_val in no yes mod ; do
3318                 if test "$enableval" = "$ol_val" ; then
3319                         ol_arg="$ol_val"
3320                 fi
3321         done
3322         if test "$ol_arg" = "invalid" ; then
3323                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3324 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3325    { (exit 1); exit 1; }; }
3326         fi
3327         ol_enable_proxycache="$ol_arg"
3328
3329 else
3330         ol_enable_proxycache=${ol_enable_overlays:-no}
3331 fi;
3332 # end --enable-proxycache
3333
3334 # OpenLDAP --enable-refint
3335
3336         # Check whether --enable-refint or --disable-refint was given.
3337 if test "${enable_refint+set}" = set; then
3338   enableval="$enable_refint"
3339
3340         ol_arg=invalid
3341         for ol_val in no yes mod ; do
3342                 if test "$enableval" = "$ol_val" ; then
3343                         ol_arg="$ol_val"
3344                 fi
3345         done
3346         if test "$ol_arg" = "invalid" ; then
3347                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3348 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3349    { (exit 1); exit 1; }; }
3350         fi
3351         ol_enable_refint="$ol_arg"
3352
3353 else
3354         ol_enable_refint=${ol_enable_overlays:-no}
3355 fi;
3356 # end --enable-refint
3357
3358 # OpenLDAP --enable-retcode
3359
3360         # Check whether --enable-retcode or --disable-retcode was given.
3361 if test "${enable_retcode+set}" = set; then
3362   enableval="$enable_retcode"
3363
3364         ol_arg=invalid
3365         for ol_val in no yes mod ; do
3366                 if test "$enableval" = "$ol_val" ; then
3367                         ol_arg="$ol_val"
3368                 fi
3369         done
3370         if test "$ol_arg" = "invalid" ; then
3371                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3372 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3373    { (exit 1); exit 1; }; }
3374         fi
3375         ol_enable_retcode="$ol_arg"
3376
3377 else
3378         ol_enable_retcode=${ol_enable_overlays:-no}
3379 fi;
3380 # end --enable-retcode
3381
3382 # OpenLDAP --enable-rwm
3383
3384         # Check whether --enable-rwm or --disable-rwm was given.
3385 if test "${enable_rwm+set}" = set; then
3386   enableval="$enable_rwm"
3387
3388         ol_arg=invalid
3389         for ol_val in no yes mod ; do
3390                 if test "$enableval" = "$ol_val" ; then
3391                         ol_arg="$ol_val"
3392                 fi
3393         done
3394         if test "$ol_arg" = "invalid" ; then
3395                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3396 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3397    { (exit 1); exit 1; }; }
3398         fi
3399         ol_enable_rwm="$ol_arg"
3400
3401 else
3402         ol_enable_rwm=${ol_enable_overlays:-no}
3403 fi;
3404 # end --enable-rwm
3405
3406 # OpenLDAP --enable-seqmod
3407
3408         # Check whether --enable-seqmod or --disable-seqmod was given.
3409 if test "${enable_seqmod+set}" = set; then
3410   enableval="$enable_seqmod"
3411
3412         ol_arg=invalid
3413         for ol_val in no yes mod ; do
3414                 if test "$enableval" = "$ol_val" ; then
3415                         ol_arg="$ol_val"
3416                 fi
3417         done
3418         if test "$ol_arg" = "invalid" ; then
3419                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3420 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3421    { (exit 1); exit 1; }; }
3422         fi
3423         ol_enable_seqmod="$ol_arg"
3424
3425 else
3426         ol_enable_seqmod=${ol_enable_overlays:-yes}
3427 fi;
3428 # end --enable-seqmod
3429
3430 # OpenLDAP --enable-syncprov
3431
3432         # Check whether --enable-syncprov or --disable-syncprov was given.
3433 if test "${enable_syncprov+set}" = set; then
3434   enableval="$enable_syncprov"
3435
3436         ol_arg=invalid
3437         for ol_val in no yes mod ; do
3438                 if test "$enableval" = "$ol_val" ; then
3439                         ol_arg="$ol_val"
3440                 fi
3441         done
3442         if test "$ol_arg" = "invalid" ; then
3443                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3444 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3445    { (exit 1); exit 1; }; }
3446         fi
3447         ol_enable_syncprov="$ol_arg"
3448
3449 else
3450         ol_enable_syncprov=${ol_enable_overlays:-yes}
3451 fi;
3452 # end --enable-syncprov
3453
3454 # OpenLDAP --enable-translucent
3455
3456         # Check whether --enable-translucent or --disable-translucent was given.
3457 if test "${enable_translucent+set}" = set; then
3458   enableval="$enable_translucent"
3459
3460         ol_arg=invalid
3461         for ol_val in no yes mod ; do
3462                 if test "$enableval" = "$ol_val" ; then
3463                         ol_arg="$ol_val"
3464                 fi
3465         done
3466         if test "$ol_arg" = "invalid" ; then
3467                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3468 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3469    { (exit 1); exit 1; }; }
3470         fi
3471         ol_enable_translucent="$ol_arg"
3472
3473 else
3474         ol_enable_translucent=${ol_enable_overlays:-no}
3475 fi;
3476 # end --enable-translucent
3477
3478 # OpenLDAP --enable-unique
3479
3480         # Check whether --enable-unique or --disable-unique was given.
3481 if test "${enable_unique+set}" = set; then
3482   enableval="$enable_unique"
3483
3484         ol_arg=invalid
3485         for ol_val in no yes mod ; do
3486                 if test "$enableval" = "$ol_val" ; then
3487                         ol_arg="$ol_val"
3488                 fi
3489         done
3490         if test "$ol_arg" = "invalid" ; then
3491                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3492 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3493    { (exit 1); exit 1; }; }
3494         fi
3495         ol_enable_unique="$ol_arg"
3496
3497 else
3498         ol_enable_unique=${ol_enable_overlays:-no}
3499 fi;
3500 # end --enable-unique
3501
3502 # OpenLDAP --enable-valsort
3503
3504         # Check whether --enable-valsort or --disable-valsort was given.
3505 if test "${enable_valsort+set}" = set; then
3506   enableval="$enable_valsort"
3507
3508         ol_arg=invalid
3509         for ol_val in no yes mod ; do
3510                 if test "$enableval" = "$ol_val" ; then
3511                         ol_arg="$ol_val"
3512                 fi
3513         done
3514         if test "$ol_arg" = "invalid" ; then
3515                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3516 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3517    { (exit 1); exit 1; }; }
3518         fi
3519         ol_enable_valsort="$ol_arg"
3520
3521 else
3522         ol_enable_valsort=${ol_enable_overlays:-no}
3523 fi;
3524 # end --enable-valsort
3525
3526
3527 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3528 if test "${enable_xxslurpdoptions+set}" = set; then
3529   enableval="$enable_xxslurpdoptions"
3530
3531 fi;
3532 # OpenLDAP --enable-slurpd
3533
3534         # Check whether --enable-slurpd or --disable-slurpd was given.
3535 if test "${enable_slurpd+set}" = set; then
3536   enableval="$enable_slurpd"
3537
3538         ol_arg=invalid
3539         for ol_val in auto yes no ; do
3540                 if test "$enableval" = "$ol_val" ; then
3541                         ol_arg="$ol_val"
3542                 fi
3543         done
3544         if test "$ol_arg" = "invalid" ; then
3545                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3547    { (exit 1); exit 1; }; }
3548         fi
3549         ol_enable_slurpd="$ol_arg"
3550
3551 else
3552         ol_enable_slurpd=auto
3553 fi;
3554 # end --enable-slurpd
3555
3556 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3557 if test "${enable_xxliboptions+set}" = set; then
3558   enableval="$enable_xxliboptions"
3559
3560 fi;
3561 # Check whether --enable-static or --disable-static was given.
3562 if test "${enable_static+set}" = set; then
3563   enableval="$enable_static"
3564   p=${PACKAGE-default}
3565     case $enableval in
3566     yes) enable_static=yes ;;
3567     no) enable_static=no ;;
3568     *)
3569      enable_static=no
3570       # Look at the argument we got.  We use all the common list separators.
3571       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3572       for pkg in $enableval; do
3573         IFS="$lt_save_ifs"
3574         if test "X$pkg" = "X$p"; then
3575           enable_static=yes
3576         fi
3577       done
3578       IFS="$lt_save_ifs"
3579       ;;
3580     esac
3581 else
3582   enable_static=yes
3583 fi;
3584
3585 # Check whether --enable-shared or --disable-shared was given.
3586 if test "${enable_shared+set}" = set; then
3587   enableval="$enable_shared"
3588   p=${PACKAGE-default}
3589     case $enableval in
3590     yes) enable_shared=yes ;;
3591     no) enable_shared=no ;;
3592     *)
3593       enable_shared=no
3594       # Look at the argument we got.  We use all the common list separators.
3595       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3596       for pkg in $enableval; do
3597         IFS="$lt_save_ifs"
3598         if test "X$pkg" = "X$p"; then
3599           enable_shared=yes
3600         fi
3601       done
3602       IFS="$lt_save_ifs"
3603       ;;
3604     esac
3605 else
3606   enable_shared=yes
3607 fi;
3608
3609
3610
3611 # validate options
3612 if test $ol_enable_slapd = no ; then
3613                 if test $ol_enable_slapi = yes ; then
3614                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3615 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3616         fi
3617         case "$ol_enable_backends" in yes | mod)
3618                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3619 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3620         esac
3621         for i in $Backends; do
3622                 eval "ol_tmp=\$ol_enable_$i"
3623                 if test $ol_tmp != no ; then
3624                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3625 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3626                         eval "ol_enable_$i=no"
3627                 fi
3628         done
3629         if test $ol_enable_modules = yes ; then
3630                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3631 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3632         fi
3633         if test $ol_enable_wrappers = yes ; then
3634                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3635 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3636         fi
3637         if test $ol_enable_rlookups = yes ; then
3638                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3639 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3640         fi
3641         if test $ol_enable_dynacl = yes ; then
3642                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3644         fi
3645         if test $ol_enable_aci != no ; then
3646                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3648         fi
3649         if test $ol_enable_slurpd = yes ; then
3650                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3651 echo "$as_me: error: slurpd requires slapd" >&2;}
3652    { (exit 1); exit 1; }; }
3653         fi
3654         if test $ol_enable_rewrite = yes ; then
3655                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3656 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3657         fi
3658                 case "$ol_enable_overlays" in yes | mod)
3659                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3660 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3661         esac
3662         for i in $Overlays; do
3663                 eval "ol_tmp=\$ol_enable_$i"
3664                 if test $ol_tmp != no ; then
3665                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3666 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3667                         eval "ol_enable_$i=no"
3668                 fi
3669         done
3670
3671         # force settings to no
3672         ol_enable_slapi=no
3673
3674         ol_enable_backends=
3675         ol_enable_overlays=
3676         ol_enable_modules=no
3677         ol_enable_rlookups=no
3678         ol_enable_dynacl=no
3679         ol_enable_aci=no
3680         ol_enable_wrappers=no
3681
3682         ol_enable_slurpd=no
3683
3684         ol_enable_rewrite=no
3685
3686 elif test $ol_enable_modules != yes &&
3687         test $ol_enable_bdb = no &&
3688         test $ol_enable_dnssrv = no &&
3689         test $ol_enable_hdb = no &&
3690         test $ol_enable_ldap = no &&
3691         test $ol_enable_meta = no &&
3692         test $ol_enable_monitor = no &&
3693         test $ol_enable_null = no &&
3694         test $ol_enable_passwd = no &&
3695         test $ol_enable_perl = no &&
3696         test $ol_enable_relay = no &&
3697         test $ol_enable_shell = no &&
3698         test $ol_enable_sql = no ; then
3699
3700         if test $ol_enable_slapd = yes ; then
3701                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3702 echo "$as_me: error: slapd requires a backend" >&2;}
3703    { (exit 1); exit 1; }; }
3704         else
3705                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3706 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3707                 ol_enable_slapd=no
3708         fi
3709 fi
3710
3711 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3712         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3713 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716
3717 if test $ol_enable_slurpd = yes ; then
3718                 if test $ol_with_threads = no ; then
3719                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3720 echo "$as_me: error: slurpd requires threads" >&2;}
3721    { (exit 1); exit 1; }; }
3722         fi
3723 fi
3724
3725 if test $ol_enable_lmpasswd = yes ; then
3726         if test $ol_with_tls = no ; then
3727                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3728 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3729    { (exit 1); exit 1; }; }
3730         fi
3731 fi
3732
3733 if test $ol_enable_kbind = yes ; then
3734         if test $ol_with_kerberos = no ; then
3735                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3736 echo "$as_me: error: options require --with-kerberos" >&2;}
3737    { (exit 1); exit 1; }; }
3738         elif test $ol_with_kerberos = auto ; then
3739                 ol_with_kerberos=yes
3740         fi
3741
3742 elif test $ol_enable_kbind = no ; then
3743         if test $ol_with_kerberos = auto ; then
3744                 ol_with_kerberos=no
3745         elif test $ol_with_kerberos != no ; then
3746                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3747 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3748                 ol_with_kerberos=no
3749         fi
3750 fi
3751
3752 if test $ol_enable_spasswd = yes ; then
3753         if test $ol_with_cyrus_sasl = no ; then
3754                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3755 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3756    { (exit 1); exit 1; }; }
3757         fi
3758         ol_with_cyrus_sasl=yes
3759 fi
3760
3761 echo "$as_me:$LINENO: result: done" >&5
3762 echo "${ECHO_T}done" >&6
3763
3764 LDAP_LIBS=
3765 BDB_LIBS=
3766 LTHREAD_LIBS=
3767 LUTIL_LIBS=
3768
3769 SLAPD_LIBS=
3770 SLURPD_LIBS=
3771
3772 BUILD_SLAPD=no
3773 BUILD_SLURPD=no
3774
3775 BUILD_THREAD=no
3776
3777 BUILD_SLAPI=no
3778 SLAPD_SLAPI_DEPEND=
3779
3780 BUILD_BDB=no
3781 BUILD_DNSSRV=no
3782 BUILD_HDB=no
3783 BUILD_LDAP=no
3784 BUILD_META=no
3785 BUILD_MONITOR=no
3786 BUILD_NULL=no
3787 BUILD_PASSWD=no
3788 BUILD_PERL=no
3789 BUILD_RELAY=no
3790 BUILD_SHELL=no
3791 BUILD_SQL=no
3792
3793 BUILD_ACCESSLOG=no
3794 BUILD_AUDITLOG=no
3795 BUILD_CONSTRAINT=no
3796 BUILD_DDS=no
3797 BUILD_DENYOP=no
3798 BUILD_DYNGROUP=no
3799 BUILD_DYNLIST=no
3800 BUILD_LASTMOD=no
3801 BUILD_PPOLICY=no
3802 BUILD_PROXYCACHE=no
3803 BUILD_REFINT=no
3804 BUILD_RETCODE=no
3805 BUILD_RWM=no
3806 BUILD_SEQMOD=no
3807 BUILD_SYNCPROV=no
3808 BUILD_TRANSLUCENT=no
3809 BUILD_UNIQUE=no
3810 BUILD_VALSORT=no
3811
3812 SLAPD_STATIC_OVERLAYS=
3813 SLAPD_DYNAMIC_OVERLAYS=
3814
3815 SLAPD_MODULES_LDFLAGS=
3816 SLAPD_MODULES_CPPFLAGS=
3817
3818 SLAPD_STATIC_BACKENDS=back-ldif
3819 SLAPD_DYNAMIC_BACKENDS=
3820
3821 SLAPD_PERL_LDFLAGS=
3822 MOD_PERL_LDFLAGS=
3823 PERL_CPPFLAGS=
3824
3825 SLAPD_SQL_LDFLAGS=
3826 SLAPD_SQL_LIBS=
3827 SLAPD_SQL_INCLUDES=
3828
3829 KRB4_LIBS=
3830 KRB5_LIBS=
3831 SASL_LIBS=
3832 TLS_LIBS=
3833 MODULES_LIBS=
3834 SLAPI_LIBS=
3835 LIBSLAPI=
3836 LIBSLAPITOOLS=
3837 AUTH_LIBS=
3838 ICU_LIBS=
3839
3840 SLAPD_SLP_LIBS=
3841 SLAPD_GMP_LIBS=
3842
3843
3844
3845 cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_MKVERSION 1
3847 _ACEOF
3848
3849
3850
3851
3852 ol_aix_threads=no
3853 case "$target" in
3854 *-*-aix*)       if test -z "$CC" ; then
3855                 case "$ol_with_threads" in
3856                 auto | yes |  posix) ol_aix_threads=yes ;;
3857                 esac
3858         fi
3859 ;;
3860 esac
3861
3862 if test $ol_aix_threads = yes ; then
3863         if test -z "${CC}" ; then
3864                 for ac_prog in cc_r xlc_r cc
3865 do
3866   # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 echo "$as_me:$LINENO: checking for $ac_word" >&5
3869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3870 if test "${ac_cv_prog_CC+set}" = set; then
3871   echo $ECHO_N "(cached) $ECHO_C" >&6
3872 else
3873   if test -n "$CC"; then
3874   ac_cv_prog_CC="$CC" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879   IFS=$as_save_IFS
3880   test -z "$as_dir" && as_dir=.
3881   for ac_exec_ext in '' $ac_executable_extensions; do
3882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883     ac_cv_prog_CC="$ac_prog"
3884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885     break 2
3886   fi
3887 done
3888 done
3889
3890 fi
3891 fi
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894   echo "$as_me:$LINENO: result: $CC" >&5
3895 echo "${ECHO_T}$CC" >&6
3896 else
3897   echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901   test -n "$CC" && break
3902 done
3903
3904
3905                 if test "$CC" = cc ; then
3906                                                 if test $ol_with_threads != auto ; then
3907                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3908 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3909    { (exit 1); exit 1; }; }
3910                         else
3911                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3912 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3913                         fi
3914                         ol_with_threads=no
3915                 fi
3916         fi
3917
3918         case ${CC} in cc_r | xlc_r)
3919                 ol_with_threads=posix
3920                 ol_cv_pthread_create=yes
3921                 ;;
3922         esac
3923 fi
3924
3925 if test -z "${CC}"; then
3926         for ac_prog in cc gcc
3927 do
3928   # Extract the first word of "$ac_prog", so it can be a program name with args.
3929 set dummy $ac_prog; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_CC+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   if test -n "$CC"; then
3936   ac_cv_prog_CC="$CC" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_exec_ext in '' $ac_executable_extensions; do
3944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_CC="$ac_prog"
3946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950 done
3951
3952 fi
3953 fi
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956   echo "$as_me:$LINENO: result: $CC" >&5
3957 echo "${ECHO_T}$CC" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963   test -n "$CC" && break
3964 done
3965 test -n "$CC" || CC="missing"
3966
3967
3968         if test "${CC}" = "missing" ; then
3969                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3970 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3971    { (exit 1); exit 1; }; }
3972         fi
3973 fi
3974
3975 if test -z "${AR}"; then
3976         for ac_prog in ar gar
3977 do
3978   # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_prog_AR+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   if test -n "$AR"; then
3986   ac_cv_prog_AR="$AR" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_prog_AR="$ac_prog"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002 fi
4003 fi
4004 AR=$ac_cv_prog_AR
4005 if test -n "$AR"; then
4006   echo "$as_me:$LINENO: result: $AR" >&5
4007 echo "${ECHO_T}$AR" >&6
4008 else
4009   echo "$as_me:$LINENO: result: no" >&5
4010 echo "${ECHO_T}no" >&6
4011 fi
4012
4013   test -n "$AR" && break
4014 done
4015 test -n "$AR" || AR="missing"
4016
4017
4018         if test "${AR}" = "missing" ; then
4019                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4020 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4021    { (exit 1); exit 1; }; }
4022         fi
4023 fi
4024
4025
4026
4027
4028
4029 # Check whether --enable-fast-install or --disable-fast-install was given.
4030 if test "${enable_fast_install+set}" = set; then
4031   enableval="$enable_fast_install"
4032   p=${PACKAGE-default}
4033     case $enableval in
4034     yes) enable_fast_install=yes ;;
4035     no) enable_fast_install=no ;;
4036     *)
4037       enable_fast_install=no
4038       # Look at the argument we got.  We use all the common list separators.
4039       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4040       for pkg in $enableval; do
4041         IFS="$lt_save_ifs"
4042         if test "X$pkg" = "X$p"; then
4043           enable_fast_install=yes
4044         fi
4045       done
4046       IFS="$lt_save_ifs"
4047       ;;
4048     esac
4049 else
4050   enable_fast_install=yes
4051 fi;
4052
4053 DEPDIR="${am__leading_dot}deps"
4054
4055           ac_config_commands="$ac_config_commands depfiles"
4056
4057
4058 am_make=${MAKE-make}
4059 cat > confinc << 'END'
4060 am__doit:
4061         @echo done
4062 .PHONY: am__doit
4063 END
4064 # If we don't find an include directive, just comment out the code.
4065 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4066 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4067 am__include="#"
4068 am__quote=
4069 _am_result=none
4070 # First try GNU make style include.
4071 echo "include confinc" > confmf
4072 # We grep out `Entering directory' and `Leaving directory'
4073 # messages which can occur if `w' ends up in MAKEFLAGS.
4074 # In particular we don't look at `^make:' because GNU make might
4075 # be invoked under some other name (usually "gmake"), in which
4076 # case it prints its new name instead of `make'.
4077 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4078    am__include=include
4079    am__quote=
4080    _am_result=GNU
4081 fi
4082 # Now try BSD make style include.
4083 if test "$am__include" = "#"; then
4084    echo '.include "confinc"' > confmf
4085    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4086       am__include=.include
4087       am__quote="\""
4088       _am_result=BSD
4089    fi
4090 fi
4091
4092
4093 echo "$as_me:$LINENO: result: $_am_result" >&5
4094 echo "${ECHO_T}$_am_result" >&6
4095 rm -f confinc confmf
4096
4097 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4098 if test "${enable_dependency_tracking+set}" = set; then
4099   enableval="$enable_dependency_tracking"
4100
4101 fi;
4102 if test "x$enable_dependency_tracking" != xno; then
4103   am_depcomp="$ac_aux_dir/depcomp"
4104   AMDEPBACKSLASH='\'
4105 fi
4106
4107
4108 if test "x$enable_dependency_tracking" != xno; then
4109   AMDEP_TRUE=
4110   AMDEP_FALSE='#'
4111 else
4112   AMDEP_TRUE='#'
4113   AMDEP_FALSE=
4114 fi
4115
4116
4117
4118 ac_ext=c
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 if test -n "$ac_tool_prefix"; then
4124   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4126 echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4128 if test "${ac_cv_prog_CC+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   if test -n "$CC"; then
4132   ac_cv_prog_CC="$CC" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139   for ac_exec_ext in '' $ac_executable_extensions; do
4140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143     break 2
4144   fi
4145 done
4146 done
4147
4148 fi
4149 fi
4150 CC=$ac_cv_prog_CC
4151 if test -n "$CC"; then
4152   echo "$as_me:$LINENO: result: $CC" >&5
4153 echo "${ECHO_T}$CC" >&6
4154 else
4155   echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6
4157 fi
4158
4159 fi
4160 if test -z "$ac_cv_prog_CC"; then
4161   ac_ct_CC=$CC
4162   # Extract the first word of "gcc", so it can be a program name with args.
4163 set dummy gcc; ac_word=$2
4164 echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$ac_ct_CC"; then
4170   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179     ac_cv_prog_ac_ct_CC="gcc"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185
4186 fi
4187 fi
4188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4189 if test -n "$ac_ct_CC"; then
4190   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4191 echo "${ECHO_T}$ac_ct_CC" >&6
4192 else
4193   echo "$as_me:$LINENO: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4195 fi
4196
4197   CC=$ac_ct_CC
4198 else
4199   CC="$ac_cv_prog_CC"
4200 fi
4201
4202 if test -z "$CC"; then
4203   if test -n "$ac_tool_prefix"; then
4204   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4205 set dummy ${ac_tool_prefix}cc; ac_word=$2
4206 echo "$as_me:$LINENO: checking for $ac_word" >&5
4207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208 if test "${ac_cv_prog_CC+set}" = set; then
4209   echo $ECHO_N "(cached) $ECHO_C" >&6
4210 else
4211   if test -n "$CC"; then
4212   ac_cv_prog_CC="$CC" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4216 do
4217   IFS=$as_save_IFS
4218   test -z "$as_dir" && as_dir=.
4219   for ac_exec_ext in '' $ac_executable_extensions; do
4220   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221     ac_cv_prog_CC="${ac_tool_prefix}cc"
4222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223     break 2
4224   fi
4225 done
4226 done
4227
4228 fi
4229 fi
4230 CC=$ac_cv_prog_CC
4231 if test -n "$CC"; then
4232   echo "$as_me:$LINENO: result: $CC" >&5
4233 echo "${ECHO_T}$CC" >&6
4234 else
4235   echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6
4237 fi
4238
4239 fi
4240 if test -z "$ac_cv_prog_CC"; then
4241   ac_ct_CC=$CC
4242   # Extract the first word of "cc", so it can be a program name with args.
4243 set dummy cc; ac_word=$2
4244 echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4247   echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249   if test -n "$ac_ct_CC"; then
4250   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_prog_ac_ct_CC="cc"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266 fi
4267 fi
4268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4271 echo "${ECHO_T}$ac_ct_CC" >&6
4272 else
4273   echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6
4275 fi
4276
4277   CC=$ac_ct_CC
4278 else
4279   CC="$ac_cv_prog_CC"
4280 fi
4281
4282 fi
4283 if test -z "$CC"; then
4284   # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4288 if test "${ac_cv_prog_CC+set}" = set; then
4289   echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291   if test -n "$CC"; then
4292   ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294   ac_prog_rejected=no
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_exec_ext in '' $ac_executable_extensions; do
4301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303        ac_prog_rejected=yes
4304        continue
4305      fi
4306     ac_cv_prog_CC="cc"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313 if test $ac_prog_rejected = yes; then
4314   # We found a bogon in the path, so make sure we never use it.
4315   set dummy $ac_cv_prog_CC
4316   shift
4317   if test $# != 0; then
4318     # We chose a different compiler from the bogus one.
4319     # However, it has the same basename, so the bogon will be chosen
4320     # first if we set CC to just the basename; use the full file name.
4321     shift
4322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4323   fi
4324 fi
4325 fi
4326 fi
4327 CC=$ac_cv_prog_CC
4328 if test -n "$CC"; then
4329   echo "$as_me:$LINENO: result: $CC" >&5
4330 echo "${ECHO_T}$CC" >&6
4331 else
4332   echo "$as_me:$LINENO: result: no" >&5
4333 echo "${ECHO_T}no" >&6
4334 fi
4335
4336 fi
4337 if test -z "$CC"; then
4338   if test -n "$ac_tool_prefix"; then
4339   for ac_prog in cl
4340   do
4341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345 if test "${ac_cv_prog_CC+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   if test -n "$CC"; then
4349   ac_cv_prog_CC="$CC" # Let the user override the test.
4350 else
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356   for ac_exec_ext in '' $ac_executable_extensions; do
4357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 fi
4366 fi
4367 CC=$ac_cv_prog_CC
4368 if test -n "$CC"; then
4369   echo "$as_me:$LINENO: result: $CC" >&5
4370 echo "${ECHO_T}$CC" >&6
4371 else
4372   echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6
4374 fi
4375
4376     test -n "$CC" && break
4377   done
4378 fi
4379 if test -z "$CC"; then
4380   ac_ct_CC=$CC
4381   for ac_prog in cl
4382 do
4383   # Extract the first word of "$ac_prog", so it can be a program name with args.
4384 set dummy $ac_prog; ac_word=$2
4385 echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   if test -n "$ac_ct_CC"; then
4391   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4400     ac_cv_prog_ac_ct_CC="$ac_prog"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406
4407 fi
4408 fi
4409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4410 if test -n "$ac_ct_CC"; then
4411   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4412 echo "${ECHO_T}$ac_ct_CC" >&6
4413 else
4414   echo "$as_me:$LINENO: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 fi
4417
4418   test -n "$ac_ct_CC" && break
4419 done
4420
4421   CC=$ac_ct_CC
4422 fi
4423
4424 fi
4425
4426
4427 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4428 See \`config.log' for more details." >&5
4429 echo "$as_me: error: no acceptable C compiler found in \$PATH
4430 See \`config.log' for more details." >&2;}
4431    { (exit 1); exit 1; }; }
4432
4433 # Provide some information about the compiler.
4434 echo "$as_me:$LINENO:" \
4435      "checking for C compiler version" >&5
4436 ac_compiler=`set X $ac_compile; echo $2`
4437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4438   (eval $ac_compiler --version </dev/null >&5) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }
4442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4443   (eval $ac_compiler -v </dev/null >&5) 2>&5
4444   ac_status=$?
4445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446   (exit $ac_status); }
4447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4448   (eval $ac_compiler -V </dev/null >&5) 2>&5
4449   ac_status=$?
4450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451   (exit $ac_status); }
4452
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459
4460 int
4461 main ()
4462 {
4463
4464   ;
4465   return 0;
4466 }
4467 _ACEOF
4468 ac_clean_files_save=$ac_clean_files
4469 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4470 # Try to create an executable without -o first, disregard a.out.
4471 # It will help us diagnose broken compilers, and finding out an intuition
4472 # of exeext.
4473 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4474 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4475 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4477   (eval $ac_link_default) 2>&5
4478   ac_status=$?
4479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480   (exit $ac_status); }; then
4481   # Find the output, starting from the most likely.  This scheme is
4482 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4483 # resort.
4484
4485 # Be careful to initialize this variable, since it used to be cached.
4486 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4487 ac_cv_exeext=
4488 # b.out is created by i960 compilers.
4489 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4490 do
4491   test -f "$ac_file" || continue
4492   case $ac_file in
4493     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4494         ;;
4495     conftest.$ac_ext )
4496         # This is the source file.
4497         ;;
4498     [ab].out )
4499         # We found the default executable, but exeext='' is most
4500         # certainly right.
4501         break;;
4502     *.* )
4503         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4504         # FIXME: I believe we export ac_cv_exeext for Libtool,
4505         # but it would be cool to find out if it's true.  Does anybody
4506         # maintain Libtool? --akim.
4507         export ac_cv_exeext
4508         break;;
4509     * )
4510         break;;
4511   esac
4512 done
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4518 See \`config.log' for more details." >&5
4519 echo "$as_me: error: C compiler cannot create executables
4520 See \`config.log' for more details." >&2;}
4521    { (exit 77); exit 77; }; }
4522 fi
4523
4524 ac_exeext=$ac_cv_exeext
4525 echo "$as_me:$LINENO: result: $ac_file" >&5
4526 echo "${ECHO_T}$ac_file" >&6
4527
4528 # Check the compiler produces executables we can run.  If not, either
4529 # the compiler is broken, or we cross compile.
4530 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4531 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4533 # If not cross compiling, check that we can run a simple program.
4534 if test "$cross_compiling" != yes; then
4535   if { ac_try='./$ac_file'
4536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537   (eval $ac_try) 2>&5
4538   ac_status=$?
4539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540   (exit $ac_status); }; }; then
4541     cross_compiling=no
4542   else
4543     if test "$cross_compiling" = maybe; then
4544         cross_compiling=yes
4545     else
4546         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4547 If you meant to cross compile, use \`--host'.
4548 See \`config.log' for more details." >&5
4549 echo "$as_me: error: cannot run C compiled programs.
4550 If you meant to cross compile, use \`--host'.
4551 See \`config.log' for more details." >&2;}
4552    { (exit 1); exit 1; }; }
4553     fi
4554   fi
4555 fi
4556 echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4558
4559 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4560 ac_clean_files=$ac_clean_files_save
4561 # Check the compiler produces executables we can run.  If not, either
4562 # the compiler is broken, or we cross compile.
4563 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4564 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4565 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4566 echo "${ECHO_T}$cross_compiling" >&6
4567
4568 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4569 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4571   (eval $ac_link) 2>&5
4572   ac_status=$?
4573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574   (exit $ac_status); }; then
4575   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4576 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4577 # work properly (i.e., refer to `conftest.exe'), while it won't with
4578 # `rm'.
4579 for ac_file in conftest.exe conftest conftest.*; do
4580   test -f "$ac_file" || continue
4581   case $ac_file in
4582     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4583     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584           export ac_cv_exeext
4585           break;;
4586     * ) break;;
4587   esac
4588 done
4589 else
4590   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4593 See \`config.log' for more details." >&2;}
4594    { (exit 1); exit 1; }; }
4595 fi
4596
4597 rm -f conftest$ac_cv_exeext
4598 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4599 echo "${ECHO_T}$ac_cv_exeext" >&6
4600
4601 rm -f conftest.$ac_ext
4602 EXEEXT=$ac_cv_exeext
4603 ac_exeext=$EXEEXT
4604 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4605 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4606 if test "${ac_cv_objext+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615
4616 int
4617 main ()
4618 {
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.o conftest.obj
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626   (eval $ac_compile) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; then
4630   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4631   case $ac_file in
4632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4633     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4634        break;;
4635   esac
4636 done
4637 else
4638   echo "$as_me: failed program was:" >&5
4639 sed 's/^/| /' conftest.$ac_ext >&5
4640
4641 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4642 See \`config.log' for more details." >&5
4643 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4644 See \`config.log' for more details." >&2;}
4645    { (exit 1); exit 1; }; }
4646 fi
4647
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4649 fi
4650 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4651 echo "${ECHO_T}$ac_cv_objext" >&6
4652 OBJEXT=$ac_cv_objext
4653 ac_objext=$OBJEXT
4654 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4655 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4656 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4657   echo $ECHO_N "(cached) $ECHO_C" >&6
4658 else
4659   cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h.  */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h.  */
4665
4666 int
4667 main ()
4668 {
4669 #ifndef __GNUC__
4670        choke me
4671 #endif
4672
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -z "$ac_c_werror_flag"
4687                          || test ! -s conftest.err'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   ac_compiler_gnu=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 ac_compiler_gnu=no
4705 fi
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4708
4709 fi
4710 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4711 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4712 GCC=`test $ac_compiler_gnu = yes && echo yes`
4713 ac_test_CFLAGS=${CFLAGS+set}
4714 ac_save_CFLAGS=$CFLAGS
4715 CFLAGS="-g"
4716 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4717 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4718 if test "${ac_cv_prog_cc_g+set}" = set; then
4719   echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721   cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h.  */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h.  */
4727
4728 int
4729 main ()
4730 {
4731
4732   ;
4733   return 0;
4734 }
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738   (eval $ac_compile) 2>conftest.er1
4739   ac_status=$?
4740   grep -v '^ *+' conftest.er1 >conftest.err
4741   rm -f conftest.er1
4742   cat conftest.err >&5
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); } &&
4745          { ac_try='test -z "$ac_c_werror_flag"
4746                          || test ! -s conftest.err'
4747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748   (eval $ac_try) 2>&5
4749   ac_status=$?
4750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751   (exit $ac_status); }; } &&
4752          { ac_try='test -s conftest.$ac_objext'
4753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4754   (eval $ac_try) 2>&5
4755   ac_status=$?
4756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); }; }; then
4758   ac_cv_prog_cc_g=yes
4759 else
4760   echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4762
4763 ac_cv_prog_cc_g=no
4764 fi
4765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4769 if test "$ac_test_CFLAGS" = set; then
4770   CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772   if test "$GCC" = yes; then
4773     CFLAGS="-g -O2"
4774   else
4775     CFLAGS="-g"
4776   fi
4777 else
4778   if test "$GCC" = yes; then
4779     CFLAGS="-O2"
4780   else
4781     CFLAGS=
4782   fi
4783 fi
4784 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4785 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4786 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   ac_cv_prog_cc_stdc=no
4790 ac_save_CC=$CC
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h.  */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h.  */
4797 #include <stdarg.h>
4798 #include <stdio.h>
4799 #include <sys/types.h>
4800 #include <sys/stat.h>
4801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4802 struct buf { int x; };
4803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4804 static char *e (p, i)
4805      char **p;
4806      int i;
4807 {
4808   return p[i];
4809 }
4810 static char *f (char * (*g) (char **, int), char **p, ...)
4811 {
4812   char *s;
4813   va_list v;
4814   va_start (v,p);
4815   s = g (p, va_arg (v,int));
4816   va_end (v);
4817   return s;
4818 }
4819
4820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4821    function prototypes and stuff, but not '\xHH' hex character constants.
4822    These don't provoke an error unfortunately, instead are silently treated
4823    as 'x'.  The following induces an error, until -std1 is added to get
4824    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4825    array size at least.  It's necessary to write '\x00'==0 to get something
4826    that's true only with -std1.  */
4827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4828
4829 int test (int i, double x);
4830 struct s1 {int (*f) (int a);};
4831 struct s2 {int (*f) (double a);};
4832 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4833 int argc;
4834 char **argv;
4835 int
4836 main ()
4837 {
4838 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 # Don't try gcc -ansi; that turns off useful extensions and
4844 # breaks some systems' header files.
4845 # AIX                   -qlanglvl=ansi
4846 # Ultrix and OSF/1      -std1
4847 # HP-UX 10.20 and later -Ae
4848 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4849 # SVR4                  -Xc -D__EXTENSIONS__
4850 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4851 do
4852   CC="$ac_save_CC $ac_arg"
4853   rm -f conftest.$ac_objext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4855   (eval $ac_compile) 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } &&
4862          { ac_try='test -z "$ac_c_werror_flag"
4863                          || test ! -s conftest.err'
4864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865   (eval $ac_try) 2>&5
4866   ac_status=$?
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); }; } &&
4869          { ac_try='test -s conftest.$ac_objext'
4870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4871   (eval $ac_try) 2>&5
4872   ac_status=$?
4873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); }; }; then
4875   ac_cv_prog_cc_stdc=$ac_arg
4876 break
4877 else
4878   echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 fi
4882 rm -f conftest.err conftest.$ac_objext
4883 done
4884 rm -f conftest.$ac_ext conftest.$ac_objext
4885 CC=$ac_save_CC
4886
4887 fi
4888
4889 case "x$ac_cv_prog_cc_stdc" in
4890   x|xno)
4891     echo "$as_me:$LINENO: result: none needed" >&5
4892 echo "${ECHO_T}none needed" >&6 ;;
4893   *)
4894     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4895 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4896     CC="$CC $ac_cv_prog_cc_stdc" ;;
4897 esac
4898
4899 # Some people use a C++ compiler to compile C.  Since we use `exit',
4900 # in C++ we need to declare it.  In case someone uses the same compiler
4901 # for both compiling C and C++ we need to have the C++ compiler decide
4902 # the declaration of exit, since it's the most demanding environment.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #ifndef __cplusplus
4905   choke me
4906 #endif
4907 _ACEOF
4908 rm -f conftest.$ac_objext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4910   (eval $ac_compile) 2>conftest.er1
4911   ac_status=$?
4912   grep -v '^ *+' conftest.er1 >conftest.err
4913   rm -f conftest.er1
4914   cat conftest.err >&5
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -z "$ac_c_werror_flag"
4918                          || test ! -s conftest.err'
4919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920   (eval $ac_try) 2>&5
4921   ac_status=$?
4922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923   (exit $ac_status); }; } &&
4924          { ac_try='test -s conftest.$ac_objext'
4925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4926   (eval $ac_try) 2>&5
4927   ac_status=$?
4928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929   (exit $ac_status); }; }; then
4930   for ac_declaration in \
4931    '' \
4932    'extern "C" void std::exit (int) throw (); using std::exit;' \
4933    'extern "C" void std::exit (int); using std::exit;' \
4934    'extern "C" void exit (int) throw ();' \
4935    'extern "C" void exit (int);' \
4936    'void exit (int);'
4937 do
4938   cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h.  */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h.  */
4944 $ac_declaration
4945 #include <stdlib.h>
4946 int
4947 main ()
4948 {
4949 exit (42);
4950   ;
4951   return 0;
4952 }
4953 _ACEOF
4954 rm -f conftest.$ac_objext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4956   (eval $ac_compile) 2>conftest.er1
4957   ac_status=$?
4958   grep -v '^ *+' conftest.er1 >conftest.err
4959   rm -f conftest.er1
4960   cat conftest.err >&5
4961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962   (exit $ac_status); } &&
4963          { ac_try='test -z "$ac_c_werror_flag"
4964                          || test ! -s conftest.err'
4965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4966   (eval $ac_try) 2>&5
4967   ac_status=$?
4968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969   (exit $ac_status); }; } &&
4970          { ac_try='test -s conftest.$ac_objext'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; }; then
4976   :
4977 else
4978   echo "$as_me: failed program was:" >&5
4979 sed 's/^/| /' conftest.$ac_ext >&5
4980
4981 continue
4982 fi
4983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4984   cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h.  */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h.  */
4990 $ac_declaration
4991 int
4992 main ()
4993 {
4994 exit (42);
4995   ;
4996   return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001   (eval $ac_compile) 2>conftest.er1
5002   ac_status=$?
5003   grep -v '^ *+' conftest.er1 >conftest.err
5004   rm -f conftest.er1
5005   cat conftest.err >&5
5006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007   (exit $ac_status); } &&
5008          { ac_try='test -z "$ac_c_werror_flag"
5009                          || test ! -s conftest.err'
5010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5011   (eval $ac_try) 2>&5
5012   ac_status=$?
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); }; } &&
5015          { ac_try='test -s conftest.$ac_objext'
5016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017   (eval $ac_try) 2>&5
5018   ac_status=$?
5019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); }; }; then
5021   break
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026 fi
5027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5028 done
5029 rm -f conftest*
5030 if test -n "$ac_declaration"; then
5031   echo '#ifdef __cplusplus' >>confdefs.h
5032   echo $ac_declaration      >>confdefs.h
5033   echo '#endif'             >>confdefs.h
5034 fi
5035
5036 else
5037   echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 fi
5041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_ext=c
5043 ac_cpp='$CPP $CPPFLAGS'
5044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048 depcc="$CC"   am_compiler_list=
5049
5050 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5051 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5052 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5053   echo $ECHO_N "(cached) $ECHO_C" >&6
5054 else
5055   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5056   # We make a subdir and do the tests there.  Otherwise we can end up
5057   # making bogus files that we don't know about and never remove.  For
5058   # instance it was reported that on HP-UX the gcc test will end up
5059   # making a dummy file named `D' -- because `-MD' means `put the output
5060   # in D'.
5061   mkdir conftest.dir
5062   # Copy depcomp to subdir because otherwise we won't find it if we're
5063   # using a relative directory.
5064   cp "$am_depcomp" conftest.dir
5065   cd conftest.dir
5066   # We will build objects and dependencies in a subdirectory because
5067   # it helps to detect inapplicable dependency modes.  For instance
5068   # both Tru64's cc and ICC support -MD to output dependencies as a
5069   # side effect of compilation, but ICC will put the dependencies in
5070   # the current directory while Tru64 will put them in the object
5071   # directory.
5072   mkdir sub
5073
5074   am_cv_CC_dependencies_compiler_type=none
5075   if test "$am_compiler_list" = ""; then
5076      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5077   fi
5078   for depmode in $am_compiler_list; do
5079     # Setup a source with many dependencies, because some compilers
5080     # like to wrap large dependency lists on column 80 (with \), and
5081     # we should not choose a depcomp mode which is confused by this.
5082     #
5083     # We need to recreate these files for each test, as the compiler may
5084     # overwrite some of them when testing with obscure command lines.
5085     # This happens at least with the AIX C compiler.
5086     : > sub/conftest.c
5087     for i in 1 2 3 4 5 6; do
5088       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5089       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5090       # Solaris 8's {/usr,}/bin/sh.
5091       touch sub/conftst$i.h
5092     done
5093     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5094
5095     case $depmode in
5096     nosideeffect)
5097       # after this tag, mechanisms are not by side-effect, so they'll
5098       # only be used when explicitly requested
5099       if test "x$enable_dependency_tracking" = xyes; then
5100         continue
5101       else
5102         break
5103       fi
5104       ;;
5105     none) break ;;
5106     esac
5107     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5108     # mode.  It turns out that the SunPro C++ compiler does not properly
5109     # handle `-M -o', and we need to detect this.
5110     if depmode=$depmode \
5111        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5112        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5113        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5114          >/dev/null 2>conftest.err &&
5115        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5116        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5117        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5118       # icc doesn't choke on unknown options, it will just issue warnings
5119       # or remarks (even with -Werror).  So we grep stderr for any message
5120       # that says an option was ignored or not supported.
5121       # When given -MP, icc 7.0 and 7.1 complain thusly:
5122       #   icc: Command line warning: ignoring option '-M'; no argument required
5123       # The diagnosis changed in icc 8.0:
5124       #   icc: Command line remark: option '-MP' not supported
5125       if (grep 'ignoring option' conftest.err ||
5126           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5127         am_cv_CC_dependencies_compiler_type=$depmode
5128         break
5129       fi
5130     fi
5131   done
5132
5133   cd ..
5134   rm -rf conftest.dir
5135 else
5136   am_cv_CC_dependencies_compiler_type=none
5137 fi
5138
5139 fi
5140 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5141 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5142 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5143
5144
5145
5146 if
5147   test "x$enable_dependency_tracking" != xno \
5148   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5149   am__fastdepCC_TRUE=
5150   am__fastdepCC_FALSE='#'
5151 else
5152   am__fastdepCC_TRUE='#'
5153   am__fastdepCC_FALSE=
5154 fi
5155
5156
5157 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5158 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5159 if test "${lt_cv_path_SED+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   # Loop through the user's path and test for sed and gsed.
5163 # Then use that list of sed's as ones to test for truncation.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169   for lt_ac_prog in sed gsed; do
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5172         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5173       fi
5174     done
5175   done
5176 done
5177 lt_ac_max=0
5178 lt_ac_count=0
5179 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5180 # along with /bin/sed that truncates output.
5181 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5182   test ! -f $lt_ac_sed && continue
5183   cat /dev/null > conftest.in
5184   lt_ac_count=0
5185   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5186   # Check for GNU sed and select it if it is found.
5187   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5188     lt_cv_path_SED=$lt_ac_sed
5189     break
5190   fi
5191   while true; do
5192     cat conftest.in conftest.in >conftest.tmp
5193     mv conftest.tmp conftest.in
5194     cp conftest.in conftest.nl
5195     echo >>conftest.nl
5196     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5197     cmp -s conftest.out conftest.nl || break
5198     # 10000 chars as input seems more than enough
5199     test $lt_ac_count -gt 10 && break
5200     lt_ac_count=`expr $lt_ac_count + 1`
5201     if test $lt_ac_count -gt $lt_ac_max; then
5202       lt_ac_max=$lt_ac_count
5203       lt_cv_path_SED=$lt_ac_sed
5204     fi
5205   done
5206 done
5207
5208 fi
5209
5210 SED=$lt_cv_path_SED
5211 echo "$as_me:$LINENO: result: $SED" >&5
5212 echo "${ECHO_T}$SED" >&6
5213
5214 echo "$as_me:$LINENO: checking for egrep" >&5
5215 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5216 if test "${ac_cv_prog_egrep+set}" = set; then
5217   echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5220     then ac_cv_prog_egrep='grep -E'
5221     else ac_cv_prog_egrep='egrep'
5222     fi
5223 fi
5224 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5225 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5226  EGREP=$ac_cv_prog_egrep
5227
5228
5229
5230 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5231 if test "${with_gnu_ld+set}" = set; then
5232   withval="$with_gnu_ld"
5233   test "$withval" = no || with_gnu_ld=yes
5234 else
5235   with_gnu_ld=no
5236 fi;
5237 ac_prog=ld
5238 if test "$GCC" = yes; then
5239   # Check if gcc -print-prog-name=ld gives a path.
5240   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5241 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5242   case $host in
5243   *-*-mingw*)
5244     # gcc leaves a trailing carriage return which upsets mingw
5245     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5246   *)
5247     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5248   esac
5249   case $ac_prog in
5250     # Accept absolute paths.
5251     [\\/]* | ?:[\\/]*)
5252       re_direlt='/[^/][^/]*/\.\./'
5253       # Canonicalize the pathname of ld
5254       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5255       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5256         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5257       done
5258       test -z "$LD" && LD="$ac_prog"
5259       ;;
5260   "")
5261     # If it fails, then pretend we aren't using GCC.
5262     ac_prog=ld
5263     ;;
5264   *)
5265     # If it is relative, then search for the first ld in PATH.
5266     with_gnu_ld=unknown
5267     ;;
5268   esac
5269 elif test "$with_gnu_ld" = yes; then
5270   echo "$as_me:$LINENO: checking for GNU ld" >&5
5271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5272 else
5273   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5275 fi
5276 if test "${lt_cv_path_LD+set}" = set; then
5277   echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279   if test -z "$LD"; then
5280   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5281   for ac_dir in $PATH; do
5282     IFS="$lt_save_ifs"
5283     test -z "$ac_dir" && ac_dir=.
5284     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5285       lt_cv_path_LD="$ac_dir/$ac_prog"
5286       # Check to see if the program is GNU ld.  I'd rather use --version,
5287       # but apparently some variants of GNU ld only accept -v.
5288       # Break only if it was the GNU/non-GNU ld that we prefer.
5289       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5290       *GNU* | *'with BFD'*)
5291         test "$with_gnu_ld" != no && break
5292         ;;
5293       *)
5294         test "$with_gnu_ld" != yes && break
5295         ;;
5296       esac
5297     fi
5298   done
5299   IFS="$lt_save_ifs"
5300 else
5301   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5302 fi
5303 fi
5304
5305 LD="$lt_cv_path_LD"
5306 if test -n "$LD"; then
5307   echo "$as_me:$LINENO: result: $LD" >&5
5308 echo "${ECHO_T}$LD" >&6
5309 else
5310   echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6
5312 fi
5313 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5314 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5315    { (exit 1); exit 1; }; }
5316 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5317 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5318 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5319   echo $ECHO_N "(cached) $ECHO_C" >&6
5320 else
5321   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5322 case `$LD -v 2>&1 </dev/null` in
5323 *GNU* | *'with BFD'*)
5324   lt_cv_prog_gnu_ld=yes
5325   ;;
5326 *)
5327   lt_cv_prog_gnu_ld=no
5328   ;;
5329 esac
5330 fi
5331 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5333 with_gnu_ld=$lt_cv_prog_gnu_ld
5334
5335
5336 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5337 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5338 if test "${lt_cv_ld_reload_flag+set}" = set; then
5339   echo $ECHO_N "(cached) $ECHO_C" >&6
5340 else
5341   lt_cv_ld_reload_flag='-r'
5342 fi
5343 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5344 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5345 reload_flag=$lt_cv_ld_reload_flag
5346 case $reload_flag in
5347 "" | " "*) ;;
5348 *) reload_flag=" $reload_flag" ;;
5349 esac
5350 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5351 case $host_os in
5352   darwin*)
5353     if test "$GCC" = yes; then
5354       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5355     else
5356       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5357     fi
5358     ;;
5359 esac
5360
5361 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5362 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5363 if test "${lt_cv_path_NM+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   if test -n "$NM"; then
5367   # Let the user override the test.
5368   lt_cv_path_NM="$NM"
5369 else
5370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5371   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5372     IFS="$lt_save_ifs"
5373     test -z "$ac_dir" && ac_dir=.
5374     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5375     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5376       # Check to see if the nm accepts a BSD-compat flag.
5377       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5378       #   nm: unknown option "B" ignored
5379       # Tru64's nm complains that /dev/null is an invalid object file
5380       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5381       */dev/null* | *'Invalid file or object type'*)
5382         lt_cv_path_NM="$tmp_nm -B"
5383         break
5384         ;;
5385       *)
5386         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5387         */dev/null*)
5388           lt_cv_path_NM="$tmp_nm -p"
5389           break
5390           ;;
5391         *)
5392           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5393           continue # so that we can try to find one that supports BSD flags
5394           ;;
5395         esac
5396       esac
5397     fi
5398   done
5399   IFS="$lt_save_ifs"
5400   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5401 fi
5402 fi
5403 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5404 echo "${ECHO_T}$lt_cv_path_NM" >&6
5405 NM="$lt_cv_path_NM"
5406
5407 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5408 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5409 LN_S=$as_ln_s
5410 if test "$LN_S" = "ln -s"; then
5411   echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6
5413 else
5414   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5415 echo "${ECHO_T}no, using $LN_S" >&6
5416 fi
5417
5418 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5419 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5420 if test "${lt_cv_deplibs_check_method+set}" = set; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 else
5423   lt_cv_file_magic_cmd='$MAGIC_CMD'
5424 lt_cv_file_magic_test_file=
5425 lt_cv_deplibs_check_method='unknown'
5426 # Need to set the preceding variable on all platforms that support
5427 # interlibrary dependencies.
5428 # 'none' -- dependencies not supported.
5429 # `unknown' -- same as none, but documents that we really don't know.
5430 # 'pass_all' -- all dependencies passed with no checks.
5431 # 'test_compile' -- check by making test program.
5432 # 'file_magic [[regex]]' -- check by looking for files in library path
5433 # which responds to the $file_magic_cmd with a given extended regex.
5434 # If you have `file' or equivalent on your system and you're not sure
5435 # whether `pass_all' will *always* work, you probably want this one.
5436
5437 case $host_os in
5438 aix4* | aix5*)
5439   lt_cv_deplibs_check_method=pass_all
5440   ;;
5441
5442 beos*)
5443   lt_cv_deplibs_check_method=pass_all
5444   ;;
5445
5446 bsdi[45]*)
5447   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5448   lt_cv_file_magic_cmd='/usr/bin/file -L'
5449   lt_cv_file_magic_test_file=/shlib/libc.so
5450   ;;
5451
5452 cygwin*)
5453   # func_win32_libid is a shell function defined in ltmain.sh
5454   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5455   lt_cv_file_magic_cmd='func_win32_libid'
5456   ;;
5457
5458 mingw* | pw32*)
5459   # Base MSYS/MinGW do not provide the 'file' command needed by
5460   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5461   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5462   lt_cv_file_magic_cmd='$OBJDUMP -f'
5463   ;;
5464
5465 darwin* | rhapsody*)
5466   lt_cv_deplibs_check_method=pass_all
5467   ;;
5468
5469 freebsd* | kfreebsd*-gnu | dragonfly*)
5470   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5471     case $host_cpu in
5472     i*86 )
5473       # Not sure whether the presence of OpenBSD here was a mistake.
5474       # Let's accept both of them until this is cleared up.
5475       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5476       lt_cv_file_magic_cmd=/usr/bin/file
5477       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5478       ;;
5479     esac
5480   else
5481     lt_cv_deplibs_check_method=pass_all
5482   fi
5483   ;;
5484
5485 gnu*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 hpux10.20* | hpux11*)
5490   lt_cv_file_magic_cmd=/usr/bin/file
5491   case $host_cpu in
5492   ia64*)
5493     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5494     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5495     ;;
5496   hppa*64*)
5497     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]'
5498     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5499     ;;
5500   *)
5501     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5502     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5503     ;;
5504   esac
5505   ;;
5506
5507 irix5* | irix6* | nonstopux*)
5508   case $LD in
5509   *-32|*"-32 ") libmagic=32-bit;;
5510   *-n32|*"-n32 ") libmagic=N32;;
5511   *-64|*"-64 ") libmagic=64-bit;;
5512   *) libmagic=never-match;;
5513   esac
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 # This must be Linux ELF.
5518 linux*)
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 netbsd*)
5523   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5524     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5525   else
5526     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5527   fi
5528   ;;
5529
5530 newos6*)
5531   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5532   lt_cv_file_magic_cmd=/usr/bin/file
5533   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5534   ;;
5535
5536 nto-qnx*)
5537   lt_cv_deplibs_check_method=unknown
5538   ;;
5539
5540 openbsd*)
5541   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5543   else
5544     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5545   fi
5546   ;;
5547
5548 osf3* | osf4* | osf5*)
5549   lt_cv_deplibs_check_method=pass_all
5550   ;;
5551
5552 sco3.2v5*)
5553   lt_cv_deplibs_check_method=pass_all
5554   ;;
5555
5556 solaris*)
5557   lt_cv_deplibs_check_method=pass_all
5558   ;;
5559
5560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5561   case $host_vendor in
5562   motorola)
5563     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]'
5564     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5565     ;;
5566   ncr)
5567     lt_cv_deplibs_check_method=pass_all
5568     ;;
5569   sequent)
5570     lt_cv_file_magic_cmd='/bin/file'
5571     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5572     ;;
5573   sni)
5574     lt_cv_file_magic_cmd='/bin/file'
5575     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576     lt_cv_file_magic_test_file=/lib/libc.so
5577     ;;
5578   siemens)
5579     lt_cv_deplibs_check_method=pass_all
5580     ;;
5581   esac
5582   ;;
5583
5584 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587 esac
5588
5589 fi
5590 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5591 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5592 file_magic_cmd=$lt_cv_file_magic_cmd
5593 deplibs_check_method=$lt_cv_deplibs_check_method
5594 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5595
5596
5597
5598
5599 # If no C compiler was specified, use CC.
5600 LTCC=${LTCC-"$CC"}
5601
5602 # Allow CC to be a program name with arguments.
5603 compiler=$CC
5604
5605
5606 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5607 if test "${enable_libtool_lock+set}" = set; then
5608   enableval="$enable_libtool_lock"
5609
5610 fi;
5611 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5612
5613 # Some flags need to be propagated to the compiler or linker for good
5614 # libtool support.
5615 case $host in
5616 ia64-*-hpux*)
5617   # Find out which ABI we are using.
5618   echo 'int i;' > conftest.$ac_ext
5619   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620   (eval $ac_compile) 2>&5
5621   ac_status=$?
5622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); }; then
5624     case `/usr/bin/file conftest.$ac_objext` in
5625     *ELF-32*)
5626       HPUX_IA64_MODE="32"
5627       ;;
5628     *ELF-64*)
5629       HPUX_IA64_MODE="64"
5630       ;;
5631     esac
5632   fi
5633   rm -rf conftest*
5634   ;;
5635 *-*-irix6*)
5636   # Find out which ABI we are using.
5637   echo '#line 5637 "configure"' > conftest.$ac_ext
5638   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5639   (eval $ac_compile) 2>&5
5640   ac_status=$?
5641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642   (exit $ac_status); }; then
5643    if test "$lt_cv_prog_gnu_ld" = yes; then
5644     case `/usr/bin/file conftest.$ac_objext` in
5645     *32-bit*)
5646       LD="${LD-ld} -melf32bsmip"
5647       ;;
5648     *N32*)
5649       LD="${LD-ld} -melf32bmipn32"
5650       ;;
5651     *64-bit*)
5652       LD="${LD-ld} -melf64bmip"
5653       ;;
5654     esac
5655    else
5656     case `/usr/bin/file conftest.$ac_objext` in
5657     *32-bit*)
5658       LD="${LD-ld} -32"
5659       ;;
5660     *N32*)
5661       LD="${LD-ld} -n32"
5662       ;;
5663     *64-bit*)
5664       LD="${LD-ld} -64"
5665       ;;
5666     esac
5667    fi
5668   fi
5669   rm -rf conftest*
5670   ;;
5671
5672 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5673   # Find out which ABI we are using.
5674   echo 'int i;' > conftest.$ac_ext
5675   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676   (eval $ac_compile) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; then
5680     case `/usr/bin/file conftest.o` in
5681     *32-bit*)
5682       case $host in
5683         x86_64-*linux*)
5684           LD="${LD-ld} -m elf_i386"
5685           ;;
5686         ppc64-*linux*|powerpc64-*linux*)
5687           LD="${LD-ld} -m elf32ppclinux"
5688           ;;
5689         s390x-*linux*)
5690           LD="${LD-ld} -m elf_s390"
5691           ;;
5692         sparc64-*linux*)
5693           LD="${LD-ld} -m elf32_sparc"
5694           ;;
5695       esac
5696       ;;
5697     *64-bit*)
5698       case $host in
5699         x86_64-*linux*)
5700           LD="${LD-ld} -m elf_x86_64"
5701           ;;
5702         ppc*-*linux*|powerpc*-*linux*)
5703           LD="${LD-ld} -m elf64ppc"
5704           ;;
5705         s390*-*linux*)
5706           LD="${LD-ld} -m elf64_s390"
5707           ;;
5708         sparc*-*linux*)
5709           LD="${LD-ld} -m elf64_sparc"
5710           ;;
5711       esac
5712       ;;
5713     esac
5714   fi
5715   rm -rf conftest*
5716   ;;
5717
5718 *-*-sco3.2v5*)
5719   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5720   SAVE_CFLAGS="$CFLAGS"
5721   CFLAGS="$CFLAGS -belf"
5722   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5723 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5724 if test "${lt_cv_cc_needs_belf+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   ac_ext=c
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5732
5733      cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739
5740 int
5741 main ()
5742 {
5743
5744   ;
5745   return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750   (eval $ac_link) 2>conftest.er1
5751   ac_status=$?
5752   grep -v '^ *+' conftest.er1 >conftest.err
5753   rm -f conftest.er1
5754   cat conftest.err >&5
5755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756   (exit $ac_status); } &&
5757          { ac_try='test -z "$ac_c_werror_flag"
5758                          || test ! -s conftest.err'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; } &&
5764          { ac_try='test -s conftest$ac_exeext'
5765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766   (eval $ac_try) 2>&5
5767   ac_status=$?
5768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769   (exit $ac_status); }; }; then
5770   lt_cv_cc_needs_belf=yes
5771 else
5772   echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5774
5775 lt_cv_cc_needs_belf=no
5776 fi
5777 rm -f conftest.err conftest.$ac_objext \
5778       conftest$ac_exeext conftest.$ac_ext
5779      ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785 fi
5786 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5787 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5788   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5789     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5790     CFLAGS="$SAVE_CFLAGS"
5791   fi
5792   ;;
5793 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5794   if test -n "$ac_tool_prefix"; then
5795   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5797 echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5799 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   if test -n "$DLLTOOL"; then
5803   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5807 do
5808   IFS=$as_save_IFS
5809   test -z "$as_dir" && as_dir=.
5810   for ac_exec_ext in '' $ac_executable_extensions; do
5811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5812     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814     break 2
5815   fi
5816 done
5817 done
5818
5819 fi
5820 fi
5821 DLLTOOL=$ac_cv_prog_DLLTOOL
5822 if test -n "$DLLTOOL"; then
5823   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5824 echo "${ECHO_T}$DLLTOOL" >&6
5825 else
5826   echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828 fi
5829
5830 fi
5831 if test -z "$ac_cv_prog_DLLTOOL"; then
5832   ac_ct_DLLTOOL=$DLLTOOL
5833   # Extract the first word of "dlltool", so it can be a program name with args.
5834 set dummy dlltool; ac_word=$2
5835 echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5837 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   if test -n "$ac_ct_DLLTOOL"; then
5841   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848   for ac_exec_ext in '' $ac_executable_extensions; do
5849   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5851     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852     break 2
5853   fi
5854 done
5855 done
5856
5857   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5858 fi
5859 fi
5860 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5861 if test -n "$ac_ct_DLLTOOL"; then
5862   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5863 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5864 else
5865   echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5867 fi
5868
5869   DLLTOOL=$ac_ct_DLLTOOL
5870 else
5871   DLLTOOL="$ac_cv_prog_DLLTOOL"
5872 fi
5873
5874   if test -n "$ac_tool_prefix"; then
5875   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}as; ac_word=$2
5877 echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5879 if test "${ac_cv_prog_AS+set}" = set; then
5880   echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882   if test -n "$AS"; then
5883   ac_cv_prog_AS="$AS" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888   IFS=$as_save_IFS
5889   test -z "$as_dir" && as_dir=.
5890   for ac_exec_ext in '' $ac_executable_extensions; do
5891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892     ac_cv_prog_AS="${ac_tool_prefix}as"
5893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5894     break 2
5895   fi
5896 done
5897 done
5898
5899 fi
5900 fi
5901 AS=$ac_cv_prog_AS
5902 if test -n "$AS"; then
5903   echo "$as_me:$LINENO: result: $AS" >&5
5904 echo "${ECHO_T}$AS" >&6
5905 else
5906   echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5908 fi
5909
5910 fi
5911 if test -z "$ac_cv_prog_AS"; then
5912   ac_ct_AS=$AS
5913   # Extract the first word of "as", so it can be a program name with args.
5914 set dummy as; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   if test -n "$ac_ct_AS"; then
5921   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928   for ac_exec_ext in '' $ac_executable_extensions; do
5929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_ac_ct_AS="as"
5931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935 done
5936
5937   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5938 fi
5939 fi
5940 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5941 if test -n "$ac_ct_AS"; then
5942   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5943 echo "${ECHO_T}$ac_ct_AS" >&6
5944 else
5945   echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5947 fi
5948
5949   AS=$ac_ct_AS
5950 else
5951   AS="$ac_cv_prog_AS"
5952 fi
5953
5954   if test -n "$ac_tool_prefix"; then
5955   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   if test -n "$OBJDUMP"; then
5963   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978
5979 fi
5980 fi
5981 OBJDUMP=$ac_cv_prog_OBJDUMP
5982 if test -n "$OBJDUMP"; then
5983   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5984 echo "${ECHO_T}$OBJDUMP" >&6
5985 else
5986   echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990 fi
5991 if test -z "$ac_cv_prog_OBJDUMP"; then
5992   ac_ct_OBJDUMP=$OBJDUMP
5993   # Extract the first word of "objdump", so it can be a program name with args.
5994 set dummy objdump; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if test -n "$ac_ct_OBJDUMP"; then
6001   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6005 do
6006   IFS=$as_save_IFS
6007   test -z "$as_dir" && as_dir=.
6008   for ac_exec_ext in '' $ac_executable_extensions; do
6009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6012     break 2
6013   fi
6014 done
6015 done
6016
6017   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6018 fi
6019 fi
6020 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6021 if test -n "$ac_ct_OBJDUMP"; then
6022   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6023 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6024 else
6025   echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6
6027 fi
6028
6029   OBJDUMP=$ac_ct_OBJDUMP
6030 else
6031   OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 fi
6033
6034   ;;
6035
6036 esac
6037
6038 need_locks="$enable_libtool_lock"
6039
6040
6041 ac_ext=c
6042 ac_cpp='$CPP $CPPFLAGS'
6043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6047 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6048 # On Suns, sometimes $CPP names a directory.
6049 if test -n "$CPP" && test -d "$CPP"; then
6050   CPP=
6051 fi
6052 if test -z "$CPP"; then
6053   if test "${ac_cv_prog_CPP+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056       # Double quotes because CPP needs to be expanded
6057     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6058     do
6059       ac_preproc_ok=false
6060 for ac_c_preproc_warn_flag in '' yes
6061 do
6062   # Use a header file that comes with gcc, so configuring glibc
6063   # with a fresh cross-compiler works.
6064   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065   # <limits.h> exists even on freestanding compilers.
6066   # On the NeXT, cc -E runs the code through the compiler's parser,
6067   # not just through cpp. "Syntax error" is here to catch this case.
6068   cat >conftest.$ac_ext <<_ACEOF
6069 /* confdefs.h.  */
6070 _ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h.  */
6074 #ifdef __STDC__
6075 # include <limits.h>
6076 #else
6077 # include <assert.h>
6078 #endif
6079                      Syntax error
6080 _ACEOF
6081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6083   ac_status=$?
6084   grep -v '^ *+' conftest.er1 >conftest.err
6085   rm -f conftest.er1
6086   cat conftest.err >&5
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } >/dev/null; then
6089   if test -s conftest.err; then
6090     ac_cpp_err=$ac_c_preproc_warn_flag
6091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6092   else
6093     ac_cpp_err=
6094   fi
6095 else
6096   ac_cpp_err=yes
6097 fi
6098 if test -z "$ac_cpp_err"; then
6099   :
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104   # Broken: fails on valid input.
6105 continue
6106 fi
6107 rm -f conftest.err conftest.$ac_ext
6108
6109   # OK, works on sane cases.  Now check whether non-existent headers
6110   # can be detected and how.
6111   cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 #include <ac_nonexistent.h>
6118 _ACEOF
6119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121   ac_status=$?
6122   grep -v '^ *+' conftest.er1 >conftest.err
6123   rm -f conftest.er1
6124   cat conftest.err >&5
6125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126   (exit $ac_status); } >/dev/null; then
6127   if test -s conftest.err; then
6128     ac_cpp_err=$ac_c_preproc_warn_flag
6129     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6130   else
6131     ac_cpp_err=
6132   fi
6133 else
6134   ac_cpp_err=yes
6135 fi
6136 if test -z "$ac_cpp_err"; then
6137   # Broken: success on invalid input.
6138 continue
6139 else
6140   echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6142
6143   # Passes both tests.
6144 ac_preproc_ok=:
6145 break
6146 fi
6147 rm -f conftest.err conftest.$ac_ext
6148
6149 done
6150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6151 rm -f conftest.err conftest.$ac_ext
6152 if $ac_preproc_ok; then
6153   break
6154 fi
6155
6156     done
6157     ac_cv_prog_CPP=$CPP
6158
6159 fi
6160   CPP=$ac_cv_prog_CPP
6161 else
6162   ac_cv_prog_CPP=$CPP
6163 fi
6164 echo "$as_me:$LINENO: result: $CPP" >&5
6165 echo "${ECHO_T}$CPP" >&6
6166 ac_preproc_ok=false
6167 for ac_c_preproc_warn_flag in '' yes
6168 do
6169   # Use a header file that comes with gcc, so configuring glibc
6170   # with a fresh cross-compiler works.
6171   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172   # <limits.h> exists even on freestanding compilers.
6173   # On the NeXT, cc -E runs the code through the compiler's parser,
6174   # not just through cpp. "Syntax error" is here to catch this case.
6175   cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h.  */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h.  */
6181 #ifdef __STDC__
6182 # include <limits.h>
6183 #else
6184 # include <assert.h>
6185 #endif
6186                      Syntax error
6187 _ACEOF
6188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190   ac_status=$?
6191   grep -v '^ *+' conftest.er1 >conftest.err
6192   rm -f conftest.er1
6193   cat conftest.err >&5
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } >/dev/null; then
6196   if test -s conftest.err; then
6197     ac_cpp_err=$ac_c_preproc_warn_flag
6198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6199   else
6200     ac_cpp_err=
6201   fi
6202 else
6203   ac_cpp_err=yes
6204 fi
6205 if test -z "$ac_cpp_err"; then
6206   :
6207 else
6208   echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211   # Broken: fails on valid input.
6212 continue
6213 fi
6214 rm -f conftest.err conftest.$ac_ext
6215
6216   # OK, works on sane cases.  Now check whether non-existent headers
6217   # can be detected and how.
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 #include <ac_nonexistent.h>
6225 _ACEOF
6226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6228   ac_status=$?
6229   grep -v '^ *+' conftest.er1 >conftest.err
6230   rm -f conftest.er1
6231   cat conftest.err >&5
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } >/dev/null; then
6234   if test -s conftest.err; then
6235     ac_cpp_err=$ac_c_preproc_warn_flag
6236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6237   else
6238     ac_cpp_err=
6239   fi
6240 else
6241   ac_cpp_err=yes
6242 fi
6243 if test -z "$ac_cpp_err"; then
6244   # Broken: success on invalid input.
6245 continue
6246 else
6247   echo "$as_me: failed program was:" >&5
6248 sed 's/^/| /' conftest.$ac_ext >&5
6249
6250   # Passes both tests.
6251 ac_preproc_ok=:
6252 break
6253 fi
6254 rm -f conftest.err conftest.$ac_ext
6255
6256 done
6257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6258 rm -f conftest.err conftest.$ac_ext
6259 if $ac_preproc_ok; then
6260   :
6261 else
6262   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6263 See \`config.log' for more details." >&5
6264 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6265 See \`config.log' for more details." >&2;}
6266    { (exit 1); exit 1; }; }
6267 fi
6268
6269 ac_ext=c
6270 ac_cpp='$CPP $CPPFLAGS'
6271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6274
6275
6276 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6277 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6278 if test "${ac_cv_header_stdc+set}" = set; then
6279   echo $ECHO_N "(cached) $ECHO_C" >&6
6280 else
6281   cat >conftest.$ac_ext <<_ACEOF
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 #include <stdlib.h>
6288 #include <stdarg.h>
6289 #include <string.h>
6290 #include <float.h>
6291
6292 int
6293 main ()
6294 {
6295
6296   ;
6297   return 0;
6298 }
6299 _ACEOF
6300 rm -f conftest.$ac_objext
6301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6302   (eval $ac_compile) 2>conftest.er1
6303   ac_status=$?
6304   grep -v '^ *+' conftest.er1 >conftest.err
6305   rm -f conftest.er1
6306   cat conftest.err >&5
6307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308   (exit $ac_status); } &&
6309          { ac_try='test -z "$ac_c_werror_flag"
6310                          || test ! -s conftest.err'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; } &&
6316          { ac_try='test -s conftest.$ac_objext'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; }; then
6322   ac_cv_header_stdc=yes
6323 else
6324   echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6326
6327 ac_cv_header_stdc=no
6328 fi
6329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6330
6331 if test $ac_cv_header_stdc = yes; then
6332   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <string.h>
6340
6341 _ACEOF
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343   $EGREP "memchr" >/dev/null 2>&1; then
6344   :
6345 else
6346   ac_cv_header_stdc=no
6347 fi
6348 rm -f conftest*
6349
6350 fi
6351
6352 if test $ac_cv_header_stdc = yes; then
6353   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6354   cat >conftest.$ac_ext <<_ACEOF
6355 /* confdefs.h.  */
6356 _ACEOF
6357 cat confdefs.h >>conftest.$ac_ext
6358 cat >>conftest.$ac_ext <<_ACEOF
6359 /* end confdefs.h.  */
6360 #include <stdlib.h>
6361
6362 _ACEOF
6363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6364   $EGREP "free" >/dev/null 2>&1; then
6365   :
6366 else
6367   ac_cv_header_stdc=no
6368 fi
6369 rm -f conftest*
6370
6371 fi
6372
6373 if test $ac_cv_header_stdc = yes; then
6374   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6375   if test "$cross_compiling" = yes; then
6376   :
6377 else
6378   cat >conftest.$ac_ext <<_ACEOF
6379 /* confdefs.h.  */
6380 _ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h.  */
6384 #include <ctype.h>
6385 #if ((' ' & 0x0FF) == 0x020)
6386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6388 #else
6389 # define ISLOWER(c) \
6390                    (('a' <= (c) && (c) <= 'i') \
6391                      || ('j' <= (c) && (c) <= 'r') \
6392                      || ('s' <= (c) && (c) <= 'z'))
6393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6394 #endif
6395
6396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6397 int
6398 main ()
6399 {
6400   int i;
6401   for (i = 0; i < 256; i++)
6402     if (XOR (islower (i), ISLOWER (i))
6403         || toupper (i) != TOUPPER (i))
6404       exit(2);
6405   exit (0);
6406 }
6407 _ACEOF
6408 rm -f conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410   (eval $ac_link) 2>&5
6411   ac_status=$?
6412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415   (eval $ac_try) 2>&5
6416   ac_status=$?
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); }; }; then
6419   :
6420 else
6421   echo "$as_me: program exited with status $ac_status" >&5
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6424
6425 ( exit $ac_status )
6426 ac_cv_header_stdc=no
6427 fi
6428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6429 fi
6430 fi
6431 fi
6432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6434 if test $ac_cv_header_stdc = yes; then
6435
6436 cat >>confdefs.h <<\_ACEOF
6437 #define STDC_HEADERS 1
6438 _ACEOF
6439
6440 fi
6441
6442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6453                   inttypes.h stdint.h unistd.h
6454 do
6455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6456 echo "$as_me:$LINENO: checking for $ac_header" >&5
6457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459   echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467 $ac_includes_default
6468
6469 #include <$ac_header>
6470 _ACEOF
6471 rm -f conftest.$ac_objext
6472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6473   (eval $ac_compile) 2>conftest.er1
6474   ac_status=$?
6475   grep -v '^ *+' conftest.er1 >conftest.err
6476   rm -f conftest.er1
6477   cat conftest.err >&5
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); } &&
6480          { ac_try='test -z "$ac_c_werror_flag"
6481                          || test ! -s conftest.err'
6482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483   (eval $ac_try) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; } &&
6487          { ac_try='test -s conftest.$ac_objext'
6488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489   (eval $ac_try) 2>&5
6490   ac_status=$?
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); }; }; then
6493   eval "$as_ac_Header=yes"
6494 else
6495   echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 eval "$as_ac_Header=no"
6499 fi
6500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6501 fi
6502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505   cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 fi
6510
6511 done
6512
6513
6514
6515 for ac_header in dlfcn.h
6516 do
6517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519   echo "$as_me:$LINENO: checking for $ac_header" >&5
6520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6522   echo $ECHO_N "(cached) $ECHO_C" >&6
6523 fi
6524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6526 else
6527   # Is the header compilable?
6528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6530 cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 $ac_includes_default
6537 #include <$ac_header>
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541   (eval $ac_compile) 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_c_werror_flag"
6549                          || test ! -s conftest.err'
6550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551   (eval $ac_try) 2>&5
6552   ac_status=$?
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); }; } &&
6555          { ac_try='test -s conftest.$ac_objext'
6556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557   (eval $ac_try) 2>&5
6558   ac_status=$?
6559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560   (exit $ac_status); }; }; then
6561   ac_header_compiler=yes
6562 else
6563   echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6565
6566 ac_header_compiler=no
6567 fi
6568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6570 echo "${ECHO_T}$ac_header_compiler" >&6
6571
6572 # Is the header present?
6573 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581 #include <$ac_header>
6582 _ACEOF
6583 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6584   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } >/dev/null; then
6591   if test -s conftest.err; then
6592     ac_cpp_err=$ac_c_preproc_warn_flag
6593     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6594   else
6595     ac_cpp_err=
6596   fi
6597 else
6598   ac_cpp_err=yes
6599 fi
6600 if test -z "$ac_cpp_err"; then
6601   ac_header_preproc=yes
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606   ac_header_preproc=no
6607 fi
6608 rm -f conftest.err conftest.$ac_ext
6609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6610 echo "${ECHO_T}$ac_header_preproc" >&6
6611
6612 # So?  What about this header?
6613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6614   yes:no: )
6615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6619     ac_header_preproc=yes
6620     ;;
6621   no:yes:* )
6622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6634     (
6635       cat <<\_ASBOX
6636 ## --------------------------------------------- ##
6637 ## Report this to <http://www.openldap.org/its/> ##
6638 ## --------------------------------------------- ##
6639 _ASBOX
6640     ) |
6641       sed "s/^/$as_me: WARNING:     /" >&2
6642     ;;
6643 esac
6644 echo "$as_me:$LINENO: checking for $ac_header" >&5
6645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   eval "$as_ac_Header=\$ac_header_preproc"
6650 fi
6651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6653
6654 fi
6655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6656   cat >>confdefs.h <<_ACEOF
6657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6658 _ACEOF
6659
6660 fi
6661
6662 done
6663
6664
6665 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6666
6667 # find the maximum length of command line arguments
6668 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6669 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6670 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673     i=0
6674   teststring="ABCD"
6675
6676   case $build_os in
6677   msdosdjgpp*)
6678     # On DJGPP, this test can blow up pretty badly due to problems in libc
6679     # (any single argument exceeding 2000 bytes causes a buffer overrun
6680     # during glob expansion).  Even if it were fixed, the result of this
6681     # check would be larger than it should be.
6682     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6683     ;;
6684
6685   gnu*)
6686     # Under GNU Hurd, this test is not required because there is
6687     # no limit to the length of command line arguments.
6688     # Libtool will interpret -1 as no limit whatsoever
6689     lt_cv_sys_max_cmd_len=-1;
6690     ;;
6691
6692   cygwin* | mingw*)
6693     # On Win9x/ME, this test blows up -- it succeeds, but takes
6694     # about 5 minutes as the teststring grows exponentially.
6695     # Worse, since 9x/ME are not pre-emptively multitasking,
6696     # you end up with a "frozen" computer, even though with patience
6697     # the test eventually succeeds (with a max line length of 256k).
6698     # Instead, let's just punt: use the minimum linelength reported by
6699     # all of the supported platforms: 8192 (on NT/2K/XP).
6700     lt_cv_sys_max_cmd_len=8192;
6701     ;;
6702
6703   amigaos*)
6704     # On AmigaOS with pdksh, this test takes hours, literally.
6705     # So we just punt and use a minimum line length of 8192.
6706     lt_cv_sys_max_cmd_len=8192;
6707     ;;
6708
6709   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6710     # This has been around since 386BSD, at least.  Likely further.
6711     if test -x /sbin/sysctl; then
6712       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6713     elif test -x /usr/sbin/sysctl; then
6714       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6715     else
6716       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6717     fi
6718     # And add a safety zone
6719     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6720     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6721     ;;
6722   osf*)
6723     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6724     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6725     # nice to cause kernel panics so lets avoid the loop below.
6726     # First set a reasonable default.
6727     lt_cv_sys_max_cmd_len=16384
6728     #
6729     if test -x /sbin/sysconfig; then
6730       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6731         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6732       esac
6733     fi
6734     ;;
6735   *)
6736     # If test is not a shell built-in, we'll probably end up computing a
6737     # maximum length that is only half of the actual maximum length, but
6738     # we can't tell.
6739     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6740     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6741                = "XX$teststring") >/dev/null 2>&1 &&
6742             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6743             lt_cv_sys_max_cmd_len=$new_result &&
6744             test $i != 17 # 1/2 MB should be enough
6745     do
6746       i=`expr $i + 1`
6747       teststring=$teststring$teststring
6748     done
6749     teststring=
6750     # Add a significant safety factor because C++ compilers can tack on massive
6751     # amounts of additional arguments before passing them to the linker.
6752     # It appears as though 1/2 is a usable value.
6753     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6754     ;;
6755   esac
6756
6757 fi
6758
6759 if test -n $lt_cv_sys_max_cmd_len ; then
6760   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6761 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6762 else
6763   echo "$as_me:$LINENO: result: none" >&5
6764 echo "${ECHO_T}none" >&6
6765 fi
6766
6767
6768
6769
6770 # Check for command to grab the raw symbol name followed by C symbol from nm.
6771 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6772 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6773 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776
6777 # These are sane defaults that work on at least a few old systems.
6778 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6779
6780 # Character class describing NM global symbol codes.
6781 symcode='[BCDEGRST]'
6782
6783 # Regexp to match symbols that can be accessed directly from C.
6784 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6785
6786 # Transform an extracted symbol line into a proper C declaration
6787 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6788
6789 # Transform an extracted symbol line into symbol name and symbol address
6790 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'"
6791
6792 # Define system-specific variables.
6793 case $host_os in
6794 aix*)
6795   symcode='[BCDT]'
6796   ;;
6797 cygwin* | mingw* | pw32*)
6798   symcode='[ABCDGISTW]'
6799   ;;
6800 hpux*) # Its linker distinguishes data from code symbols
6801   if test "$host_cpu" = ia64; then
6802     symcode='[ABCDEGRST]'
6803   fi
6804   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6805   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'"
6806   ;;
6807 linux*)
6808   if test "$host_cpu" = ia64; then
6809     symcode='[ABCDGIRSTW]'
6810     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6811     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'"
6812   fi
6813   ;;
6814 irix* | nonstopux*)
6815   symcode='[BCDEGRST]'
6816   ;;
6817 osf*)
6818   symcode='[BCDEGQRST]'
6819   ;;
6820 solaris* | sysv5*)
6821   symcode='[BDRT]'
6822   ;;
6823 sysv4)
6824   symcode='[DFNSTU]'
6825   ;;
6826 esac
6827
6828 # Handle CRLF in mingw tool chain
6829 opt_cr=
6830 case $build_os in
6831 mingw*)
6832   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6833   ;;
6834 esac
6835
6836 # If we're using GNU nm, then use its standard symbol codes.
6837 case `$NM -V 2>&1` in
6838 *GNU* | *'with BFD'*)
6839   symcode='[ABCDGIRSTW]' ;;
6840 esac
6841
6842 # Try without a prefix undercore, then with it.
6843 for ac_symprfx in "" "_"; do
6844
6845   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6846   symxfrm="\\1 $ac_symprfx\\2 \\2"
6847
6848   # Write the raw and C identifiers.
6849   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6850
6851   # Check to see that the pipe works correctly.
6852   pipe_works=no
6853
6854   rm -f conftest*
6855   cat > conftest.$ac_ext <<EOF
6856 #ifdef __cplusplus
6857 extern "C" {
6858 #endif
6859 char nm_test_var;
6860 void nm_test_func(){}
6861 #ifdef __cplusplus
6862 }
6863 #endif
6864 int main(){nm_test_var='a';nm_test_func();return(0);}
6865 EOF
6866
6867   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868   (eval $ac_compile) 2>&5
6869   ac_status=$?
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); }; then
6872     # Now try to grab the symbols.
6873     nlist=conftest.nm
6874     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6875   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6876   ac_status=$?
6877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878   (exit $ac_status); } && test -s "$nlist"; then
6879       # Try sorting and uniquifying the output.
6880       if sort "$nlist" | uniq > "$nlist"T; then
6881         mv -f "$nlist"T "$nlist"
6882       else
6883         rm -f "$nlist"T
6884       fi
6885
6886       # Make sure that we snagged all the symbols we need.
6887       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6888         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6889           cat <<EOF > conftest.$ac_ext
6890 #ifdef __cplusplus
6891 extern "C" {
6892 #endif
6893
6894 EOF
6895           # Now generate the symbol file.
6896           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6897
6898           cat <<EOF >> conftest.$ac_ext
6899 #if defined (__STDC__) && __STDC__
6900 # define lt_ptr_t void *
6901 #else
6902 # define lt_ptr_t char *
6903 # define const
6904 #endif
6905
6906 /* The mapping between symbol names and symbols. */
6907 const struct {
6908   const char *name;
6909   lt_ptr_t address;
6910 }
6911 lt_preloaded_symbols[] =
6912 {
6913 EOF
6914           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6915           cat <<\EOF >> conftest.$ac_ext
6916   {0, (lt_ptr_t) 0}
6917 };
6918
6919 #ifdef __cplusplus
6920 }
6921 #endif
6922 EOF
6923           # Now try linking the two files.
6924           mv conftest.$ac_objext conftstm.$ac_objext
6925           lt_save_LIBS="$LIBS"
6926           lt_save_CFLAGS="$CFLAGS"
6927           LIBS="conftstm.$ac_objext"
6928           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6929           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6930   (eval $ac_link) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6934             pipe_works=yes
6935           fi
6936           LIBS="$lt_save_LIBS"
6937           CFLAGS="$lt_save_CFLAGS"
6938         else
6939           echo "cannot find nm_test_func in $nlist" >&5
6940         fi
6941       else
6942         echo "cannot find nm_test_var in $nlist" >&5
6943       fi
6944     else
6945       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6946     fi
6947   else
6948     echo "$progname: failed program was:" >&5
6949     cat conftest.$ac_ext >&5
6950   fi
6951   rm -f conftest* conftst*
6952
6953   # Do not use the global_symbol_pipe unless it works.
6954   if test "$pipe_works" = yes; then
6955     break
6956   else
6957     lt_cv_sys_global_symbol_pipe=
6958   fi
6959 done
6960
6961 fi
6962
6963 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6964   lt_cv_sys_global_symbol_to_cdecl=
6965 fi
6966 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6967   echo "$as_me:$LINENO: result: failed" >&5
6968 echo "${ECHO_T}failed" >&6
6969 else
6970   echo "$as_me:$LINENO: result: ok" >&5
6971 echo "${ECHO_T}ok" >&6
6972 fi
6973
6974 echo "$as_me:$LINENO: checking for objdir" >&5
6975 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6976 if test "${lt_cv_objdir+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   rm -f .libs 2>/dev/null
6980 mkdir .libs 2>/dev/null
6981 if test -d .libs; then
6982   lt_cv_objdir=.libs
6983 else
6984   # MS-DOS does not allow filenames that begin with a dot.
6985   lt_cv_objdir=_libs
6986 fi
6987 rmdir .libs 2>/dev/null
6988 fi
6989 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6990 echo "${ECHO_T}$lt_cv_objdir" >&6
6991 objdir=$lt_cv_objdir
6992
6993
6994
6995
6996
6997 case $host_os in
6998 aix3*)
6999   # AIX sometimes has problems with the GCC collect2 program.  For some
7000   # reason, if we set the COLLECT_NAMES environment variable, the problems
7001   # vanish in a puff of smoke.
7002   if test "X${COLLECT_NAMES+set}" != Xset; then
7003     COLLECT_NAMES=
7004     export COLLECT_NAMES
7005   fi
7006   ;;
7007 esac
7008
7009 # Sed substitution that helps us do robust quoting.  It backslashifies
7010 # metacharacters that are still active within double-quoted strings.
7011 Xsed='sed -e 1s/^X//'
7012 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7013
7014 # Same as above, but do not quote variable references.
7015 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7016
7017 # Sed substitution to delay expansion of an escaped shell variable in a
7018 # double_quote_subst'ed string.
7019 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7020
7021 # Sed substitution to avoid accidental globbing in evaled expressions
7022 no_glob_subst='s/\*/\\\*/g'
7023
7024 # Constants:
7025 rm="rm -f"
7026
7027 # Global variables:
7028 default_ofile=libtool
7029 can_build_shared=yes
7030
7031 # All known linkers require a `.a' archive for static linking (except MSVC,
7032 # which needs '.lib').
7033 libext=a
7034 ltmain="$ac_aux_dir/ltmain.sh"
7035 ofile="$default_ofile"
7036 with_gnu_ld="$lt_cv_prog_gnu_ld"
7037
7038 if test -n "$ac_tool_prefix"; then
7039   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7040 set dummy ${ac_tool_prefix}ar; ac_word=$2
7041 echo "$as_me:$LINENO: checking for $ac_word" >&5
7042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7043 if test "${ac_cv_prog_AR+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   if test -n "$AR"; then
7047   ac_cv_prog_AR="$AR" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052   IFS=$as_save_IFS
7053   test -z "$as_dir" && as_dir=.
7054   for ac_exec_ext in '' $ac_executable_extensions; do
7055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056     ac_cv_prog_AR="${ac_tool_prefix}ar"
7057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058     break 2
7059   fi
7060 done
7061 done
7062
7063 fi
7064 fi
7065 AR=$ac_cv_prog_AR
7066 if test -n "$AR"; then
7067   echo "$as_me:$LINENO: result: $AR" >&5
7068 echo "${ECHO_T}$AR" >&6
7069 else
7070   echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7072 fi
7073
7074 fi
7075 if test -z "$ac_cv_prog_AR"; then
7076   ac_ct_AR=$AR
7077   # Extract the first word of "ar", so it can be a program name with args.
7078 set dummy ar; ac_word=$2
7079 echo "$as_me:$LINENO: checking for $ac_word" >&5
7080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7081 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7082   echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084   if test -n "$ac_ct_AR"; then
7085   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092   for ac_exec_ext in '' $ac_executable_extensions; do
7093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094     ac_cv_prog_ac_ct_AR="ar"
7095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099 done
7100
7101   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7102 fi
7103 fi
7104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7105 if test -n "$ac_ct_AR"; then
7106   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7107 echo "${ECHO_T}$ac_ct_AR" >&6
7108 else
7109   echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6
7111 fi
7112
7113   AR=$ac_ct_AR
7114 else
7115   AR="$ac_cv_prog_AR"
7116 fi
7117
7118 if test -n "$ac_tool_prefix"; then
7119   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7121 echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7123 if test "${ac_cv_prog_RANLIB+set}" = set; then
7124   echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126   if test -n "$RANLIB"; then
7127   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7131 do
7132   IFS=$as_save_IFS
7133   test -z "$as_dir" && as_dir=.
7134   for ac_exec_ext in '' $ac_executable_extensions; do
7135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138     break 2
7139   fi
7140 done
7141 done
7142
7143 fi
7144 fi
7145 RANLIB=$ac_cv_prog_RANLIB
7146 if test -n "$RANLIB"; then
7147   echo "$as_me:$LINENO: result: $RANLIB" >&5
7148 echo "${ECHO_T}$RANLIB" >&6
7149 else
7150   echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152 fi
7153
7154 fi
7155 if test -z "$ac_cv_prog_RANLIB"; then
7156   ac_ct_RANLIB=$RANLIB
7157   # Extract the first word of "ranlib", so it can be a program name with args.
7158 set dummy ranlib; ac_word=$2
7159 echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7162   echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164   if test -n "$ac_ct_RANLIB"; then
7165   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7166 else
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 for as_dir in $PATH
7169 do
7170   IFS=$as_save_IFS
7171   test -z "$as_dir" && as_dir=.
7172   for ac_exec_ext in '' $ac_executable_extensions; do
7173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7174     ac_cv_prog_ac_ct_RANLIB="ranlib"
7175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7176     break 2
7177   fi
7178 done
7179 done
7180
7181   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7182 fi
7183 fi
7184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7185 if test -n "$ac_ct_RANLIB"; then
7186   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7187 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7188 else
7189   echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6
7191 fi
7192
7193   RANLIB=$ac_ct_RANLIB
7194 else
7195   RANLIB="$ac_cv_prog_RANLIB"
7196 fi
7197
7198 if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}strip; ac_word=$2
7201 echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7203 if test "${ac_cv_prog_STRIP+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$STRIP"; then
7207   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7216     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222
7223 fi
7224 fi
7225 STRIP=$ac_cv_prog_STRIP
7226 if test -n "$STRIP"; then
7227   echo "$as_me:$LINENO: result: $STRIP" >&5
7228 echo "${ECHO_T}$STRIP" >&6
7229 else
7230   echo "$as_me:$LINENO: result: no" >&5
7231 echo "${ECHO_T}no" >&6
7232 fi
7233
7234 fi
7235 if test -z "$ac_cv_prog_STRIP"; then
7236   ac_ct_STRIP=$STRIP
7237   # Extract the first word of "strip", so it can be a program name with args.
7238 set dummy strip; ac_word=$2
7239 echo "$as_me:$LINENO: checking for $ac_word" >&5
7240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7241 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   if test -n "$ac_ct_STRIP"; then
7245   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250   IFS=$as_save_IFS
7251   test -z "$as_dir" && as_dir=.
7252   for ac_exec_ext in '' $ac_executable_extensions; do
7253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254     ac_cv_prog_ac_ct_STRIP="strip"
7255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256     break 2
7257   fi
7258 done
7259 done
7260
7261   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7262 fi
7263 fi
7264 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7265 if test -n "$ac_ct_STRIP"; then
7266   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7267 echo "${ECHO_T}$ac_ct_STRIP" >&6
7268 else
7269   echo "$as_me:$LINENO: result: no" >&5
7270 echo "${ECHO_T}no" >&6
7271 fi
7272
7273   STRIP=$ac_ct_STRIP
7274 else
7275   STRIP="$ac_cv_prog_STRIP"
7276 fi
7277
7278
7279 old_CC="$CC"
7280 old_CFLAGS="$CFLAGS"
7281
7282 # Set sane defaults for various variables
7283 test -z "$AR" && AR=ar
7284 test -z "$AR_FLAGS" && AR_FLAGS=cru
7285 test -z "$AS" && AS=as
7286 test -z "$CC" && CC=cc
7287 test -z "$LTCC" && LTCC=$CC
7288 test -z "$DLLTOOL" && DLLTOOL=dlltool
7289 test -z "$LD" && LD=ld
7290 test -z "$LN_S" && LN_S="ln -s"
7291 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7292 test -z "$NM" && NM=nm
7293 test -z "$SED" && SED=sed
7294 test -z "$OBJDUMP" && OBJDUMP=objdump
7295 test -z "$RANLIB" && RANLIB=:
7296 test -z "$STRIP" && STRIP=:
7297 test -z "$ac_objext" && ac_objext=o
7298
7299 # Determine commands to create old-style static archives.
7300 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7301 old_postinstall_cmds='chmod 644 $oldlib'
7302 old_postuninstall_cmds=
7303
7304 if test -n "$RANLIB"; then
7305   case $host_os in
7306   openbsd*)
7307     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7308     ;;
7309   *)
7310     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7311     ;;
7312   esac
7313   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7314 fi
7315
7316 for cc_temp in $compiler""; do
7317   case $cc_temp in
7318     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7319     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7320     \-*) ;;
7321     *) break;;
7322   esac
7323 done
7324 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7325
7326
7327 # Only perform the check for file, if the check method requires it
7328 case $deplibs_check_method in
7329 file_magic*)
7330   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7331     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7332 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7334   echo $ECHO_N "(cached) $ECHO_C" >&6
7335 else
7336   case $MAGIC_CMD in
7337 [\\/*] |  ?:[\\/]*)
7338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7339   ;;
7340 *)
7341   lt_save_MAGIC_CMD="$MAGIC_CMD"
7342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7343   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7344   for ac_dir in $ac_dummy; do
7345     IFS="$lt_save_ifs"
7346     test -z "$ac_dir" && ac_dir=.
7347     if test -f $ac_dir/${ac_tool_prefix}file; then
7348       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7349       if test -n "$file_magic_test_file"; then
7350         case $deplibs_check_method in
7351         "file_magic "*)
7352           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7353           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7354           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7355             $EGREP "$file_magic_regex" > /dev/null; then
7356             :
7357           else
7358             cat <<EOF 1>&2
7359
7360 *** Warning: the command libtool uses to detect shared libraries,
7361 *** $file_magic_cmd, produces output that libtool cannot recognize.
7362 *** The result is that libtool may fail to recognize shared libraries
7363 *** as such.  This will affect the creation of libtool libraries that
7364 *** depend on shared libraries, but programs linked with such libtool
7365 *** libraries will work regardless of this problem.  Nevertheless, you
7366 *** may want to report the problem to your system manager and/or to
7367 *** bug-libtool@gnu.org
7368
7369 EOF
7370           fi ;;
7371         esac
7372       fi
7373       break
7374     fi
7375   done
7376   IFS="$lt_save_ifs"
7377   MAGIC_CMD="$lt_save_MAGIC_CMD"
7378   ;;
7379 esac
7380 fi
7381
7382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7383 if test -n "$MAGIC_CMD"; then
7384   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7385 echo "${ECHO_T}$MAGIC_CMD" >&6
7386 else
7387   echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6
7389 fi
7390
7391 if test -z "$lt_cv_path_MAGIC_CMD"; then
7392   if test -n "$ac_tool_prefix"; then
7393     echo "$as_me:$LINENO: checking for file" >&5
7394 echo $ECHO_N "checking for file... $ECHO_C" >&6
7395 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398   case $MAGIC_CMD in
7399 [\\/*] |  ?:[\\/]*)
7400   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7401   ;;
7402 *)
7403   lt_save_MAGIC_CMD="$MAGIC_CMD"
7404   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7405   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7406   for ac_dir in $ac_dummy; do
7407     IFS="$lt_save_ifs"
7408     test -z "$ac_dir" && ac_dir=.
7409     if test -f $ac_dir/file; then
7410       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7411       if test -n "$file_magic_test_file"; then
7412         case $deplibs_check_method in
7413         "file_magic "*)
7414           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7415           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7416           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7417             $EGREP "$file_magic_regex" > /dev/null; then
7418             :
7419           else
7420             cat <<EOF 1>&2
7421
7422 *** Warning: the command libtool uses to detect shared libraries,
7423 *** $file_magic_cmd, produces output that libtool cannot recognize.
7424 *** The result is that libtool may fail to recognize shared libraries
7425 *** as such.  This will affect the creation of libtool libraries that
7426 *** depend on shared libraries, but programs linked with such libtool
7427 *** libraries will work regardless of this problem.  Nevertheless, you
7428 *** may want to report the problem to your system manager and/or to
7429 *** bug-libtool@gnu.org
7430
7431 EOF
7432           fi ;;
7433         esac
7434       fi
7435       break
7436     fi
7437   done
7438   IFS="$lt_save_ifs"
7439   MAGIC_CMD="$lt_save_MAGIC_CMD"
7440   ;;
7441 esac
7442 fi
7443
7444 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7445 if test -n "$MAGIC_CMD"; then
7446   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7447 echo "${ECHO_T}$MAGIC_CMD" >&6
7448 else
7449   echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451 fi
7452
7453   else
7454     MAGIC_CMD=:
7455   fi
7456 fi
7457
7458   fi
7459   ;;
7460 esac
7461
7462 enable_dlopen=yes
7463 enable_win32_dll=yes
7464
7465 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7466 if test "${enable_libtool_lock+set}" = set; then
7467   enableval="$enable_libtool_lock"
7468
7469 fi;
7470 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7471
7472
7473 # Check whether --with-pic or --without-pic was given.
7474 if test "${with_pic+set}" = set; then
7475   withval="$with_pic"
7476   pic_mode="$withval"
7477 else
7478   pic_mode=default
7479 fi;
7480 test -z "$pic_mode" && pic_mode=default
7481
7482 # Use C for the default configuration in the libtool script
7483 tagname=
7484 lt_save_CC="$CC"
7485 ac_ext=c
7486 ac_cpp='$CPP $CPPFLAGS'
7487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492 # Source file extension for C test sources.
7493 ac_ext=c
7494
7495 # Object file extension for compiled C test sources.
7496 objext=o
7497 objext=$objext
7498
7499 # Code to be used in simple compile tests
7500 lt_simple_compile_test_code="int some_variable = 0;\n"
7501
7502 # Code to be used in simple link tests
7503 lt_simple_link_test_code='int main(){return(0);}\n'
7504
7505
7506 # If no C compiler was specified, use CC.
7507 LTCC=${LTCC-"$CC"}
7508
7509 # Allow CC to be a program name with arguments.
7510 compiler=$CC
7511
7512
7513 # save warnings/boilerplate of simple test code
7514 ac_outfile=conftest.$ac_objext
7515 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7517 _lt_compiler_boilerplate=`cat conftest.err`
7518 $rm conftest*
7519
7520 ac_outfile=conftest.$ac_objext
7521 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7523 _lt_linker_boilerplate=`cat conftest.err`
7524 $rm conftest*
7525
7526
7527 #
7528 # Check for any special shared library compilation flags.
7529 #
7530 lt_prog_cc_shlib=
7531 if test "$GCC" = no; then
7532   case $host_os in
7533   sco3.2v5*)
7534     lt_prog_cc_shlib='-belf'
7535     ;;
7536   esac
7537 fi
7538 if test -n "$lt_prog_cc_shlib"; then
7539   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7540 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7541   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7542   else
7543     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7544 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7545     lt_cv_prog_cc_can_build_shared=no
7546   fi
7547 fi
7548
7549
7550 #
7551 # Check to make sure the static flag actually works.
7552 #
7553 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7554 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7555 if test "${lt_prog_compiler_static_works+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558   lt_prog_compiler_static_works=no
7559    save_LDFLAGS="$LDFLAGS"
7560    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7561    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7562    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7563      # The linker can only warn and ignore the option if not recognized
7564      # So say no if there are warnings
7565      if test -s conftest.err; then
7566        # Append any errors to the config.log.
7567        cat conftest.err 1>&5
7568        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7569        $SED '/^$/d' conftest.err >conftest.er2
7570        if diff conftest.exp conftest.er2 >/dev/null; then
7571          lt_prog_compiler_static_works=yes
7572        fi
7573      else
7574        lt_prog_compiler_static_works=yes
7575      fi
7576    fi
7577    $rm conftest*
7578    LDFLAGS="$save_LDFLAGS"
7579
7580 fi
7581 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7582 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7583
7584 if test x"$lt_prog_compiler_static_works" = xyes; then
7585     :
7586 else
7587     lt_prog_compiler_static=
7588 fi
7589
7590
7591
7592
7593 lt_prog_compiler_no_builtin_flag=
7594
7595 if test "$GCC" = yes; then
7596   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7597
7598
7599 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7600 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7601 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   lt_cv_prog_compiler_rtti_exceptions=no
7605   ac_outfile=conftest.$ac_objext
7606    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7607    lt_compiler_flag="-fno-rtti -fno-exceptions"
7608    # Insert the option either (1) after the last *FLAGS variable, or
7609    # (2) before a word containing "conftest.", or (3) at the end.
7610    # Note that $ac_compile itself does not contain backslashes and begins
7611    # with a dollar sign (not a hyphen), so the echo should work correctly.
7612    # The option is referenced via a variable to avoid confusing sed.
7613    lt_compile=`echo "$ac_compile" | $SED \
7614    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7615    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7616    -e 's:$: $lt_compiler_flag:'`
7617    (eval echo "\"\$as_me:7617: $lt_compile\"" >&5)
7618    (eval "$lt_compile" 2>conftest.err)
7619    ac_status=$?
7620    cat conftest.err >&5
7621    echo "$as_me:7621: \$? = $ac_status" >&5
7622    if (exit $ac_status) && test -s "$ac_outfile"; then
7623      # The compiler can only warn and ignore the option if not recognized
7624      # So say no if there are warnings other than the usual output.
7625      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7626      $SED '/^$/d' conftest.err >conftest.er2
7627      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7628        lt_cv_prog_compiler_rtti_exceptions=yes
7629      fi
7630    fi
7631    $rm conftest*
7632
7633 fi
7634 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7635 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7636
7637 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7638     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7639 else
7640     :
7641 fi
7642
7643 fi
7644
7645 lt_prog_compiler_wl=
7646 lt_prog_compiler_pic=
7647 lt_prog_compiler_static=
7648
7649 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7650 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7651
7652   if test "$GCC" = yes; then
7653     lt_prog_compiler_wl='-Wl,'
7654     lt_prog_compiler_static='-static'
7655
7656     case $host_os in
7657       aix*)
7658       # All AIX code is PIC.
7659       if test "$host_cpu" = ia64; then
7660         # AIX 5 now supports IA64 processor
7661         lt_prog_compiler_static='-Bstatic'
7662       fi
7663       ;;
7664
7665     amigaos*)
7666       # FIXME: we need at least 68020 code to build shared libraries, but
7667       # adding the `-m68020' flag to GCC prevents building anything better,
7668       # like `-m68040'.
7669       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7670       ;;
7671
7672     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7673       # PIC is the default for these OSes.
7674       ;;
7675
7676     mingw* | pw32* | os2*)
7677       # This hack is so that the source file can tell whether it is being
7678       # built for inclusion in a dll (and should export symbols for example).
7679       lt_prog_compiler_pic='-DDLL_EXPORT'
7680       ;;
7681
7682     darwin* | rhapsody*)
7683       # PIC is the default on this platform
7684       # Common symbols not allowed in MH_DYLIB files
7685       lt_prog_compiler_pic='-fno-common'
7686       ;;
7687
7688     msdosdjgpp*)
7689       # Just because we use GCC doesn't mean we suddenly get shared libraries
7690       # on systems that don't support them.
7691       lt_prog_compiler_can_build_shared=no
7692       enable_shared=no
7693       ;;
7694
7695     sysv4*MP*)
7696       if test -d /usr/nec; then
7697         lt_prog_compiler_pic=-Kconform_pic
7698       fi
7699       ;;
7700
7701     hpux*)
7702       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7703       # not for PA HP-UX.
7704       case $host_cpu in
7705       hppa*64*|ia64*)
7706         # +Z the default
7707         ;;
7708       *)
7709         lt_prog_compiler_pic='-fPIC'
7710         ;;
7711       esac
7712       ;;
7713
7714     *)
7715       lt_prog_compiler_pic='-fPIC'
7716       ;;
7717     esac
7718   else
7719     # PORTME Check for flag to pass linker flags through the system compiler.
7720     case $host_os in
7721     aix*)
7722       lt_prog_compiler_wl='-Wl,'
7723       if test "$host_cpu" = ia64; then
7724         # AIX 5 now supports IA64 processor
7725         lt_prog_compiler_static='-Bstatic'
7726       else
7727         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7728       fi
7729       ;;
7730       darwin*)
7731         # PIC is the default on this platform
7732         # Common symbols not allowed in MH_DYLIB files
7733        case $cc_basename in
7734          xlc*)
7735          lt_prog_compiler_pic='-qnocommon'
7736          lt_prog_compiler_wl='-Wl,'
7737          ;;
7738        esac
7739        ;;
7740
7741     mingw* | pw32* | os2*)
7742       # This hack is so that the source file can tell whether it is being
7743       # built for inclusion in a dll (and should export symbols for example).
7744       lt_prog_compiler_pic='-DDLL_EXPORT'
7745       ;;
7746
7747     hpux9* | hpux10* | hpux11*)
7748       lt_prog_compiler_wl='-Wl,'
7749       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7750       # not for PA HP-UX.
7751       case $host_cpu in
7752       hppa*64*|ia64*)
7753         # +Z the default
7754         ;;
7755       *)
7756         lt_prog_compiler_pic='+Z'
7757         ;;
7758       esac
7759       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7760       lt_prog_compiler_static='${wl}-a ${wl}archive'
7761       ;;
7762
7763     irix5* | irix6* | nonstopux*)
7764       lt_prog_compiler_wl='-Wl,'
7765       # PIC (with -KPIC) is the default.
7766       lt_prog_compiler_static='-non_shared'
7767       ;;
7768
7769     newsos6)
7770       lt_prog_compiler_pic='-KPIC'
7771       lt_prog_compiler_static='-Bstatic'
7772       ;;
7773
7774     linux*)
7775       case $cc_basename in
7776       icc* | ecc*)
7777         lt_prog_compiler_wl='-Wl,'
7778         lt_prog_compiler_pic='-KPIC'
7779         lt_prog_compiler_static='-static'
7780         ;;
7781       pgcc* | pgf77* | pgf90* | pgf95*)
7782         # Portland Group compilers (*not* the Pentium gcc compiler,
7783         # which looks to be a dead project)
7784         lt_prog_compiler_wl='-Wl,'
7785         lt_prog_compiler_pic='-fpic'
7786         lt_prog_compiler_static='-Bstatic'
7787         ;;
7788       ccc*)
7789         lt_prog_compiler_wl='-Wl,'
7790         # All Alpha code is PIC.
7791         lt_prog_compiler_static='-non_shared'
7792         ;;
7793       esac
7794       ;;
7795
7796     osf3* | osf4* | osf5*)
7797       lt_prog_compiler_wl='-Wl,'
7798       # All OSF/1 code is PIC.
7799       lt_prog_compiler_static='-non_shared'
7800       ;;
7801
7802     sco3.2v5*)
7803       lt_prog_compiler_pic='-Kpic'
7804       lt_prog_compiler_static='-dn'
7805       ;;
7806
7807     solaris*)
7808       lt_prog_compiler_pic='-KPIC'
7809       lt_prog_compiler_static='-Bstatic'
7810       case $cc_basename in
7811       f77* | f90* | f95*)
7812         lt_prog_compiler_wl='-Qoption ld ';;
7813       *)
7814         lt_prog_compiler_wl='-Wl,';;
7815       esac
7816       ;;
7817
7818     sunos4*)
7819       lt_prog_compiler_wl='-Qoption ld '
7820       lt_prog_compiler_pic='-PIC'
7821       lt_prog_compiler_static='-Bstatic'
7822       ;;
7823
7824     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7825       lt_prog_compiler_wl='-Wl,'
7826       lt_prog_compiler_pic='-KPIC'
7827       lt_prog_compiler_static='-Bstatic'
7828       ;;
7829
7830     sysv4*MP*)
7831       if test -d /usr/nec ;then
7832         lt_prog_compiler_pic='-Kconform_pic'
7833         lt_prog_compiler_static='-Bstatic'
7834       fi
7835       ;;
7836
7837     unicos*)
7838       lt_prog_compiler_wl='-Wl,'
7839       lt_prog_compiler_can_build_shared=no
7840       ;;
7841
7842     uts4*)
7843       lt_prog_compiler_pic='-pic'
7844       lt_prog_compiler_static='-Bstatic'
7845       ;;
7846
7847     *)
7848       lt_prog_compiler_can_build_shared=no
7849       ;;
7850     esac
7851   fi
7852
7853 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7854 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7855
7856 #
7857 # Check to make sure the PIC flag actually works.
7858 #
7859 if test -n "$lt_prog_compiler_pic"; then
7860
7861 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7862 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7863 if test "${lt_prog_compiler_pic_works+set}" = set; then
7864   echo $ECHO_N "(cached) $ECHO_C" >&6
7865 else
7866   lt_prog_compiler_pic_works=no
7867   ac_outfile=conftest.$ac_objext
7868    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7869    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7870    # Insert the option either (1) after the last *FLAGS variable, or
7871    # (2) before a word containing "conftest.", or (3) at the end.
7872    # Note that $ac_compile itself does not contain backslashes and begins
7873    # with a dollar sign (not a hyphen), so the echo should work correctly.
7874    # The option is referenced via a variable to avoid confusing sed.
7875    lt_compile=`echo "$ac_compile" | $SED \
7876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7878    -e 's:$: $lt_compiler_flag:'`
7879    (eval echo "\"\$as_me:7879: $lt_compile\"" >&5)
7880    (eval "$lt_compile" 2>conftest.err)
7881    ac_status=$?
7882    cat conftest.err >&5
7883    echo "$as_me:7883: \$? = $ac_status" >&5
7884    if (exit $ac_status) && test -s "$ac_outfile"; then
7885      # The compiler can only warn and ignore the option if not recognized
7886      # So say no if there are warnings other than the usual output.
7887      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7888      $SED '/^$/d' conftest.err >conftest.er2
7889      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7890        lt_prog_compiler_pic_works=yes
7891      fi
7892    fi
7893    $rm conftest*
7894
7895 fi
7896 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7897 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7898
7899 if test x"$lt_prog_compiler_pic_works" = xyes; then
7900     case $lt_prog_compiler_pic in
7901      "" | " "*) ;;
7902      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7903      esac
7904 else
7905     lt_prog_compiler_pic=
7906      lt_prog_compiler_can_build_shared=no
7907 fi
7908
7909 fi
7910 case $host_os in
7911   # For platforms which do not support PIC, -DPIC is meaningless:
7912   *djgpp*)
7913     lt_prog_compiler_pic=
7914     ;;
7915   *)
7916     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7917     ;;
7918 esac
7919
7920 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7921 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7922 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7923   echo $ECHO_N "(cached) $ECHO_C" >&6
7924 else
7925   lt_cv_prog_compiler_c_o=no
7926    $rm -r conftest 2>/dev/null
7927    mkdir conftest
7928    cd conftest
7929    mkdir out
7930    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7931
7932    lt_compiler_flag="-o out/conftest2.$ac_objext"
7933    # Insert the option either (1) after the last *FLAGS variable, or
7934    # (2) before a word containing "conftest.", or (3) at the end.
7935    # Note that $ac_compile itself does not contain backslashes and begins
7936    # with a dollar sign (not a hyphen), so the echo should work correctly.
7937    lt_compile=`echo "$ac_compile" | $SED \
7938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7940    -e 's:$: $lt_compiler_flag:'`
7941    (eval echo "\"\$as_me:7941: $lt_compile\"" >&5)
7942    (eval "$lt_compile" 2>out/conftest.err)
7943    ac_status=$?
7944    cat out/conftest.err >&5
7945    echo "$as_me:7945: \$? = $ac_status" >&5
7946    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7947    then
7948      # The compiler can only warn and ignore the option if not recognized
7949      # So say no if there are warnings
7950      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7951      $SED '/^$/d' out/conftest.err >out/conftest.er2
7952      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7953        lt_cv_prog_compiler_c_o=yes
7954      fi
7955    fi
7956    chmod u+w . 2>&5
7957    $rm conftest*
7958    # SGI C++ compiler will create directory out/ii_files/ for
7959    # template instantiation
7960    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7961    $rm out/* && rmdir out
7962    cd ..
7963    rmdir conftest
7964    $rm conftest*
7965
7966 fi
7967 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7968 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7969
7970
7971 hard_links="nottested"
7972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7973   # do not overwrite the value of need_locks provided by the user
7974   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7976   hard_links=yes
7977   $rm conftest*
7978   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7979   touch conftest.a
7980   ln conftest.a conftest.b 2>&5 || hard_links=no
7981   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7982   echo "$as_me:$LINENO: result: $hard_links" >&5
7983 echo "${ECHO_T}$hard_links" >&6
7984   if test "$hard_links" = no; then
7985     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7987     need_locks=warn
7988   fi
7989 else
7990   need_locks=no
7991 fi
7992
7993 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7994 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7995
7996   runpath_var=
7997   allow_undefined_flag=
7998   enable_shared_with_static_runtimes=no
7999   archive_cmds=
8000   archive_expsym_cmds=
8001   old_archive_From_new_cmds=
8002   old_archive_from_expsyms_cmds=
8003   export_dynamic_flag_spec=
8004   whole_archive_flag_spec=
8005   thread_safe_flag_spec=
8006   hardcode_libdir_flag_spec=
8007   hardcode_libdir_flag_spec_ld=
8008   hardcode_libdir_separator=
8009   hardcode_direct=no
8010   hardcode_minus_L=no
8011   hardcode_shlibpath_var=unsupported
8012   link_all_deplibs=unknown
8013   hardcode_automatic=no
8014   module_cmds=
8015   module_expsym_cmds=
8016   always_export_symbols=no
8017   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8018   # include_expsyms should be a list of space-separated symbols to be *always*
8019   # included in the symbol list
8020   include_expsyms=
8021   # exclude_expsyms can be an extended regexp of symbols to exclude
8022   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8023   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8024   # as well as any symbol that contains `d'.
8025   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8026   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8027   # platforms (ab)use it in PIC code, but their linkers get confused if
8028   # the symbol is explicitly referenced.  Since portable code cannot
8029   # rely on this symbol name, it's probably fine to never include it in
8030   # preloaded symbol tables.
8031   extract_expsyms_cmds=
8032   # Just being paranoid about ensuring that cc_basename is set.
8033   for cc_temp in $compiler""; do
8034   case $cc_temp in
8035     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8036     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8037     \-*) ;;
8038     *) break;;
8039   esac
8040 done
8041 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8042
8043   case $host_os in
8044   cygwin* | mingw* | pw32*)
8045     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8046     # When not using gcc, we currently assume that we are using
8047     # Microsoft Visual C++.
8048     if test "$GCC" != yes; then
8049       with_gnu_ld=no
8050     fi
8051     ;;
8052   openbsd*)
8053     with_gnu_ld=no
8054     ;;
8055   esac
8056
8057   ld_shlibs=yes
8058   if test "$with_gnu_ld" = yes; then
8059     # If archive_cmds runs LD, not CC, wlarc should be empty
8060     wlarc='${wl}'
8061
8062     # Set some defaults for GNU ld with shared library support. These
8063     # are reset later if shared libraries are not supported. Putting them
8064     # here allows them to be overridden if necessary.
8065     runpath_var=LD_RUN_PATH
8066     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8067     export_dynamic_flag_spec='${wl}--export-dynamic'
8068     # ancient GNU ld didn't support --whole-archive et. al.
8069     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8070         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8071       else
8072         whole_archive_flag_spec=
8073     fi
8074     supports_anon_versioning=no
8075     case `$LD -v 2>/dev/null` in
8076       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8077       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8078       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8079       *\ 2.11.*) ;; # other 2.11 versions
8080       *) supports_anon_versioning=yes ;;
8081     esac
8082
8083     # See if GNU ld supports shared libraries.
8084     case $host_os in
8085     aix3* | aix4* | aix5*)
8086       # On AIX/PPC, the GNU linker is very broken
8087       if test "$host_cpu" != ia64; then
8088         ld_shlibs=no
8089         cat <<EOF 1>&2
8090
8091 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8092 *** to be unable to reliably create shared libraries on AIX.
8093 *** Therefore, libtool is disabling shared libraries support.  If you
8094 *** really care for shared libraries, you may want to modify your PATH
8095 *** so that a non-GNU linker is found, and then restart.
8096
8097 EOF
8098       fi
8099       ;;
8100
8101     amigaos*)
8102       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)'
8103       hardcode_libdir_flag_spec='-L$libdir'
8104       hardcode_minus_L=yes
8105
8106       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8107       # that the semantics of dynamic libraries on AmigaOS, at least up
8108       # to version 4, is to share data among multiple programs linked
8109       # with the same dynamic library.  Since this doesn't match the
8110       # behavior of shared libraries on other platforms, we can't use
8111       # them.
8112       ld_shlibs=no
8113       ;;
8114
8115     beos*)
8116       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8117         allow_undefined_flag=unsupported
8118         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8119         # support --undefined.  This deserves some investigation.  FIXME
8120         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121       else
8122         ld_shlibs=no
8123       fi
8124       ;;
8125
8126     cygwin* | mingw* | pw32*)
8127       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8128       # as there is no search path for DLLs.
8129       hardcode_libdir_flag_spec='-L$libdir'
8130       allow_undefined_flag=unsupported
8131       always_export_symbols=no
8132       enable_shared_with_static_runtimes=yes
8133       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8134
8135       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8136         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8137         # If the export-symbols file already is a .def file (1st line
8138         # is EXPORTS), use it as is; otherwise, prepend...
8139         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8140           cp $export_symbols $output_objdir/$soname.def;
8141         else
8142           echo EXPORTS > $output_objdir/$soname.def;
8143           cat $export_symbols >> $output_objdir/$soname.def;
8144         fi~
8145         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8146       else
8147         ld_shlibs=no
8148       fi
8149       ;;
8150
8151     linux*)
8152       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8153         tmp_addflag=
8154         case $cc_basename,$host_cpu in
8155         pgcc*)                          # Portland Group C compiler
8156           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'
8157           tmp_addflag=' $pic_flag'
8158           ;;
8159         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8160           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'
8161           tmp_addflag=' $pic_flag -Mnomain' ;;
8162         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8163           tmp_addflag=' -i_dynamic' ;;
8164         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8165           tmp_addflag=' -i_dynamic -nofor_main' ;;
8166         ifc* | ifort*)                  # Intel Fortran compiler
8167           tmp_addflag=' -nofor_main' ;;
8168         esac
8169         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8170
8171         if test $supports_anon_versioning = yes; then
8172           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8173   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8174   $echo "local: *; };" >> $output_objdir/$libname.ver~
8175           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8176         fi
8177       else
8178         ld_shlibs=no
8179       fi
8180       ;;
8181
8182     netbsd*)
8183       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8184         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8185         wlarc=
8186       else
8187         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8188         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8189       fi
8190       ;;
8191
8192     solaris* | sysv5*)
8193       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8194         ld_shlibs=no
8195         cat <<EOF 1>&2
8196
8197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8198 *** create shared libraries on Solaris systems.  Therefore, libtool
8199 *** is disabling shared libraries support.  We urge you to upgrade GNU
8200 *** binutils to release 2.9.1 or newer.  Another option is to modify
8201 *** your PATH or compiler configuration so that the native linker is
8202 *** used, and then restart.
8203
8204 EOF
8205       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8206         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8208       else
8209         ld_shlibs=no
8210       fi
8211       ;;
8212
8213     sunos4*)
8214       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215       wlarc=
8216       hardcode_direct=yes
8217       hardcode_shlibpath_var=no
8218       ;;
8219
8220     *)
8221       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8222         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8224       else
8225         ld_shlibs=no
8226       fi
8227       ;;
8228     esac
8229
8230     if test "$ld_shlibs" = no; then
8231       runpath_var=
8232       hardcode_libdir_flag_spec=
8233       export_dynamic_flag_spec=
8234       whole_archive_flag_spec=
8235     fi
8236   else
8237     # PORTME fill in a description of your system's linker (not GNU ld)
8238     case $host_os in
8239     aix3*)
8240       allow_undefined_flag=unsupported
8241       always_export_symbols=yes
8242       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'
8243       # Note: this linker hardcodes the directories in LIBPATH if there
8244       # are no directories specified by -L.
8245       hardcode_minus_L=yes
8246       if test "$GCC" = yes && test -z "$link_static_flag"; then
8247         # Neither direct hardcoding nor static linking is supported with a
8248         # broken collect2.
8249         hardcode_direct=unsupported
8250       fi
8251       ;;
8252
8253     aix4* | aix5*)
8254       if test "$host_cpu" = ia64; then
8255         # On IA64, the linker does run time linking by default, so we don't
8256         # have to do anything special.
8257         aix_use_runtimelinking=no
8258         exp_sym_flag='-Bexport'
8259         no_entry_flag=""
8260       else
8261         # If we're using GNU nm, then we don't want the "-C" option.
8262         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8263         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8264           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'
8265         else
8266           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'
8267         fi
8268         aix_use_runtimelinking=no
8269
8270         # Test if we are trying to use run time linking or normal
8271         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8272         # need to do runtime linking.
8273         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8274           for ld_flag in $LDFLAGS; do
8275           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8276             aix_use_runtimelinking=yes
8277             break
8278           fi
8279           done
8280         esac
8281
8282         exp_sym_flag='-bexport'
8283         no_entry_flag='-bnoentry'
8284       fi
8285
8286       # When large executables or shared objects are built, AIX ld can
8287       # have problems creating the table of contents.  If linking a library
8288       # or program results in "error TOC overflow" add -mminimal-toc to
8289       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8290       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8291
8292       archive_cmds=''
8293       hardcode_direct=yes
8294       hardcode_libdir_separator=':'
8295       link_all_deplibs=yes
8296
8297       if test "$GCC" = yes; then
8298         case $host_os in aix4.[012]|aix4.[012].*)
8299         # We only want to do this on AIX 4.2 and lower, the check
8300         # below for broken collect2 doesn't work under 4.3+
8301           collect2name=`${CC} -print-prog-name=collect2`
8302           if test -f "$collect2name" && \
8303            strings "$collect2name" | grep resolve_lib_name >/dev/null
8304           then
8305           # We have reworked collect2
8306           hardcode_direct=yes
8307           else
8308           # We have old collect2
8309           hardcode_direct=unsupported
8310           # It fails to find uninstalled libraries when the uninstalled
8311           # path is not listed in the libpath.  Setting hardcode_minus_L
8312           # to unsupported forces relinking
8313           hardcode_minus_L=yes
8314           hardcode_libdir_flag_spec='-L$libdir'
8315           hardcode_libdir_separator=
8316           fi
8317         esac
8318         shared_flag='-shared'
8319         if test "$aix_use_runtimelinking" = yes; then
8320           shared_flag="$shared_flag "'${wl}-G'
8321         fi
8322       else
8323         # not using gcc
8324         if test "$host_cpu" = ia64; then
8325         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8326         # chokes on -Wl,-G. The following line is correct:
8327           shared_flag='-G'
8328         else
8329         if test "$aix_use_runtimelinking" = yes; then
8330             shared_flag='${wl}-G'
8331           else
8332             shared_flag='${wl}-bM:SRE'
8333         fi
8334         fi
8335       fi
8336
8337       # It seems that -bexpall does not export symbols beginning with
8338       # underscore (_), so it is better to generate a list of symbols to export.
8339       always_export_symbols=yes
8340       if test "$aix_use_runtimelinking" = yes; then
8341         # Warning - without using the other runtime loading flags (-brtl),
8342         # -berok will link without error, but may produce a broken library.
8343         allow_undefined_flag='-berok'
8344        # Determine the default libpath from the value encoded in an empty executable.
8345        cat >conftest.$ac_ext <<_ACEOF
8346 /* confdefs.h.  */
8347 _ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h.  */
8351
8352 int
8353 main ()
8354 {
8355
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>conftest.er1
8363   ac_status=$?
8364   grep -v '^ *+' conftest.er1 >conftest.err
8365   rm -f conftest.er1
8366   cat conftest.err >&5
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); } &&
8369          { ac_try='test -z "$ac_c_werror_flag"
8370                          || test ! -s conftest.err'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; } &&
8376          { ac_try='test -s conftest$ac_exeext'
8377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378   (eval $ac_try) 2>&5
8379   ac_status=$?
8380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381   (exit $ac_status); }; }; then
8382
8383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8384 }'`
8385 # Check for a 64-bit object if we didn't find anything.
8386 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; }
8387 }'`; fi
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 fi
8393 rm -f conftest.err conftest.$ac_objext \
8394       conftest$ac_exeext conftest.$ac_ext
8395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8396
8397        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8398         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8399        else
8400         if test "$host_cpu" = ia64; then
8401           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8402           allow_undefined_flag="-z nodefs"
8403           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8404         else
8405          # Determine the default libpath from the value encoded in an empty executable.
8406          cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412
8413 int
8414 main ()
8415 {
8416
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 rm -f conftest.$ac_objext conftest$ac_exeext
8422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8423   (eval $ac_link) 2>conftest.er1
8424   ac_status=$?
8425   grep -v '^ *+' conftest.er1 >conftest.err
8426   rm -f conftest.er1
8427   cat conftest.err >&5
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -z "$ac_c_werror_flag"
8431                          || test ! -s conftest.err'
8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433   (eval $ac_try) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); }; } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443
8444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8445 }'`
8446 # Check for a 64-bit object if we didn't find anything.
8447 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; }
8448 }'`; fi
8449 else
8450   echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 fi
8454 rm -f conftest.err conftest.$ac_objext \
8455       conftest$ac_exeext conftest.$ac_ext
8456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8457
8458          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8459           # Warning - without using the other run time loading flags,
8460           # -berok will link without error, but may produce a broken library.
8461           no_undefined_flag=' ${wl}-bernotok'
8462           allow_undefined_flag=' ${wl}-berok'
8463           # -bexpall does not export symbols beginning with underscore (_)
8464           always_export_symbols=yes
8465           # Exported symbols can be pulled into shared objects from archives
8466           whole_archive_flag_spec=' '
8467           archive_cmds_need_lc=yes
8468           # This is similar to how AIX traditionally builds its shared libraries.
8469           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8470         fi
8471       fi
8472       ;;
8473
8474     amigaos*)
8475       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)'
8476       hardcode_libdir_flag_spec='-L$libdir'
8477       hardcode_minus_L=yes
8478       # see comment about different semantics on the GNU ld section
8479       ld_shlibs=no
8480       ;;
8481
8482     bsdi[45]*)
8483       export_dynamic_flag_spec=-rdynamic
8484       ;;
8485
8486     cygwin* | mingw* | pw32*)
8487       # When not using gcc, we currently assume that we are using
8488       # Microsoft Visual C++.
8489       # hardcode_libdir_flag_spec is actually meaningless, as there is
8490       # no search path for DLLs.
8491       hardcode_libdir_flag_spec=' '
8492       allow_undefined_flag=unsupported
8493       # Tell ltmain to make .lib files, not .a files.
8494       libext=lib
8495       # Tell ltmain to make .dll files, not .so files.
8496       shrext_cmds=".dll"
8497       # FIXME: Setting linknames here is a bad hack.
8498       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8499       # The linker will automatically build a .lib file if we build a DLL.
8500       old_archive_From_new_cmds='true'
8501       # FIXME: Should let the user specify the lib program.
8502       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8503       fix_srcfile_path='`cygpath -w "$srcfile"`'
8504       enable_shared_with_static_runtimes=yes
8505       ;;
8506
8507     darwin* | rhapsody*)
8508       case $host_os in
8509         rhapsody* | darwin1.[012])
8510          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8511          ;;
8512        *) # Darwin 1.3 on
8513          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8514            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8515          else
8516            case ${MACOSX_DEPLOYMENT_TARGET} in
8517              10.[012])
8518                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8519                ;;
8520              10.*)
8521                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8522                ;;
8523            esac
8524          fi
8525          ;;
8526       esac
8527       archive_cmds_need_lc=no
8528       hardcode_direct=no
8529       hardcode_automatic=yes
8530       hardcode_shlibpath_var=unsupported
8531       whole_archive_flag_spec=''
8532       link_all_deplibs=yes
8533     if test "$GCC" = yes ; then
8534         output_verbose_link_cmd='echo'
8535         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8536       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8537       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8538       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}'
8539       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}'
8540     else
8541       case $cc_basename in
8542         xlc*)
8543          output_verbose_link_cmd='echo'
8544          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8545          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8546           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8547          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}'
8548           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}'
8549           ;;
8550        *)
8551          ld_shlibs=no
8552           ;;
8553       esac
8554     fi
8555       ;;
8556
8557     dgux*)
8558       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8559       hardcode_libdir_flag_spec='-L$libdir'
8560       hardcode_shlibpath_var=no
8561       ;;
8562
8563     freebsd1*)
8564       ld_shlibs=no
8565       ;;
8566
8567     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8568     # support.  Future versions do this automatically, but an explicit c++rt0.o
8569     # does not break anything, and helps significantly (at the cost of a little
8570     # extra space).
8571     freebsd2.2*)
8572       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8573       hardcode_libdir_flag_spec='-R$libdir'
8574       hardcode_direct=yes
8575       hardcode_shlibpath_var=no
8576       ;;
8577
8578     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8579     freebsd2*)
8580       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8581       hardcode_direct=yes
8582       hardcode_minus_L=yes
8583       hardcode_shlibpath_var=no
8584       ;;
8585
8586     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8587     freebsd* | kfreebsd*-gnu | dragonfly*)
8588       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8589       hardcode_libdir_flag_spec='-R$libdir'
8590       hardcode_direct=yes
8591       hardcode_shlibpath_var=no
8592       ;;
8593
8594     hpux9*)
8595       if test "$GCC" = yes; then
8596         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'
8597       else
8598         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'
8599       fi
8600       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8601       hardcode_libdir_separator=:
8602       hardcode_direct=yes
8603
8604       # hardcode_minus_L: Not really in the search PATH,
8605       # but as the default location of the library.
8606       hardcode_minus_L=yes
8607       export_dynamic_flag_spec='${wl}-E'
8608       ;;
8609
8610     hpux10* | hpux11*)
8611       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8612         case $host_cpu in
8613         hppa*64*|ia64*)
8614           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8615           ;;
8616         *)
8617           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8618           ;;
8619         esac
8620       else
8621         case $host_cpu in
8622         hppa*64*|ia64*)
8623           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8624           ;;
8625         *)
8626           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8627           ;;
8628         esac
8629       fi
8630       if test "$with_gnu_ld" = no; then
8631         case $host_cpu in
8632         hppa*64*)
8633           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8634           hardcode_libdir_flag_spec_ld='+b $libdir'
8635           hardcode_libdir_separator=:
8636           hardcode_direct=no
8637           hardcode_shlibpath_var=no
8638           ;;
8639         ia64*)
8640           hardcode_libdir_flag_spec='-L$libdir'
8641           hardcode_direct=no
8642           hardcode_shlibpath_var=no
8643
8644           # hardcode_minus_L: Not really in the search PATH,
8645           # but as the default location of the library.
8646           hardcode_minus_L=yes
8647           ;;
8648         *)
8649           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8650           hardcode_libdir_separator=:
8651           hardcode_direct=yes
8652           export_dynamic_flag_spec='${wl}-E'
8653
8654           # hardcode_minus_L: Not really in the search PATH,
8655           # but as the default location of the library.
8656           hardcode_minus_L=yes
8657           ;;
8658         esac
8659       fi
8660       ;;
8661
8662     irix5* | irix6* | nonstopux*)
8663       if test "$GCC" = yes; then
8664         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'
8665       else
8666         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'
8667         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8668       fi
8669       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8670       hardcode_libdir_separator=:
8671       link_all_deplibs=yes
8672       ;;
8673
8674     netbsd*)
8675       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8676         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8677       else
8678         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8679       fi
8680       hardcode_libdir_flag_spec='-R$libdir'
8681       hardcode_direct=yes
8682       hardcode_shlibpath_var=no
8683       ;;
8684
8685     newsos6)
8686       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687       hardcode_direct=yes
8688       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8689       hardcode_libdir_separator=:
8690       hardcode_shlibpath_var=no
8691       ;;
8692
8693     openbsd*)
8694       hardcode_direct=yes
8695       hardcode_shlibpath_var=no
8696       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8697         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8698         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8699         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8700         export_dynamic_flag_spec='${wl}-E'
8701       else
8702        case $host_os in
8703          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8704            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8705            hardcode_libdir_flag_spec='-R$libdir'
8706            ;;
8707          *)
8708            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8709            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8710            ;;
8711        esac
8712       fi
8713       ;;
8714
8715     os2*)
8716       hardcode_libdir_flag_spec='-L$libdir'
8717       hardcode_minus_L=yes
8718       allow_undefined_flag=unsupported
8719       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'
8720       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8721       ;;
8722
8723     osf3*)
8724       if test "$GCC" = yes; then
8725         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8726         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'
8727       else
8728         allow_undefined_flag=' -expect_unresolved \*'
8729         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'
8730       fi
8731       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8732       hardcode_libdir_separator=:
8733       ;;
8734
8735     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8736       if test "$GCC" = yes; then
8737         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8738         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'
8739         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8740       else
8741         allow_undefined_flag=' -expect_unresolved \*'
8742         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'
8743         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8744         $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'
8745
8746         # Both c and cxx compiler support -rpath directly
8747         hardcode_libdir_flag_spec='-rpath $libdir'
8748       fi
8749       hardcode_libdir_separator=:
8750       ;;
8751
8752     sco3.2v5*)
8753       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8754       hardcode_shlibpath_var=no
8755       export_dynamic_flag_spec='${wl}-Bexport'
8756       runpath_var=LD_RUN_PATH
8757       hardcode_runpath_var=yes
8758       ;;
8759
8760     solaris*)
8761       no_undefined_flag=' -z text'
8762       if test "$GCC" = yes; then
8763         wlarc='${wl}'
8764         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8765         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8766           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8767       else
8768         wlarc=''
8769         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8771         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8772       fi
8773       hardcode_libdir_flag_spec='-R$libdir'
8774       hardcode_shlibpath_var=no
8775       case $host_os in
8776       solaris2.[0-5] | solaris2.[0-5].*) ;;
8777       *)
8778         # The compiler driver will combine linker options so we
8779         # cannot just pass the convience library names through
8780         # without $wl, iff we do not link with $LD.
8781         # Luckily, gcc supports the same syntax we need for Sun Studio.
8782         # Supported since Solaris 2.6 (maybe 2.5.1?)
8783         case $wlarc in
8784         '')
8785           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8786         *)
8787           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' ;;
8788         esac ;;
8789       esac
8790       link_all_deplibs=yes
8791       ;;
8792
8793     sunos4*)
8794       if test "x$host_vendor" = xsequent; then
8795         # Use $CC to link under sequent, because it throws in some extra .o
8796         # files that make .init and .fini sections work.
8797         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8798       else
8799         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8800       fi
8801       hardcode_libdir_flag_spec='-L$libdir'
8802       hardcode_direct=yes
8803       hardcode_minus_L=yes
8804       hardcode_shlibpath_var=no
8805       ;;
8806
8807     sysv4)
8808       case $host_vendor in
8809         sni)
8810           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811           hardcode_direct=yes # is this really true???
8812         ;;
8813         siemens)
8814           ## LD is ld it makes a PLAMLIB
8815           ## CC just makes a GrossModule.
8816           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8817           reload_cmds='$CC -r -o $output$reload_objs'
8818           hardcode_direct=no
8819         ;;
8820         motorola)
8821           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8823         ;;
8824       esac
8825       runpath_var='LD_RUN_PATH'
8826       hardcode_shlibpath_var=no
8827       ;;
8828
8829     sysv4.3*)
8830       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8831       hardcode_shlibpath_var=no
8832       export_dynamic_flag_spec='-Bexport'
8833       ;;
8834
8835     sysv4*MP*)
8836       if test -d /usr/nec; then
8837         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8838         hardcode_shlibpath_var=no
8839         runpath_var=LD_RUN_PATH
8840         hardcode_runpath_var=yes
8841         ld_shlibs=yes
8842       fi
8843       ;;
8844
8845     sysv4.2uw2*)
8846       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8847       hardcode_direct=yes
8848       hardcode_minus_L=no
8849       hardcode_shlibpath_var=no
8850       hardcode_runpath_var=yes
8851       runpath_var=LD_RUN_PATH
8852       ;;
8853
8854    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8855       no_undefined_flag='${wl}-z ${wl}text'
8856       if test "$GCC" = yes; then
8857         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8858       else
8859         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860       fi
8861       runpath_var='LD_RUN_PATH'
8862       hardcode_shlibpath_var=no
8863       ;;
8864
8865     sysv5*)
8866       no_undefined_flag=' -z text'
8867       # $CC -shared without GNU ld will not create a library from C++
8868       # object files and a static libstdc++, better avoid it by now
8869       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8871                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8872       hardcode_libdir_flag_spec=
8873       hardcode_shlibpath_var=no
8874       runpath_var='LD_RUN_PATH'
8875       ;;
8876
8877     uts4*)
8878       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8879       hardcode_libdir_flag_spec='-L$libdir'
8880       hardcode_shlibpath_var=no
8881       ;;
8882
8883     *)
8884       ld_shlibs=no
8885       ;;
8886     esac
8887   fi
8888
8889 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8890 echo "${ECHO_T}$ld_shlibs" >&6
8891 test "$ld_shlibs" = no && can_build_shared=no
8892
8893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8894 if test "$GCC" = yes; then
8895   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8896 fi
8897
8898 #
8899 # Do we need to explicitly link libc?
8900 #
8901 case "x$archive_cmds_need_lc" in
8902 x|xyes)
8903   # Assume -lc should be added
8904   archive_cmds_need_lc=yes
8905
8906   if test "$enable_shared" = yes && test "$GCC" = yes; then
8907     case $archive_cmds in
8908     *'~'*)
8909       # FIXME: we may have to deal with multi-command sequences.
8910       ;;
8911     '$CC '*)
8912       # Test whether the compiler implicitly links with -lc since on some
8913       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8914       # to ld, don't add -lc before -lgcc.
8915       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8916 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8917       $rm conftest*
8918       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8921   (eval $ac_compile) 2>&5
8922   ac_status=$?
8923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924   (exit $ac_status); } 2>conftest.err; then
8925         soname=conftest
8926         lib=conftest
8927         libobjs=conftest.$ac_objext
8928         deplibs=
8929         wl=$lt_prog_compiler_wl
8930         compiler_flags=-v
8931         linker_flags=-v
8932         verstring=
8933         output_objdir=.
8934         libname=conftest
8935         lt_save_allow_undefined_flag=$allow_undefined_flag
8936         allow_undefined_flag=
8937         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8938   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }
8942         then
8943           archive_cmds_need_lc=no
8944         else
8945           archive_cmds_need_lc=yes
8946         fi
8947         allow_undefined_flag=$lt_save_allow_undefined_flag
8948       else
8949         cat conftest.err 1>&5
8950       fi
8951       $rm conftest*
8952       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8953 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8954       ;;
8955     esac
8956   fi
8957   ;;
8958 esac
8959
8960 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8961 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8962 library_names_spec=
8963 libname_spec='lib$name'
8964 soname_spec=
8965 shrext_cmds=".so"
8966 postinstall_cmds=
8967 postuninstall_cmds=
8968 finish_cmds=
8969 finish_eval=
8970 shlibpath_var=
8971 shlibpath_overrides_runpath=unknown
8972 version_type=none
8973 dynamic_linker="$host_os ld.so"
8974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8975 if test "$GCC" = yes; then
8976   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8977   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8978     # if the path contains ";" then we assume it to be the separator
8979     # otherwise default to the standard path separator (i.e. ":") - it is
8980     # assumed that no part of a normal pathname contains ";" but that should
8981     # okay in the real world where ";" in dirpaths is itself problematic.
8982     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8983   else
8984     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8985   fi
8986 else
8987   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8988 fi
8989 need_lib_prefix=unknown
8990 hardcode_into_libs=no
8991
8992 # when you set need_version to no, make sure it does not cause -set_version
8993 # flags to be left without arguments
8994 need_version=unknown
8995
8996 case $host_os in
8997 aix3*)
8998   version_type=linux
8999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9000   shlibpath_var=LIBPATH
9001
9002   # AIX 3 has no versioning support, so we append a major version to the name.
9003   soname_spec='${libname}${release}${shared_ext}$major'
9004   ;;
9005
9006 aix4* | aix5*)
9007   version_type=linux
9008   need_lib_prefix=no
9009   need_version=no
9010   hardcode_into_libs=yes
9011   if test "$host_cpu" = ia64; then
9012     # AIX 5 supports IA64
9013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9014     shlibpath_var=LD_LIBRARY_PATH
9015   else
9016     # With GCC up to 2.95.x, collect2 would create an import file
9017     # for dependence libraries.  The import file would start with
9018     # the line `#! .'.  This would cause the generated library to
9019     # depend on `.', always an invalid library.  This was fixed in
9020     # development snapshots of GCC prior to 3.0.
9021     case $host_os in
9022       aix4 | aix4.[01] | aix4.[01].*)
9023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9024            echo ' yes '
9025            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9026         :
9027       else
9028         can_build_shared=no
9029       fi
9030       ;;
9031     esac
9032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9033     # soname into executable. Probably we can add versioning support to
9034     # collect2, so additional links can be useful in future.
9035     if test "$aix_use_runtimelinking" = yes; then
9036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9037       # instead of lib<name>.a to let people know that these are not
9038       # typical AIX shared libraries.
9039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040     else
9041       # We preserve .a as extension for shared libraries through AIX4.2
9042       # and later when we are not doing run time linking.
9043       library_names_spec='${libname}${release}.a $libname.a'
9044       soname_spec='${libname}${release}${shared_ext}$major'
9045     fi
9046     shlibpath_var=LIBPATH
9047   fi
9048   ;;
9049
9050 amigaos*)
9051   library_names_spec='$libname.ixlibrary $libname.a'
9052   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9053   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'
9054   ;;
9055
9056 beos*)
9057   library_names_spec='${libname}${shared_ext}'
9058   dynamic_linker="$host_os ld.so"
9059   shlibpath_var=LIBRARY_PATH
9060   ;;
9061
9062 bsdi[45]*)
9063   version_type=linux
9064   need_version=no
9065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066   soname_spec='${libname}${release}${shared_ext}$major'
9067   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9068   shlibpath_var=LD_LIBRARY_PATH
9069   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9070   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9071   # the default ld.so.conf also contains /usr/contrib/lib and
9072   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9073   # libtool to hard-code these into programs
9074   ;;
9075
9076 cygwin* | mingw* | pw32*)
9077   version_type=windows
9078   shrext_cmds=".dll"
9079   need_version=no
9080   need_lib_prefix=no
9081
9082   case $GCC,$host_os in
9083   yes,cygwin* | yes,mingw* | yes,pw32*)
9084     library_names_spec='$libname.dll.a'
9085     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9086     postinstall_cmds='base_file=`basename \${file}`~
9087       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9088       dldir=$destdir/`dirname \$dlpath`~
9089       test -d \$dldir || mkdir -p \$dldir~
9090       $install_prog $dir/$dlname \$dldir/$dlname~
9091       chmod a+x \$dldir/$dlname'
9092     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9093       dlpath=$dir/\$dldll~
9094        $rm \$dlpath'
9095     shlibpath_overrides_runpath=yes
9096
9097     case $host_os in
9098     cygwin*)
9099       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9100       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9102       ;;
9103     mingw*)
9104       # MinGW DLLs use traditional 'lib' prefix
9105       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9106       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9107       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9108         # It is most probably a Windows format PATH printed by
9109         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9110         # path with ; separators, and with drive letters. We can handle the
9111         # drive letters (cygwin fileutils understands them), so leave them,
9112         # especially as we might pass files found there to a mingw objdump,
9113         # which wouldn't understand a cygwinified path. Ahh.
9114         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9115       else
9116         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9117       fi
9118       ;;
9119     pw32*)
9120       # pw32 DLLs use 'pw' prefix rather than 'lib'
9121       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9122       ;;
9123     esac
9124     ;;
9125
9126   *)
9127     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9128     ;;
9129   esac
9130   dynamic_linker='Win32 ld.exe'
9131   # FIXME: first we should search . and the directory the executable is in
9132   shlibpath_var=PATH
9133   ;;
9134
9135 darwin* | rhapsody*)
9136   dynamic_linker="$host_os dyld"
9137   version_type=darwin
9138   need_lib_prefix=no
9139   need_version=no
9140   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9141   soname_spec='${libname}${release}${major}$shared_ext'
9142   shlibpath_overrides_runpath=yes
9143   shlibpath_var=DYLD_LIBRARY_PATH
9144   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9145   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9146   if test "$GCC" = yes; then
9147     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"`
9148   else
9149     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9150   fi
9151   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9152   ;;
9153
9154 dgux*)
9155   version_type=linux
9156   need_lib_prefix=no
9157   need_version=no
9158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9159   soname_spec='${libname}${release}${shared_ext}$major'
9160   shlibpath_var=LD_LIBRARY_PATH
9161   ;;
9162
9163 freebsd1*)
9164   dynamic_linker=no
9165   ;;
9166
9167 kfreebsd*-gnu)
9168   version_type=linux
9169   need_lib_prefix=no
9170   need_version=no
9171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9172   soname_spec='${libname}${release}${shared_ext}$major'
9173   shlibpath_var=LD_LIBRARY_PATH
9174   shlibpath_overrides_runpath=no
9175   hardcode_into_libs=yes
9176   dynamic_linker='GNU ld.so'
9177   ;;
9178
9179 freebsd* | dragonfly*)
9180   # DragonFly does not have aout.  When/if they implement a new
9181   # versioning mechanism, adjust this.
9182   if test -x /usr/bin/objformat; then
9183     objformat=`/usr/bin/objformat`
9184   else
9185     case $host_os in
9186     freebsd[123]*) objformat=aout ;;
9187     *) objformat=elf ;;
9188     esac
9189   fi
9190   version_type=freebsd-$objformat
9191   case $version_type in
9192     freebsd-elf*)
9193       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9194       need_version=no
9195       need_lib_prefix=no
9196       ;;
9197     freebsd-*)
9198       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9199       need_version=yes
9200       ;;
9201   esac
9202   shlibpath_var=LD_LIBRARY_PATH
9203   case $host_os in
9204   freebsd2*)
9205     shlibpath_overrides_runpath=yes
9206     ;;
9207   freebsd3.[01]* | freebsdelf3.[01]*)
9208     shlibpath_overrides_runpath=yes
9209     hardcode_into_libs=yes
9210     ;;
9211   *) # from 3.2 on
9212     shlibpath_overrides_runpath=no
9213     hardcode_into_libs=yes
9214     ;;
9215   esac
9216   ;;
9217
9218 gnu*)
9219   version_type=linux
9220   need_lib_prefix=no
9221   need_version=no
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   hardcode_into_libs=yes
9226   ;;
9227
9228 hpux9* | hpux10* | hpux11*)
9229   # Give a soname corresponding to the major version so that dld.sl refuses to
9230   # link against other versions.
9231   version_type=sunos
9232   need_lib_prefix=no
9233   need_version=no
9234   case $host_cpu in
9235   ia64*)
9236     shrext_cmds='.so'
9237     hardcode_into_libs=yes
9238     dynamic_linker="$host_os dld.so"
9239     shlibpath_var=LD_LIBRARY_PATH
9240     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242     soname_spec='${libname}${release}${shared_ext}$major'
9243     if test "X$HPUX_IA64_MODE" = X32; then
9244       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9245     else
9246       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9247     fi
9248     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9249     ;;
9250    hppa*64*)
9251      shrext_cmds='.sl'
9252      hardcode_into_libs=yes
9253      dynamic_linker="$host_os dld.sl"
9254      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9255      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9256      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257      soname_spec='${libname}${release}${shared_ext}$major'
9258      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9259      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9260      ;;
9261    *)
9262     shrext_cmds='.sl'
9263     dynamic_linker="$host_os dld.sl"
9264     shlibpath_var=SHLIB_PATH
9265     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267     soname_spec='${libname}${release}${shared_ext}$major'
9268     ;;
9269   esac
9270   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9271   postinstall_cmds='chmod 555 $lib'
9272   ;;
9273
9274 irix5* | irix6* | nonstopux*)
9275   case $host_os in
9276     nonstopux*) version_type=nonstopux ;;
9277     *)
9278         if test "$lt_cv_prog_gnu_ld" = yes; then
9279                 version_type=linux
9280         else
9281                 version_type=irix
9282         fi ;;
9283   esac
9284   need_lib_prefix=no
9285   need_version=no
9286   soname_spec='${libname}${release}${shared_ext}$major'
9287   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9288   case $host_os in
9289   irix5* | nonstopux*)
9290     libsuff= shlibsuff=
9291     ;;
9292   *)
9293     case $LD in # libtool.m4 will add one of these switches to LD
9294     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9295       libsuff= shlibsuff= libmagic=32-bit;;
9296     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9297       libsuff=32 shlibsuff=N32 libmagic=N32;;
9298     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9299       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9300     *) libsuff= shlibsuff= libmagic=never-match;;
9301     esac
9302     ;;
9303   esac
9304   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9305   shlibpath_overrides_runpath=no
9306   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9307   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9308   hardcode_into_libs=yes
9309   ;;
9310
9311 # No shared lib support for Linux oldld, aout, or coff.
9312 linux*oldld* | linux*aout* | linux*coff*)
9313   dynamic_linker=no
9314   ;;
9315
9316 # This must be Linux ELF.
9317 linux*)
9318   version_type=linux
9319   need_lib_prefix=no
9320   need_version=no
9321   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322   soname_spec='${libname}${release}${shared_ext}$major'
9323   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9324   shlibpath_var=LD_LIBRARY_PATH
9325   shlibpath_overrides_runpath=no
9326   # This implies no fast_install, which is unacceptable.
9327   # Some rework will be needed to allow for fast_install
9328   # before this can be enabled.
9329   hardcode_into_libs=yes
9330
9331   # Append ld.so.conf contents to the search path
9332   if test -f /etc/ld.so.conf; then
9333     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' ' '`
9334     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9335   fi
9336
9337   # We used to test for /lib/ld.so.1 and disable shared libraries on
9338   # powerpc, because MkLinux only supported shared libraries with the
9339   # GNU dynamic linker.  Since this was broken with cross compilers,
9340   # most powerpc-linux boxes support dynamic linking these days and
9341   # people can always --disable-shared, the test was removed, and we
9342   # assume the GNU/Linux dynamic linker is in use.
9343   dynamic_linker='GNU/Linux ld.so'
9344   ;;
9345
9346 knetbsd*-gnu)
9347   version_type=linux
9348   need_lib_prefix=no
9349   need_version=no
9350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9351   soname_spec='${libname}${release}${shared_ext}$major'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=no
9354   hardcode_into_libs=yes
9355   dynamic_linker='GNU ld.so'
9356   ;;
9357
9358 netbsd*)
9359   version_type=sunos
9360   need_lib_prefix=no
9361   need_version=no
9362   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9363     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9364     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9365     dynamic_linker='NetBSD (a.out) ld.so'
9366   else
9367     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9368     soname_spec='${libname}${release}${shared_ext}$major'
9369     dynamic_linker='NetBSD ld.elf_so'
9370   fi
9371   shlibpath_var=LD_LIBRARY_PATH
9372   shlibpath_overrides_runpath=yes
9373   hardcode_into_libs=yes
9374   ;;
9375
9376 newsos6)
9377   version_type=linux
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379   shlibpath_var=LD_LIBRARY_PATH
9380   shlibpath_overrides_runpath=yes
9381   ;;
9382
9383 nto-qnx*)
9384   version_type=linux
9385   need_lib_prefix=no
9386   need_version=no
9387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388   soname_spec='${libname}${release}${shared_ext}$major'
9389   shlibpath_var=LD_LIBRARY_PATH
9390   shlibpath_overrides_runpath=yes
9391   ;;
9392
9393 openbsd*)
9394   version_type=sunos
9395   need_lib_prefix=no
9396   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9397   case $host_os in
9398     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9399     *)                         need_version=no  ;;
9400   esac
9401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9402   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9403   shlibpath_var=LD_LIBRARY_PATH
9404   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9405     case $host_os in
9406       openbsd2.[89] | openbsd2.[89].*)
9407         shlibpath_overrides_runpath=no
9408         ;;
9409       *)
9410         shlibpath_overrides_runpath=yes
9411         ;;
9412       esac
9413   else
9414     shlibpath_overrides_runpath=yes
9415   fi
9416   ;;
9417
9418 os2*)
9419   libname_spec='$name'
9420   shrext_cmds=".dll"
9421   need_lib_prefix=no
9422   library_names_spec='$libname${shared_ext} $libname.a'
9423   dynamic_linker='OS/2 ld.exe'
9424   shlibpath_var=LIBPATH
9425   ;;
9426
9427 osf3* | osf4* | osf5*)
9428   version_type=osf
9429   need_lib_prefix=no
9430   need_version=no
9431   soname_spec='${libname}${release}${shared_ext}$major'
9432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9435   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9436   ;;
9437
9438 sco3.2v5*)
9439   version_type=osf
9440   soname_spec='${libname}${release}${shared_ext}$major'
9441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9442   shlibpath_var=LD_LIBRARY_PATH
9443   ;;
9444
9445 solaris*)
9446   version_type=linux
9447   need_lib_prefix=no
9448   need_version=no
9449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9450   soname_spec='${libname}${release}${shared_ext}$major'
9451   shlibpath_var=LD_LIBRARY_PATH
9452   shlibpath_overrides_runpath=yes
9453   hardcode_into_libs=yes
9454   # ldd complains unless libraries are executable
9455   postinstall_cmds='chmod +x $lib'
9456   ;;
9457
9458 sunos4*)
9459   version_type=sunos
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9461   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9462   shlibpath_var=LD_LIBRARY_PATH
9463   shlibpath_overrides_runpath=yes
9464   if test "$with_gnu_ld" = yes; then
9465     need_lib_prefix=no
9466   fi
9467   need_version=yes
9468   ;;
9469
9470 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9471   version_type=linux
9472   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473   soname_spec='${libname}${release}${shared_ext}$major'
9474   shlibpath_var=LD_LIBRARY_PATH
9475   case $host_vendor in
9476     sni)
9477       shlibpath_overrides_runpath=no
9478       need_lib_prefix=no
9479       export_dynamic_flag_spec='${wl}-Blargedynsym'
9480       runpath_var=LD_RUN_PATH
9481       ;;
9482     siemens)
9483       need_lib_prefix=no
9484       ;;
9485     motorola)
9486       need_lib_prefix=no
9487       need_version=no
9488       shlibpath_overrides_runpath=no
9489       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9490       ;;
9491   esac
9492   ;;
9493
9494 sysv4*MP*)
9495   if test -d /usr/nec ;then
9496     version_type=linux
9497     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9498     soname_spec='$libname${shared_ext}.$major'
9499     shlibpath_var=LD_LIBRARY_PATH
9500   fi
9501   ;;
9502
9503 uts4*)
9504   version_type=linux
9505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9506   soname_spec='${libname}${release}${shared_ext}$major'
9507   shlibpath_var=LD_LIBRARY_PATH
9508   ;;
9509
9510 *)
9511   dynamic_linker=no
9512   ;;
9513 esac
9514 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9515 echo "${ECHO_T}$dynamic_linker" >&6
9516 test "$dynamic_linker" = no && can_build_shared=no
9517
9518 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9519 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9520 hardcode_action=
9521 if test -n "$hardcode_libdir_flag_spec" || \
9522    test -n "$runpath_var" || \
9523    test "X$hardcode_automatic" = "Xyes" ; then
9524
9525   # We can hardcode non-existant directories.
9526   if test "$hardcode_direct" != no &&
9527      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9528      # have to relink, otherwise we might link with an installed library
9529      # when we should be linking with a yet-to-be-installed one
9530      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9531      test "$hardcode_minus_L" != no; then
9532     # Linking always hardcodes the temporary library directory.
9533     hardcode_action=relink
9534   else
9535     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9536     hardcode_action=immediate
9537   fi
9538 else
9539   # We cannot hardcode anything, or else we can only hardcode existing
9540   # directories.
9541   hardcode_action=unsupported
9542 fi
9543 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9544 echo "${ECHO_T}$hardcode_action" >&6
9545
9546 if test "$hardcode_action" = relink; then
9547   # Fast installation is not supported
9548   enable_fast_install=no
9549 elif test "$shlibpath_overrides_runpath" = yes ||
9550      test "$enable_shared" = no; then
9551   # Fast installation is not necessary
9552   enable_fast_install=needless
9553 fi
9554
9555 striplib=
9556 old_striplib=
9557 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9558 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9559 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9560   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9561   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9562   echo "$as_me:$LINENO: result: yes" >&5
9563 echo "${ECHO_T}yes" >&6
9564 else
9565 # FIXME - insert some real tests, host_os isn't really good enough
9566   case $host_os in
9567    darwin*)
9568        if test -n "$STRIP" ; then
9569          striplib="$STRIP -x"
9570          echo "$as_me:$LINENO: result: yes" >&5
9571 echo "${ECHO_T}yes" >&6
9572        else
9573   echo "$as_me:$LINENO: result: no" >&5
9574 echo "${ECHO_T}no" >&6
9575 fi
9576        ;;
9577    *)
9578   echo "$as_me:$LINENO: result: no" >&5
9579 echo "${ECHO_T}no" >&6
9580     ;;
9581   esac
9582 fi
9583
9584 if test "x$enable_dlopen" != xyes; then
9585   enable_dlopen=unknown
9586   enable_dlopen_self=unknown
9587   enable_dlopen_self_static=unknown
9588 else
9589   lt_cv_dlopen=no
9590   lt_cv_dlopen_libs=
9591
9592   case $host_os in
9593   beos*)
9594     lt_cv_dlopen="load_add_on"
9595     lt_cv_dlopen_libs=
9596     lt_cv_dlopen_self=yes
9597     ;;
9598
9599   mingw* | pw32*)
9600     lt_cv_dlopen="LoadLibrary"
9601     lt_cv_dlopen_libs=
9602    ;;
9603
9604   cygwin*)
9605     lt_cv_dlopen="dlopen"
9606     lt_cv_dlopen_libs=
9607    ;;
9608
9609   darwin*)
9610   # if libdl is installed we need to link against it
9611     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9612 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9613 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9614   echo $ECHO_N "(cached) $ECHO_C" >&6
9615 else
9616   ac_check_lib_save_LIBS=$LIBS
9617 LIBS="-ldl  $LIBS"
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h.  */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h.  */
9624
9625 /* Override any gcc2 internal prototype to avoid an error.  */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 /* We use char because int might match the return type of a gcc2
9630    builtin and then its argument prototype would still apply.  */
9631 char dlopen ();
9632 int
9633 main ()
9634 {
9635 dlopen ();
9636   ;
9637   return 0;
9638 }
9639 _ACEOF
9640 rm -f conftest.$ac_objext conftest$ac_exeext
9641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642   (eval $ac_link) 2>conftest.er1
9643   ac_status=$?
9644   grep -v '^ *+' conftest.er1 >conftest.err
9645   rm -f conftest.er1
9646   cat conftest.err >&5
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); } &&
9649          { ac_try='test -z "$ac_c_werror_flag"
9650                          || test ! -s conftest.err'
9651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652   (eval $ac_try) 2>&5
9653   ac_status=$?
9654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655   (exit $ac_status); }; } &&
9656          { ac_try='test -s conftest$ac_exeext'
9657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658   (eval $ac_try) 2>&5
9659   ac_status=$?
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); }; }; then
9662   ac_cv_lib_dl_dlopen=yes
9663 else
9664   echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9666
9667 ac_cv_lib_dl_dlopen=no
9668 fi
9669 rm -f conftest.err conftest.$ac_objext \
9670       conftest$ac_exeext conftest.$ac_ext
9671 LIBS=$ac_check_lib_save_LIBS
9672 fi
9673 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9674 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9675 if test $ac_cv_lib_dl_dlopen = yes; then
9676   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9677 else
9678
9679     lt_cv_dlopen="dyld"
9680     lt_cv_dlopen_libs=
9681     lt_cv_dlopen_self=yes
9682
9683 fi
9684
9685    ;;
9686
9687   *)
9688     echo "$as_me:$LINENO: checking for shl_load" >&5
9689 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9690 if test "${ac_cv_func_shl_load+set}" = set; then
9691   echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693   cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h.  */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h.  */
9699 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9701 #define shl_load innocuous_shl_load
9702
9703 /* System header to define __stub macros and hopefully few prototypes,
9704     which can conflict with char shl_load (); below.
9705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9706     <limits.h> exists even on freestanding compilers.  */
9707
9708 #ifdef __STDC__
9709 # include <limits.h>
9710 #else
9711 # include <assert.h>
9712 #endif
9713
9714 #undef shl_load
9715
9716 /* Override any gcc2 internal prototype to avoid an error.  */
9717 #ifdef __cplusplus
9718 extern "C"
9719 {
9720 #endif
9721 /* We use char because int might match the return type of a gcc2
9722    builtin and then its argument prototype would still apply.  */
9723 char shl_load ();
9724 /* The GNU C library defines this for functions which it implements
9725     to always fail with ENOSYS.  Some functions are actually named
9726     something starting with __ and the normal name is an alias.  */
9727 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9728 choke me
9729 #else
9730 char (*f) () = shl_load;
9731 #endif
9732 #ifdef __cplusplus
9733 }
9734 #endif
9735
9736 int
9737 main ()
9738 {
9739 return f != shl_load;
9740   ;
9741   return 0;
9742 }
9743 _ACEOF
9744 rm -f conftest.$ac_objext conftest$ac_exeext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9746   (eval $ac_link) 2>conftest.er1
9747   ac_status=$?
9748   grep -v '^ *+' conftest.er1 >conftest.err
9749   rm -f conftest.er1
9750   cat conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } &&
9753          { ac_try='test -z "$ac_c_werror_flag"
9754                          || test ! -s conftest.err'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; } &&
9760          { ac_try='test -s conftest$ac_exeext'
9761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762   (eval $ac_try) 2>&5
9763   ac_status=$?
9764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765   (exit $ac_status); }; }; then
9766   ac_cv_func_shl_load=yes
9767 else
9768   echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9770
9771 ac_cv_func_shl_load=no
9772 fi
9773 rm -f conftest.err conftest.$ac_objext \
9774       conftest$ac_exeext conftest.$ac_ext
9775 fi
9776 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9777 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9778 if test $ac_cv_func_shl_load = yes; then
9779   lt_cv_dlopen="shl_load"
9780 else
9781   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9782 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9783 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9784   echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786   ac_check_lib_save_LIBS=$LIBS
9787 LIBS="-ldld  $LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794
9795 /* Override any gcc2 internal prototype to avoid an error.  */
9796 #ifdef __cplusplus
9797 extern "C"
9798 #endif
9799 /* We use char because int might match the return type of a gcc2
9800    builtin and then its argument prototype would still apply.  */
9801 char shl_load ();
9802 int
9803 main ()
9804 {
9805 shl_load ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812   (eval $ac_link) 2>conftest.er1
9813   ac_status=$?
9814   grep -v '^ *+' conftest.er1 >conftest.err
9815   rm -f conftest.er1
9816   cat conftest.err >&5
9817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818   (exit $ac_status); } &&
9819          { ac_try='test -z "$ac_c_werror_flag"
9820                          || test ! -s conftest.err'
9821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822   (eval $ac_try) 2>&5
9823   ac_status=$?
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); }; } &&
9826          { ac_try='test -s conftest$ac_exeext'
9827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828   (eval $ac_try) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); }; }; then
9832   ac_cv_lib_dld_shl_load=yes
9833 else
9834   echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9836
9837 ac_cv_lib_dld_shl_load=no
9838 fi
9839 rm -f conftest.err conftest.$ac_objext \
9840       conftest$ac_exeext conftest.$ac_ext
9841 LIBS=$ac_check_lib_save_LIBS
9842 fi
9843 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9844 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9845 if test $ac_cv_lib_dld_shl_load = yes; then
9846   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9847 else
9848   echo "$as_me:$LINENO: checking for dlopen" >&5
9849 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9850 if test "${ac_cv_func_dlopen+set}" = set; then
9851   echo $ECHO_N "(cached) $ECHO_C" >&6
9852 else
9853   cat >conftest.$ac_ext <<_ACEOF
9854 /* confdefs.h.  */
9855 _ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h.  */
9859 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9861 #define dlopen innocuous_dlopen
9862
9863 /* System header to define __stub macros and hopefully few prototypes,
9864     which can conflict with char dlopen (); below.
9865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9866     <limits.h> exists even on freestanding compilers.  */
9867
9868 #ifdef __STDC__
9869 # include <limits.h>
9870 #else
9871 # include <assert.h>
9872 #endif
9873
9874 #undef dlopen
9875
9876 /* Override any gcc2 internal prototype to avoid an error.  */
9877 #ifdef __cplusplus
9878 extern "C"
9879 {
9880 #endif
9881 /* We use char because int might match the return type of a gcc2
9882    builtin and then its argument prototype would still apply.  */
9883 char dlopen ();
9884 /* The GNU C library defines this for functions which it implements
9885     to always fail with ENOSYS.  Some functions are actually named
9886     something starting with __ and the normal name is an alias.  */
9887 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9888 choke me
9889 #else
9890 char (*f) () = dlopen;
9891 #endif
9892 #ifdef __cplusplus
9893 }
9894 #endif
9895
9896 int
9897 main ()
9898 {
9899 return f != dlopen;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9906   (eval $ac_link) 2>conftest.er1
9907   ac_status=$?
9908   grep -v '^ *+' conftest.er1 >conftest.err
9909   rm -f conftest.er1
9910   cat conftest.err >&5
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); } &&
9913          { ac_try='test -z "$ac_c_werror_flag"
9914                          || test ! -s conftest.err'
9915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916   (eval $ac_try) 2>&5
9917   ac_status=$?
9918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919   (exit $ac_status); }; } &&
9920          { ac_try='test -s conftest$ac_exeext'
9921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922   (eval $ac_try) 2>&5
9923   ac_status=$?
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); }; }; then
9926   ac_cv_func_dlopen=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_cv_func_dlopen=no
9932 fi
9933 rm -f conftest.err conftest.$ac_objext \
9934       conftest$ac_exeext conftest.$ac_ext
9935 fi
9936 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9937 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9938 if test $ac_cv_func_dlopen = yes; then
9939   lt_cv_dlopen="dlopen"
9940 else
9941   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9942 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9943 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-ldl  $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 /* Override any gcc2 internal prototype to avoid an error.  */
9956 #ifdef __cplusplus
9957 extern "C"
9958 #endif
9959 /* We use char because int might match the return type of a gcc2
9960    builtin and then its argument prototype would still apply.  */
9961 char dlopen ();
9962 int
9963 main ()
9964 {
9965 dlopen ();
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9972   (eval $ac_link) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest$ac_exeext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_cv_lib_dl_dlopen=yes
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_lib_dl_dlopen=no
9998 fi
9999 rm -f conftest.err conftest.$ac_objext \
10000       conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10002 fi
10003 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10004 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10005 if test $ac_cv_lib_dl_dlopen = yes; then
10006   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10007 else
10008   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10009 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10010 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10011   echo $ECHO_N "(cached) $ECHO_C" >&6
10012 else
10013   ac_check_lib_save_LIBS=$LIBS
10014 LIBS="-lsvld  $LIBS"
10015 cat >conftest.$ac_ext <<_ACEOF
10016 /* confdefs.h.  */
10017 _ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h.  */
10021
10022 /* Override any gcc2 internal prototype to avoid an error.  */
10023 #ifdef __cplusplus
10024 extern "C"
10025 #endif
10026 /* We use char because int might match the return type of a gcc2
10027    builtin and then its argument prototype would still apply.  */
10028 char dlopen ();
10029 int
10030 main ()
10031 {
10032 dlopen ();
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 rm -f conftest.$ac_objext conftest$ac_exeext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039   (eval $ac_link) 2>conftest.er1
10040   ac_status=$?
10041   grep -v '^ *+' conftest.er1 >conftest.err
10042   rm -f conftest.er1
10043   cat conftest.err >&5
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); } &&
10046          { ac_try='test -z "$ac_c_werror_flag"
10047                          || test ! -s conftest.err'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; } &&
10053          { ac_try='test -s conftest$ac_exeext'
10054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055   (eval $ac_try) 2>&5
10056   ac_status=$?
10057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058   (exit $ac_status); }; }; then
10059   ac_cv_lib_svld_dlopen=yes
10060 else
10061   echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064 ac_cv_lib_svld_dlopen=no
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067       conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10071 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10072 if test $ac_cv_lib_svld_dlopen = yes; then
10073   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10074 else
10075   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10076 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10077 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   ac_check_lib_save_LIBS=$LIBS
10081 LIBS="-ldld  $LIBS"
10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088
10089 /* Override any gcc2 internal prototype to avoid an error.  */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 /* We use char because int might match the return type of a gcc2
10094    builtin and then its argument prototype would still apply.  */
10095 char dld_link ();
10096 int
10097 main ()
10098 {
10099 dld_link ();
10100   ;
10101   return 0;
10102 }
10103 _ACEOF
10104 rm -f conftest.$ac_objext conftest$ac_exeext
10105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10106   (eval $ac_link) 2>conftest.er1
10107   ac_status=$?
10108   grep -v '^ *+' conftest.er1 >conftest.err
10109   rm -f conftest.er1
10110   cat conftest.err >&5
10111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112   (exit $ac_status); } &&
10113          { ac_try='test -z "$ac_c_werror_flag"
10114                          || test ! -s conftest.err'
10115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116   (eval $ac_try) 2>&5
10117   ac_status=$?
10118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119   (exit $ac_status); }; } &&
10120          { ac_try='test -s conftest$ac_exeext'
10121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122   (eval $ac_try) 2>&5
10123   ac_status=$?
10124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125   (exit $ac_status); }; }; then
10126   ac_cv_lib_dld_dld_link=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131 ac_cv_lib_dld_dld_link=no
10132 fi
10133 rm -f conftest.err conftest.$ac_objext \
10134       conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10139 if test $ac_cv_lib_dld_dld_link = yes; then
10140   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10141 fi
10142
10143
10144 fi
10145
10146
10147 fi
10148
10149
10150 fi
10151
10152
10153 fi
10154
10155
10156 fi
10157
10158     ;;
10159   esac
10160
10161   if test "x$lt_cv_dlopen" != xno; then
10162     enable_dlopen=yes
10163   else
10164     enable_dlopen=no
10165   fi
10166
10167   case $lt_cv_dlopen in
10168   dlopen)
10169     save_CPPFLAGS="$CPPFLAGS"
10170     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10171
10172     save_LDFLAGS="$LDFLAGS"
10173     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10174
10175     save_LIBS="$LIBS"
10176     LIBS="$lt_cv_dlopen_libs $LIBS"
10177
10178     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10180 if test "${lt_cv_dlopen_self+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183           if test "$cross_compiling" = yes; then :
10184   lt_cv_dlopen_self=cross
10185 else
10186   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187   lt_status=$lt_dlunknown
10188   cat > conftest.$ac_ext <<EOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10191
10192 #if HAVE_DLFCN_H
10193 #include <dlfcn.h>
10194 #endif
10195
10196 #include <stdio.h>
10197
10198 #ifdef RTLD_GLOBAL
10199 #  define LT_DLGLOBAL           RTLD_GLOBAL
10200 #else
10201 #  ifdef DL_GLOBAL
10202 #    define LT_DLGLOBAL         DL_GLOBAL
10203 #  else
10204 #    define LT_DLGLOBAL         0
10205 #  endif
10206 #endif
10207
10208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10209    find out it does not work in some platform. */
10210 #ifndef LT_DLLAZY_OR_NOW
10211 #  ifdef RTLD_LAZY
10212 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10213 #  else
10214 #    ifdef DL_LAZY
10215 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10216 #    else
10217 #      ifdef RTLD_NOW
10218 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10219 #      else
10220 #        ifdef DL_NOW
10221 #          define LT_DLLAZY_OR_NOW      DL_NOW
10222 #        else
10223 #          define LT_DLLAZY_OR_NOW      0
10224 #        endif
10225 #      endif
10226 #    endif
10227 #  endif
10228 #endif
10229
10230 #ifdef __cplusplus
10231 extern "C" void exit (int);
10232 #endif
10233
10234 void fnord() { int i=42;}
10235 int main ()
10236 {
10237   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10238   int status = $lt_dlunknown;
10239
10240   if (self)
10241     {
10242       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10243       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10244       /* dlclose (self); */
10245     }
10246
10247     exit (status);
10248 }
10249 EOF
10250   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10251   (eval $ac_link) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10255     (./conftest; exit; ) >&5 2>/dev/null
10256     lt_status=$?
10257     case x$lt_status in
10258       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10259       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10260       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10261     esac
10262   else :
10263     # compilation failed
10264     lt_cv_dlopen_self=no
10265   fi
10266 fi
10267 rm -fr conftest*
10268
10269
10270 fi
10271 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10272 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10273
10274     if test "x$lt_cv_dlopen_self" = xyes; then
10275       LDFLAGS="$LDFLAGS $link_static_flag"
10276       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10277 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10278 if test "${lt_cv_dlopen_self_static+set}" = set; then
10279   echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281           if test "$cross_compiling" = yes; then :
10282   lt_cv_dlopen_self_static=cross
10283 else
10284   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10285   lt_status=$lt_dlunknown
10286   cat > conftest.$ac_ext <<EOF
10287 #line 10287 "configure"
10288 #include "confdefs.h"
10289
10290 #if HAVE_DLFCN_H
10291 #include <dlfcn.h>
10292 #endif
10293
10294 #include <stdio.h>
10295
10296 #ifdef RTLD_GLOBAL
10297 #  define LT_DLGLOBAL           RTLD_GLOBAL
10298 #else
10299 #  ifdef DL_GLOBAL
10300 #    define LT_DLGLOBAL         DL_GLOBAL
10301 #  else
10302 #    define LT_DLGLOBAL         0
10303 #  endif
10304 #endif
10305
10306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10307    find out it does not work in some platform. */
10308 #ifndef LT_DLLAZY_OR_NOW
10309 #  ifdef RTLD_LAZY
10310 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10311 #  else
10312 #    ifdef DL_LAZY
10313 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10314 #    else
10315 #      ifdef RTLD_NOW
10316 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10317 #      else
10318 #        ifdef DL_NOW
10319 #          define LT_DLLAZY_OR_NOW      DL_NOW
10320 #        else
10321 #          define LT_DLLAZY_OR_NOW      0
10322 #        endif
10323 #      endif
10324 #    endif
10325 #  endif
10326 #endif
10327
10328 #ifdef __cplusplus
10329 extern "C" void exit (int);
10330 #endif
10331
10332 void fnord() { int i=42;}
10333 int main ()
10334 {
10335   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10336   int status = $lt_dlunknown;
10337
10338   if (self)
10339     {
10340       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10341       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10342       /* dlclose (self); */
10343     }
10344
10345     exit (status);
10346 }
10347 EOF
10348   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10349   (eval $ac_link) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10353     (./conftest; exit; ) >&5 2>/dev/null
10354     lt_status=$?
10355     case x$lt_status in
10356       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10357       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10358       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10359     esac
10360   else :
10361     # compilation failed
10362     lt_cv_dlopen_self_static=no
10363   fi
10364 fi
10365 rm -fr conftest*
10366
10367
10368 fi
10369 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10370 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10371     fi
10372
10373     CPPFLAGS="$save_CPPFLAGS"
10374     LDFLAGS="$save_LDFLAGS"
10375     LIBS="$save_LIBS"
10376     ;;
10377   esac
10378
10379   case $lt_cv_dlopen_self in
10380   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10381   *) enable_dlopen_self=unknown ;;
10382   esac
10383
10384   case $lt_cv_dlopen_self_static in
10385   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10386   *) enable_dlopen_self_static=unknown ;;
10387   esac
10388 fi
10389
10390
10391 # Report which librarie types wil actually be built
10392 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10393 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10394 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10395 echo "${ECHO_T}$can_build_shared" >&6
10396
10397 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10398 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10399 test "$can_build_shared" = "no" && enable_shared=no
10400
10401 # On AIX, shared libraries and static libraries use the same namespace, and
10402 # are all built from PIC.
10403 case $host_os in
10404 aix3*)
10405   test "$enable_shared" = yes && enable_static=no
10406   if test -n "$RANLIB"; then
10407     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10408     postinstall_cmds='$RANLIB $lib'
10409   fi
10410   ;;
10411
10412 aix4* | aix5*)
10413   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10414     test "$enable_shared" = yes && enable_static=no
10415   fi
10416     ;;
10417 esac
10418 echo "$as_me:$LINENO: result: $enable_shared" >&5
10419 echo "${ECHO_T}$enable_shared" >&6
10420
10421 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10422 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10423 # Make sure either enable_shared or enable_static is yes.
10424 test "$enable_shared" = yes || enable_static=yes
10425 echo "$as_me:$LINENO: result: $enable_static" >&5
10426 echo "${ECHO_T}$enable_static" >&6
10427
10428 # The else clause should only fire when bootstrapping the
10429 # libtool distribution, otherwise you forgot to ship ltmain.sh
10430 # with your package, and you will get complaints that there are
10431 # no rules to generate ltmain.sh.
10432 if test -f "$ltmain"; then
10433   # See if we are running on zsh, and set the options which allow our commands through
10434   # without removal of \ escapes.
10435   if test -n "${ZSH_VERSION+set}" ; then
10436     setopt NO_GLOB_SUBST
10437   fi
10438   # Now quote all the things that may contain metacharacters while being
10439   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10440   # variables and quote the copies for generation of the libtool script.
10441   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10442     SED SHELL STRIP \
10443     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10444     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10445     deplibs_check_method reload_flag reload_cmds need_locks \
10446     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10447     lt_cv_sys_global_symbol_to_c_name_address \
10448     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10449     old_postinstall_cmds old_postuninstall_cmds \
10450     compiler \
10451     CC \
10452     LD \
10453     lt_prog_compiler_wl \
10454     lt_prog_compiler_pic \
10455     lt_prog_compiler_static \
10456     lt_prog_compiler_no_builtin_flag \
10457     export_dynamic_flag_spec \
10458     thread_safe_flag_spec \
10459     whole_archive_flag_spec \
10460     enable_shared_with_static_runtimes \
10461     old_archive_cmds \
10462     old_archive_from_new_cmds \
10463     predep_objects \
10464     postdep_objects \
10465     predeps \
10466     postdeps \
10467     compiler_lib_search_path \
10468     archive_cmds \
10469     archive_expsym_cmds \
10470     postinstall_cmds \
10471     postuninstall_cmds \
10472     old_archive_from_expsyms_cmds \
10473     allow_undefined_flag \
10474     no_undefined_flag \
10475     export_symbols_cmds \
10476     hardcode_libdir_flag_spec \
10477     hardcode_libdir_flag_spec_ld \
10478     hardcode_libdir_separator \
10479     hardcode_automatic \
10480     module_cmds \
10481     module_expsym_cmds \
10482     lt_cv_prog_compiler_c_o \
10483     exclude_expsyms \
10484     include_expsyms; do
10485
10486     case $var in
10487     old_archive_cmds | \
10488     old_archive_from_new_cmds | \
10489     archive_cmds | \
10490     archive_expsym_cmds | \
10491     module_cmds | \
10492     module_expsym_cmds | \
10493     old_archive_from_expsyms_cmds | \
10494     export_symbols_cmds | \
10495     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10496     postinstall_cmds | postuninstall_cmds | \
10497     old_postinstall_cmds | old_postuninstall_cmds | \
10498     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10499       # Double-quote double-evaled strings.
10500       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10501       ;;
10502     *)
10503       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10504       ;;
10505     esac
10506   done
10507
10508   case $lt_echo in
10509   *'\$0 --fallback-echo"')
10510     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10511     ;;
10512   esac
10513
10514 cfgfile="${ofile}T"
10515   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10516   $rm -f "$cfgfile"
10517   { echo "$as_me:$LINENO: creating $ofile" >&5
10518 echo "$as_me: creating $ofile" >&6;}
10519
10520   cat <<__EOF__ >> "$cfgfile"
10521 #! $SHELL
10522
10523 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10524 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10525 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10526 #
10527 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10528 # Free Software Foundation, Inc.
10529 #
10530 # This file is part of GNU Libtool:
10531 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10532 #
10533 # This program is free software; you can redistribute it and/or modify
10534 # it under the terms of the GNU General Public License as published by
10535 # the Free Software Foundation; either version 2 of the License, or
10536 # (at your option) any later version.
10537 #
10538 # This program is distributed in the hope that it will be useful, but
10539 # WITHOUT ANY WARRANTY; without even the implied warranty of
10540 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10541 # General Public License for more details.
10542 #
10543 # You should have received a copy of the GNU General Public License
10544 # along with this program; if not, write to the Free Software
10545 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10546 #
10547 # As a special exception to the GNU General Public License, if you
10548 # distribute this file as part of a program that contains a
10549 # configuration script generated by Autoconf, you may include it under
10550 # the same distribution terms that you use for the rest of that program.
10551
10552 # A sed program that does not truncate output.
10553 SED=$lt_SED
10554
10555 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10556 Xsed="$SED -e 1s/^X//"
10557
10558 # The HP-UX ksh and POSIX shell print the target directory to stdout
10559 # if CDPATH is set.
10560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10561
10562 # The names of the tagged configurations supported by this script.
10563 available_tags=
10564
10565 # ### BEGIN LIBTOOL CONFIG
10566
10567 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10568
10569 # Shell to use when invoking shell scripts.
10570 SHELL=$lt_SHELL
10571
10572 # Whether or not to build shared libraries.
10573 build_libtool_libs=$enable_shared
10574
10575 # Whether or not to build static libraries.
10576 build_old_libs=$enable_static
10577
10578 # Whether or not to add -lc for building shared libraries.
10579 build_libtool_need_lc=$archive_cmds_need_lc
10580
10581 # Whether or not to disallow shared libs when runtime libs are static
10582 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10583
10584 # Whether or not to optimize for fast installation.
10585 fast_install=$enable_fast_install
10586
10587 # The host system.
10588 host_alias=$host_alias
10589 host=$host
10590 host_os=$host_os
10591
10592 # The build system.
10593 build_alias=$build_alias
10594 build=$build
10595 build_os=$build_os
10596
10597 # An echo program that does not interpret backslashes.
10598 echo=$lt_echo
10599
10600 # The archiver.
10601 AR=$lt_AR
10602 AR_FLAGS=$lt_AR_FLAGS
10603
10604 # A C compiler.
10605 LTCC=$lt_LTCC
10606
10607 # A language-specific compiler.
10608 CC=$lt_compiler
10609
10610 # Is the compiler the GNU C compiler?
10611 with_gcc=$GCC
10612
10613 # An ERE matcher.
10614 EGREP=$lt_EGREP
10615
10616 # The linker used to build libraries.
10617 LD=$lt_LD
10618
10619 # Whether we need hard or soft links.
10620 LN_S=$lt_LN_S
10621
10622 # A BSD-compatible nm program.
10623 NM=$lt_NM
10624
10625 # A symbol stripping program
10626 STRIP=$lt_STRIP
10627
10628 # Used to examine libraries when file_magic_cmd begins "file"
10629 MAGIC_CMD=$MAGIC_CMD
10630
10631 # Used on cygwin: DLL creation program.
10632 DLLTOOL="$DLLTOOL"
10633
10634 # Used on cygwin: object dumper.
10635 OBJDUMP="$OBJDUMP"
10636
10637 # Used on cygwin: assembler.
10638 AS="$AS"
10639
10640 # The name of the directory that contains temporary libtool files.
10641 objdir=$objdir
10642
10643 # How to create reloadable object files.
10644 reload_flag=$lt_reload_flag
10645 reload_cmds=$lt_reload_cmds
10646
10647 # How to pass a linker flag through the compiler.
10648 wl=$lt_lt_prog_compiler_wl
10649
10650 # Object file suffix (normally "o").
10651 objext="$ac_objext"
10652
10653 # Old archive suffix (normally "a").
10654 libext="$libext"
10655
10656 # Shared library suffix (normally ".so").
10657 shrext_cmds='$shrext_cmds'
10658
10659 # Executable file suffix (normally "").
10660 exeext="$exeext"
10661
10662 # Additional compiler flags for building library objects.
10663 pic_flag=$lt_lt_prog_compiler_pic
10664 pic_mode=$pic_mode
10665
10666 # What is the maximum length of a command?
10667 max_cmd_len=$lt_cv_sys_max_cmd_len
10668
10669 # Does compiler simultaneously support -c and -o options?
10670 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10671
10672 # Must we lock files when doing compilation?
10673 need_locks=$lt_need_locks
10674
10675 # Do we need the lib prefix for modules?
10676 need_lib_prefix=$need_lib_prefix
10677
10678 # Do we need a version for libraries?
10679 need_version=$need_version
10680
10681 # Whether dlopen is supported.
10682 dlopen_support=$enable_dlopen
10683
10684 # Whether dlopen of programs is supported.
10685 dlopen_self=$enable_dlopen_self
10686
10687 # Whether dlopen of statically linked programs is supported.
10688 dlopen_self_static=$enable_dlopen_self_static
10689
10690 # Compiler flag to prevent dynamic linking.
10691 link_static_flag=$lt_lt_prog_compiler_static
10692
10693 # Compiler flag to turn off builtin functions.
10694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10695
10696 # Compiler flag to allow reflexive dlopens.
10697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10698
10699 # Compiler flag to generate shared objects directly from archives.
10700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10701
10702 # Compiler flag to generate thread-safe objects.
10703 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10704
10705 # Library versioning type.
10706 version_type=$version_type
10707
10708 # Format of library name prefix.
10709 libname_spec=$lt_libname_spec
10710
10711 # List of archive names.  First name is the real one, the rest are links.
10712 # The last name is the one that the linker finds with -lNAME.
10713 library_names_spec=$lt_library_names_spec
10714
10715 # The coded name of the library, if different from the real name.
10716 soname_spec=$lt_soname_spec
10717
10718 # Commands used to build and install an old-style archive.
10719 RANLIB=$lt_RANLIB
10720 old_archive_cmds=$lt_old_archive_cmds
10721 old_postinstall_cmds=$lt_old_postinstall_cmds
10722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10723
10724 # Create an old-style archive from a shared archive.
10725 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10726
10727 # Create a temporary old-style archive to link instead of a shared archive.
10728 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10729
10730 # Commands used to build and install a shared archive.
10731 archive_cmds=$lt_archive_cmds
10732 archive_expsym_cmds=$lt_archive_expsym_cmds
10733 postinstall_cmds=$lt_postinstall_cmds
10734 postuninstall_cmds=$lt_postuninstall_cmds
10735
10736 # Commands used to build a loadable module (assumed same as above if empty)
10737 module_cmds=$lt_module_cmds
10738 module_expsym_cmds=$lt_module_expsym_cmds
10739
10740 # Commands to strip libraries.
10741 old_striplib=$lt_old_striplib
10742 striplib=$lt_striplib
10743
10744 # Dependencies to place before the objects being linked to create a
10745 # shared library.
10746 predep_objects=$lt_predep_objects
10747
10748 # Dependencies to place after the objects being linked to create a
10749 # shared library.
10750 postdep_objects=$lt_postdep_objects
10751
10752 # Dependencies to place before the objects being linked to create a
10753 # shared library.
10754 predeps=$lt_predeps
10755
10756 # Dependencies to place after the objects being linked to create a
10757 # shared library.
10758 postdeps=$lt_postdeps
10759
10760 # The library search path used internally by the compiler when linking
10761 # a shared library.
10762 compiler_lib_search_path=$lt_compiler_lib_search_path
10763
10764 # Method to check whether dependent libraries are shared objects.
10765 deplibs_check_method=$lt_deplibs_check_method
10766
10767 # Command to use when deplibs_check_method == file_magic.
10768 file_magic_cmd=$lt_file_magic_cmd
10769
10770 # Flag that allows shared libraries with undefined symbols to be built.
10771 allow_undefined_flag=$lt_allow_undefined_flag
10772
10773 # Flag that forces no undefined symbols.
10774 no_undefined_flag=$lt_no_undefined_flag
10775
10776 # Commands used to finish a libtool library installation in a directory.
10777 finish_cmds=$lt_finish_cmds
10778
10779 # Same as above, but a single script fragment to be evaled but not shown.
10780 finish_eval=$lt_finish_eval
10781
10782 # Take the output of nm and produce a listing of raw symbols and C names.
10783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10784
10785 # Transform the output of nm in a proper C declaration
10786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10787
10788 # Transform the output of nm in a C name address pair
10789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10790
10791 # This is the shared library runtime path variable.
10792 runpath_var=$runpath_var
10793
10794 # This is the shared library path variable.
10795 shlibpath_var=$shlibpath_var
10796
10797 # Is shlibpath searched before the hard-coded library search path?
10798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10799
10800 # How to hardcode a shared library path into an executable.
10801 hardcode_action=$hardcode_action
10802
10803 # Whether we should hardcode library paths into libraries.
10804 hardcode_into_libs=$hardcode_into_libs
10805
10806 # Flag to hardcode \$libdir into a binary during linking.
10807 # This must work even if \$libdir does not exist.
10808 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10809
10810 # If ld is used when linking, flag to hardcode \$libdir into
10811 # a binary during linking. This must work even if \$libdir does
10812 # not exist.
10813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10814
10815 # Whether we need a single -rpath flag with a separated argument.
10816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10817
10818 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10819 # resulting binary.
10820 hardcode_direct=$hardcode_direct
10821
10822 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10823 # resulting binary.
10824 hardcode_minus_L=$hardcode_minus_L
10825
10826 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10827 # the resulting binary.
10828 hardcode_shlibpath_var=$hardcode_shlibpath_var
10829
10830 # Set to yes if building a shared library automatically hardcodes DIR into the library
10831 # and all subsequent libraries and executables linked against it.
10832 hardcode_automatic=$hardcode_automatic
10833
10834 # Variables whose values should be saved in libtool wrapper scripts and
10835 # restored at relink time.
10836 variables_saved_for_relink="$variables_saved_for_relink"
10837
10838 # Whether libtool must link a program against all its dependency libraries.
10839 link_all_deplibs=$link_all_deplibs
10840
10841 # Compile-time system search path for libraries
10842 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10843
10844 # Run-time system search path for libraries
10845 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10846
10847 # Fix the shell variable \$srcfile for the compiler.
10848 fix_srcfile_path="$fix_srcfile_path"
10849
10850 # Set to yes if exported symbols are required.
10851 always_export_symbols=$always_export_symbols
10852
10853 # The commands to list exported symbols.
10854 export_symbols_cmds=$lt_export_symbols_cmds
10855
10856 # The commands to extract the exported symbol list from a shared archive.
10857 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10858
10859 # Symbols that should not be listed in the preloaded symbols.
10860 exclude_expsyms=$lt_exclude_expsyms
10861
10862 # Symbols that must always be exported.
10863 include_expsyms=$lt_include_expsyms
10864
10865 # ### END LIBTOOL CONFIG
10866
10867 __EOF__
10868
10869
10870   case $host_os in
10871   aix3*)
10872     cat <<\EOF >> "$cfgfile"
10873
10874 # AIX sometimes has problems with the GCC collect2 program.  For some
10875 # reason, if we set the COLLECT_NAMES environment variable, the problems
10876 # vanish in a puff of smoke.
10877 if test "X${COLLECT_NAMES+set}" != Xset; then
10878   COLLECT_NAMES=
10879   export COLLECT_NAMES
10880 fi
10881 EOF
10882     ;;
10883   esac
10884
10885   # We use sed instead of cat because bash on DJGPP gets confused if
10886   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10887   # text mode, it properly converts lines to CR/LF.  This bash problem
10888   # is reportedly fixed, but why not run on old versions too?
10889   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10890
10891   mv -f "$cfgfile" "$ofile" || \
10892     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10893   chmod +x "$ofile"
10894
10895 else
10896   # If there is no Makefile yet, we rely on a make rule to execute
10897   # `config.status --recheck' to rerun these tests and create the
10898   # libtool script then.
10899   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10900   if test -f "$ltmain_in"; then
10901     test -f Makefile && make "$ltmain"
10902   fi
10903 fi
10904
10905
10906 ac_ext=c
10907 ac_cpp='$CPP $CPPFLAGS'
10908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10911
10912 CC="$lt_save_CC"
10913
10914
10915 # Check whether --with-tags or --without-tags was given.
10916 if test "${with_tags+set}" = set; then
10917   withval="$with_tags"
10918   tagnames="$withval"
10919 fi;
10920
10921 if test -f "$ltmain" && test -n "$tagnames"; then
10922   if test ! -f "${ofile}"; then
10923     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10924 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10925   fi
10926
10927   if test -z "$LTCC"; then
10928     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10929     if test -z "$LTCC"; then
10930       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10931 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10932     else
10933       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10934 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10935     fi
10936   fi
10937
10938   # Extract list of available tagged configurations in $ofile.
10939   # Note that this assumes the entire list is on one line.
10940   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10941
10942   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10943   for tagname in $tagnames; do
10944     IFS="$lt_save_ifs"
10945     # Check whether tagname contains only valid characters
10946     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10947     "") ;;
10948     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10949 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10950    { (exit 1); exit 1; }; }
10951         ;;
10952     esac
10953
10954     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10955     then
10956       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10957 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10958    { (exit 1); exit 1; }; }
10959     fi
10960
10961     # Update the list of available tags.
10962     if test -n "$tagname"; then
10963       echo appending configuration tag \"$tagname\" to $ofile
10964
10965       case $tagname in
10966       CXX)
10967         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10968             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10969             (test "X$CXX" != "Xg++"))) ; then
10970           :
10971         else
10972           tagname=""
10973         fi
10974         ;;
10975
10976       F77)
10977         if test -n "$F77" && test "X$F77" != "Xno"; then
10978           :
10979         else
10980           tagname=""
10981         fi
10982         ;;
10983
10984       GCJ)
10985         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10986           :
10987         else
10988           tagname=""
10989         fi
10990         ;;
10991
10992       RC)
10993
10994
10995
10996 # Source file extension for RC test sources.
10997 ac_ext=rc
10998
10999 # Object file extension for compiled RC test sources.
11000 objext=o
11001 objext_RC=$objext
11002
11003 # Code to be used in simple compile tests
11004 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11005
11006 # Code to be used in simple link tests
11007 lt_simple_link_test_code="$lt_simple_compile_test_code"
11008
11009 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11010
11011 # If no C compiler was specified, use CC.
11012 LTCC=${LTCC-"$CC"}
11013
11014 # Allow CC to be a program name with arguments.
11015 compiler=$CC
11016
11017
11018 # save warnings/boilerplate of simple test code
11019 ac_outfile=conftest.$ac_objext
11020 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11021 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11022 _lt_compiler_boilerplate=`cat conftest.err`
11023 $rm conftest*
11024
11025 ac_outfile=conftest.$ac_objext
11026 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11027 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11028 _lt_linker_boilerplate=`cat conftest.err`
11029 $rm conftest*
11030
11031
11032 # Allow CC to be a program name with arguments.
11033 lt_save_CC="$CC"
11034 CC=${RC-"windres"}
11035 compiler=$CC
11036 compiler_RC=$CC
11037 for cc_temp in $compiler""; do
11038   case $cc_temp in
11039     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11040     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11041     \-*) ;;
11042     *) break;;
11043   esac
11044 done
11045 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11046
11047 lt_cv_prog_compiler_c_o_RC=yes
11048
11049 # The else clause should only fire when bootstrapping the
11050 # libtool distribution, otherwise you forgot to ship ltmain.sh
11051 # with your package, and you will get complaints that there are
11052 # no rules to generate ltmain.sh.
11053 if test -f "$ltmain"; then
11054   # See if we are running on zsh, and set the options which allow our commands through
11055   # without removal of \ escapes.
11056   if test -n "${ZSH_VERSION+set}" ; then
11057     setopt NO_GLOB_SUBST
11058   fi
11059   # Now quote all the things that may contain metacharacters while being
11060   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11061   # variables and quote the copies for generation of the libtool script.
11062   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11063     SED SHELL STRIP \
11064     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11065     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11066     deplibs_check_method reload_flag reload_cmds need_locks \
11067     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11068     lt_cv_sys_global_symbol_to_c_name_address \
11069     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11070     old_postinstall_cmds old_postuninstall_cmds \
11071     compiler_RC \
11072     CC_RC \
11073     LD_RC \
11074     lt_prog_compiler_wl_RC \
11075     lt_prog_compiler_pic_RC \
11076     lt_prog_compiler_static_RC \
11077     lt_prog_compiler_no_builtin_flag_RC \
11078     export_dynamic_flag_spec_RC \
11079     thread_safe_flag_spec_RC \
11080     whole_archive_flag_spec_RC \
11081     enable_shared_with_static_runtimes_RC \
11082     old_archive_cmds_RC \
11083     old_archive_from_new_cmds_RC \
11084     predep_objects_RC \
11085     postdep_objects_RC \
11086     predeps_RC \
11087     postdeps_RC \
11088     compiler_lib_search_path_RC \
11089     archive_cmds_RC \
11090     archive_expsym_cmds_RC \
11091     postinstall_cmds_RC \
11092     postuninstall_cmds_RC \
11093     old_archive_from_expsyms_cmds_RC \
11094     allow_undefined_flag_RC \
11095     no_undefined_flag_RC \
11096     export_symbols_cmds_RC \
11097     hardcode_libdir_flag_spec_RC \
11098     hardcode_libdir_flag_spec_ld_RC \
11099     hardcode_libdir_separator_RC \
11100     hardcode_automatic_RC \
11101     module_cmds_RC \
11102     module_expsym_cmds_RC \
11103     lt_cv_prog_compiler_c_o_RC \
11104     exclude_expsyms_RC \
11105     include_expsyms_RC; do
11106
11107     case $var in
11108     old_archive_cmds_RC | \
11109     old_archive_from_new_cmds_RC | \
11110     archive_cmds_RC | \
11111     archive_expsym_cmds_RC | \
11112     module_cmds_RC | \
11113     module_expsym_cmds_RC | \
11114     old_archive_from_expsyms_cmds_RC | \
11115     export_symbols_cmds_RC | \
11116     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11117     postinstall_cmds | postuninstall_cmds | \
11118     old_postinstall_cmds | old_postuninstall_cmds | \
11119     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11120       # Double-quote double-evaled strings.
11121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11122       ;;
11123     *)
11124       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11125       ;;
11126     esac
11127   done
11128
11129   case $lt_echo in
11130   *'\$0 --fallback-echo"')
11131     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11132     ;;
11133   esac
11134
11135 cfgfile="$ofile"
11136
11137   cat <<__EOF__ >> "$cfgfile"
11138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11139
11140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11141
11142 # Shell to use when invoking shell scripts.
11143 SHELL=$lt_SHELL
11144
11145 # Whether or not to build shared libraries.
11146 build_libtool_libs=$enable_shared
11147
11148 # Whether or not to build static libraries.
11149 build_old_libs=$enable_static
11150
11151 # Whether or not to add -lc for building shared libraries.
11152 build_libtool_need_lc=$archive_cmds_need_lc_RC
11153
11154 # Whether or not to disallow shared libs when runtime libs are static
11155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11156
11157 # Whether or not to optimize for fast installation.
11158 fast_install=$enable_fast_install
11159
11160 # The host system.
11161 host_alias=$host_alias
11162 host=$host
11163 host_os=$host_os
11164
11165 # The build system.
11166 build_alias=$build_alias
11167 build=$build
11168 build_os=$build_os
11169
11170 # An echo program that does not interpret backslashes.
11171 echo=$lt_echo
11172
11173 # The archiver.
11174 AR=$lt_AR
11175 AR_FLAGS=$lt_AR_FLAGS
11176
11177 # A C compiler.
11178 LTCC=$lt_LTCC
11179
11180 # A language-specific compiler.
11181 CC=$lt_compiler_RC
11182
11183 # Is the compiler the GNU C compiler?
11184 with_gcc=$GCC_RC
11185
11186 # An ERE matcher.
11187 EGREP=$lt_EGREP
11188
11189 # The linker used to build libraries.
11190 LD=$lt_LD_RC
11191
11192 # Whether we need hard or soft links.
11193 LN_S=$lt_LN_S
11194
11195 # A BSD-compatible nm program.
11196 NM=$lt_NM
11197
11198 # A symbol stripping program
11199 STRIP=$lt_STRIP
11200
11201 # Used to examine libraries when file_magic_cmd begins "file"
11202 MAGIC_CMD=$MAGIC_CMD
11203
11204 # Used on cygwin: DLL creation program.
11205 DLLTOOL="$DLLTOOL"
11206
11207 # Used on cygwin: object dumper.
11208 OBJDUMP="$OBJDUMP"
11209
11210 # Used on cygwin: assembler.
11211 AS="$AS"
11212
11213 # The name of the directory that contains temporary libtool files.
11214 objdir=$objdir
11215
11216 # How to create reloadable object files.
11217 reload_flag=$lt_reload_flag
11218 reload_cmds=$lt_reload_cmds
11219
11220 # How to pass a linker flag through the compiler.
11221 wl=$lt_lt_prog_compiler_wl_RC
11222
11223 # Object file suffix (normally "o").
11224 objext="$ac_objext"
11225
11226 # Old archive suffix (normally "a").
11227 libext="$libext"
11228
11229 # Shared library suffix (normally ".so").
11230 shrext_cmds='$shrext_cmds'
11231
11232 # Executable file suffix (normally "").
11233 exeext="$exeext"
11234
11235 # Additional compiler flags for building library objects.
11236 pic_flag=$lt_lt_prog_compiler_pic_RC
11237 pic_mode=$pic_mode
11238
11239 # What is the maximum length of a command?
11240 max_cmd_len=$lt_cv_sys_max_cmd_len
11241
11242 # Does compiler simultaneously support -c and -o options?
11243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11244
11245 # Must we lock files when doing compilation?
11246 need_locks=$lt_need_locks
11247
11248 # Do we need the lib prefix for modules?
11249 need_lib_prefix=$need_lib_prefix
11250
11251 # Do we need a version for libraries?
11252 need_version=$need_version
11253
11254 # Whether dlopen is supported.
11255 dlopen_support=$enable_dlopen
11256
11257 # Whether dlopen of programs is supported.
11258 dlopen_self=$enable_dlopen_self
11259
11260 # Whether dlopen of statically linked programs is supported.
11261 dlopen_self_static=$enable_dlopen_self_static
11262
11263 # Compiler flag to prevent dynamic linking.
11264 link_static_flag=$lt_lt_prog_compiler_static_RC
11265
11266 # Compiler flag to turn off builtin functions.
11267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11268
11269 # Compiler flag to allow reflexive dlopens.
11270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11271
11272 # Compiler flag to generate shared objects directly from archives.
11273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11274
11275 # Compiler flag to generate thread-safe objects.
11276 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11277
11278 # Library versioning type.
11279 version_type=$version_type
11280
11281 # Format of library name prefix.
11282 libname_spec=$lt_libname_spec
11283
11284 # List of archive names.  First name is the real one, the rest are links.
11285 # The last name is the one that the linker finds with -lNAME.
11286 library_names_spec=$lt_library_names_spec
11287
11288 # The coded name of the library, if different from the real name.
11289 soname_spec=$lt_soname_spec
11290
11291 # Commands used to build and install an old-style archive.
11292 RANLIB=$lt_RANLIB
11293 old_archive_cmds=$lt_old_archive_cmds_RC
11294 old_postinstall_cmds=$lt_old_postinstall_cmds
11295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11296
11297 # Create an old-style archive from a shared archive.
11298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11299
11300 # Create a temporary old-style archive to link instead of a shared archive.
11301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11302
11303 # Commands used to build and install a shared archive.
11304 archive_cmds=$lt_archive_cmds_RC
11305 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11306 postinstall_cmds=$lt_postinstall_cmds
11307 postuninstall_cmds=$lt_postuninstall_cmds
11308
11309 # Commands used to build a loadable module (assumed same as above if empty)
11310 module_cmds=$lt_module_cmds_RC
11311 module_expsym_cmds=$lt_module_expsym_cmds_RC
11312
11313 # Commands to strip libraries.
11314 old_striplib=$lt_old_striplib
11315 striplib=$lt_striplib
11316
11317 # Dependencies to place before the objects being linked to create a
11318 # shared library.
11319 predep_objects=$lt_predep_objects_RC
11320
11321 # Dependencies to place after the objects being linked to create a
11322 # shared library.
11323 postdep_objects=$lt_postdep_objects_RC
11324
11325 # Dependencies to place before the objects being linked to create a
11326 # shared library.
11327 predeps=$lt_predeps_RC
11328
11329 # Dependencies to place after the objects being linked to create a
11330 # shared library.
11331 postdeps=$lt_postdeps_RC
11332
11333 # The library search path used internally by the compiler when linking
11334 # a shared library.
11335 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11336
11337 # Method to check whether dependent libraries are shared objects.
11338 deplibs_check_method=$lt_deplibs_check_method
11339
11340 # Command to use when deplibs_check_method == file_magic.
11341 file_magic_cmd=$lt_file_magic_cmd
11342
11343 # Flag that allows shared libraries with undefined symbols to be built.
11344 allow_undefined_flag=$lt_allow_undefined_flag_RC
11345
11346 # Flag that forces no undefined symbols.
11347 no_undefined_flag=$lt_no_undefined_flag_RC
11348
11349 # Commands used to finish a libtool library installation in a directory.
11350 finish_cmds=$lt_finish_cmds
11351
11352 # Same as above, but a single script fragment to be evaled but not shown.
11353 finish_eval=$lt_finish_eval
11354
11355 # Take the output of nm and produce a listing of raw symbols and C names.
11356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11357
11358 # Transform the output of nm in a proper C declaration
11359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11360
11361 # Transform the output of nm in a C name address pair
11362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11363
11364 # This is the shared library runtime path variable.
11365 runpath_var=$runpath_var
11366
11367 # This is the shared library path variable.
11368 shlibpath_var=$shlibpath_var
11369
11370 # Is shlibpath searched before the hard-coded library search path?
11371 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11372
11373 # How to hardcode a shared library path into an executable.
11374 hardcode_action=$hardcode_action_RC
11375
11376 # Whether we should hardcode library paths into libraries.
11377 hardcode_into_libs=$hardcode_into_libs
11378
11379 # Flag to hardcode \$libdir into a binary during linking.
11380 # This must work even if \$libdir does not exist.
11381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11382
11383 # If ld is used when linking, flag to hardcode \$libdir into
11384 # a binary during linking. This must work even if \$libdir does
11385 # not exist.
11386 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11387
11388 # Whether we need a single -rpath flag with a separated argument.
11389 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11390
11391 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11392 # resulting binary.
11393 hardcode_direct=$hardcode_direct_RC
11394
11395 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11396 # resulting binary.
11397 hardcode_minus_L=$hardcode_minus_L_RC
11398
11399 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11400 # the resulting binary.
11401 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11402
11403 # Set to yes if building a shared library automatically hardcodes DIR into the library
11404 # and all subsequent libraries and executables linked against it.
11405 hardcode_automatic=$hardcode_automatic_RC
11406
11407 # Variables whose values should be saved in libtool wrapper scripts and
11408 # restored at relink time.
11409 variables_saved_for_relink="$variables_saved_for_relink"
11410
11411 # Whether libtool must link a program against all its dependency libraries.
11412 link_all_deplibs=$link_all_deplibs_RC
11413
11414 # Compile-time system search path for libraries
11415 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11416
11417 # Run-time system search path for libraries
11418 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11419
11420 # Fix the shell variable \$srcfile for the compiler.
11421 fix_srcfile_path="$fix_srcfile_path_RC"
11422
11423 # Set to yes if exported symbols are required.
11424 always_export_symbols=$always_export_symbols_RC
11425
11426 # The commands to list exported symbols.
11427 export_symbols_cmds=$lt_export_symbols_cmds_RC
11428
11429 # The commands to extract the exported symbol list from a shared archive.
11430 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11431
11432 # Symbols that should not be listed in the preloaded symbols.
11433 exclude_expsyms=$lt_exclude_expsyms_RC
11434
11435 # Symbols that must always be exported.
11436 include_expsyms=$lt_include_expsyms_RC
11437
11438 # ### END LIBTOOL TAG CONFIG: $tagname
11439
11440 __EOF__
11441
11442
11443 else
11444   # If there is no Makefile yet, we rely on a make rule to execute
11445   # `config.status --recheck' to rerun these tests and create the
11446   # libtool script then.
11447   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11448   if test -f "$ltmain_in"; then
11449     test -f Makefile && make "$ltmain"
11450   fi
11451 fi
11452
11453
11454 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11459
11460 CC="$lt_save_CC"
11461
11462         ;;
11463
11464       *)
11465         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11466 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11467    { (exit 1); exit 1; }; }
11468         ;;
11469       esac
11470
11471       # Append the new tag name to the list of available tags.
11472       if test -n "$tagname" ; then
11473       available_tags="$available_tags $tagname"
11474     fi
11475     fi
11476   done
11477   IFS="$lt_save_ifs"
11478
11479   # Now substitute the updated list of available tags.
11480   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11481     mv "${ofile}T" "$ofile"
11482     chmod +x "$ofile"
11483   else
11484     rm -f "${ofile}T"
11485     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11486 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11487    { (exit 1); exit 1; }; }
11488   fi
11489 fi
11490
11491
11492
11493 # This can be used to rebuild libtool when needed
11494 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11495
11496 # Always use our own libtool.
11497 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11498
11499 # Prevent multiple expansion
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510 ol_link_perl=no
11511 if test $ol_enable_perl != no ; then
11512         # Extract the first word of "perl", so it can be a program name with args.
11513 set dummy perl; ac_word=$2
11514 echo "$as_me:$LINENO: checking for $ac_word" >&5
11515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516 if test "${ac_cv_path_PERLBIN+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   case $PERLBIN in
11520   [\\/]* | ?:[\\/]*)
11521   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11522   ;;
11523   *)
11524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525 for as_dir in $PATH
11526 do
11527   IFS=$as_save_IFS
11528   test -z "$as_dir" && as_dir=.
11529   for ac_exec_ext in '' $ac_executable_extensions; do
11530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533     break 2
11534   fi
11535 done
11536 done
11537
11538   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11539   ;;
11540 esac
11541 fi
11542 PERLBIN=$ac_cv_path_PERLBIN
11543
11544 if test -n "$PERLBIN"; then
11545   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11546 echo "${ECHO_T}$PERLBIN" >&6
11547 else
11548   echo "$as_me:$LINENO: result: no" >&5
11549 echo "${ECHO_T}no" >&6
11550 fi
11551
11552
11553         if test "no$PERLBIN" = "no" ; then
11554                 if test $ol_enable_perl = yes ; then
11555                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11556 echo "$as_me: error: could not locate perl" >&2;}
11557    { (exit 1); exit 1; }; }
11558                 fi
11559
11560         else
11561                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11562                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11563
11564                 if test x"$ol_enable_perl" = "xyes" ; then
11565                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11566                 else
11567                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11568                 fi
11569                                 ol_link_perl=yes
11570         fi
11571 fi
11572
11573 ac_ext=c
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11578 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11579 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11580 # On Suns, sometimes $CPP names a directory.
11581 if test -n "$CPP" && test -d "$CPP"; then
11582   CPP=
11583 fi
11584 if test -z "$CPP"; then
11585   if test "${ac_cv_prog_CPP+set}" = set; then
11586   echo $ECHO_N "(cached) $ECHO_C" >&6
11587 else
11588       # Double quotes because CPP needs to be expanded
11589     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11590     do
11591       ac_preproc_ok=false
11592 for ac_c_preproc_warn_flag in '' yes
11593 do
11594   # Use a header file that comes with gcc, so configuring glibc
11595   # with a fresh cross-compiler works.
11596   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11597   # <limits.h> exists even on freestanding compilers.
11598   # On the NeXT, cc -E runs the code through the compiler's parser,
11599   # not just through cpp. "Syntax error" is here to catch this case.
11600   cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611                      Syntax error
11612 _ACEOF
11613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11614   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11615   ac_status=$?
11616   grep -v '^ *+' conftest.er1 >conftest.err
11617   rm -f conftest.er1
11618   cat conftest.err >&5
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); } >/dev/null; then
11621   if test -s conftest.err; then
11622     ac_cpp_err=$ac_c_preproc_warn_flag
11623     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11624   else
11625     ac_cpp_err=
11626   fi
11627 else
11628   ac_cpp_err=yes
11629 fi
11630 if test -z "$ac_cpp_err"; then
11631   :
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636   # Broken: fails on valid input.
11637 continue
11638 fi
11639 rm -f conftest.err conftest.$ac_ext
11640
11641   # OK, works on sane cases.  Now check whether non-existent headers
11642   # can be detected and how.
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 #include <ac_nonexistent.h>
11650 _ACEOF
11651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11652   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } >/dev/null; then
11659   if test -s conftest.err; then
11660     ac_cpp_err=$ac_c_preproc_warn_flag
11661     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11662   else
11663     ac_cpp_err=
11664   fi
11665 else
11666   ac_cpp_err=yes
11667 fi
11668 if test -z "$ac_cpp_err"; then
11669   # Broken: success on invalid input.
11670 continue
11671 else
11672   echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675   # Passes both tests.
11676 ac_preproc_ok=:
11677 break
11678 fi
11679 rm -f conftest.err conftest.$ac_ext
11680
11681 done
11682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11683 rm -f conftest.err conftest.$ac_ext
11684 if $ac_preproc_ok; then
11685   break
11686 fi
11687
11688     done
11689     ac_cv_prog_CPP=$CPP
11690
11691 fi
11692   CPP=$ac_cv_prog_CPP
11693 else
11694   ac_cv_prog_CPP=$CPP
11695 fi
11696 echo "$as_me:$LINENO: result: $CPP" >&5
11697 echo "${ECHO_T}$CPP" >&6
11698 ac_preproc_ok=false
11699 for ac_c_preproc_warn_flag in '' yes
11700 do
11701   # Use a header file that comes with gcc, so configuring glibc
11702   # with a fresh cross-compiler works.
11703   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11704   # <limits.h> exists even on freestanding compilers.
11705   # On the NeXT, cc -E runs the code through the compiler's parser,
11706   # not just through cpp. "Syntax error" is here to catch this case.
11707   cat >conftest.$ac_ext <<_ACEOF
11708 /* confdefs.h.  */
11709 _ACEOF
11710 cat confdefs.h >>conftest.$ac_ext
11711 cat >>conftest.$ac_ext <<_ACEOF
11712 /* end confdefs.h.  */
11713 #ifdef __STDC__
11714 # include <limits.h>
11715 #else
11716 # include <assert.h>
11717 #endif
11718                      Syntax error
11719 _ACEOF
11720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11721   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11722   ac_status=$?
11723   grep -v '^ *+' conftest.er1 >conftest.err
11724   rm -f conftest.er1
11725   cat conftest.err >&5
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } >/dev/null; then
11728   if test -s conftest.err; then
11729     ac_cpp_err=$ac_c_preproc_warn_flag
11730     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11731   else
11732     ac_cpp_err=
11733   fi
11734 else
11735   ac_cpp_err=yes
11736 fi
11737 if test -z "$ac_cpp_err"; then
11738   :
11739 else
11740   echo "$as_me: failed program was:" >&5
11741 sed 's/^/| /' conftest.$ac_ext >&5
11742
11743   # Broken: fails on valid input.
11744 continue
11745 fi
11746 rm -f conftest.err conftest.$ac_ext
11747
11748   # OK, works on sane cases.  Now check whether non-existent headers
11749   # can be detected and how.
11750   cat >conftest.$ac_ext <<_ACEOF
11751 /* confdefs.h.  */
11752 _ACEOF
11753 cat confdefs.h >>conftest.$ac_ext
11754 cat >>conftest.$ac_ext <<_ACEOF
11755 /* end confdefs.h.  */
11756 #include <ac_nonexistent.h>
11757 _ACEOF
11758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11759   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } >/dev/null; then
11766   if test -s conftest.err; then
11767     ac_cpp_err=$ac_c_preproc_warn_flag
11768     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11769   else
11770     ac_cpp_err=
11771   fi
11772 else
11773   ac_cpp_err=yes
11774 fi
11775 if test -z "$ac_cpp_err"; then
11776   # Broken: success on invalid input.
11777 continue
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782   # Passes both tests.
11783 ac_preproc_ok=:
11784 break
11785 fi
11786 rm -f conftest.err conftest.$ac_ext
11787
11788 done
11789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11790 rm -f conftest.err conftest.$ac_ext
11791 if $ac_preproc_ok; then
11792   :
11793 else
11794   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11795 See \`config.log' for more details." >&5
11796 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11797 See \`config.log' for more details." >&2;}
11798    { (exit 1); exit 1; }; }
11799 fi
11800
11801 ac_ext=c
11802 ac_cpp='$CPP $CPPFLAGS'
11803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11806
11807
11808 case $host_os in
11809   *mingw32* ) ac_cv_mingw32=yes ;;
11810   *cygwin* ) ac_cv_cygwin=yes ;;
11811 esac
11812
11813
11814
11815
11816 cat >>confdefs.h <<_ACEOF
11817 #define EXEEXT "${EXEEXT}"
11818 _ACEOF
11819
11820
11821 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11822 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11823 if test "${ac_cv_lib_be_be_app+set}" = set; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   ac_check_lib_save_LIBS=$LIBS
11827 LIBS="-lbe -lroot -lnet $LIBS"
11828 cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834
11835 /* Override any gcc2 internal prototype to avoid an error.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 #endif
11839 /* We use char because int might match the return type of a gcc2
11840    builtin and then its argument prototype would still apply.  */
11841 char be_app ();
11842 int
11843 main ()
11844 {
11845 be_app ();
11846   ;
11847   return 0;
11848 }
11849 _ACEOF
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852   (eval $ac_link) 2>conftest.er1
11853   ac_status=$?
11854   grep -v '^ *+' conftest.er1 >conftest.err
11855   rm -f conftest.er1
11856   cat conftest.err >&5
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); } &&
11859          { ac_try='test -z "$ac_c_werror_flag"
11860                          || test ! -s conftest.err'
11861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862   (eval $ac_try) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); }; } &&
11866          { ac_try='test -s conftest$ac_exeext'
11867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868   (eval $ac_try) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; }; then
11872   ac_cv_lib_be_be_app=yes
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 ac_cv_lib_be_be_app=no
11878 fi
11879 rm -f conftest.err conftest.$ac_objext \
11880       conftest$ac_exeext conftest.$ac_ext
11881 LIBS=$ac_check_lib_save_LIBS
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11884 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11885 if test $ac_cv_lib_be_be_app = yes; then
11886   LIBS="$LIBS -lbe -lroot -lnet"
11887 else
11888   :
11889 fi
11890
11891
11892 ac_ext=c
11893 ac_cpp='$CPP $CPPFLAGS'
11894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11897 if test -n "$ac_tool_prefix"; then
11898   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11899 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11900 echo "$as_me:$LINENO: checking for $ac_word" >&5
11901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11902 if test "${ac_cv_prog_CC+set}" = set; then
11903   echo $ECHO_N "(cached) $ECHO_C" >&6
11904 else
11905   if test -n "$CC"; then
11906   ac_cv_prog_CC="$CC" # Let the user override the test.
11907 else
11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909 for as_dir in $PATH
11910 do
11911   IFS=$as_save_IFS
11912   test -z "$as_dir" && as_dir=.
11913   for ac_exec_ext in '' $ac_executable_extensions; do
11914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917     break 2
11918   fi
11919 done
11920 done
11921
11922 fi
11923 fi
11924 CC=$ac_cv_prog_CC
11925 if test -n "$CC"; then
11926   echo "$as_me:$LINENO: result: $CC" >&5
11927 echo "${ECHO_T}$CC" >&6
11928 else
11929   echo "$as_me:$LINENO: result: no" >&5
11930 echo "${ECHO_T}no" >&6
11931 fi
11932
11933 fi
11934 if test -z "$ac_cv_prog_CC"; then
11935   ac_ct_CC=$CC
11936   # Extract the first word of "gcc", so it can be a program name with args.
11937 set dummy gcc; ac_word=$2
11938 echo "$as_me:$LINENO: checking for $ac_word" >&5
11939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11940 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11941   echo $ECHO_N "(cached) $ECHO_C" >&6
11942 else
11943   if test -n "$ac_ct_CC"; then
11944   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11945 else
11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947 for as_dir in $PATH
11948 do
11949   IFS=$as_save_IFS
11950   test -z "$as_dir" && as_dir=.
11951   for ac_exec_ext in '' $ac_executable_extensions; do
11952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11953     ac_cv_prog_ac_ct_CC="gcc"
11954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11955     break 2
11956   fi
11957 done
11958 done
11959
11960 fi
11961 fi
11962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11963 if test -n "$ac_ct_CC"; then
11964   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11965 echo "${ECHO_T}$ac_ct_CC" >&6
11966 else
11967   echo "$as_me:$LINENO: result: no" >&5
11968 echo "${ECHO_T}no" >&6
11969 fi
11970
11971   CC=$ac_ct_CC
11972 else
11973   CC="$ac_cv_prog_CC"
11974 fi
11975
11976 if test -z "$CC"; then
11977   if test -n "$ac_tool_prefix"; then
11978   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11979 set dummy ${ac_tool_prefix}cc; ac_word=$2
11980 echo "$as_me:$LINENO: checking for $ac_word" >&5
11981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11982 if test "${ac_cv_prog_CC+set}" = set; then
11983   echo $ECHO_N "(cached) $ECHO_C" >&6
11984 else
11985   if test -n "$CC"; then
11986   ac_cv_prog_CC="$CC" # Let the user override the test.
11987 else
11988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993   for ac_exec_ext in '' $ac_executable_extensions; do
11994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995     ac_cv_prog_CC="${ac_tool_prefix}cc"
11996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000 done
12001
12002 fi
12003 fi
12004 CC=$ac_cv_prog_CC
12005 if test -n "$CC"; then
12006   echo "$as_me:$LINENO: result: $CC" >&5
12007 echo "${ECHO_T}$CC" >&6
12008 else
12009   echo "$as_me:$LINENO: result: no" >&5
12010 echo "${ECHO_T}no" >&6
12011 fi
12012
12013 fi
12014 if test -z "$ac_cv_prog_CC"; then
12015   ac_ct_CC=$CC
12016   # Extract the first word of "cc", so it can be a program name with args.
12017 set dummy cc; ac_word=$2
12018 echo "$as_me:$LINENO: checking for $ac_word" >&5
12019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12021   echo $ECHO_N "(cached) $ECHO_C" >&6
12022 else
12023   if test -n "$ac_ct_CC"; then
12024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12025 else
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12028 do
12029   IFS=$as_save_IFS
12030   test -z "$as_dir" && as_dir=.
12031   for ac_exec_ext in '' $ac_executable_extensions; do
12032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033     ac_cv_prog_ac_ct_CC="cc"
12034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12035     break 2
12036   fi
12037 done
12038 done
12039
12040 fi
12041 fi
12042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12043 if test -n "$ac_ct_CC"; then
12044   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12045 echo "${ECHO_T}$ac_ct_CC" >&6
12046 else
12047   echo "$as_me:$LINENO: result: no" >&5
12048 echo "${ECHO_T}no" >&6
12049 fi
12050
12051   CC=$ac_ct_CC
12052 else
12053   CC="$ac_cv_prog_CC"
12054 fi
12055
12056 fi
12057 if test -z "$CC"; then
12058   # Extract the first word of "cc", so it can be a program name with args.
12059 set dummy cc; ac_word=$2
12060 echo "$as_me:$LINENO: checking for $ac_word" >&5
12061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12062 if test "${ac_cv_prog_CC+set}" = set; then
12063   echo $ECHO_N "(cached) $ECHO_C" >&6
12064 else
12065   if test -n "$CC"; then
12066   ac_cv_prog_CC="$CC" # Let the user override the test.
12067 else
12068   ac_prog_rejected=no
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070 for as_dir in $PATH
12071 do
12072   IFS=$as_save_IFS
12073   test -z "$as_dir" && as_dir=.
12074   for ac_exec_ext in '' $ac_executable_extensions; do
12075   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12076     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12077        ac_prog_rejected=yes
12078        continue
12079      fi
12080     ac_cv_prog_CC="cc"
12081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12082     break 2
12083   fi
12084 done
12085 done
12086
12087 if test $ac_prog_rejected = yes; then
12088   # We found a bogon in the path, so make sure we never use it.
12089   set dummy $ac_cv_prog_CC
12090   shift
12091   if test $# != 0; then
12092     # We chose a different compiler from the bogus one.
12093     # However, it has the same basename, so the bogon will be chosen
12094     # first if we set CC to just the basename; use the full file name.
12095     shift
12096     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12097   fi
12098 fi
12099 fi
12100 fi
12101 CC=$ac_cv_prog_CC
12102 if test -n "$CC"; then
12103   echo "$as_me:$LINENO: result: $CC" >&5
12104 echo "${ECHO_T}$CC" >&6
12105 else
12106   echo "$as_me:$LINENO: result: no" >&5
12107 echo "${ECHO_T}no" >&6
12108 fi
12109
12110 fi
12111 if test -z "$CC"; then
12112   if test -n "$ac_tool_prefix"; then
12113   for ac_prog in cl
12114   do
12115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12117 echo "$as_me:$LINENO: checking for $ac_word" >&5
12118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12119 if test "${ac_cv_prog_CC+set}" = set; then
12120   echo $ECHO_N "(cached) $ECHO_C" >&6
12121 else
12122   if test -n "$CC"; then
12123   ac_cv_prog_CC="$CC" # Let the user override the test.
12124 else
12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH
12127 do
12128   IFS=$as_save_IFS
12129   test -z "$as_dir" && as_dir=.
12130   for ac_exec_ext in '' $ac_executable_extensions; do
12131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12134     break 2
12135   fi
12136 done
12137 done
12138
12139 fi
12140 fi
12141 CC=$ac_cv_prog_CC
12142 if test -n "$CC"; then
12143   echo "$as_me:$LINENO: result: $CC" >&5
12144 echo "${ECHO_T}$CC" >&6
12145 else
12146   echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6
12148 fi
12149
12150     test -n "$CC" && break
12151   done
12152 fi
12153 if test -z "$CC"; then
12154   ac_ct_CC=$CC
12155   for ac_prog in cl
12156 do
12157   # Extract the first word of "$ac_prog", so it can be a program name with args.
12158 set dummy $ac_prog; ac_word=$2
12159 echo "$as_me:$LINENO: checking for $ac_word" >&5
12160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12161 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12162   echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164   if test -n "$ac_ct_CC"; then
12165   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12166 else
12167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168 for as_dir in $PATH
12169 do
12170   IFS=$as_save_IFS
12171   test -z "$as_dir" && as_dir=.
12172   for ac_exec_ext in '' $ac_executable_extensions; do
12173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174     ac_cv_prog_ac_ct_CC="$ac_prog"
12175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12176     break 2
12177   fi
12178 done
12179 done
12180
12181 fi
12182 fi
12183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12184 if test -n "$ac_ct_CC"; then
12185   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12186 echo "${ECHO_T}$ac_ct_CC" >&6
12187 else
12188   echo "$as_me:$LINENO: result: no" >&5
12189 echo "${ECHO_T}no" >&6
12190 fi
12191
12192   test -n "$ac_ct_CC" && break
12193 done
12194
12195   CC=$ac_ct_CC
12196 fi
12197
12198 fi
12199
12200
12201 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12202 See \`config.log' for more details." >&5
12203 echo "$as_me: error: no acceptable C compiler found in \$PATH
12204 See \`config.log' for more details." >&2;}
12205    { (exit 1); exit 1; }; }
12206
12207 # Provide some information about the compiler.
12208 echo "$as_me:$LINENO:" \
12209      "checking for C compiler version" >&5
12210 ac_compiler=`set X $ac_compile; echo $2`
12211 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12212   (eval $ac_compiler --version </dev/null >&5) 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }
12216 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12217   (eval $ac_compiler -v </dev/null >&5) 2>&5
12218   ac_status=$?
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); }
12221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12222   (eval $ac_compiler -V </dev/null >&5) 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }
12226
12227 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12228 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12229 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12230   echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232   cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238
12239 int
12240 main ()
12241 {
12242 #ifndef __GNUC__
12243        choke me
12244 #endif
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252   (eval $ac_compile) 2>conftest.er1
12253   ac_status=$?
12254   grep -v '^ *+' conftest.er1 >conftest.err
12255   rm -f conftest.er1
12256   cat conftest.err >&5
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } &&
12259          { ac_try='test -z "$ac_c_werror_flag"
12260                          || test ! -s conftest.err'
12261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12262   (eval $ac_try) 2>&5
12263   ac_status=$?
12264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265   (exit $ac_status); }; } &&
12266          { ac_try='test -s conftest.$ac_objext'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; }; then
12272   ac_compiler_gnu=yes
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 ac_compiler_gnu=no
12278 fi
12279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12280 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12281
12282 fi
12283 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12284 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12285 GCC=`test $ac_compiler_gnu = yes && echo yes`
12286 ac_test_CFLAGS=${CFLAGS+set}
12287 ac_save_CFLAGS=$CFLAGS
12288 CFLAGS="-g"
12289 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12290 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12291 if test "${ac_cv_prog_cc_g+set}" = set; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 else
12294   cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300
12301 int
12302 main ()
12303 {
12304
12305   ;
12306   return 0;
12307 }
12308 _ACEOF
12309 rm -f conftest.$ac_objext
12310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12311   (eval $ac_compile) 2>conftest.er1
12312   ac_status=$?
12313   grep -v '^ *+' conftest.er1 >conftest.err
12314   rm -f conftest.er1
12315   cat conftest.err >&5
12316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317   (exit $ac_status); } &&
12318          { ac_try='test -z "$ac_c_werror_flag"
12319                          || test ! -s conftest.err'
12320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321   (eval $ac_try) 2>&5
12322   ac_status=$?
12323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324   (exit $ac_status); }; } &&
12325          { ac_try='test -s conftest.$ac_objext'
12326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327   (eval $ac_try) 2>&5
12328   ac_status=$?
12329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330   (exit $ac_status); }; }; then
12331   ac_cv_prog_cc_g=yes
12332 else
12333   echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_cv_prog_cc_g=no
12337 fi
12338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12339 fi
12340 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12341 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12342 if test "$ac_test_CFLAGS" = set; then
12343   CFLAGS=$ac_save_CFLAGS
12344 elif test $ac_cv_prog_cc_g = yes; then
12345   if test "$GCC" = yes; then
12346     CFLAGS="-g -O2"
12347   else
12348     CFLAGS="-g"
12349   fi
12350 else
12351   if test "$GCC" = yes; then
12352     CFLAGS="-O2"
12353   else
12354     CFLAGS=
12355   fi
12356 fi
12357 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12358 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12359 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   ac_cv_prog_cc_stdc=no
12363 ac_save_CC=$CC
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370 #include <stdarg.h>
12371 #include <stdio.h>
12372 #include <sys/types.h>
12373 #include <sys/stat.h>
12374 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12375 struct buf { int x; };
12376 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12377 static char *e (p, i)
12378      char **p;
12379      int i;
12380 {
12381   return p[i];
12382 }
12383 static char *f (char * (*g) (char **, int), char **p, ...)
12384 {
12385   char *s;
12386   va_list v;
12387   va_start (v,p);
12388   s = g (p, va_arg (v,int));
12389   va_end (v);
12390   return s;
12391 }
12392
12393 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12394    function prototypes and stuff, but not '\xHH' hex character constants.
12395    These don't provoke an error unfortunately, instead are silently treated
12396    as 'x'.  The following induces an error, until -std1 is added to get
12397    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12398    array size at least.  It's necessary to write '\x00'==0 to get something
12399    that's true only with -std1.  */
12400 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12401
12402 int test (int i, double x);
12403 struct s1 {int (*f) (int a);};
12404 struct s2 {int (*f) (double a);};
12405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12406 int argc;
12407 char **argv;
12408 int
12409 main ()
12410 {
12411 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 # Don't try gcc -ansi; that turns off useful extensions and
12417 # breaks some systems' header files.
12418 # AIX                   -qlanglvl=ansi
12419 # Ultrix and OSF/1      -std1
12420 # HP-UX 10.20 and later -Ae
12421 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12422 # SVR4                  -Xc -D__EXTENSIONS__
12423 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12424 do
12425   CC="$ac_save_CC $ac_arg"
12426   rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428   (eval $ac_compile) 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } &&
12435          { ac_try='test -z "$ac_c_werror_flag"
12436                          || test ! -s conftest.err'
12437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12438   (eval $ac_try) 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; } &&
12442          { ac_try='test -s conftest.$ac_objext'
12443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12444   (eval $ac_try) 2>&5
12445   ac_status=$?
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); }; }; then
12448   ac_cv_prog_cc_stdc=$ac_arg
12449 break
12450 else
12451   echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12453
12454 fi
12455 rm -f conftest.err conftest.$ac_objext
12456 done
12457 rm -f conftest.$ac_ext conftest.$ac_objext
12458 CC=$ac_save_CC
12459
12460 fi
12461
12462 case "x$ac_cv_prog_cc_stdc" in
12463   x|xno)
12464     echo "$as_me:$LINENO: result: none needed" >&5
12465 echo "${ECHO_T}none needed" >&6 ;;
12466   *)
12467     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12468 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12469     CC="$CC $ac_cv_prog_cc_stdc" ;;
12470 esac
12471
12472 # Some people use a C++ compiler to compile C.  Since we use `exit',
12473 # in C++ we need to declare it.  In case someone uses the same compiler
12474 # for both compiling C and C++ we need to have the C++ compiler decide
12475 # the declaration of exit, since it's the most demanding environment.
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #ifndef __cplusplus
12478   choke me
12479 #endif
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483   (eval $ac_compile) 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_c_werror_flag"
12491                          || test ! -s conftest.err'
12492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493   (eval $ac_try) 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; } &&
12497          { ac_try='test -s conftest.$ac_objext'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503   for ac_declaration in \
12504    '' \
12505    'extern "C" void std::exit (int) throw (); using std::exit;' \
12506    'extern "C" void std::exit (int); using std::exit;' \
12507    'extern "C" void exit (int) throw ();' \
12508    'extern "C" void exit (int);' \
12509    'void exit (int);'
12510 do
12511   cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h.  */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h.  */
12517 $ac_declaration
12518 #include <stdlib.h>
12519 int
12520 main ()
12521 {
12522 exit (42);
12523   ;
12524   return 0;
12525 }
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>conftest.er1
12530   ac_status=$?
12531   grep -v '^ *+' conftest.er1 >conftest.err
12532   rm -f conftest.er1
12533   cat conftest.err >&5
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); } &&
12536          { ac_try='test -z "$ac_c_werror_flag"
12537                          || test ! -s conftest.err'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   :
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 continue
12555 fi
12556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12557   cat >conftest.$ac_ext <<_ACEOF
12558 /* confdefs.h.  */
12559 _ACEOF
12560 cat confdefs.h >>conftest.$ac_ext
12561 cat >>conftest.$ac_ext <<_ACEOF
12562 /* end confdefs.h.  */
12563 $ac_declaration
12564 int
12565 main ()
12566 {
12567 exit (42);
12568   ;
12569   return 0;
12570 }
12571 _ACEOF
12572 rm -f conftest.$ac_objext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12574   (eval $ac_compile) 2>conftest.er1
12575   ac_status=$?
12576   grep -v '^ *+' conftest.er1 >conftest.err
12577   rm -f conftest.er1
12578   cat conftest.err >&5
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); } &&
12581          { ac_try='test -z "$ac_c_werror_flag"
12582                          || test ! -s conftest.err'
12583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584   (eval $ac_try) 2>&5
12585   ac_status=$?
12586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587   (exit $ac_status); }; } &&
12588          { ac_try='test -s conftest.$ac_objext'
12589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12590   (eval $ac_try) 2>&5
12591   ac_status=$?
12592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593   (exit $ac_status); }; }; then
12594   break
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 fi
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601 done
12602 rm -f conftest*
12603 if test -n "$ac_declaration"; then
12604   echo '#ifdef __cplusplus' >>confdefs.h
12605   echo $ac_declaration      >>confdefs.h
12606   echo '#endif'             >>confdefs.h
12607 fi
12608
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613 fi
12614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12615 ac_ext=c
12616 ac_cpp='$CPP $CPPFLAGS'
12617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12620
12621 depcc="$CC"   am_compiler_list=
12622
12623 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12624 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12625 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12629   # We make a subdir and do the tests there.  Otherwise we can end up
12630   # making bogus files that we don't know about and never remove.  For
12631   # instance it was reported that on HP-UX the gcc test will end up
12632   # making a dummy file named `D' -- because `-MD' means `put the output
12633   # in D'.
12634   mkdir conftest.dir
12635   # Copy depcomp to subdir because otherwise we won't find it if we're
12636   # using a relative directory.
12637   cp "$am_depcomp" conftest.dir
12638   cd conftest.dir
12639   # We will build objects and dependencies in a subdirectory because
12640   # it helps to detect inapplicable dependency modes.  For instance
12641   # both Tru64's cc and ICC support -MD to output dependencies as a
12642   # side effect of compilation, but ICC will put the dependencies in
12643   # the current directory while Tru64 will put them in the object
12644   # directory.
12645   mkdir sub
12646
12647   am_cv_CC_dependencies_compiler_type=none
12648   if test "$am_compiler_list" = ""; then
12649      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12650   fi
12651   for depmode in $am_compiler_list; do
12652     # Setup a source with many dependencies, because some compilers
12653     # like to wrap large dependency lists on column 80 (with \), and
12654     # we should not choose a depcomp mode which is confused by this.
12655     #
12656     # We need to recreate these files for each test, as the compiler may
12657     # overwrite some of them when testing with obscure command lines.
12658     # This happens at least with the AIX C compiler.
12659     : > sub/conftest.c
12660     for i in 1 2 3 4 5 6; do
12661       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12662       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12663       # Solaris 8's {/usr,}/bin/sh.
12664       touch sub/conftst$i.h
12665     done
12666     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12667
12668     case $depmode in
12669     nosideeffect)
12670       # after this tag, mechanisms are not by side-effect, so they'll
12671       # only be used when explicitly requested
12672       if test "x$enable_dependency_tracking" = xyes; then
12673         continue
12674       else
12675         break
12676       fi
12677       ;;
12678     none) break ;;
12679     esac
12680     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12681     # mode.  It turns out that the SunPro C++ compiler does not properly
12682     # handle `-M -o', and we need to detect this.
12683     if depmode=$depmode \
12684        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12685        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12686        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12687          >/dev/null 2>conftest.err &&
12688        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12689        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12690        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12691       # icc doesn't choke on unknown options, it will just issue warnings
12692       # or remarks (even with -Werror).  So we grep stderr for any message
12693       # that says an option was ignored or not supported.
12694       # When given -MP, icc 7.0 and 7.1 complain thusly:
12695       #   icc: Command line warning: ignoring option '-M'; no argument required
12696       # The diagnosis changed in icc 8.0:
12697       #   icc: Command line remark: option '-MP' not supported
12698       if (grep 'ignoring option' conftest.err ||
12699           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12700         am_cv_CC_dependencies_compiler_type=$depmode
12701         break
12702       fi
12703     fi
12704   done
12705
12706   cd ..
12707   rm -rf conftest.dir
12708 else
12709   am_cv_CC_dependencies_compiler_type=none
12710 fi
12711
12712 fi
12713 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12714 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12715 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12716
12717
12718
12719 if
12720   test "x$enable_dependency_tracking" != xno \
12721   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12722   am__fastdepCC_TRUE=
12723   am__fastdepCC_FALSE='#'
12724 else
12725   am__fastdepCC_TRUE='#'
12726   am__fastdepCC_FALSE=
12727 fi
12728
12729
12730 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12731         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12732 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12733    { (exit 1); exit 1; }; }
12734 fi
12735
12736 # test for make depend flag
12737 OL_MKDEP=
12738 OL_MKDEP_FLAGS=
12739 if test -z "${MKDEP}"; then
12740         OL_MKDEP="${CC-cc}"
12741         if test -z "${MKDEP_FLAGS}"; then
12742                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12743 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12744 if test "${ol_cv_mkdep+set}" = set; then
12745   echo $ECHO_N "(cached) $ECHO_C" >&6
12746 else
12747
12748                         ol_cv_mkdep=no
12749                         for flag in "-M" "-xM"; do
12750                                 cat > conftest.c <<EOF
12751  noCode;
12752 EOF
12753                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; } \
12759                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12760                                 then
12761                                         if test ! -f conftest."${ac_object}" ; then
12762                                                 ol_cv_mkdep=$flag
12763                                                 OL_MKDEP_FLAGS="$flag"
12764                                                 break
12765                                         fi
12766                                 fi
12767                         done
12768                         rm -f conftest*
12769
12770 fi
12771 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12772 echo "${ECHO_T}$ol_cv_mkdep" >&6
12773         else
12774                 cc_cv_mkdep=yes
12775                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12776         fi
12777 else
12778         cc_cv_mkdep=yes
12779         OL_MKDEP="${MKDEP}"
12780         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12781 fi
12782
12783
12784
12785 if test "${ol_cv_mkdep}" = no ; then
12786         # this will soon become an error
12787         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12788 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12789 fi
12790
12791 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12792 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12793 if test "${ac_cv_lib_s_afopen+set}" = set; then
12794   echo $ECHO_N "(cached) $ECHO_C" >&6
12795 else
12796   ac_check_lib_save_LIBS=$LIBS
12797 LIBS="-ls  $LIBS"
12798 cat >conftest.$ac_ext <<_ACEOF
12799 /* confdefs.h.  */
12800 _ACEOF
12801 cat confdefs.h >>conftest.$ac_ext
12802 cat >>conftest.$ac_ext <<_ACEOF
12803 /* end confdefs.h.  */
12804
12805 /* Override any gcc2 internal prototype to avoid an error.  */
12806 #ifdef __cplusplus
12807 extern "C"
12808 #endif
12809 /* We use char because int might match the return type of a gcc2
12810    builtin and then its argument prototype would still apply.  */
12811 char afopen ();
12812 int
12813 main ()
12814 {
12815 afopen ();
12816   ;
12817   return 0;
12818 }
12819 _ACEOF
12820 rm -f conftest.$ac_objext conftest$ac_exeext
12821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12822   (eval $ac_link) 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); } &&
12829          { ac_try='test -z "$ac_c_werror_flag"
12830                          || test ! -s conftest.err'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; } &&
12836          { ac_try='test -s conftest$ac_exeext'
12837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838   (eval $ac_try) 2>&5
12839   ac_status=$?
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); }; }; then
12842   ac_cv_lib_s_afopen=yes
12843 else
12844   echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 ac_cv_lib_s_afopen=no
12848 fi
12849 rm -f conftest.err conftest.$ac_objext \
12850       conftest$ac_exeext conftest.$ac_ext
12851 LIBS=$ac_check_lib_save_LIBS
12852 fi
12853 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12854 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12855 if test $ac_cv_lib_s_afopen = yes; then
12856
12857         AUTH_LIBS=-ls
12858
12859 cat >>confdefs.h <<\_ACEOF
12860 #define HAVE_AIX_SECURITY 1
12861 _ACEOF
12862
12863
12864 fi
12865
12866
12867 case "$target" in
12868 *-ibm-openedition)
12869         ac_cv_func_getopt=no
12870
12871 cat >>confdefs.h <<\_ACEOF
12872 #define BOTH_STRINGS_H 1
12873 _ACEOF
12874
12875         ;;
12876 esac
12877
12878 ol_link_modules=no
12879 WITH_MODULES_ENABLED=no
12880 if test $ol_enable_modules != no ; then
12881
12882 for ac_header in ltdl.h
12883 do
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886   echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889   echo $ECHO_N "(cached) $ECHO_C" >&6
12890 fi
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893 else
12894   # Is the header compilable?
12895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 $ac_includes_default
12904 #include <$ac_header>
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>conftest.er1
12909   ac_status=$?
12910   grep -v '^ *+' conftest.er1 >conftest.err
12911   rm -f conftest.er1
12912   cat conftest.err >&5
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -z "$ac_c_werror_flag"
12916                          || test ! -s conftest.err'
12917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918   (eval $ac_try) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; } &&
12922          { ac_try='test -s conftest.$ac_objext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_header_compiler=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ac_header_compiler=no
12934 fi
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12938
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h.  */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h.  */
12948 #include <$ac_header>
12949 _ACEOF
12950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } >/dev/null; then
12958   if test -s conftest.err; then
12959     ac_cpp_err=$ac_c_preproc_warn_flag
12960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12961   else
12962     ac_cpp_err=
12963   fi
12964 else
12965   ac_cpp_err=yes
12966 fi
12967 if test -z "$ac_cpp_err"; then
12968   ac_header_preproc=yes
12969 else
12970   echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12972
12973   ac_header_preproc=no
12974 fi
12975 rm -f conftest.err conftest.$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12978
12979 # So?  What about this header?
12980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12981   yes:no: )
12982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12986     ac_header_preproc=yes
12987     ;;
12988   no:yes:* )
12989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13001     (
13002       cat <<\_ASBOX
13003 ## --------------------------------------------- ##
13004 ## Report this to <http://www.openldap.org/its/> ##
13005 ## --------------------------------------------- ##
13006 _ASBOX
13007     ) |
13008       sed "s/^/$as_me: WARNING:     /" >&2
13009     ;;
13010 esac
13011 echo "$as_me:$LINENO: checking for $ac_header" >&5
13012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   eval "$as_ac_Header=\$ac_header_preproc"
13017 fi
13018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13020
13021 fi
13022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13023   cat >>confdefs.h <<_ACEOF
13024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13025 _ACEOF
13026
13027 fi
13028
13029 done
13030
13031
13032         if test $ac_cv_header_ltdl_h = no ; then
13033                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13034 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13035    { (exit 1); exit 1; }; }
13036         fi
13037
13038         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13039 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13040 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   ac_check_lib_save_LIBS=$LIBS
13044 LIBS="-lltdl  $LIBS"
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h.  */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h.  */
13051
13052 /* Override any gcc2 internal prototype to avoid an error.  */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 /* We use char because int might match the return type of a gcc2
13057    builtin and then its argument prototype would still apply.  */
13058 char lt_dlinit ();
13059 int
13060 main ()
13061 {
13062 lt_dlinit ();
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13069   (eval $ac_link) 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag"
13077                          || test ! -s conftest.err'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; } &&
13083          { ac_try='test -s conftest$ac_exeext'
13084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085   (eval $ac_try) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; }; then
13089   ac_cv_lib_ltdl_lt_dlinit=yes
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094 ac_cv_lib_ltdl_lt_dlinit=no
13095 fi
13096 rm -f conftest.err conftest.$ac_objext \
13097       conftest$ac_exeext conftest.$ac_ext
13098 LIBS=$ac_check_lib_save_LIBS
13099 fi
13100 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13101 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13102 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13103
13104                 MODULES_LIBS=-lltdl
13105
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_LIBLTDL 1
13108 _ACEOF
13109
13110
13111 fi
13112
13113
13114         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13115                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13116 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13117    { (exit 1); exit 1; }; }
13118         fi
13119         ol_link_modules=yes
13120         WITH_MODULES_ENABLED=yes
13121
13122 else
13123         for i in $Backends; do
13124                 eval "ol_tmp=\$ol_enable_$i"
13125                 if test $ol_tmp = mod ; then
13126                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13127 echo "$as_me: WARNING: building static $i backend" >&2;}
13128                         eval "ol_enable_$i=yes"
13129                 fi
13130         done
13131         for i in $Overlays; do
13132                 eval "ol_tmp=\$ol_enable_$i"
13133                 if test $ol_tmp = mod ; then
13134                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13135 echo "$as_me: WARNING: building static $i overlay" >&2;}
13136                         eval "ol_enable_$i=yes"
13137                 fi
13138         done
13139 fi
13140
13141 # test for EBCDIC
13142 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13143 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13144 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13145   echo $ECHO_N "(cached) $ECHO_C" >&6
13146 else
13147
13148         cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154
13155 #if !('M' == 0xd4)
13156 #include <__ASCII__/generate_error.h>
13157 #endif
13158
13159 _ACEOF
13160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13161   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13162   ac_status=$?
13163   grep -v '^ *+' conftest.er1 >conftest.err
13164   rm -f conftest.er1
13165   cat conftest.err >&5
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); } >/dev/null; then
13168   if test -s conftest.err; then
13169     ac_cpp_err=$ac_c_preproc_warn_flag
13170     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13171   else
13172     ac_cpp_err=
13173   fi
13174 else
13175   ac_cpp_err=yes
13176 fi
13177 if test -z "$ac_cpp_err"; then
13178   ol_cv_cpp_ebcdic=yes
13179 else
13180   echo "$as_me: failed program was:" >&5
13181 sed 's/^/| /' conftest.$ac_ext >&5
13182
13183   ol_cv_cpp_ebcdic=no
13184 fi
13185 rm -f conftest.err conftest.$ac_ext
13186 fi
13187 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13188 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13189 if test $ol_cv_cpp_ebcdic = yes ; then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_EBCDIC 1
13193 _ACEOF
13194
13195 fi
13196
13197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13199 if test "${ol_cv_header_stdc+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 #include <stdlib.h>
13209 #include <stdarg.h>
13210 #include <string.h>
13211 #include <float.h>
13212 _ACEOF
13213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13214   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13215   ac_status=$?
13216   grep -v '^ *+' conftest.er1 >conftest.err
13217   rm -f conftest.er1
13218   cat conftest.err >&5
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); } >/dev/null; then
13221   if test -s conftest.err; then
13222     ac_cpp_err=$ac_c_preproc_warn_flag
13223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13224   else
13225     ac_cpp_err=
13226   fi
13227 else
13228   ac_cpp_err=yes
13229 fi
13230 if test -z "$ac_cpp_err"; then
13231   ol_cv_header_stdc=yes
13232 else
13233   echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236   ol_cv_header_stdc=no
13237 fi
13238 rm -f conftest.err conftest.$ac_ext
13239
13240 if test $ol_cv_header_stdc = yes; then
13241   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 #include <string.h>
13249
13250 _ACEOF
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252   $EGREP "memchr" >/dev/null 2>&1; then
13253   :
13254 else
13255   ol_cv_header_stdc=no
13256 fi
13257 rm -f conftest*
13258
13259 fi
13260
13261 if test $ol_cv_header_stdc = yes; then
13262   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269 #include <stdlib.h>
13270
13271 _ACEOF
13272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13273   $EGREP "free" >/dev/null 2>&1; then
13274   :
13275 else
13276   ol_cv_header_stdc=no
13277 fi
13278 rm -f conftest*
13279
13280 fi
13281
13282 if test $ol_cv_header_stdc = yes; then
13283   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13284 if test "$cross_compiling" = yes; then
13285   :
13286 else
13287   cat >conftest.$ac_ext <<_ACEOF
13288 /* confdefs.h.  */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h.  */
13293 #include <ctype.h>
13294 #ifndef HAVE_EBCDIC
13295 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13296 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13297 #else
13298 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13299                 || ('j' <= (c) && (c) <= 'r') \
13300                 || ('s' <= (c) && (c) <= 'z'))
13301 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13302 #endif
13303 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13304 int main () { int i; for (i = 0; i < 256; i++)
13305 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13306 exit (0); }
13307
13308 _ACEOF
13309 rm -f conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311   (eval $ac_link) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316   (eval $ac_try) 2>&5
13317   ac_status=$?
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); }; }; then
13320   :
13321 else
13322   echo "$as_me: program exited with status $ac_status" >&5
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ( exit $ac_status )
13327 ol_cv_header_stdc=no
13328 fi
13329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13330 fi
13331 fi
13332 fi
13333 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13334 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13335 if test $ol_cv_header_stdc = yes; then
13336   cat >>confdefs.h <<\_ACEOF
13337 #define STDC_HEADERS 1
13338 _ACEOF
13339
13340 fi
13341 ac_cv_header_stdc=disable
13342
13343
13344 if test $ol_cv_header_stdc != yes; then
13345         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13346 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13347 fi
13348
13349
13350
13351
13352
13353
13354 ac_header_dirent=no
13355 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13356   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13357 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13358 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h.  */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h.  */
13368 #include <sys/types.h>
13369 #include <$ac_hdr>
13370
13371 int
13372 main ()
13373 {
13374 if ((DIR *) 0)
13375 return 0;
13376   ;
13377   return 0;
13378 }
13379 _ACEOF
13380 rm -f conftest.$ac_objext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13382   (eval $ac_compile) 2>conftest.er1
13383   ac_status=$?
13384   grep -v '^ *+' conftest.er1 >conftest.err
13385   rm -f conftest.er1
13386   cat conftest.err >&5
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); } &&
13389          { ac_try='test -z "$ac_c_werror_flag"
13390                          || test ! -s conftest.err'
13391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392   (eval $ac_try) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; } &&
13396          { ac_try='test -s conftest.$ac_objext'
13397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398   (eval $ac_try) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; }; then
13402   eval "$as_ac_Header=yes"
13403 else
13404   echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 eval "$as_ac_Header=no"
13408 fi
13409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13414   cat >>confdefs.h <<_ACEOF
13415 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13416 _ACEOF
13417
13418 ac_header_dirent=$ac_hdr; break
13419 fi
13420
13421 done
13422 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13423 if test $ac_header_dirent = dirent.h; then
13424   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13425 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13426 if test "${ac_cv_search_opendir+set}" = set; then
13427   echo $ECHO_N "(cached) $ECHO_C" >&6
13428 else
13429   ac_func_search_save_LIBS=$LIBS
13430 ac_cv_search_opendir=no
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437
13438 /* Override any gcc2 internal prototype to avoid an error.  */
13439 #ifdef __cplusplus
13440 extern "C"
13441 #endif
13442 /* We use char because int might match the return type of a gcc2
13443    builtin and then its argument prototype would still apply.  */
13444 char opendir ();
13445 int
13446 main ()
13447 {
13448 opendir ();
13449   ;
13450   return 0;
13451 }
13452 _ACEOF
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455   (eval $ac_link) 2>conftest.er1
13456   ac_status=$?
13457   grep -v '^ *+' conftest.er1 >conftest.err
13458   rm -f conftest.er1
13459   cat conftest.err >&5
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); } &&
13462          { ac_try='test -z "$ac_c_werror_flag"
13463                          || test ! -s conftest.err'
13464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465   (eval $ac_try) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; } &&
13469          { ac_try='test -s conftest$ac_exeext'
13470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471   (eval $ac_try) 2>&5
13472   ac_status=$?
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); }; }; then
13475   ac_cv_search_opendir="none required"
13476 else
13477   echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480 fi
13481 rm -f conftest.err conftest.$ac_objext \
13482       conftest$ac_exeext conftest.$ac_ext
13483 if test "$ac_cv_search_opendir" = no; then
13484   for ac_lib in dir; do
13485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13486     cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492
13493 /* Override any gcc2 internal prototype to avoid an error.  */
13494 #ifdef __cplusplus
13495 extern "C"
13496 #endif
13497 /* We use char because int might match the return type of a gcc2
13498    builtin and then its argument prototype would still apply.  */
13499 char opendir ();
13500 int
13501 main ()
13502 {
13503 opendir ();
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 rm -f conftest.$ac_objext conftest$ac_exeext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13510   (eval $ac_link) 2>conftest.er1
13511   ac_status=$?
13512   grep -v '^ *+' conftest.er1 >conftest.err
13513   rm -f conftest.er1
13514   cat conftest.err >&5
13515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516   (exit $ac_status); } &&
13517          { ac_try='test -z "$ac_c_werror_flag"
13518                          || test ! -s conftest.err'
13519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520   (eval $ac_try) 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; } &&
13524          { ac_try='test -s conftest$ac_exeext'
13525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526   (eval $ac_try) 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   ac_cv_search_opendir="-l$ac_lib"
13531 break
13532 else
13533   echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 fi
13537 rm -f conftest.err conftest.$ac_objext \
13538       conftest$ac_exeext conftest.$ac_ext
13539   done
13540 fi
13541 LIBS=$ac_func_search_save_LIBS
13542 fi
13543 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13544 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13545 if test "$ac_cv_search_opendir" != no; then
13546   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13547
13548 fi
13549
13550 else
13551   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13552 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13553 if test "${ac_cv_search_opendir+set}" = set; then
13554   echo $ECHO_N "(cached) $ECHO_C" >&6
13555 else
13556   ac_func_search_save_LIBS=$LIBS
13557 ac_cv_search_opendir=no
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h.  */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h.  */
13564
13565 /* Override any gcc2 internal prototype to avoid an error.  */
13566 #ifdef __cplusplus
13567 extern "C"
13568 #endif
13569 /* We use char because int might match the return type of a gcc2
13570    builtin and then its argument prototype would still apply.  */
13571 char opendir ();
13572 int
13573 main ()
13574 {
13575 opendir ();
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext conftest$ac_exeext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13582   (eval $ac_link) 2>conftest.er1
13583   ac_status=$?
13584   grep -v '^ *+' conftest.er1 >conftest.err
13585   rm -f conftest.er1
13586   cat conftest.err >&5
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } &&
13589          { ac_try='test -z "$ac_c_werror_flag"
13590                          || test ! -s conftest.err'
13591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592   (eval $ac_try) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); }; } &&
13596          { ac_try='test -s conftest$ac_exeext'
13597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598   (eval $ac_try) 2>&5
13599   ac_status=$?
13600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601   (exit $ac_status); }; }; then
13602   ac_cv_search_opendir="none required"
13603 else
13604   echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13606
13607 fi
13608 rm -f conftest.err conftest.$ac_objext \
13609       conftest$ac_exeext conftest.$ac_ext
13610 if test "$ac_cv_search_opendir" = no; then
13611   for ac_lib in x; do
13612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13613     cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619
13620 /* Override any gcc2 internal prototype to avoid an error.  */
13621 #ifdef __cplusplus
13622 extern "C"
13623 #endif
13624 /* We use char because int might match the return type of a gcc2
13625    builtin and then its argument prototype would still apply.  */
13626 char opendir ();
13627 int
13628 main ()
13629 {
13630 opendir ();
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637   (eval $ac_link) 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -z "$ac_c_werror_flag"
13645                          || test ! -s conftest.err'
13646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647   (eval $ac_try) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; } &&
13651          { ac_try='test -s conftest$ac_exeext'
13652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653   (eval $ac_try) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_cv_search_opendir="-l$ac_lib"
13658 break
13659 else
13660   echo "$as_me: failed program was:" >&5
13661 sed 's/^/| /' conftest.$ac_ext >&5
13662
13663 fi
13664 rm -f conftest.err conftest.$ac_objext \
13665       conftest$ac_exeext conftest.$ac_ext
13666   done
13667 fi
13668 LIBS=$ac_func_search_save_LIBS
13669 fi
13670 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13671 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13672 if test "$ac_cv_search_opendir" != no; then
13673   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13674
13675 fi
13676
13677 fi
13678
13679 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13680 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13681 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   cat >conftest.$ac_ext <<_ACEOF
13685 /* confdefs.h.  */
13686 _ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h.  */
13690 #include <sys/types.h>
13691 #include <sys/wait.h>
13692 #ifndef WEXITSTATUS
13693 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13694 #endif
13695 #ifndef WIFEXITED
13696 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13697 #endif
13698
13699 int
13700 main ()
13701 {
13702   int s;
13703   wait (&s);
13704   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711   (eval $ac_compile) 2>conftest.er1
13712   ac_status=$?
13713   grep -v '^ *+' conftest.er1 >conftest.err
13714   rm -f conftest.er1
13715   cat conftest.err >&5
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); } &&
13718          { ac_try='test -z "$ac_c_werror_flag"
13719                          || test ! -s conftest.err'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   ac_cv_header_sys_wait_h=yes
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_cv_header_sys_wait_h=no
13737 fi
13738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13739 fi
13740 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13742 if test $ac_cv_header_sys_wait_h = yes; then
13743
13744 cat >>confdefs.h <<\_ACEOF
13745 #define HAVE_SYS_WAIT_H 1
13746 _ACEOF
13747
13748 fi
13749
13750 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13751 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13752 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 else
13755   cat >conftest.$ac_ext <<_ACEOF
13756 /* confdefs.h.  */
13757 _ACEOF
13758 cat confdefs.h >>conftest.$ac_ext
13759 cat >>conftest.$ac_ext <<_ACEOF
13760 /* end confdefs.h.  */
13761 #include <sys/types.h>
13762 #include <termios.h>
13763 #ifdef TIOCGWINSZ
13764   yes
13765 #endif
13766
13767 _ACEOF
13768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13769   $EGREP "yes" >/dev/null 2>&1; then
13770   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13771 else
13772   ac_cv_sys_tiocgwinsz_in_termios_h=no
13773 fi
13774 rm -f conftest*
13775
13776 fi
13777 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13778 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13779
13780 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13781   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13782 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13783 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13784   echo $ECHO_N "(cached) $ECHO_C" >&6
13785 else
13786   cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792 #include <sys/types.h>
13793 #include <sys/ioctl.h>
13794 #ifdef TIOCGWINSZ
13795   yes
13796 #endif
13797
13798 _ACEOF
13799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13800   $EGREP "yes" >/dev/null 2>&1; then
13801   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13802 else
13803   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13804 fi
13805 rm -f conftest*
13806
13807 fi
13808 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13809 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13810
13811   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13812
13813 cat >>confdefs.h <<\_ACEOF
13814 #define GWINSZ_IN_SYS_IOCTL 1
13815 _ACEOF
13816
13817   fi
13818 fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865 for ac_header in \
13866         arpa/inet.h             \
13867         arpa/nameser.h  \
13868         assert.h                \
13869         bits/types.h    \
13870         conio.h                 \
13871         crypt.h                 \
13872         direct.h                \
13873         errno.h                 \
13874         fcntl.h                 \
13875         filio.h                 \
13876         getopt.h                \
13877         grp.h                   \
13878         io.h                    \
13879         libutil.h               \
13880         limits.h                \
13881         locale.h                \
13882         malloc.h                \
13883         memory.h                \
13884         psap.h                  \
13885         pwd.h                   \
13886         process.h               \
13887         sgtty.h                 \
13888         shadow.h                \
13889         stddef.h                \
13890         string.h                \
13891         strings.h               \
13892         sysexits.h              \
13893         sys/file.h              \
13894         sys/filio.h             \
13895         sys/errno.h             \
13896         sys/ioctl.h             \
13897         sys/param.h             \
13898         sys/resource.h  \
13899         sys/select.h    \
13900         sys/socket.h    \
13901         sys/stat.h              \
13902         sys/syslog.h    \
13903         sys/time.h              \
13904         sys/types.h             \
13905         sys/uio.h               \
13906         syslog.h                \
13907         termios.h               \
13908         unistd.h                \
13909         utime.h                 \
13910
13911 do
13912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914   echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 fi
13919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13921 else
13922   # Is the header compilable?
13923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931 $ac_includes_default
13932 #include <$ac_header>
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936   (eval $ac_compile) 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } &&
13943          { ac_try='test -z "$ac_c_werror_flag"
13944                          || test ! -s conftest.err'
13945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946   (eval $ac_try) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); }; } &&
13950          { ac_try='test -s conftest.$ac_objext'
13951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952   (eval $ac_try) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; }; then
13956   ac_header_compiler=yes
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_header_compiler=no
13962 fi
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6
13966
13967 # Is the header present?
13968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h.  */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h.  */
13976 #include <$ac_header>
13977 _ACEOF
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13980   ac_status=$?
13981   grep -v '^ *+' conftest.er1 >conftest.err
13982   rm -f conftest.er1
13983   cat conftest.err >&5
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); } >/dev/null; then
13986   if test -s conftest.err; then
13987     ac_cpp_err=$ac_c_preproc_warn_flag
13988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13989   else
13990     ac_cpp_err=
13991   fi
13992 else
13993   ac_cpp_err=yes
13994 fi
13995 if test -z "$ac_cpp_err"; then
13996   ac_header_preproc=yes
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001   ac_header_preproc=no
14002 fi
14003 rm -f conftest.err conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14005 echo "${ECHO_T}$ac_header_preproc" >&6
14006
14007 # So?  What about this header?
14008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14009   yes:no: )
14010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14014     ac_header_preproc=yes
14015     ;;
14016   no:yes:* )
14017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14029     (
14030       cat <<\_ASBOX
14031 ## --------------------------------------------- ##
14032 ## Report this to <http://www.openldap.org/its/> ##
14033 ## --------------------------------------------- ##
14034 _ASBOX
14035     ) |
14036       sed "s/^/$as_me: WARNING:     /" >&2
14037     ;;
14038 esac
14039 echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042   echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044   eval "$as_ac_Header=\$ac_header_preproc"
14045 fi
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14048
14049 fi
14050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14051   cat >>confdefs.h <<_ACEOF
14052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14053 _ACEOF
14054
14055 fi
14056
14057 done
14058
14059
14060 if test "$ac_cv_mingw32" = yes ; then
14061
14062
14063 for ac_header in winsock.h winsock2.h
14064 do
14065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067   echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070   echo $ECHO_N "(cached) $ECHO_C" >&6
14071 fi
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14074 else
14075   # Is the header compilable?
14076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084 $ac_includes_default
14085 #include <$ac_header>
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089   (eval $ac_compile) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag"
14097                          || test ! -s conftest.err'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest.$ac_objext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_header_compiler=yes
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ac_header_compiler=no
14115 fi
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6
14119
14120 # Is the header present?
14121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 #include <$ac_header>
14130 _ACEOF
14131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } >/dev/null; then
14139   if test -s conftest.err; then
14140     ac_cpp_err=$ac_c_preproc_warn_flag
14141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14142   else
14143     ac_cpp_err=
14144   fi
14145 else
14146   ac_cpp_err=yes
14147 fi
14148 if test -z "$ac_cpp_err"; then
14149   ac_header_preproc=yes
14150 else
14151   echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154   ac_header_preproc=no
14155 fi
14156 rm -f conftest.err conftest.$ac_ext
14157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14158 echo "${ECHO_T}$ac_header_preproc" >&6
14159
14160 # So?  What about this header?
14161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14162   yes:no: )
14163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14167     ac_header_preproc=yes
14168     ;;
14169   no:yes:* )
14170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14182     (
14183       cat <<\_ASBOX
14184 ## --------------------------------------------- ##
14185 ## Report this to <http://www.openldap.org/its/> ##
14186 ## --------------------------------------------- ##
14187 _ASBOX
14188     ) |
14189       sed "s/^/$as_me: WARNING:     /" >&2
14190     ;;
14191 esac
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197   eval "$as_ac_Header=\$ac_header_preproc"
14198 fi
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14201
14202 fi
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204   cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 _ACEOF
14207
14208 fi
14209
14210 done
14211
14212 fi
14213
14214
14215 for ac_header in resolv.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   cat >conftest.$ac_ext <<_ACEOF
14224 /* confdefs.h.  */
14225 _ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h.  */
14229 $ac_includes_default
14230 #include <netinet/in.h>
14231
14232
14233 #include <$ac_header>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237   (eval $ac_compile) 2>conftest.er1
14238   ac_status=$?
14239   grep -v '^ *+' conftest.er1 >conftest.err
14240   rm -f conftest.er1
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); } &&
14244          { ac_try='test -z "$ac_c_werror_flag"
14245                          || test ! -s conftest.err'
14246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14247   (eval $ac_try) 2>&5
14248   ac_status=$?
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); }; } &&
14251          { ac_try='test -s conftest.$ac_objext'
14252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14253   (eval $ac_try) 2>&5
14254   ac_status=$?
14255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256   (exit $ac_status); }; }; then
14257   eval "$as_ac_Header=yes"
14258 else
14259   echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 eval "$as_ac_Header=no"
14263 fi
14264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14269   cat >>confdefs.h <<_ACEOF
14270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14271 _ACEOF
14272
14273 fi
14274
14275 done
14276
14277
14278
14279 for ac_header in netinet/tcp.h
14280 do
14281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14282 echo "$as_me:$LINENO: checking for $ac_header" >&5
14283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14285   echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287   cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h.  */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h.  */
14293 $ac_includes_default
14294 #include <netinet/in.h>
14295
14296
14297 #include <$ac_header>
14298 _ACEOF
14299 rm -f conftest.$ac_objext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14301   (eval $ac_compile) 2>conftest.er1
14302   ac_status=$?
14303   grep -v '^ *+' conftest.er1 >conftest.err
14304   rm -f conftest.er1
14305   cat conftest.err >&5
14306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307   (exit $ac_status); } &&
14308          { ac_try='test -z "$ac_c_werror_flag"
14309                          || test ! -s conftest.err'
14310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311   (eval $ac_try) 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; } &&
14315          { ac_try='test -s conftest.$ac_objext'
14316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317   (eval $ac_try) 2>&5
14318   ac_status=$?
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); }; }; then
14321   eval "$as_ac_Header=yes"
14322 else
14323   echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14325
14326 eval "$as_ac_Header=no"
14327 fi
14328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14329 fi
14330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14333   cat >>confdefs.h <<_ACEOF
14334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14335 _ACEOF
14336
14337 fi
14338
14339 done
14340
14341
14342
14343 for ac_header in sys/ucred.h
14344 do
14345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14346 echo "$as_me:$LINENO: checking for $ac_header" >&5
14347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14349   echo $ECHO_N "(cached) $ECHO_C" >&6
14350 else
14351   cat >conftest.$ac_ext <<_ACEOF
14352 /* confdefs.h.  */
14353 _ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h.  */
14357 $ac_includes_default
14358 #ifdef HAVE_SYS_PARAM_H
14359 #include <sys/param.h>
14360 #endif
14361
14362
14363 #include <$ac_header>
14364 _ACEOF
14365 rm -f conftest.$ac_objext
14366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14367   (eval $ac_compile) 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } &&
14374          { ac_try='test -z "$ac_c_werror_flag"
14375                          || test ! -s conftest.err'
14376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14377   (eval $ac_try) 2>&5
14378   ac_status=$?
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); }; } &&
14381          { ac_try='test -s conftest.$ac_objext'
14382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14383   (eval $ac_try) 2>&5
14384   ac_status=$?
14385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386   (exit $ac_status); }; }; then
14387   eval "$as_ac_Header=yes"
14388 else
14389   echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 eval "$as_ac_Header=no"
14393 fi
14394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14395 fi
14396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14399   cat >>confdefs.h <<_ACEOF
14400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404
14405 done
14406
14407
14408
14409
14410
14411 for ac_func in sigaction sigset
14412 do
14413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14414 echo "$as_me:$LINENO: checking for $ac_func" >&5
14415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14416 if eval "test \"\${$as_ac_var+set}\" = set"; then
14417   echo $ECHO_N "(cached) $ECHO_C" >&6
14418 else
14419   cat >conftest.$ac_ext <<_ACEOF
14420 /* confdefs.h.  */
14421 _ACEOF
14422 cat confdefs.h >>conftest.$ac_ext
14423 cat >>conftest.$ac_ext <<_ACEOF
14424 /* end confdefs.h.  */
14425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14427 #define $ac_func innocuous_$ac_func
14428
14429 /* System header to define __stub macros and hopefully few prototypes,
14430     which can conflict with char $ac_func (); below.
14431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14432     <limits.h> exists even on freestanding compilers.  */
14433
14434 #ifdef __STDC__
14435 # include <limits.h>
14436 #else
14437 # include <assert.h>
14438 #endif
14439
14440 #undef $ac_func
14441
14442 /* Override any gcc2 internal prototype to avoid an error.  */
14443 #ifdef __cplusplus
14444 extern "C"
14445 {
14446 #endif
14447 /* We use char because int might match the return type of a gcc2
14448    builtin and then its argument prototype would still apply.  */
14449 char $ac_func ();
14450 /* The GNU C library defines this for functions which it implements
14451     to always fail with ENOSYS.  Some functions are actually named
14452     something starting with __ and the normal name is an alias.  */
14453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14454 choke me
14455 #else
14456 char (*f) () = $ac_func;
14457 #endif
14458 #ifdef __cplusplus
14459 }
14460 #endif
14461
14462 int
14463 main ()
14464 {
14465 return f != $ac_func;
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext conftest$ac_exeext
14471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14472   (eval $ac_link) 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } &&
14479          { ac_try='test -z "$ac_c_werror_flag"
14480                          || test ! -s conftest.err'
14481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482   (eval $ac_try) 2>&5
14483   ac_status=$?
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); }; } &&
14486          { ac_try='test -s conftest$ac_exeext'
14487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488   (eval $ac_try) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); }; }; then
14492   eval "$as_ac_var=yes"
14493 else
14494   echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 eval "$as_ac_var=no"
14498 fi
14499 rm -f conftest.err conftest.$ac_objext \
14500       conftest$ac_exeext conftest.$ac_ext
14501 fi
14502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14504 if test `eval echo '${'$as_ac_var'}'` = yes; then
14505   cat >>confdefs.h <<_ACEOF
14506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14507 _ACEOF
14508
14509 fi
14510 done
14511
14512
14513 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14514
14515 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14516 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14517 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520   ac_check_lib_save_LIBS=$LIBS
14521 LIBS="-lV3  $LIBS"
14522 cat >conftest.$ac_ext <<_ACEOF
14523 /* confdefs.h.  */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h.  */
14528
14529 /* Override any gcc2 internal prototype to avoid an error.  */
14530 #ifdef __cplusplus
14531 extern "C"
14532 #endif
14533 /* We use char because int might match the return type of a gcc2
14534    builtin and then its argument prototype would still apply.  */
14535 char sigset ();
14536 int
14537 main ()
14538 {
14539 sigset ();
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest.$ac_objext conftest$ac_exeext
14545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14546   (eval $ac_link) 2>conftest.er1
14547   ac_status=$?
14548   grep -v '^ *+' conftest.er1 >conftest.err
14549   rm -f conftest.er1
14550   cat conftest.err >&5
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); } &&
14553          { ac_try='test -z "$ac_c_werror_flag"
14554                          || test ! -s conftest.err'
14555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556   (eval $ac_try) 2>&5
14557   ac_status=$?
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); }; } &&
14560          { ac_try='test -s conftest$ac_exeext'
14561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562   (eval $ac_try) 2>&5
14563   ac_status=$?
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_cv_lib_V3_sigset=yes
14567 else
14568   echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14570
14571 ac_cv_lib_V3_sigset=no
14572 fi
14573 rm -f conftest.err conftest.$ac_objext \
14574       conftest$ac_exeext conftest.$ac_ext
14575 LIBS=$ac_check_lib_save_LIBS
14576 fi
14577 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14578 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14579 if test $ac_cv_lib_V3_sigset = yes; then
14580   cat >>confdefs.h <<_ACEOF
14581 #define HAVE_LIBV3 1
14582 _ACEOF
14583
14584   LIBS="-lV3 $LIBS"
14585
14586 fi
14587
14588 fi
14589
14590 if test "$ac_cv_header_winsock_h" = yes; then
14591 echo "$as_me:$LINENO: checking for winsock" >&5
14592 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14593 if test "${ol_cv_winsock+set}" = set; then
14594   echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596   save_LIBS="$LIBS"
14597 for curlib in ws2_32 wsock32; do
14598         LIBS="$LIBS -l$curlib"
14599         cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605 #include <winsock.h>
14606
14607 int
14608 main ()
14609 {
14610
14611                         socket(0,0,0);
14612                         select(0,NULL,NULL,NULL,NULL);
14613                         closesocket(0);
14614                         gethostname(NULL,0);
14615
14616   ;
14617   return 0;
14618 }
14619 _ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14622   (eval $ac_link) 2>conftest.er1
14623   ac_status=$?
14624   grep -v '^ *+' conftest.er1 >conftest.err
14625   rm -f conftest.er1
14626   cat conftest.err >&5
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } &&
14629          { ac_try='test -z "$ac_c_werror_flag"
14630                          || test ! -s conftest.err'
14631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632   (eval $ac_try) 2>&5
14633   ac_status=$?
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); }; } &&
14636          { ac_try='test -s conftest$ac_exeext'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642   ol_cv_winsock=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 ol_cv_winsock=no
14648 fi
14649 rm -f conftest.err conftest.$ac_objext \
14650       conftest$ac_exeext conftest.$ac_ext
14651
14652         if test $ol_cv_winsock = yes; then
14653
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_WINSOCK 1
14656 _ACEOF
14657
14658                 ac_cv_func_socket=yes
14659                 ac_cv_func_select=yes
14660                 ac_cv_func_closesocket=yes
14661                 ac_cv_func_gethostname=yes
14662                 if test $curlib = ws2_32; then
14663                         ol_cv_winsock=winsock2
14664
14665 cat >>confdefs.h <<\_ACEOF
14666 #define HAVE_WINSOCK2 1
14667 _ACEOF
14668
14669                 fi
14670                 break
14671         fi
14672         LIBS="$save_LIBS"
14673 done
14674 fi
14675 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14676 echo "${ECHO_T}$ol_cv_winsock" >&6
14677 fi
14678
14679
14680 echo "$as_me:$LINENO: checking for socket" >&5
14681 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14682 if test "${ac_cv_func_socket+set}" = set; then
14683   echo $ECHO_N "(cached) $ECHO_C" >&6
14684 else
14685   cat >conftest.$ac_ext <<_ACEOF
14686 /* confdefs.h.  */
14687 _ACEOF
14688 cat confdefs.h >>conftest.$ac_ext
14689 cat >>conftest.$ac_ext <<_ACEOF
14690 /* end confdefs.h.  */
14691 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14693 #define socket innocuous_socket
14694
14695 /* System header to define __stub macros and hopefully few prototypes,
14696     which can conflict with char socket (); below.
14697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14698     <limits.h> exists even on freestanding compilers.  */
14699
14700 #ifdef __STDC__
14701 # include <limits.h>
14702 #else
14703 # include <assert.h>
14704 #endif
14705
14706 #undef socket
14707
14708 /* Override any gcc2 internal prototype to avoid an error.  */
14709 #ifdef __cplusplus
14710 extern "C"
14711 {
14712 #endif
14713 /* We use char because int might match the return type of a gcc2
14714    builtin and then its argument prototype would still apply.  */
14715 char socket ();
14716 /* The GNU C library defines this for functions which it implements
14717     to always fail with ENOSYS.  Some functions are actually named
14718     something starting with __ and the normal name is an alias.  */
14719 #if defined (__stub_socket) || defined (__stub___socket)
14720 choke me
14721 #else
14722 char (*f) () = socket;
14723 #endif
14724 #ifdef __cplusplus
14725 }
14726 #endif
14727
14728 int
14729 main ()
14730 {
14731 return f != socket;
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext conftest$ac_exeext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14738   (eval $ac_link) 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -z "$ac_c_werror_flag"
14746                          || test ! -s conftest.err'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest$ac_exeext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_cv_func_socket=yes
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_cv_func_socket=no
14764 fi
14765 rm -f conftest.err conftest.$ac_objext \
14766       conftest$ac_exeext conftest.$ac_ext
14767 fi
14768 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14769 echo "${ECHO_T}$ac_cv_func_socket" >&6
14770 if test $ac_cv_func_socket = yes; then
14771   :
14772 else
14773
14774
14775 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14776 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14777 if test "${ac_cv_lib_socket_main+set}" = set; then
14778   echo $ECHO_N "(cached) $ECHO_C" >&6
14779 else
14780   ac_check_lib_save_LIBS=$LIBS
14781 LIBS="-lsocket  $LIBS"
14782 cat >conftest.$ac_ext <<_ACEOF
14783 /* confdefs.h.  */
14784 _ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h.  */
14788
14789
14790 int
14791 main ()
14792 {
14793 main ();
14794   ;
14795   return 0;
14796 }
14797 _ACEOF
14798 rm -f conftest.$ac_objext conftest$ac_exeext
14799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14800   (eval $ac_link) 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } &&
14807          { ac_try='test -z "$ac_c_werror_flag"
14808                          || test ! -s conftest.err'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; } &&
14814          { ac_try='test -s conftest$ac_exeext'
14815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816   (eval $ac_try) 2>&5
14817   ac_status=$?
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); }; }; then
14820   ac_cv_lib_socket_main=yes
14821 else
14822   echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14824
14825 ac_cv_lib_socket_main=no
14826 fi
14827 rm -f conftest.err conftest.$ac_objext \
14828       conftest$ac_exeext conftest.$ac_ext
14829 LIBS=$ac_check_lib_save_LIBS
14830 fi
14831 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14832 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14833 if test $ac_cv_lib_socket_main = yes; then
14834   cat >>confdefs.h <<_ACEOF
14835 #define HAVE_LIBSOCKET 1
14836 _ACEOF
14837
14838   LIBS="-lsocket $LIBS"
14839
14840 fi
14841
14842
14843 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14844 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14845 if test "${ac_cv_lib_net_main+set}" = set; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848   ac_check_lib_save_LIBS=$LIBS
14849 LIBS="-lnet  $LIBS"
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856
14857
14858 int
14859 main ()
14860 {
14861 main ();
14862   ;
14863   return 0;
14864 }
14865 _ACEOF
14866 rm -f conftest.$ac_objext conftest$ac_exeext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14868   (eval $ac_link) 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } &&
14875          { ac_try='test -z "$ac_c_werror_flag"
14876                          || test ! -s conftest.err'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; } &&
14882          { ac_try='test -s conftest$ac_exeext'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   ac_cv_lib_net_main=yes
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_cv_lib_net_main=no
14894 fi
14895 rm -f conftest.err conftest.$ac_objext \
14896       conftest$ac_exeext conftest.$ac_ext
14897 LIBS=$ac_check_lib_save_LIBS
14898 fi
14899 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14900 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14901 if test $ac_cv_lib_net_main = yes; then
14902   cat >>confdefs.h <<_ACEOF
14903 #define HAVE_LIBNET 1
14904 _ACEOF
14905
14906   LIBS="-lnet $LIBS"
14907
14908 fi
14909
14910
14911 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14912 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14913 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14914   echo $ECHO_N "(cached) $ECHO_C" >&6
14915 else
14916   ac_check_lib_save_LIBS=$LIBS
14917 LIBS="-lnsl_s  $LIBS"
14918 cat >conftest.$ac_ext <<_ACEOF
14919 /* confdefs.h.  */
14920 _ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h.  */
14924
14925
14926 int
14927 main ()
14928 {
14929 main ();
14930   ;
14931   return 0;
14932 }
14933 _ACEOF
14934 rm -f conftest.$ac_objext conftest$ac_exeext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14936   (eval $ac_link) 2>conftest.er1
14937   ac_status=$?
14938   grep -v '^ *+' conftest.er1 >conftest.err
14939   rm -f conftest.er1
14940   cat conftest.err >&5
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); } &&
14943          { ac_try='test -z "$ac_c_werror_flag"
14944                          || test ! -s conftest.err'
14945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946   (eval $ac_try) 2>&5
14947   ac_status=$?
14948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949   (exit $ac_status); }; } &&
14950          { ac_try='test -s conftest$ac_exeext'
14951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952   (eval $ac_try) 2>&5
14953   ac_status=$?
14954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955   (exit $ac_status); }; }; then
14956   ac_cv_lib_nsl_s_main=yes
14957 else
14958   echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 ac_cv_lib_nsl_s_main=no
14962 fi
14963 rm -f conftest.err conftest.$ac_objext \
14964       conftest$ac_exeext conftest.$ac_ext
14965 LIBS=$ac_check_lib_save_LIBS
14966 fi
14967 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14968 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14969 if test $ac_cv_lib_nsl_s_main = yes; then
14970   cat >>confdefs.h <<_ACEOF
14971 #define HAVE_LIBNSL_S 1
14972 _ACEOF
14973
14974   LIBS="-lnsl_s $LIBS"
14975
14976 fi
14977
14978
14979 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14980 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14981 if test "${ac_cv_lib_nsl_main+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   ac_check_lib_save_LIBS=$LIBS
14985 LIBS="-lnsl  $LIBS"
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h.  */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h.  */
14992
14993
14994 int
14995 main ()
14996 {
14997 main ();
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15004   (eval $ac_link) 2>conftest.er1
15005   ac_status=$?
15006   grep -v '^ *+' conftest.er1 >conftest.err
15007   rm -f conftest.er1
15008   cat conftest.err >&5
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); } &&
15011          { ac_try='test -z "$ac_c_werror_flag"
15012                          || test ! -s conftest.err'
15013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014   (eval $ac_try) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); }; } &&
15018          { ac_try='test -s conftest$ac_exeext'
15019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020   (eval $ac_try) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); }; }; then
15024   ac_cv_lib_nsl_main=yes
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_cv_lib_nsl_main=no
15030 fi
15031 rm -f conftest.err conftest.$ac_objext \
15032       conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15034 fi
15035 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15036 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15037 if test $ac_cv_lib_nsl_main = yes; then
15038   cat >>confdefs.h <<_ACEOF
15039 #define HAVE_LIBNSL 1
15040 _ACEOF
15041
15042   LIBS="-lnsl $LIBS"
15043
15044 fi
15045
15046
15047 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15048 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15049 if test "${ac_cv_lib_inet_socket+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-linet  $LIBS"
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h.  */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h.  */
15060
15061 /* Override any gcc2 internal prototype to avoid an error.  */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066    builtin and then its argument prototype would still apply.  */
15067 char socket ();
15068 int
15069 main ()
15070 {
15071 socket ();
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078   (eval $ac_link) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_cv_lib_inet_socket=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_cv_lib_inet_socket=no
15104 fi
15105 rm -f conftest.err conftest.$ac_objext \
15106       conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15110 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15111 if test $ac_cv_lib_inet_socket = yes; then
15112   cat >>confdefs.h <<_ACEOF
15113 #define HAVE_LIBINET 1
15114 _ACEOF
15115
15116   LIBS="-linet $LIBS"
15117
15118 fi
15119
15120
15121 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15122 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15123 if test "${ac_cv_lib_gen_main+set}" = set; then
15124   echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126   ac_check_lib_save_LIBS=$LIBS
15127 LIBS="-lgen  $LIBS"
15128 cat >conftest.$ac_ext <<_ACEOF
15129 /* confdefs.h.  */
15130 _ACEOF
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h.  */
15134
15135
15136 int
15137 main ()
15138 {
15139 main ();
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext conftest$ac_exeext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15146   (eval $ac_link) 2>conftest.er1
15147   ac_status=$?
15148   grep -v '^ *+' conftest.er1 >conftest.err
15149   rm -f conftest.er1
15150   cat conftest.err >&5
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); } &&
15153          { ac_try='test -z "$ac_c_werror_flag"
15154                          || test ! -s conftest.err'
15155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156   (eval $ac_try) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; } &&
15160          { ac_try='test -s conftest$ac_exeext'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; }; then
15166   ac_cv_lib_gen_main=yes
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 ac_cv_lib_gen_main=no
15172 fi
15173 rm -f conftest.err conftest.$ac_objext \
15174       conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15176 fi
15177 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15178 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15179 if test $ac_cv_lib_gen_main = yes; then
15180   cat >>confdefs.h <<_ACEOF
15181 #define HAVE_LIBGEN 1
15182 _ACEOF
15183
15184   LIBS="-lgen $LIBS"
15185
15186 fi
15187
15188
15189 fi
15190
15191
15192 echo "$as_me:$LINENO: checking for select" >&5
15193 echo $ECHO_N "checking for select... $ECHO_C" >&6
15194 if test "${ac_cv_func_select+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h.  */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h.  */
15203 /* Define select to an innocuous variant, in case <limits.h> declares select.
15204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15205 #define select innocuous_select
15206
15207 /* System header to define __stub macros and hopefully few prototypes,
15208     which can conflict with char select (); below.
15209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15210     <limits.h> exists even on freestanding compilers.  */
15211
15212 #ifdef __STDC__
15213 # include <limits.h>
15214 #else
15215 # include <assert.h>
15216 #endif
15217
15218 #undef select
15219
15220 /* Override any gcc2 internal prototype to avoid an error.  */
15221 #ifdef __cplusplus
15222 extern "C"
15223 {
15224 #endif
15225 /* We use char because int might match the return type of a gcc2
15226    builtin and then its argument prototype would still apply.  */
15227 char select ();
15228 /* The GNU C library defines this for functions which it implements
15229     to always fail with ENOSYS.  Some functions are actually named
15230     something starting with __ and the normal name is an alias.  */
15231 #if defined (__stub_select) || defined (__stub___select)
15232 choke me
15233 #else
15234 char (*f) () = select;
15235 #endif
15236 #ifdef __cplusplus
15237 }
15238 #endif
15239
15240 int
15241 main ()
15242 {
15243 return f != select;
15244   ;
15245   return 0;
15246 }
15247 _ACEOF
15248 rm -f conftest.$ac_objext conftest$ac_exeext
15249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15250   (eval $ac_link) 2>conftest.er1
15251   ac_status=$?
15252   grep -v '^ *+' conftest.er1 >conftest.err
15253   rm -f conftest.er1
15254   cat conftest.err >&5
15255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256   (exit $ac_status); } &&
15257          { ac_try='test -z "$ac_c_werror_flag"
15258                          || test ! -s conftest.err'
15259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260   (eval $ac_try) 2>&5
15261   ac_status=$?
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); }; } &&
15264          { ac_try='test -s conftest$ac_exeext'
15265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266   (eval $ac_try) 2>&5
15267   ac_status=$?
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); }; }; then
15270   ac_cv_func_select=yes
15271 else
15272   echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_cv_func_select=no
15276 fi
15277 rm -f conftest.err conftest.$ac_objext \
15278       conftest$ac_exeext conftest.$ac_ext
15279 fi
15280 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15281 echo "${ECHO_T}$ac_cv_func_select" >&6
15282 if test $ac_cv_func_select = yes; then
15283   :
15284 else
15285   { { echo "$as_me:$LINENO: error: select() required." >&5
15286 echo "$as_me: error: select() required." >&2;}
15287    { (exit 1); exit 1; }; }
15288 fi
15289
15290
15291 if test "${ac_cv_header_winsock_h}" != yes; then
15292
15293
15294 for ac_header in sys/select.h sys/socket.h
15295 do
15296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15298   echo "$as_me:$LINENO: checking for $ac_header" >&5
15299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 fi
15303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15305 else
15306   # Is the header compilable?
15307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15309 cat >conftest.$ac_ext <<_ACEOF
15310 /* confdefs.h.  */
15311 _ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h.  */
15315 $ac_includes_default
15316 #include <$ac_header>
15317 _ACEOF
15318 rm -f conftest.$ac_objext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15320   (eval $ac_compile) 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_c_werror_flag"
15328                          || test ! -s conftest.err'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; } &&
15334          { ac_try='test -s conftest.$ac_objext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_header_compiler=yes
15341 else
15342   echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15344
15345 ac_header_compiler=no
15346 fi
15347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15348 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349 echo "${ECHO_T}$ac_header_compiler" >&6
15350
15351 # Is the header present?
15352 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h.  */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h.  */
15360 #include <$ac_header>
15361 _ACEOF
15362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15363   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15364   ac_status=$?
15365   grep -v '^ *+' conftest.er1 >conftest.err
15366   rm -f conftest.er1
15367   cat conftest.err >&5
15368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15369   (exit $ac_status); } >/dev/null; then
15370   if test -s conftest.err; then
15371     ac_cpp_err=$ac_c_preproc_warn_flag
15372     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15373   else
15374     ac_cpp_err=
15375   fi
15376 else
15377   ac_cpp_err=yes
15378 fi
15379 if test -z "$ac_cpp_err"; then
15380   ac_header_preproc=yes
15381 else
15382   echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15384
15385   ac_header_preproc=no
15386 fi
15387 rm -f conftest.err conftest.$ac_ext
15388 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389 echo "${ECHO_T}$ac_header_preproc" >&6
15390
15391 # So?  What about this header?
15392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393   yes:no: )
15394     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15398     ac_header_preproc=yes
15399     ;;
15400   no:yes:* )
15401     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15404 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15405     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15408 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15413     (
15414       cat <<\_ASBOX
15415 ## --------------------------------------------- ##
15416 ## Report this to <http://www.openldap.org/its/> ##
15417 ## --------------------------------------------- ##
15418 _ASBOX
15419     ) |
15420       sed "s/^/$as_me: WARNING:     /" >&2
15421     ;;
15422 esac
15423 echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428   eval "$as_ac_Header=\$ac_header_preproc"
15429 fi
15430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15432
15433 fi
15434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15435   cat >>confdefs.h <<_ACEOF
15436 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15437 _ACEOF
15438
15439 fi
15440
15441 done
15442
15443 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15444 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15445 if test "${ac_cv_func_select_args+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15449  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15450   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15451    cat >conftest.$ac_ext <<_ACEOF
15452 /* confdefs.h.  */
15453 _ACEOF
15454 cat confdefs.h >>conftest.$ac_ext
15455 cat >>conftest.$ac_ext <<_ACEOF
15456 /* end confdefs.h.  */
15457 $ac_includes_default
15458 #if HAVE_SYS_SELECT_H
15459 # include <sys/select.h>
15460 #endif
15461 #if HAVE_SYS_SOCKET_H
15462 # include <sys/socket.h>
15463 #endif
15464
15465 int
15466 main ()
15467 {
15468 extern int select ($ac_arg1,
15469                                             $ac_arg234, $ac_arg234, $ac_arg234,
15470                                             $ac_arg5);
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15477   (eval $ac_compile) 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -z "$ac_c_werror_flag"
15485                          || test ! -s conftest.err'
15486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15487   (eval $ac_try) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); }; } &&
15491          { ac_try='test -s conftest.$ac_objext'
15492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15493   (eval $ac_try) 2>&5
15494   ac_status=$?
15495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496   (exit $ac_status); }; }; then
15497   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15498 else
15499   echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 fi
15503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15504   done
15505  done
15506 done
15507 # Provide a safe default value.
15508 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15509
15510 fi
15511 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15512 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15513 ac_save_IFS=$IFS; IFS=','
15514 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15515 IFS=$ac_save_IFS
15516 shift
15517
15518 cat >>confdefs.h <<_ACEOF
15519 #define SELECT_TYPE_ARG1 $1
15520 _ACEOF
15521
15522
15523 cat >>confdefs.h <<_ACEOF
15524 #define SELECT_TYPE_ARG234 ($2)
15525 _ACEOF
15526
15527
15528 cat >>confdefs.h <<_ACEOF
15529 #define SELECT_TYPE_ARG5 ($3)
15530 _ACEOF
15531
15532 rm -f conftest*
15533
15534 fi
15535
15536
15537
15538 for ac_func in poll
15539 do
15540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 echo "$as_me:$LINENO: checking for $ac_func" >&5
15542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15543 if eval "test \"\${$as_ac_var+set}\" = set"; then
15544   echo $ECHO_N "(cached) $ECHO_C" >&6
15545 else
15546   cat >conftest.$ac_ext <<_ACEOF
15547 /* confdefs.h.  */
15548 _ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h.  */
15552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15553    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15554 #define $ac_func innocuous_$ac_func
15555
15556 /* System header to define __stub macros and hopefully few prototypes,
15557     which can conflict with char $ac_func (); below.
15558     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15559     <limits.h> exists even on freestanding compilers.  */
15560
15561 #ifdef __STDC__
15562 # include <limits.h>
15563 #else
15564 # include <assert.h>
15565 #endif
15566
15567 #undef $ac_func
15568
15569 /* Override any gcc2 internal prototype to avoid an error.  */
15570 #ifdef __cplusplus
15571 extern "C"
15572 {
15573 #endif
15574 /* We use char because int might match the return type of a gcc2
15575    builtin and then its argument prototype would still apply.  */
15576 char $ac_func ();
15577 /* The GNU C library defines this for functions which it implements
15578     to always fail with ENOSYS.  Some functions are actually named
15579     something starting with __ and the normal name is an alias.  */
15580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15581 choke me
15582 #else
15583 char (*f) () = $ac_func;
15584 #endif
15585 #ifdef __cplusplus
15586 }
15587 #endif
15588
15589 int
15590 main ()
15591 {
15592 return f != $ac_func;
15593   ;
15594   return 0;
15595 }
15596 _ACEOF
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15599   (eval $ac_link) 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -z "$ac_c_werror_flag"
15607                          || test ! -s conftest.err'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; } &&
15613          { ac_try='test -s conftest$ac_exeext'
15614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15615   (eval $ac_try) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); }; }; then
15619   eval "$as_ac_var=yes"
15620 else
15621   echo "$as_me: failed program was:" >&5
15622 sed 's/^/| /' conftest.$ac_ext >&5
15623
15624 eval "$as_ac_var=no"
15625 fi
15626 rm -f conftest.err conftest.$ac_objext \
15627       conftest$ac_exeext conftest.$ac_ext
15628 fi
15629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15631 if test `eval echo '${'$as_ac_var'}'` = yes; then
15632   cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15634 _ACEOF
15635
15636 fi
15637 done
15638
15639 if test $ac_cv_func_poll = yes; then
15640
15641
15642 for ac_header in poll.h sys/poll.h
15643 do
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15646   echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15649   echo $ECHO_N "(cached) $ECHO_C" >&6
15650 fi
15651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15653 else
15654   # Is the header compilable?
15655 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15657 cat >conftest.$ac_ext <<_ACEOF
15658 /* confdefs.h.  */
15659 _ACEOF
15660 cat confdefs.h >>conftest.$ac_ext
15661 cat >>conftest.$ac_ext <<_ACEOF
15662 /* end confdefs.h.  */
15663 $ac_includes_default
15664 #include <$ac_header>
15665 _ACEOF
15666 rm -f conftest.$ac_objext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15668   (eval $ac_compile) 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } &&
15675          { ac_try='test -z "$ac_c_werror_flag"
15676                          || test ! -s conftest.err'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest.$ac_objext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_header_compiler=yes
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693 ac_header_compiler=no
15694 fi
15695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15696 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15697 echo "${ECHO_T}$ac_header_compiler" >&6
15698
15699 # Is the header present?
15700 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15702 cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708 #include <$ac_header>
15709 _ACEOF
15710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15712   ac_status=$?
15713   grep -v '^ *+' conftest.er1 >conftest.err
15714   rm -f conftest.er1
15715   cat conftest.err >&5
15716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717   (exit $ac_status); } >/dev/null; then
15718   if test -s conftest.err; then
15719     ac_cpp_err=$ac_c_preproc_warn_flag
15720     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15721   else
15722     ac_cpp_err=
15723   fi
15724 else
15725   ac_cpp_err=yes
15726 fi
15727 if test -z "$ac_cpp_err"; then
15728   ac_header_preproc=yes
15729 else
15730   echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15732
15733   ac_header_preproc=no
15734 fi
15735 rm -f conftest.err conftest.$ac_ext
15736 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15737 echo "${ECHO_T}$ac_header_preproc" >&6
15738
15739 # So?  What about this header?
15740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15741   yes:no: )
15742     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15743 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15744     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15746     ac_header_preproc=yes
15747     ;;
15748   no:yes:* )
15749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15751     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15752 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15753     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15754 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15755     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15756 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15757     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15759     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15760 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15761     (
15762       cat <<\_ASBOX
15763 ## --------------------------------------------- ##
15764 ## Report this to <http://www.openldap.org/its/> ##
15765 ## --------------------------------------------- ##
15766 _ASBOX
15767     ) |
15768       sed "s/^/$as_me: WARNING:     /" >&2
15769     ;;
15770 esac
15771 echo "$as_me:$LINENO: checking for $ac_header" >&5
15772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   eval "$as_ac_Header=\$ac_header_preproc"
15777 fi
15778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15780
15781 fi
15782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15783   cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15785 _ACEOF
15786
15787 fi
15788
15789 done
15790
15791 fi
15792
15793
15794 for ac_header in sys/epoll.h
15795 do
15796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15798   echo "$as_me:$LINENO: checking for $ac_header" >&5
15799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 fi
15803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15805 else
15806   # Is the header compilable?
15807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15809 cat >conftest.$ac_ext <<_ACEOF
15810 /* confdefs.h.  */
15811 _ACEOF
15812 cat confdefs.h >>conftest.$ac_ext
15813 cat >>conftest.$ac_ext <<_ACEOF
15814 /* end confdefs.h.  */
15815 $ac_includes_default
15816 #include <$ac_header>
15817 _ACEOF
15818 rm -f conftest.$ac_objext
15819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15820   (eval $ac_compile) 2>conftest.er1
15821   ac_status=$?
15822   grep -v '^ *+' conftest.er1 >conftest.err
15823   rm -f conftest.er1
15824   cat conftest.err >&5
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); } &&
15827          { ac_try='test -z "$ac_c_werror_flag"
15828                          || test ! -s conftest.err'
15829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830   (eval $ac_try) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); }; } &&
15834          { ac_try='test -s conftest.$ac_objext'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840   ac_header_compiler=yes
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845 ac_header_compiler=no
15846 fi
15847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15849 echo "${ECHO_T}$ac_header_compiler" >&6
15850
15851 # Is the header present?
15852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15855 /* confdefs.h.  */
15856 _ACEOF
15857 cat confdefs.h >>conftest.$ac_ext
15858 cat >>conftest.$ac_ext <<_ACEOF
15859 /* end confdefs.h.  */
15860 #include <$ac_header>
15861 _ACEOF
15862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15863   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15864   ac_status=$?
15865   grep -v '^ *+' conftest.er1 >conftest.err
15866   rm -f conftest.er1
15867   cat conftest.err >&5
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } >/dev/null; then
15870   if test -s conftest.err; then
15871     ac_cpp_err=$ac_c_preproc_warn_flag
15872     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15873   else
15874     ac_cpp_err=
15875   fi
15876 else
15877   ac_cpp_err=yes
15878 fi
15879 if test -z "$ac_cpp_err"; then
15880   ac_header_preproc=yes
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885   ac_header_preproc=no
15886 fi
15887 rm -f conftest.err conftest.$ac_ext
15888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15889 echo "${ECHO_T}$ac_header_preproc" >&6
15890
15891 # So?  What about this header?
15892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15893   yes:no: )
15894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15898     ac_header_preproc=yes
15899     ;;
15900   no:yes:* )
15901     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15904 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15905     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15907     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15908 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15911     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15913     (
15914       cat <<\_ASBOX
15915 ## --------------------------------------------- ##
15916 ## Report this to <http://www.openldap.org/its/> ##
15917 ## --------------------------------------------- ##
15918 _ASBOX
15919     ) |
15920       sed "s/^/$as_me: WARNING:     /" >&2
15921     ;;
15922 esac
15923 echo "$as_me:$LINENO: checking for $ac_header" >&5
15924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   eval "$as_ac_Header=\$ac_header_preproc"
15929 fi
15930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15932
15933 fi
15934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15935   cat >>confdefs.h <<_ACEOF
15936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15937 _ACEOF
15938
15939 fi
15940
15941 done
15942
15943 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15944         echo "$as_me:$LINENO: checking for epoll system call" >&5
15945 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15946         if test "$cross_compiling" = yes; then
15947   echo "$as_me:$LINENO: result: no" >&5
15948 echo "${ECHO_T}no" >&6
15949 else
15950   cat >conftest.$ac_ext <<_ACEOF
15951 /* confdefs.h.  */
15952 _ACEOF
15953 cat confdefs.h >>conftest.$ac_ext
15954 cat >>conftest.$ac_ext <<_ACEOF
15955 /* end confdefs.h.  */
15956 int main(int argc, char **argv)
15957 {
15958         int epfd = epoll_create(256);
15959         exit (epfd == -1 ? 1 : 0);
15960 }
15961 _ACEOF
15962 rm -f conftest$ac_exeext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15964   (eval $ac_link) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969   (eval $ac_try) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; }; then
15973   echo "$as_me:$LINENO: result: yes" >&5
15974 echo "${ECHO_T}yes" >&6
15975
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_EPOLL 1
15978 _ACEOF
15979
15980 else
15981   echo "$as_me: program exited with status $ac_status" >&5
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 ( exit $ac_status )
15986 echo "$as_me:$LINENO: result: no" >&5
15987 echo "${ECHO_T}no" >&6
15988 fi
15989 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15990 fi
15991 fi
15992
15993
15994 for ac_header in sys/devpoll.h
15995 do
15996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15998   echo "$as_me:$LINENO: checking for $ac_header" >&5
15999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16001   echo $ECHO_N "(cached) $ECHO_C" >&6
16002 fi
16003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16005 else
16006   # Is the header compilable?
16007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 $ac_includes_default
16016 #include <$ac_header>
16017 _ACEOF
16018 rm -f conftest.$ac_objext
16019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16020   (eval $ac_compile) 2>conftest.er1
16021   ac_status=$?
16022   grep -v '^ *+' conftest.er1 >conftest.err
16023   rm -f conftest.er1
16024   cat conftest.err >&5
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); } &&
16027          { ac_try='test -z "$ac_c_werror_flag"
16028                          || test ! -s conftest.err'
16029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030   (eval $ac_try) 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036   (eval $ac_try) 2>&5
16037   ac_status=$?
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); }; }; then
16040   ac_header_compiler=yes
16041 else
16042   echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16044
16045 ac_header_compiler=no
16046 fi
16047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6
16050
16051 # Is the header present?
16052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16054 cat >conftest.$ac_ext <<_ACEOF
16055 /* confdefs.h.  */
16056 _ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h.  */
16060 #include <$ac_header>
16061 _ACEOF
16062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16064   ac_status=$?
16065   grep -v '^ *+' conftest.er1 >conftest.err
16066   rm -f conftest.er1
16067   cat conftest.err >&5
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } >/dev/null; then
16070   if test -s conftest.err; then
16071     ac_cpp_err=$ac_c_preproc_warn_flag
16072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16073   else
16074     ac_cpp_err=
16075   fi
16076 else
16077   ac_cpp_err=yes
16078 fi
16079 if test -z "$ac_cpp_err"; then
16080   ac_header_preproc=yes
16081 else
16082   echo "$as_me: failed program was:" >&5
16083 sed 's/^/| /' conftest.$ac_ext >&5
16084
16085   ac_header_preproc=no
16086 fi
16087 rm -f conftest.err conftest.$ac_ext
16088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16089 echo "${ECHO_T}$ac_header_preproc" >&6
16090
16091 # So?  What about this header?
16092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16093   yes:no: )
16094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16098     ac_header_preproc=yes
16099     ;;
16100   no:yes:* )
16101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16113     (
16114       cat <<\_ASBOX
16115 ## --------------------------------------------- ##
16116 ## Report this to <http://www.openldap.org/its/> ##
16117 ## --------------------------------------------- ##
16118 _ASBOX
16119     ) |
16120       sed "s/^/$as_me: WARNING:     /" >&2
16121     ;;
16122 esac
16123 echo "$as_me:$LINENO: checking for $ac_header" >&5
16124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16126   echo $ECHO_N "(cached) $ECHO_C" >&6
16127 else
16128   eval "$as_ac_Header=\$ac_header_preproc"
16129 fi
16130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16132
16133 fi
16134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16135   cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16137 _ACEOF
16138
16139 fi
16140
16141 done
16142
16143 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16144                 -a "${ac_cv_header_poll_h}" = yes ; \
16145 then
16146         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16147 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16148         if test "$cross_compiling" = yes; then
16149   echo "$as_me:$LINENO: result: no" >&5
16150 echo "${ECHO_T}no" >&6
16151 else
16152   cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h.  */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h.  */
16158 int main(int argc, char **argv)
16159 {
16160         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16161         exit (devpollfd == -1 ? 1 : 0);
16162 }
16163 _ACEOF
16164 rm -f conftest$ac_exeext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16166   (eval $ac_link) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16171   (eval $ac_try) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; }; then
16175   echo "$as_me:$LINENO: result: yes" >&5
16176 echo "${ECHO_T}yes" >&6
16177
16178 cat >>confdefs.h <<\_ACEOF
16179 #define HAVE_DEVPOLL 1
16180 _ACEOF
16181
16182 else
16183   echo "$as_me: program exited with status $ac_status" >&5
16184 echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187 ( exit $ac_status )
16188 echo "$as_me:$LINENO: result: no" >&5
16189 echo "${ECHO_T}no" >&6
16190 fi
16191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16192 fi
16193 fi
16194
16195 # strerror checks
16196 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16197 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16198 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201
16202         cat >conftest.$ac_ext <<_ACEOF
16203 /* confdefs.h.  */
16204 _ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h.  */
16208
16209 #include <stdio.h>
16210 #include <sys/types.h>
16211 #include <errno.h>
16212 #ifdef _WIN32
16213 #include <stdlib.h>
16214 #endif
16215 int
16216 main ()
16217 {
16218 char *c = (char *) *sys_errlist
16219   ;
16220   return 0;
16221 }
16222 _ACEOF
16223 rm -f conftest.$ac_objext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16225   (eval $ac_compile) 2>conftest.er1
16226   ac_status=$?
16227   grep -v '^ *+' conftest.er1 >conftest.err
16228   rm -f conftest.er1
16229   cat conftest.err >&5
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -z "$ac_c_werror_flag"
16233                          || test ! -s conftest.err'
16234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16235   (eval $ac_try) 2>&5
16236   ac_status=$?
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); }; } &&
16239          { ac_try='test -s conftest.$ac_objext'
16240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16241   (eval $ac_try) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   ol_cv_dcl_sys_errlist=yes
16246         ol_cv_have_sys_errlist=yes
16247 else
16248   echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251 ol_cv_dcl_sys_errlist=no
16252 fi
16253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16254 fi
16255 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16256 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16257 #
16258 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16259 if test $ol_cv_dcl_sys_errlist = no ; then
16260
16261 cat >>confdefs.h <<\_ACEOF
16262 #define DECL_SYS_ERRLIST 1
16263 _ACEOF
16264
16265
16266         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16267 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16268 if test "${ol_cv_have_sys_errlist+set}" = set; then
16269   echo $ECHO_N "(cached) $ECHO_C" >&6
16270 else
16271
16272                 cat >conftest.$ac_ext <<_ACEOF
16273 /* confdefs.h.  */
16274 _ACEOF
16275 cat confdefs.h >>conftest.$ac_ext
16276 cat >>conftest.$ac_ext <<_ACEOF
16277 /* end confdefs.h.  */
16278 #include <errno.h>
16279 int
16280 main ()
16281 {
16282 char *c = (char *) *sys_errlist
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289   (eval $ac_link) 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -z "$ac_c_werror_flag"
16297                          || test ! -s conftest.err'
16298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16299   (eval $ac_try) 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; } &&
16303          { ac_try='test -s conftest$ac_exeext'
16304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16305   (eval $ac_try) 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ol_cv_have_sys_errlist=yes
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ol_cv_have_sys_errlist=no
16315 fi
16316 rm -f conftest.err conftest.$ac_objext \
16317       conftest$ac_exeext conftest.$ac_ext
16318 fi
16319 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16320 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16321 fi
16322 if test $ol_cv_have_sys_errlist = yes ; then
16323
16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_SYS_ERRLIST 1
16326 _ACEOF
16327
16328 fi
16329
16330
16331 for ac_func in strerror strerror_r
16332 do
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_var+set}\" = set"; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16347 #define $ac_func innocuous_$ac_func
16348
16349 /* System header to define __stub macros and hopefully few prototypes,
16350     which can conflict with char $ac_func (); below.
16351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352     <limits.h> exists even on freestanding compilers.  */
16353
16354 #ifdef __STDC__
16355 # include <limits.h>
16356 #else
16357 # include <assert.h>
16358 #endif
16359
16360 #undef $ac_func
16361
16362 /* Override any gcc2 internal prototype to avoid an error.  */
16363 #ifdef __cplusplus
16364 extern "C"
16365 {
16366 #endif
16367 /* We use char because int might match the return type of a gcc2
16368    builtin and then its argument prototype would still apply.  */
16369 char $ac_func ();
16370 /* The GNU C library defines this for functions which it implements
16371     to always fail with ENOSYS.  Some functions are actually named
16372     something starting with __ and the normal name is an alias.  */
16373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16374 choke me
16375 #else
16376 char (*f) () = $ac_func;
16377 #endif
16378 #ifdef __cplusplus
16379 }
16380 #endif
16381
16382 int
16383 main ()
16384 {
16385 return f != $ac_func;
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext conftest$ac_exeext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16392   (eval $ac_link) 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -z "$ac_c_werror_flag"
16400                          || test ! -s conftest.err'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; } &&
16406          { ac_try='test -s conftest$ac_exeext'
16407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408   (eval $ac_try) 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   eval "$as_ac_var=yes"
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 eval "$as_ac_var=no"
16418 fi
16419 rm -f conftest.err conftest.$ac_objext \
16420       conftest$ac_exeext conftest.$ac_ext
16421 fi
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425   cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 _ACEOF
16428
16429 fi
16430 done
16431
16432 ol_cv_func_strerror_r=no
16433 if test "${ac_cv_func_strerror_r}" = yes ; then
16434         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16435 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16436 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16437   echo $ECHO_N "(cached) $ECHO_C" >&6
16438 else
16439
16440         cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h.  */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h.  */
16446 #include <string.h>
16447 _ACEOF
16448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16449   $EGREP "strerror_r" >/dev/null 2>&1; then
16450   ol_decl_strerror_r=yes
16451 else
16452   ol_decl_strerror_r=no
16453 fi
16454 rm -f conftest*
16455
16456         if test $ol_decl_strerror_r = yes ; then
16457                 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h.  */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h.  */
16463 #include <string.h>
16464 int
16465 main ()
16466 {
16467    /* from autoconf 2.59 */
16468                                 char buf[100];
16469                                 char x = *strerror_r (0, buf, sizeof buf);
16470                                 char *p = strerror_r (0, buf, sizeof buf);
16471
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16478   (eval $ac_compile) 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } &&
16485          { ac_try='test -z "$ac_c_werror_flag"
16486                          || test ! -s conftest.err'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; } &&
16492          { ac_try='test -s conftest.$ac_objext'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ol_cv_nonposix_strerror_r=yes
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ol_cv_nonposix_strerror_r=no
16504 fi
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16506         else
16507                 if test "$cross_compiling" = yes; then
16508   ol_cv_nonposix_strerror=no
16509 else
16510   cat >conftest.$ac_ext <<_ACEOF
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516
16517                         main() {
16518                                 char buf[100];
16519                                 buf[0] = 0;
16520                                 strerror_r( 1, buf, sizeof buf );
16521                                 exit( buf[0] == 0 );
16522                         }
16523
16524 _ACEOF
16525 rm -f conftest$ac_exeext
16526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16527   (eval $ac_link) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532   (eval $ac_try) 2>&5
16533   ac_status=$?
16534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535   (exit $ac_status); }; }; then
16536   ol_cv_nonposix_strerror_r=yes
16537 else
16538   echo "$as_me: program exited with status $ac_status" >&5
16539 echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542 ( exit $ac_status )
16543 ol_cv_nonposix_strerror=no
16544 fi
16545 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16546 fi
16547         fi
16548
16549 fi
16550 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16551 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16552 if test $ol_cv_nonposix_strerror_r = yes ; then
16553
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_NONPOSIX_STRERROR_R 1
16556 _ACEOF
16557
16558 fi
16559
16560 elif test "${ac_cv_func_strerror}" = no ; then
16561         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16562 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16563 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566
16567         cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573
16574 #include <stdio.h>
16575 #include <sys/types.h>
16576 #include <errno.h>
16577 #ifdef _WIN32
16578 #include <stdlib.h>
16579 #endif
16580 int
16581 main ()
16582 {
16583 char *c = (char *) *sys_errlist
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 rm -f conftest.$ac_objext
16589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16590   (eval $ac_compile) 2>conftest.er1
16591   ac_status=$?
16592   grep -v '^ *+' conftest.er1 >conftest.err
16593   rm -f conftest.er1
16594   cat conftest.err >&5
16595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596   (exit $ac_status); } &&
16597          { ac_try='test -z "$ac_c_werror_flag"
16598                          || test ! -s conftest.err'
16599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600   (eval $ac_try) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); }; } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ol_cv_dcl_sys_errlist=yes
16611         ol_cv_have_sys_errlist=yes
16612 else
16613   echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ol_cv_dcl_sys_errlist=no
16617 fi
16618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16619 fi
16620 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16621 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16622 #
16623 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16624 if test $ol_cv_dcl_sys_errlist = no ; then
16625
16626 cat >>confdefs.h <<\_ACEOF
16627 #define DECL_SYS_ERRLIST 1
16628 _ACEOF
16629
16630
16631         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16632 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16633 if test "${ol_cv_have_sys_errlist+set}" = set; then
16634   echo $ECHO_N "(cached) $ECHO_C" >&6
16635 else
16636
16637                 cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643 #include <errno.h>
16644 int
16645 main ()
16646 {
16647 char *c = (char *) *sys_errlist
16648   ;
16649   return 0;
16650 }
16651 _ACEOF
16652 rm -f conftest.$ac_objext conftest$ac_exeext
16653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16654   (eval $ac_link) 2>conftest.er1
16655   ac_status=$?
16656   grep -v '^ *+' conftest.er1 >conftest.err
16657   rm -f conftest.er1
16658   cat conftest.err >&5
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); } &&
16661          { ac_try='test -z "$ac_c_werror_flag"
16662                          || test ! -s conftest.err'
16663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664   (eval $ac_try) 2>&5
16665   ac_status=$?
16666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667   (exit $ac_status); }; } &&
16668          { ac_try='test -s conftest$ac_exeext'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; }; then
16674   ol_cv_have_sys_errlist=yes
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ol_cv_have_sys_errlist=no
16680 fi
16681 rm -f conftest.err conftest.$ac_objext \
16682       conftest$ac_exeext conftest.$ac_ext
16683 fi
16684 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16685 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16686 fi
16687 if test $ol_cv_have_sys_errlist = yes ; then
16688
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE_SYS_ERRLIST 1
16691 _ACEOF
16692
16693 fi
16694
16695 fi
16696
16697
16698
16699 for ac_header in regex.h
16700 do
16701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16702 echo "$as_me:$LINENO: checking for $ac_header" >&5
16703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16705   echo $ECHO_N "(cached) $ECHO_C" >&6
16706 else
16707   cat >conftest.$ac_ext <<_ACEOF
16708 /* confdefs.h.  */
16709 _ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h.  */
16713 $ac_includes_default
16714 #ifdef HAVE_SYS_TYPES_H
16715 #include <sys/types.h>
16716 #endif
16717
16718
16719 #include <$ac_header>
16720 _ACEOF
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723   (eval $ac_compile) 2>conftest.er1
16724   ac_status=$?
16725   grep -v '^ *+' conftest.er1 >conftest.err
16726   rm -f conftest.er1
16727   cat conftest.err >&5
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } &&
16730          { ac_try='test -z "$ac_c_werror_flag"
16731                          || test ! -s conftest.err'
16732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733   (eval $ac_try) 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest.$ac_objext'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; }; then
16743   eval "$as_ac_Header=yes"
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 eval "$as_ac_Header=no"
16749 fi
16750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16751 fi
16752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16755   cat >>confdefs.h <<_ACEOF
16756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16757 _ACEOF
16758
16759 fi
16760
16761 done
16762
16763
16764 if test "$ac_cv_header_regex_h" != yes ; then
16765         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16766 echo "$as_me: error: POSIX regex.h required." >&2;}
16767    { (exit 1); exit 1; }; }
16768 fi
16769 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16770 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16771 if test "${ac_cv_search_regfree+set}" = set; then
16772   echo $ECHO_N "(cached) $ECHO_C" >&6
16773 else
16774   ac_func_search_save_LIBS=$LIBS
16775 ac_cv_search_regfree=no
16776 cat >conftest.$ac_ext <<_ACEOF
16777 /* confdefs.h.  */
16778 _ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h.  */
16782
16783 /* Override any gcc2 internal prototype to avoid an error.  */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 /* We use char because int might match the return type of a gcc2
16788    builtin and then its argument prototype would still apply.  */
16789 char regfree ();
16790 int
16791 main ()
16792 {
16793 regfree ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800   (eval $ac_link) 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } &&
16807          { ac_try='test -z "$ac_c_werror_flag"
16808                          || test ! -s conftest.err'
16809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810   (eval $ac_try) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; } &&
16814          { ac_try='test -s conftest$ac_exeext'
16815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816   (eval $ac_try) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; }; then
16820   ac_cv_search_regfree="none required"
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 fi
16826 rm -f conftest.err conftest.$ac_objext \
16827       conftest$ac_exeext conftest.$ac_ext
16828 if test "$ac_cv_search_regfree" = no; then
16829   for ac_lib in regex gnuregex; do
16830     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16831     cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h.  */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h.  */
16837
16838 /* Override any gcc2 internal prototype to avoid an error.  */
16839 #ifdef __cplusplus
16840 extern "C"
16841 #endif
16842 /* We use char because int might match the return type of a gcc2
16843    builtin and then its argument prototype would still apply.  */
16844 char regfree ();
16845 int
16846 main ()
16847 {
16848 regfree ();
16849   ;
16850   return 0;
16851 }
16852 _ACEOF
16853 rm -f conftest.$ac_objext conftest$ac_exeext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855   (eval $ac_link) 2>conftest.er1
16856   ac_status=$?
16857   grep -v '^ *+' conftest.er1 >conftest.err
16858   rm -f conftest.er1
16859   cat conftest.err >&5
16860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861   (exit $ac_status); } &&
16862          { ac_try='test -z "$ac_c_werror_flag"
16863                          || test ! -s conftest.err'
16864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865   (eval $ac_try) 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; } &&
16869          { ac_try='test -s conftest$ac_exeext'
16870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871   (eval $ac_try) 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; }; then
16875   ac_cv_search_regfree="-l$ac_lib"
16876 break
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881 fi
16882 rm -f conftest.err conftest.$ac_objext \
16883       conftest$ac_exeext conftest.$ac_ext
16884   done
16885 fi
16886 LIBS=$ac_func_search_save_LIBS
16887 fi
16888 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16889 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16890 if test "$ac_cv_search_regfree" != no; then
16891   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16892   :
16893 else
16894   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16895 echo "$as_me: error: POSIX regex required." >&2;}
16896    { (exit 1); exit 1; }; }
16897 fi
16898
16899
16900
16901 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16902 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16903 if test "${ol_cv_c_posix_regex+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906
16907         if test "$cross_compiling" = yes; then
16908   ol_cv_c_posix_regex=cross
16909 else
16910   cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916
16917 #include <sys/types.h>
16918 #include <regex.h>
16919 static char *pattern, *string;
16920 main()
16921 {
16922         int rc;
16923         regex_t re;
16924
16925         pattern = "^A";
16926
16927         if(regcomp(&re, pattern, 0)) {
16928                 return -1;
16929         }
16930
16931         string = "ALL MATCH";
16932
16933         rc = regexec(&re, string, 0, (void*)0, 0);
16934
16935         regfree(&re);
16936
16937         return rc;
16938 }
16939 _ACEOF
16940 rm -f conftest$ac_exeext
16941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16942   (eval $ac_link) 2>&5
16943   ac_status=$?
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16947   (eval $ac_try) 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; }; then
16951   ol_cv_c_posix_regex=yes
16952 else
16953   echo "$as_me: program exited with status $ac_status" >&5
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 ( exit $ac_status )
16958 ol_cv_c_posix_regex=no
16959 fi
16960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16961 fi
16962 fi
16963 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16964 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16965
16966 if test "$ol_cv_c_posix_regex" = no ; then
16967         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16968 echo "$as_me: error: broken POSIX regex!" >&2;}
16969    { (exit 1); exit 1; }; }
16970 fi
16971
16972
16973 have_uuid=no
16974
16975 for ac_header in sys/uuid.h
16976 do
16977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16979   echo "$as_me:$LINENO: checking for $ac_header" >&5
16980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 fi
16984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16986 else
16987   # Is the header compilable?
16988 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 $ac_includes_default
16997 #include <$ac_header>
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17001   (eval $ac_compile) 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } &&
17008          { ac_try='test -z "$ac_c_werror_flag"
17009                          || test ! -s conftest.err'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest.$ac_objext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_header_compiler=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 ac_header_compiler=no
17027 fi
17028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17030 echo "${ECHO_T}$ac_header_compiler" >&6
17031
17032 # Is the header present?
17033 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17035 cat >conftest.$ac_ext <<_ACEOF
17036 /* confdefs.h.  */
17037 _ACEOF
17038 cat confdefs.h >>conftest.$ac_ext
17039 cat >>conftest.$ac_ext <<_ACEOF
17040 /* end confdefs.h.  */
17041 #include <$ac_header>
17042 _ACEOF
17043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } >/dev/null; then
17051   if test -s conftest.err; then
17052     ac_cpp_err=$ac_c_preproc_warn_flag
17053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17054   else
17055     ac_cpp_err=
17056   fi
17057 else
17058   ac_cpp_err=yes
17059 fi
17060 if test -z "$ac_cpp_err"; then
17061   ac_header_preproc=yes
17062 else
17063   echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066   ac_header_preproc=no
17067 fi
17068 rm -f conftest.err conftest.$ac_ext
17069 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070 echo "${ECHO_T}$ac_header_preproc" >&6
17071
17072 # So?  What about this header?
17073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17074   yes:no: )
17075     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17079     ac_header_preproc=yes
17080     ;;
17081   no:yes:* )
17082     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17085 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17086     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17089 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17090     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17094     (
17095       cat <<\_ASBOX
17096 ## --------------------------------------------- ##
17097 ## Report this to <http://www.openldap.org/its/> ##
17098 ## --------------------------------------------- ##
17099 _ASBOX
17100     ) |
17101       sed "s/^/$as_me: WARNING:     /" >&2
17102     ;;
17103 esac
17104 echo "$as_me:$LINENO: checking for $ac_header" >&5
17105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109   eval "$as_ac_Header=\$ac_header_preproc"
17110 fi
17111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17113
17114 fi
17115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17116   cat >>confdefs.h <<_ACEOF
17117 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17118 _ACEOF
17119
17120 fi
17121
17122 done
17123
17124 if test $ac_cv_header_sys_uuid_h = yes ; then
17125         save_LIBS="$LIBS"
17126         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17127 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17128 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17129   echo $ECHO_N "(cached) $ECHO_C" >&6
17130 else
17131   ac_func_search_save_LIBS=$LIBS
17132 ac_cv_search_uuid_to_str=no
17133 cat >conftest.$ac_ext <<_ACEOF
17134 /* confdefs.h.  */
17135 _ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h.  */
17139
17140 /* Override any gcc2 internal prototype to avoid an error.  */
17141 #ifdef __cplusplus
17142 extern "C"
17143 #endif
17144 /* We use char because int might match the return type of a gcc2
17145    builtin and then its argument prototype would still apply.  */
17146 char uuid_to_str ();
17147 int
17148 main ()
17149 {
17150 uuid_to_str ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17157   (eval $ac_link) 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -z "$ac_c_werror_flag"
17165                          || test ! -s conftest.err'
17166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167   (eval $ac_try) 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; } &&
17171          { ac_try='test -s conftest$ac_exeext'
17172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173   (eval $ac_try) 2>&5
17174   ac_status=$?
17175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176   (exit $ac_status); }; }; then
17177   ac_cv_search_uuid_to_str="none required"
17178 else
17179   echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 fi
17183 rm -f conftest.err conftest.$ac_objext \
17184       conftest$ac_exeext conftest.$ac_ext
17185 if test "$ac_cv_search_uuid_to_str" = no; then
17186   for ac_lib in uuid; do
17187     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17188     cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194
17195 /* Override any gcc2 internal prototype to avoid an error.  */
17196 #ifdef __cplusplus
17197 extern "C"
17198 #endif
17199 /* We use char because int might match the return type of a gcc2
17200    builtin and then its argument prototype would still apply.  */
17201 char uuid_to_str ();
17202 int
17203 main ()
17204 {
17205 uuid_to_str ();
17206   ;
17207   return 0;
17208 }
17209 _ACEOF
17210 rm -f conftest.$ac_objext conftest$ac_exeext
17211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17212   (eval $ac_link) 2>conftest.er1
17213   ac_status=$?
17214   grep -v '^ *+' conftest.er1 >conftest.err
17215   rm -f conftest.er1
17216   cat conftest.err >&5
17217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218   (exit $ac_status); } &&
17219          { ac_try='test -z "$ac_c_werror_flag"
17220                          || test ! -s conftest.err'
17221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17222   (eval $ac_try) 2>&5
17223   ac_status=$?
17224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225   (exit $ac_status); }; } &&
17226          { ac_try='test -s conftest$ac_exeext'
17227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228   (eval $ac_try) 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); }; }; then
17232   ac_cv_search_uuid_to_str="-l$ac_lib"
17233 break
17234 else
17235   echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238 fi
17239 rm -f conftest.err conftest.$ac_objext \
17240       conftest$ac_exeext conftest.$ac_ext
17241   done
17242 fi
17243 LIBS=$ac_func_search_save_LIBS
17244 fi
17245 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17246 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17247 if test "$ac_cv_search_uuid_to_str" != no; then
17248   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17249   have_uuid=yes
17250 else
17251   :
17252 fi
17253
17254         LIBS="$save_LIBS"
17255
17256         if test have_uuid = yes ; then
17257
17258 cat >>confdefs.h <<\_ACEOF
17259 #define HAVE_UUID_TO_STR 1
17260 _ACEOF
17261
17262
17263                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17264                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17265         fi
17266 fi
17267
17268 if test $have_uuid = no ; then
17269         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17270 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17271         save_LIBS="$LIBS"
17272         LIBS="$LIBS -lrpcrt4"
17273         cat >conftest.$ac_ext <<_ACEOF
17274 /* confdefs.h.  */
17275 _ACEOF
17276 cat confdefs.h >>conftest.$ac_ext
17277 cat >>conftest.$ac_ext <<_ACEOF
17278 /* end confdefs.h.  */
17279
17280                 int __stdcall UuidCreate(void *);
17281                 int __stdcall UuidToStringA(void *,void **);
17282
17283 int
17284 main ()
17285 {
17286
17287                 UuidCreate(0);
17288                 UuidToStringA(0,0);
17289
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17296   (eval $ac_link) 2>conftest.er1
17297   ac_status=$?
17298   grep -v '^ *+' conftest.er1 >conftest.err
17299   rm -f conftest.er1
17300   cat conftest.err >&5
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); } &&
17303          { ac_try='test -z "$ac_c_werror_flag"
17304                          || test ! -s conftest.err'
17305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17306   (eval $ac_try) 2>&5
17307   ac_status=$?
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); }; } &&
17310          { ac_try='test -s conftest$ac_exeext'
17311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17312   (eval $ac_try) 2>&5
17313   ac_status=$?
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); }; }; then
17316   need_rpcrt=yes
17317 else
17318   echo "$as_me: failed program was:" >&5
17319 sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 need_rpcrt=no
17322 fi
17323 rm -f conftest.err conftest.$ac_objext \
17324       conftest$ac_exeext conftest.$ac_ext
17325         if test $need_rpcrt = yes; then
17326                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17327         fi
17328         LIBS="$save_LIBS"
17329         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17330 echo "${ECHO_T}$need_rpcrt" >&6
17331 fi
17332
17333 ol_cv_lib_resolver=no
17334 if test $ol_cv_lib_resolver = no ; then
17335         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17336 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17337 if test "${ol_cv_resolver_none+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340
17341         ol_RESOLVER_LIB=
17342         ol_LIBS=$LIBS
17343         LIBS="$ol_RESOLVER_LIB $LIBS"
17344
17345         cat >conftest.$ac_ext <<_ACEOF
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351
17352 #ifdef HAVE_SYS_TYPES_H
17353 #       include <sys/types.h>
17354 #endif
17355 #include <netinet/in.h>
17356 #ifdef HAVE_ARPA_NAMESER_H
17357 #       include <arpa/nameser.h>
17358 #endif
17359 #ifdef HAVE_RESOLV_H
17360 #       include <resolv.h>
17361 #endif
17362
17363 int
17364 main ()
17365 {
17366 {
17367         int len, status;
17368         char *request = NULL;
17369         unsigned char reply[64*1024];
17370         unsigned char host[64*1024];
17371         unsigned char *p;
17372
17373 #ifdef NS_HFIXEDSZ
17374         /* Bind 8/9 interface */
17375         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17376 #else
17377         /* Bind 4 interface */
17378 # ifndef T_SRV
17379 #  define T_SRV 33
17380 # endif
17381         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17382 #endif
17383         p = reply;
17384 #ifdef NS_HFIXEDSZ
17385         /* Bind 8/9 interface */
17386         p += NS_HFIXEDSZ;
17387 #elif defined(HFIXEDSZ)
17388         /* Bind 4 interface w/ HFIXEDSZ */
17389         p += HFIXEDSZ;
17390 #else
17391         /* Bind 4 interface w/o HFIXEDSZ */
17392         p += sizeof(HEADER);
17393 #endif
17394         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17395 }
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17402   (eval $ac_link) 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -z "$ac_c_werror_flag"
17410                          || test ! -s conftest.err'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest$ac_exeext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ol_cv_resolver_none=yes
17423 else
17424   echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ol_cv_resolver_none=no
17428 fi
17429 rm -f conftest.err conftest.$ac_objext \
17430       conftest$ac_exeext conftest.$ac_ext
17431
17432         LIBS="$ol_LIBS"
17433
17434 fi
17435 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17436 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17437
17438         if test $ol_cv_resolver_none = yes ; then
17439                 ol_cv_lib_resolver=yes
17440         fi
17441 fi
17442
17443 if test $ol_cv_lib_resolver = no ; then
17444         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17445 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17446 if test "${ol_cv_resolver_resolv+set}" = set; then
17447   echo $ECHO_N "(cached) $ECHO_C" >&6
17448 else
17449
17450         ol_RESOLVER_LIB=-lresolv
17451         ol_LIBS=$LIBS
17452         LIBS="$ol_RESOLVER_LIB $LIBS"
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 #ifdef HAVE_SYS_TYPES_H
17462 #       include <sys/types.h>
17463 #endif
17464 #include <netinet/in.h>
17465 #ifdef HAVE_ARPA_NAMESER_H
17466 #       include <arpa/nameser.h>
17467 #endif
17468 #ifdef HAVE_RESOLV_H
17469 #       include <resolv.h>
17470 #endif
17471
17472 int
17473 main ()
17474 {
17475 {
17476         int len, status;
17477         char *request = NULL;
17478         unsigned char reply[64*1024];
17479         unsigned char host[64*1024];
17480         unsigned char *p;
17481
17482 #ifdef NS_HFIXEDSZ
17483         /* Bind 8/9 interface */
17484         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17485 #else
17486         /* Bind 4 interface */
17487 # ifndef T_SRV
17488 #  define T_SRV 33
17489 # endif
17490         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17491 #endif
17492         p = reply;
17493 #ifdef NS_HFIXEDSZ
17494         /* Bind 8/9 interface */
17495         p += NS_HFIXEDSZ;
17496 #elif defined(HFIXEDSZ)
17497         /* Bind 4 interface w/ HFIXEDSZ */
17498         p += HFIXEDSZ;
17499 #else
17500         /* Bind 4 interface w/o HFIXEDSZ */
17501         p += sizeof(HEADER);
17502 #endif
17503         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17504 }
17505   ;
17506   return 0;
17507 }
17508 _ACEOF
17509 rm -f conftest.$ac_objext conftest$ac_exeext
17510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17511   (eval $ac_link) 2>conftest.er1
17512   ac_status=$?
17513   grep -v '^ *+' conftest.er1 >conftest.err
17514   rm -f conftest.er1
17515   cat conftest.err >&5
17516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517   (exit $ac_status); } &&
17518          { ac_try='test -z "$ac_c_werror_flag"
17519                          || test ! -s conftest.err'
17520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521   (eval $ac_try) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; } &&
17525          { ac_try='test -s conftest$ac_exeext'
17526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17527   (eval $ac_try) 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); }; }; then
17531   ol_cv_resolver_resolv=yes
17532 else
17533   echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17535
17536 ol_cv_resolver_resolv=no
17537 fi
17538 rm -f conftest.err conftest.$ac_objext \
17539       conftest$ac_exeext conftest.$ac_ext
17540
17541         LIBS="$ol_LIBS"
17542
17543 fi
17544 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17546
17547         if test $ol_cv_resolver_resolv = yes ; then
17548                 ol_cv_lib_resolver=-lresolv
17549         fi
17550 fi
17551
17552 if test $ol_cv_lib_resolver = no ; then
17553         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17555 if test "${ol_cv_resolver_bind+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558
17559         ol_RESOLVER_LIB=-lbind
17560         ol_LIBS=$LIBS
17561         LIBS="$ol_RESOLVER_LIB $LIBS"
17562
17563         cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570 #ifdef HAVE_SYS_TYPES_H
17571 #       include <sys/types.h>
17572 #endif
17573 #include <netinet/in.h>
17574 #ifdef HAVE_ARPA_NAMESER_H
17575 #       include <arpa/nameser.h>
17576 #endif
17577 #ifdef HAVE_RESOLV_H
17578 #       include <resolv.h>
17579 #endif
17580
17581 int
17582 main ()
17583 {
17584 {
17585         int len, status;
17586         char *request = NULL;
17587         unsigned char reply[64*1024];
17588         unsigned char host[64*1024];
17589         unsigned char *p;
17590
17591 #ifdef NS_HFIXEDSZ
17592         /* Bind 8/9 interface */
17593         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17594 #else
17595         /* Bind 4 interface */
17596 # ifndef T_SRV
17597 #  define T_SRV 33
17598 # endif
17599         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17600 #endif
17601         p = reply;
17602 #ifdef NS_HFIXEDSZ
17603         /* Bind 8/9 interface */
17604         p += NS_HFIXEDSZ;
17605 #elif defined(HFIXEDSZ)
17606         /* Bind 4 interface w/ HFIXEDSZ */
17607         p += HFIXEDSZ;
17608 #else
17609         /* Bind 4 interface w/o HFIXEDSZ */
17610         p += sizeof(HEADER);
17611 #endif
17612         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17613 }
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext conftest$ac_exeext
17619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17620   (eval $ac_link) 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag"
17628                          || test ! -s conftest.err'
17629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630   (eval $ac_try) 2>&5
17631   ac_status=$?
17632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633   (exit $ac_status); }; } &&
17634          { ac_try='test -s conftest$ac_exeext'
17635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636   (eval $ac_try) 2>&5
17637   ac_status=$?
17638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639   (exit $ac_status); }; }; then
17640   ol_cv_resolver_bind=yes
17641 else
17642   echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 ol_cv_resolver_bind=no
17646 fi
17647 rm -f conftest.err conftest.$ac_objext \
17648       conftest$ac_exeext conftest.$ac_ext
17649
17650         LIBS="$ol_LIBS"
17651
17652 fi
17653 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17654 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17655
17656         if test $ol_cv_resolver_bind = yes ; then
17657                 ol_cv_lib_resolver=-lbind
17658         fi
17659 fi
17660
17661
17662
17663 ol_link_dnssrv=no
17664 if test "$ol_cv_lib_resolver" != no ; then
17665
17666 cat >>confdefs.h <<\_ACEOF
17667 #define HAVE_RES_QUERY 1
17668 _ACEOF
17669
17670
17671         if test "$ol_enable_dnssrv" != no ; then
17672                 ol_link_dnssrv=yes
17673         fi
17674
17675         if test "$ol_cv_lib_resolver" != yes ; then
17676                 LIBS="$ol_cv_lib_resolver $LIBS"
17677         fi
17678 fi
17679
17680 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17681         if test "$ol_link_dnssrv" = no ; then
17682                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17683 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17684    { (exit 1); exit 1; }; }
17685         fi
17686 else
17687         ol_enable_dnssrv=no
17688 fi
17689
17690
17691 for ac_func in hstrerror
17692 do
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17696 if eval "test \"\${$as_ac_var+set}\" = set"; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17707 #define $ac_func innocuous_$ac_func
17708
17709 /* System header to define __stub macros and hopefully few prototypes,
17710     which can conflict with char $ac_func (); below.
17711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712     <limits.h> exists even on freestanding compilers.  */
17713
17714 #ifdef __STDC__
17715 # include <limits.h>
17716 #else
17717 # include <assert.h>
17718 #endif
17719
17720 #undef $ac_func
17721
17722 /* Override any gcc2 internal prototype to avoid an error.  */
17723 #ifdef __cplusplus
17724 extern "C"
17725 {
17726 #endif
17727 /* We use char because int might match the return type of a gcc2
17728    builtin and then its argument prototype would still apply.  */
17729 char $ac_func ();
17730 /* The GNU C library defines this for functions which it implements
17731     to always fail with ENOSYS.  Some functions are actually named
17732     something starting with __ and the normal name is an alias.  */
17733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17734 choke me
17735 #else
17736 char (*f) () = $ac_func;
17737 #endif
17738 #ifdef __cplusplus
17739 }
17740 #endif
17741
17742 int
17743 main ()
17744 {
17745 return f != $ac_func;
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752   (eval $ac_link) 2>conftest.er1
17753   ac_status=$?
17754   grep -v '^ *+' conftest.er1 >conftest.err
17755   rm -f conftest.er1
17756   cat conftest.err >&5
17757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758   (exit $ac_status); } &&
17759          { ac_try='test -z "$ac_c_werror_flag"
17760                          || test ! -s conftest.err'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; } &&
17766          { ac_try='test -s conftest$ac_exeext'
17767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768   (eval $ac_try) 2>&5
17769   ac_status=$?
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); }; }; then
17772   eval "$as_ac_var=yes"
17773 else
17774   echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 eval "$as_ac_var=no"
17778 fi
17779 rm -f conftest.err conftest.$ac_objext \
17780       conftest$ac_exeext conftest.$ac_ext
17781 fi
17782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17784 if test `eval echo '${'$as_ac_var'}'` = yes; then
17785   cat >>confdefs.h <<_ACEOF
17786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17787 _ACEOF
17788
17789 fi
17790 done
17791
17792
17793
17794
17795
17796
17797 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17798 do
17799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800 echo "$as_me:$LINENO: checking for $ac_func" >&5
17801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17802 if eval "test \"\${$as_ac_var+set}\" = set"; then
17803   echo $ECHO_N "(cached) $ECHO_C" >&6
17804 else
17805   cat >conftest.$ac_ext <<_ACEOF
17806 /* confdefs.h.  */
17807 _ACEOF
17808 cat confdefs.h >>conftest.$ac_ext
17809 cat >>conftest.$ac_ext <<_ACEOF
17810 /* end confdefs.h.  */
17811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17813 #define $ac_func innocuous_$ac_func
17814
17815 /* System header to define __stub macros and hopefully few prototypes,
17816     which can conflict with char $ac_func (); below.
17817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17818     <limits.h> exists even on freestanding compilers.  */
17819
17820 #ifdef __STDC__
17821 # include <limits.h>
17822 #else
17823 # include <assert.h>
17824 #endif
17825
17826 #undef $ac_func
17827
17828 /* Override any gcc2 internal prototype to avoid an error.  */
17829 #ifdef __cplusplus
17830 extern "C"
17831 {
17832 #endif
17833 /* We use char because int might match the return type of a gcc2
17834    builtin and then its argument prototype would still apply.  */
17835 char $ac_func ();
17836 /* The GNU C library defines this for functions which it implements
17837     to always fail with ENOSYS.  Some functions are actually named
17838     something starting with __ and the normal name is an alias.  */
17839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17840 choke me
17841 #else
17842 char (*f) () = $ac_func;
17843 #endif
17844 #ifdef __cplusplus
17845 }
17846 #endif
17847
17848 int
17849 main ()
17850 {
17851 return f != $ac_func;
17852   ;
17853   return 0;
17854 }
17855 _ACEOF
17856 rm -f conftest.$ac_objext conftest$ac_exeext
17857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17858   (eval $ac_link) 2>conftest.er1
17859   ac_status=$?
17860   grep -v '^ *+' conftest.er1 >conftest.err
17861   rm -f conftest.er1
17862   cat conftest.err >&5
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); } &&
17865          { ac_try='test -z "$ac_c_werror_flag"
17866                          || test ! -s conftest.err'
17867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868   (eval $ac_try) 2>&5
17869   ac_status=$?
17870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871   (exit $ac_status); }; } &&
17872          { ac_try='test -s conftest$ac_exeext'
17873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17874   (eval $ac_try) 2>&5
17875   ac_status=$?
17876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17877   (exit $ac_status); }; }; then
17878   eval "$as_ac_var=yes"
17879 else
17880   echo "$as_me: failed program was:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 eval "$as_ac_var=no"
17884 fi
17885 rm -f conftest.err conftest.$ac_objext \
17886       conftest$ac_exeext conftest.$ac_ext
17887 fi
17888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17890 if test `eval echo '${'$as_ac_var'}'` = yes; then
17891   cat >>confdefs.h <<_ACEOF
17892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17893 _ACEOF
17894
17895 fi
17896 done
17897
17898
17899 ol_link_ipv6=no
17900 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17901         if test $ol_enable_ipv6 = yes ; then
17902                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17903 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17904    { (exit 1); exit 1; }; }
17905         fi
17906 elif test $ol_enable_ipv6 != no ; then
17907         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17908 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17909 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17910   echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912
17913                 cat >conftest.$ac_ext <<_ACEOF
17914 /* confdefs.h.  */
17915 _ACEOF
17916 cat confdefs.h >>conftest.$ac_ext
17917 cat >>conftest.$ac_ext <<_ACEOF
17918 /* end confdefs.h.  */
17919
17920 #                       include <netinet/in.h>
17921 #                       ifdef INET6_ADDRSTRLEN
17922                                 __has_inet6_addrstrlen__;
17923 #                       endif
17924
17925 _ACEOF
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17928   ol_cv_inet6_addrstrlen=yes
17929 else
17930   ol_cv_inet6_addrstrlen=no
17931 fi
17932 rm -f conftest*
17933
17934 fi
17935 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17936 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17937
17938
17939         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17940 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17941 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17942   echo $ECHO_N "(cached) $ECHO_C" >&6
17943 else
17944
17945                 cat >conftest.$ac_ext <<_ACEOF
17946 /* confdefs.h.  */
17947 _ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h.  */
17951
17952 #include <sys/types.h>
17953 #include <sys/socket.h>
17954
17955 int
17956 main ()
17957 {
17958
17959                         struct sockaddr_storage ss;
17960
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967   (eval $ac_compile) 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } &&
17974          { ac_try='test -z "$ac_c_werror_flag"
17975                          || test ! -s conftest.err'
17976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977   (eval $ac_try) 2>&5
17978   ac_status=$?
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }; } &&
17981          { ac_try='test -s conftest.$ac_objext'
17982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983   (eval $ac_try) 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   ol_cv_struct_sockaddr_storage=yes
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992 ol_cv_struct_sockaddr_storage=no
17993 fi
17994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17995 fi
17996 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17997 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17998
17999         if test $ol_cv_inet6_addrstrlen = yes &&
18000            test $ol_cv_struct_sockaddr_storage = yes ; then
18001                 ol_link_ipv6=yes
18002         elif test $ol_enable_ipv6 = yes &&
18003              test $ol_cv_inet6_addrstrlen = no ; then
18004                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18005 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18006    { (exit 1); exit 1; }; }
18007         elif test $ol_enable_ipv6 = yes &&
18008              test $ol_cv_struct_sockaddr_storage = no ; then
18009                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18010 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18011    { (exit 1); exit 1; }; }
18012         fi
18013 fi
18014
18015 if test $ol_enable_local != no ; then
18016
18017 for ac_header in sys/un.h
18018 do
18019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18021   echo "$as_me:$LINENO: checking for $ac_header" >&5
18022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 fi
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18028 else
18029   # Is the header compilable?
18030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18032 cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 $ac_includes_default
18039 #include <$ac_header>
18040 _ACEOF
18041 rm -f conftest.$ac_objext
18042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18043   (eval $ac_compile) 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -z "$ac_c_werror_flag"
18051                          || test ! -s conftest.err'
18052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18053   (eval $ac_try) 2>&5
18054   ac_status=$?
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); }; } &&
18057          { ac_try='test -s conftest.$ac_objext'
18058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059   (eval $ac_try) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); }; }; then
18063   ac_header_compiler=yes
18064 else
18065   echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18067
18068 ac_header_compiler=no
18069 fi
18070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6
18073
18074 # Is the header present?
18075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18077 cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 #include <$ac_header>
18084 _ACEOF
18085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18087   ac_status=$?
18088   grep -v '^ *+' conftest.er1 >conftest.err
18089   rm -f conftest.er1
18090   cat conftest.err >&5
18091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092   (exit $ac_status); } >/dev/null; then
18093   if test -s conftest.err; then
18094     ac_cpp_err=$ac_c_preproc_warn_flag
18095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18096   else
18097     ac_cpp_err=
18098   fi
18099 else
18100   ac_cpp_err=yes
18101 fi
18102 if test -z "$ac_cpp_err"; then
18103   ac_header_preproc=yes
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108   ac_header_preproc=no
18109 fi
18110 rm -f conftest.err conftest.$ac_ext
18111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6
18113
18114 # So?  What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18116   yes:no: )
18117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18121     ac_header_preproc=yes
18122     ;;
18123   no:yes:* )
18124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18136     (
18137       cat <<\_ASBOX
18138 ## --------------------------------------------- ##
18139 ## Report this to <http://www.openldap.org/its/> ##
18140 ## --------------------------------------------- ##
18141 _ASBOX
18142     ) |
18143       sed "s/^/$as_me: WARNING:     /" >&2
18144     ;;
18145 esac
18146 echo "$as_me:$LINENO: checking for $ac_header" >&5
18147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   eval "$as_ac_Header=\$ac_header_preproc"
18152 fi
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18155
18156 fi
18157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18158   cat >>confdefs.h <<_ACEOF
18159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18160 _ACEOF
18161
18162 fi
18163
18164 done
18165
18166
18167         if test $ol_enable_local = auto ; then
18168                 ol_enable_local=$ac_cv_header_sys_un_h
18169         elif test $ac_cv_header_sys_un_h = no ; then
18170                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18172    { (exit 1); exit 1; }; }
18173         fi
18174 fi
18175
18176 ol_link_kbind=no
18177 ol_link_krb5=no
18178 ol_link_krb4=no
18179
18180 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18181
18182
18183 for ac_header in krb5.h
18184 do
18185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18187   echo "$as_me:$LINENO: checking for $ac_header" >&5
18188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 fi
18192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18194 else
18195   # Is the header compilable?
18196 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18198 cat >conftest.$ac_ext <<_ACEOF
18199 /* confdefs.h.  */
18200 _ACEOF
18201 cat confdefs.h >>conftest.$ac_ext
18202 cat >>conftest.$ac_ext <<_ACEOF
18203 /* end confdefs.h.  */
18204 $ac_includes_default
18205 #include <$ac_header>
18206 _ACEOF
18207 rm -f conftest.$ac_objext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209   (eval $ac_compile) 2>conftest.er1
18210   ac_status=$?
18211   grep -v '^ *+' conftest.er1 >conftest.err
18212   rm -f conftest.er1
18213   cat conftest.err >&5
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); } &&
18216          { ac_try='test -z "$ac_c_werror_flag"
18217                          || test ! -s conftest.err'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; } &&
18223          { ac_try='test -s conftest.$ac_objext'
18224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225   (eval $ac_try) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); }; }; then
18229   ac_header_compiler=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234 ac_header_compiler=no
18235 fi
18236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18238 echo "${ECHO_T}$ac_header_compiler" >&6
18239
18240 # Is the header present?
18241 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18243 cat >conftest.$ac_ext <<_ACEOF
18244 /* confdefs.h.  */
18245 _ACEOF
18246 cat confdefs.h >>conftest.$ac_ext
18247 cat >>conftest.$ac_ext <<_ACEOF
18248 /* end confdefs.h.  */
18249 #include <$ac_header>
18250 _ACEOF
18251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18252   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18253   ac_status=$?
18254   grep -v '^ *+' conftest.er1 >conftest.err
18255   rm -f conftest.er1
18256   cat conftest.err >&5
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } >/dev/null; then
18259   if test -s conftest.err; then
18260     ac_cpp_err=$ac_c_preproc_warn_flag
18261     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18262   else
18263     ac_cpp_err=
18264   fi
18265 else
18266   ac_cpp_err=yes
18267 fi
18268 if test -z "$ac_cpp_err"; then
18269   ac_header_preproc=yes
18270 else
18271   echo "$as_me: failed program was:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18273
18274   ac_header_preproc=no
18275 fi
18276 rm -f conftest.err conftest.$ac_ext
18277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18278 echo "${ECHO_T}$ac_header_preproc" >&6
18279
18280 # So?  What about this header?
18281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18282   yes:no: )
18283     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18287     ac_header_preproc=yes
18288     ;;
18289   no:yes:* )
18290     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18292     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18293 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18294     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18296     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18297 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18300     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18302     (
18303       cat <<\_ASBOX
18304 ## --------------------------------------------- ##
18305 ## Report this to <http://www.openldap.org/its/> ##
18306 ## --------------------------------------------- ##
18307 _ASBOX
18308     ) |
18309       sed "s/^/$as_me: WARNING:     /" >&2
18310     ;;
18311 esac
18312 echo "$as_me:$LINENO: checking for $ac_header" >&5
18313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   eval "$as_ac_Header=\$ac_header_preproc"
18318 fi
18319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18321
18322 fi
18323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18324   cat >>confdefs.h <<_ACEOF
18325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18326 _ACEOF
18327
18328 fi
18329
18330 done
18331
18332
18333         if test $ac_cv_header_krb5_h = yes ; then
18334
18335 for ac_header in heim_err.h
18336 do
18337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18339   echo "$as_me:$LINENO: checking for $ac_header" >&5
18340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18342   echo $ECHO_N "(cached) $ECHO_C" >&6
18343 fi
18344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18346 else
18347   # Is the header compilable?
18348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 $ac_includes_default
18357 #include <$ac_header>
18358 _ACEOF
18359 rm -f conftest.$ac_objext
18360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18361   (eval $ac_compile) 2>conftest.er1
18362   ac_status=$?
18363   grep -v '^ *+' conftest.er1 >conftest.err
18364   rm -f conftest.er1
18365   cat conftest.err >&5
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } &&
18368          { ac_try='test -z "$ac_c_werror_flag"
18369                          || test ! -s conftest.err'
18370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371   (eval $ac_try) 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; } &&
18375          { ac_try='test -s conftest.$ac_objext'
18376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18377   (eval $ac_try) 2>&5
18378   ac_status=$?
18379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380   (exit $ac_status); }; }; then
18381   ac_header_compiler=yes
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386 ac_header_compiler=no
18387 fi
18388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18390 echo "${ECHO_T}$ac_header_compiler" >&6
18391
18392 # Is the header present?
18393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18395 cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 #include <$ac_header>
18402 _ACEOF
18403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18404   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18405   ac_status=$?
18406   grep -v '^ *+' conftest.er1 >conftest.err
18407   rm -f conftest.er1
18408   cat conftest.err >&5
18409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410   (exit $ac_status); } >/dev/null; then
18411   if test -s conftest.err; then
18412     ac_cpp_err=$ac_c_preproc_warn_flag
18413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18414   else
18415     ac_cpp_err=
18416   fi
18417 else
18418   ac_cpp_err=yes
18419 fi
18420 if test -z "$ac_cpp_err"; then
18421   ac_header_preproc=yes
18422 else
18423   echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18425
18426   ac_header_preproc=no
18427 fi
18428 rm -f conftest.err conftest.$ac_ext
18429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18430 echo "${ECHO_T}$ac_header_preproc" >&6
18431
18432 # So?  What about this header?
18433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18434   yes:no: )
18435     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18439     ac_header_preproc=yes
18440     ;;
18441   no:yes:* )
18442     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18444     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18445 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18446     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18448     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18449 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18452     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18454     (
18455       cat <<\_ASBOX
18456 ## --------------------------------------------- ##
18457 ## Report this to <http://www.openldap.org/its/> ##
18458 ## --------------------------------------------- ##
18459 _ASBOX
18460     ) |
18461       sed "s/^/$as_me: WARNING:     /" >&2
18462     ;;
18463 esac
18464 echo "$as_me:$LINENO: checking for $ac_header" >&5
18465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   eval "$as_ac_Header=\$ac_header_preproc"
18470 fi
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18473
18474 fi
18475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18476   cat >>confdefs.h <<_ACEOF
18477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18478 _ACEOF
18479
18480 fi
18481
18482 done
18483
18484                 if test $ac_cv_header_heim_err_h = yes ; then
18485                         krb5_impl=heimdal
18486                 else
18487                         krb5_impl=mit
18488                 fi
18489
18490                 if test $krb5_impl = mit; then
18491                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18492 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18493 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18494   echo $ECHO_N "(cached) $ECHO_C" >&6
18495 else
18496   ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lk5crypto  $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h.  */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h.  */
18504
18505
18506 int
18507 main ()
18508 {
18509 main ();
18510   ;
18511   return 0;
18512 }
18513 _ACEOF
18514 rm -f conftest.$ac_objext conftest$ac_exeext
18515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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          { ac_try='test -z "$ac_c_werror_flag"
18524                          || test ! -s conftest.err'
18525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526   (eval $ac_try) 2>&5
18527   ac_status=$?
18528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529   (exit $ac_status); }; } &&
18530          { ac_try='test -s conftest$ac_exeext'
18531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532   (eval $ac_try) 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; }; then
18536   ac_cv_lib_k5crypto_main=yes
18537 else
18538   echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 ac_cv_lib_k5crypto_main=no
18542 fi
18543 rm -f conftest.err conftest.$ac_objext \
18544       conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18546 fi
18547 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18548 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18549 if test $ac_cv_lib_k5crypto_main = yes; then
18550   krb5crypto=k5crypto
18551 else
18552   krb5crypto=crypto
18553 fi
18554
18555
18556                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18557 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18558 if test "${ac_cv_lib_krb5_main+set}" = set; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561   ac_check_lib_save_LIBS=$LIBS
18562 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18564 /* confdefs.h.  */
18565 _ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h.  */
18569
18570
18571 int
18572 main ()
18573 {
18574 main ();
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581   (eval $ac_link) 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } &&
18588          { ac_try='test -z "$ac_c_werror_flag"
18589                          || test ! -s conftest.err'
18590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591   (eval $ac_try) 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest$ac_exeext'
18596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597   (eval $ac_try) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_lib_krb5_main=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_cv_lib_krb5_main=no
18607 fi
18608 rm -f conftest.err conftest.$ac_objext \
18609       conftest$ac_exeext conftest.$ac_ext
18610 LIBS=$ac_check_lib_save_LIBS
18611 fi
18612 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18613 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18614 if test $ac_cv_lib_krb5_main = yes; then
18615   have_krb5=yes
18616                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18617 else
18618   have_krb5=no
18619 fi
18620
18621
18622                 elif test $krb5_impl = heimdal; then
18623                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18624 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18625 if test "${ac_cv_lib_des_main+set}" = set; then
18626   echo $ECHO_N "(cached) $ECHO_C" >&6
18627 else
18628   ac_check_lib_save_LIBS=$LIBS
18629 LIBS="-ldes  $LIBS"
18630 cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637
18638 int
18639 main ()
18640 {
18641 main ();
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18648   (eval $ac_link) 2>conftest.er1
18649   ac_status=$?
18650   grep -v '^ *+' conftest.er1 >conftest.err
18651   rm -f conftest.er1
18652   cat conftest.err >&5
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); } &&
18655          { ac_try='test -z "$ac_c_werror_flag"
18656                          || test ! -s conftest.err'
18657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658   (eval $ac_try) 2>&5
18659   ac_status=$?
18660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661   (exit $ac_status); }; } &&
18662          { ac_try='test -s conftest$ac_exeext'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; }; then
18668   ac_cv_lib_des_main=yes
18669 else
18670   echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ac_cv_lib_des_main=no
18674 fi
18675 rm -f conftest.err conftest.$ac_objext \
18676       conftest$ac_exeext conftest.$ac_ext
18677 LIBS=$ac_check_lib_save_LIBS
18678 fi
18679 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18680 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18681 if test $ac_cv_lib_des_main = yes; then
18682   krb5crypto=des
18683 else
18684   krb5crypto=crypto
18685 fi
18686
18687
18688                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18689 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18690 if test "${ac_cv_lib_krb5_main+set}" = set; then
18691   echo $ECHO_N "(cached) $ECHO_C" >&6
18692 else
18693   ac_check_lib_save_LIBS=$LIBS
18694 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h.  */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h.  */
18701
18702
18703 int
18704 main ()
18705 {
18706 main ();
18707   ;
18708   return 0;
18709 }
18710 _ACEOF
18711 rm -f conftest.$ac_objext conftest$ac_exeext
18712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18713   (eval $ac_link) 2>conftest.er1
18714   ac_status=$?
18715   grep -v '^ *+' conftest.er1 >conftest.err
18716   rm -f conftest.er1
18717   cat conftest.err >&5
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); } &&
18720          { ac_try='test -z "$ac_c_werror_flag"
18721                          || test ! -s conftest.err'
18722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723   (eval $ac_try) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; } &&
18727          { ac_try='test -s conftest$ac_exeext'
18728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18729   (eval $ac_try) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); }; }; then
18733   ac_cv_lib_krb5_main=yes
18734 else
18735   echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_cv_lib_krb5_main=no
18739 fi
18740 rm -f conftest.err conftest.$ac_objext \
18741       conftest$ac_exeext conftest.$ac_ext
18742 LIBS=$ac_check_lib_save_LIBS
18743 fi
18744 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18745 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18746 if test $ac_cv_lib_krb5_main = yes; then
18747   have_krb5=yes
18748                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18749 else
18750   have_krb5=no
18751 fi
18752
18753
18754
18755 cat >>confdefs.h <<\_ACEOF
18756 #define HAVE_HEIMDAL_KERBEROS 1
18757 _ACEOF
18758
18759
18760                 else
18761                         have_krb5=no
18762                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18763 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18764                 fi
18765
18766                 if test $have_krb5 = yes ; then
18767                         ol_link_krb5=yes
18768
18769
18770 cat >>confdefs.h <<\_ACEOF
18771 #define HAVE_KRB5 1
18772 _ACEOF
18773
18774
18775                         if test $ol_with_kerberos = k5only ; then
18776                                 ol_with_kerberos=found
18777                         fi
18778
18779                 elif test $ol_with_kerberos != auto ; then
18780                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18781 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18782    { (exit 1); exit 1; }; }
18783                 fi
18784
18785         fi
18786         ;;
18787 esac
18788
18789 if test $ol_link_krb5 = yes &&
18790    { test $ol_with_kerberos = yes ||
18791      test $ol_with_kerberos = auto ||
18792      test $ol_with_kerberos = k425; }; then
18793
18794
18795
18796 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18797 do
18798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18800   echo "$as_me:$LINENO: checking for $ac_header" >&5
18801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18802 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18803   echo $ECHO_N "(cached) $ECHO_C" >&6
18804 fi
18805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18807 else
18808   # Is the header compilable?
18809 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18810 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18811 cat >conftest.$ac_ext <<_ACEOF
18812 /* confdefs.h.  */
18813 _ACEOF
18814 cat confdefs.h >>conftest.$ac_ext
18815 cat >>conftest.$ac_ext <<_ACEOF
18816 /* end confdefs.h.  */
18817 $ac_includes_default
18818 #include <$ac_header>
18819 _ACEOF
18820 rm -f conftest.$ac_objext
18821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18822   (eval $ac_compile) 2>conftest.er1
18823   ac_status=$?
18824   grep -v '^ *+' conftest.er1 >conftest.err
18825   rm -f conftest.er1
18826   cat conftest.err >&5
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); } &&
18829          { ac_try='test -z "$ac_c_werror_flag"
18830                          || test ! -s conftest.err'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; } &&
18836          { ac_try='test -s conftest.$ac_objext'
18837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838   (eval $ac_try) 2>&5
18839   ac_status=$?
18840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841   (exit $ac_status); }; }; then
18842   ac_header_compiler=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847 ac_header_compiler=no
18848 fi
18849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18851 echo "${ECHO_T}$ac_header_compiler" >&6
18852
18853 # Is the header present?
18854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862 #include <$ac_header>
18863 _ACEOF
18864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18866   ac_status=$?
18867   grep -v '^ *+' conftest.er1 >conftest.err
18868   rm -f conftest.er1
18869   cat conftest.err >&5
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } >/dev/null; then
18872   if test -s conftest.err; then
18873     ac_cpp_err=$ac_c_preproc_warn_flag
18874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18875   else
18876     ac_cpp_err=
18877   fi
18878 else
18879   ac_cpp_err=yes
18880 fi
18881 if test -z "$ac_cpp_err"; then
18882   ac_header_preproc=yes
18883 else
18884   echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.$ac_ext >&5
18886
18887   ac_header_preproc=no
18888 fi
18889 rm -f conftest.err conftest.$ac_ext
18890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18891 echo "${ECHO_T}$ac_header_preproc" >&6
18892
18893 # So?  What about this header?
18894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18895   yes:no: )
18896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18900     ac_header_preproc=yes
18901     ;;
18902   no:yes:* )
18903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18915     (
18916       cat <<\_ASBOX
18917 ## --------------------------------------------- ##
18918 ## Report this to <http://www.openldap.org/its/> ##
18919 ## --------------------------------------------- ##
18920 _ASBOX
18921     ) |
18922       sed "s/^/$as_me: WARNING:     /" >&2
18923     ;;
18924 esac
18925 echo "$as_me:$LINENO: checking for $ac_header" >&5
18926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   eval "$as_ac_Header=\$ac_header_preproc"
18931 fi
18932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18934
18935 fi
18936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18937   cat >>confdefs.h <<_ACEOF
18938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18939 _ACEOF
18940
18941 fi
18942
18943 done
18944
18945
18946         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18947                 if test $krb5_impl = mit; then
18948                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18949 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18950 if test "${ac_cv_lib_krb4_main+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953   ac_check_lib_save_LIBS=$LIBS
18954 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h.  */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h.  */
18961
18962
18963 int
18964 main ()
18965 {
18966 main ();
18967   ;
18968   return 0;
18969 }
18970 _ACEOF
18971 rm -f conftest.$ac_objext conftest$ac_exeext
18972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18973   (eval $ac_link) 2>conftest.er1
18974   ac_status=$?
18975   grep -v '^ *+' conftest.er1 >conftest.err
18976   rm -f conftest.er1
18977   cat conftest.err >&5
18978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979   (exit $ac_status); } &&
18980          { ac_try='test -z "$ac_c_werror_flag"
18981                          || test ! -s conftest.err'
18982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983   (eval $ac_try) 2>&5
18984   ac_status=$?
18985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986   (exit $ac_status); }; } &&
18987          { ac_try='test -s conftest$ac_exeext'
18988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18989   (eval $ac_try) 2>&5
18990   ac_status=$?
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); }; }; then
18993   ac_cv_lib_krb4_main=yes
18994 else
18995   echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18997
18998 ac_cv_lib_krb4_main=no
18999 fi
19000 rm -f conftest.err conftest.$ac_objext \
19001       conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19003 fi
19004 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19005 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19006 if test $ac_cv_lib_krb4_main = yes; then
19007   have_k425=yes
19008                                 KRB4_LIBS="-lkrb4 -ldes425"
19009 else
19010   have_k425=no
19011 fi
19012
19013
19014                 elif test $krb5_impl = heimdal; then
19015                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
19016 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
19017 if test "${ac_cv_lib_krb4_main+set}" = set; then
19018   echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020   ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h.  */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h.  */
19028
19029
19030 int
19031 main ()
19032 {
19033 main ();
19034   ;
19035   return 0;
19036 }
19037 _ACEOF
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19040   (eval $ac_link) 2>conftest.er1
19041   ac_status=$?
19042   grep -v '^ *+' conftest.er1 >conftest.err
19043   rm -f conftest.er1
19044   cat conftest.err >&5
19045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046   (exit $ac_status); } &&
19047          { ac_try='test -z "$ac_c_werror_flag"
19048                          || test ! -s conftest.err'
19049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050   (eval $ac_try) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; } &&
19054          { ac_try='test -s conftest$ac_exeext'
19055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19056   (eval $ac_try) 2>&5
19057   ac_status=$?
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); }; }; then
19060   ac_cv_lib_krb4_main=yes
19061 else
19062   echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 ac_cv_lib_krb4_main=no
19066 fi
19067 rm -f conftest.err conftest.$ac_objext \
19068       conftest$ac_exeext conftest.$ac_ext
19069 LIBS=$ac_check_lib_save_LIBS
19070 fi
19071 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
19072 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
19073 if test $ac_cv_lib_krb4_main = yes; then
19074   have_k425=yes
19075                                 KRB4_LIBS="-lkrb4"
19076 else
19077   have_k425=no
19078 fi
19079
19080
19081                 else
19082                         have_425=no
19083                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
19084 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
19085                 fi
19086
19087                 if test $have_k425 = yes ; then
19088                         ol_with_kerberos=found
19089                         ol_link_krb4=yes
19090
19091
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_KRB425 1
19094 _ACEOF
19095
19096
19097 cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_KRB4 1
19099 _ACEOF
19100
19101
19102                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19103 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19104 if test "${ol_cv_var_des_debug+set}" = set; then
19105   echo $ECHO_N "(cached) $ECHO_C" >&6
19106 else
19107
19108                                                                 save_LIBS="$LIBS"
19109                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19110                                 cat >conftest.$ac_ext <<_ACEOF
19111 /* confdefs.h.  */
19112 _ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h.  */
19116
19117 #include <kerberosIV/krb.h>
19118 #include <kerberosIV/des.h>
19119 extern int des_debug;
19120
19121 int
19122 main ()
19123 {
19124
19125 des_debug = 1;
19126
19127   ;
19128   return 0;
19129 }
19130 _ACEOF
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19133   (eval $ac_link) 2>conftest.er1
19134   ac_status=$?
19135   grep -v '^ *+' conftest.er1 >conftest.err
19136   rm -f conftest.er1
19137   cat conftest.err >&5
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); } &&
19140          { ac_try='test -z "$ac_c_werror_flag"
19141                          || test ! -s conftest.err'
19142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19143   (eval $ac_try) 2>&5
19144   ac_status=$?
19145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); }; } &&
19147          { ac_try='test -s conftest$ac_exeext'
19148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149   (eval $ac_try) 2>&5
19150   ac_status=$?
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); }; }; then
19153   ol_cv_var_des_debug=yes
19154 else
19155   echo "$as_me: failed program was:" >&5
19156 sed 's/^/| /' conftest.$ac_ext >&5
19157
19158 ol_cv_var_des_debug=no
19159 fi
19160 rm -f conftest.err conftest.$ac_objext \
19161       conftest$ac_exeext conftest.$ac_ext
19162                                                                 LIBS="$save_LIBS"
19163
19164 fi
19165 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19166 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19167
19168                         if test $ol_cv_var_des_debug = yes ; then
19169
19170 cat >>confdefs.h <<\_ACEOF
19171 #define HAVE_DES_DEBUG 1
19172 _ACEOF
19173
19174                         fi
19175
19176                         LIBS="$save_LIBS"
19177                 fi
19178         fi
19179 fi
19180
19181 if test $ol_link_krb5 = yes ; then
19182         ol_with_kerberos=found
19183 fi
19184
19185 case $ol_with_kerberos in yes | auto | k4 | kth)
19186
19187
19188
19189
19190 for ac_header in krb.h des.h krb-archaeology.h
19191 do
19192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19194   echo "$as_me:$LINENO: checking for $ac_header" >&5
19195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19197   echo $ECHO_N "(cached) $ECHO_C" >&6
19198 fi
19199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19201 else
19202   # Is the header compilable?
19203 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h.  */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h.  */
19211 $ac_includes_default
19212 #include <$ac_header>
19213 _ACEOF
19214 rm -f conftest.$ac_objext
19215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19216   (eval $ac_compile) 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } &&
19223          { ac_try='test -z "$ac_c_werror_flag"
19224                          || test ! -s conftest.err'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; } &&
19230          { ac_try='test -s conftest.$ac_objext'
19231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232   (eval $ac_try) 2>&5
19233   ac_status=$?
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); }; }; then
19236   ac_header_compiler=yes
19237 else
19238   echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_header_compiler=no
19242 fi
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19245 echo "${ECHO_T}$ac_header_compiler" >&6
19246
19247 # Is the header present?
19248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h.  */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h.  */
19256 #include <$ac_header>
19257 _ACEOF
19258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19259   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19260   ac_status=$?
19261   grep -v '^ *+' conftest.er1 >conftest.err
19262   rm -f conftest.er1
19263   cat conftest.err >&5
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } >/dev/null; then
19266   if test -s conftest.err; then
19267     ac_cpp_err=$ac_c_preproc_warn_flag
19268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19269   else
19270     ac_cpp_err=
19271   fi
19272 else
19273   ac_cpp_err=yes
19274 fi
19275 if test -z "$ac_cpp_err"; then
19276   ac_header_preproc=yes
19277 else
19278   echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281   ac_header_preproc=no
19282 fi
19283 rm -f conftest.err conftest.$ac_ext
19284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19285 echo "${ECHO_T}$ac_header_preproc" >&6
19286
19287 # So?  What about this header?
19288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19289   yes:no: )
19290     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19292     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19294     ac_header_preproc=yes
19295     ;;
19296   no:yes:* )
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19299     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19300 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19301     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19303     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19304 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19307     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19309     (
19310       cat <<\_ASBOX
19311 ## --------------------------------------------- ##
19312 ## Report this to <http://www.openldap.org/its/> ##
19313 ## --------------------------------------------- ##
19314 _ASBOX
19315     ) |
19316       sed "s/^/$as_me: WARNING:     /" >&2
19317     ;;
19318 esac
19319 echo "$as_me:$LINENO: checking for $ac_header" >&5
19320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   eval "$as_ac_Header=\$ac_header_preproc"
19325 fi
19326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19328
19329 fi
19330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19331   cat >>confdefs.h <<_ACEOF
19332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19333 _ACEOF
19334
19335 fi
19336
19337 done
19338
19339
19340         if test $ac_cv_header_krb_h = yes ; then
19341                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19342 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19343 if test "${ac_cv_lib_krb_main+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346   ac_check_lib_save_LIBS=$LIBS
19347 LIBS="-lkrb -ldes $LIBS"
19348 cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354
19355
19356 int
19357 main ()
19358 {
19359 main ();
19360   ;
19361   return 0;
19362 }
19363 _ACEOF
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19366   (eval $ac_link) 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } &&
19373          { ac_try='test -z "$ac_c_werror_flag"
19374                          || test ! -s conftest.err'
19375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376   (eval $ac_try) 2>&5
19377   ac_status=$?
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); }; } &&
19380          { ac_try='test -s conftest$ac_exeext'
19381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382   (eval $ac_try) 2>&5
19383   ac_status=$?
19384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385   (exit $ac_status); }; }; then
19386   ac_cv_lib_krb_main=yes
19387 else
19388   echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_lib_krb_main=no
19392 fi
19393 rm -f conftest.err conftest.$ac_objext \
19394       conftest$ac_exeext conftest.$ac_ext
19395 LIBS=$ac_check_lib_save_LIBS
19396 fi
19397 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19398 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19399 if test $ac_cv_lib_krb_main = yes; then
19400   have_k4=yes
19401 else
19402   have_k4=no
19403 fi
19404
19405
19406                 if test $have_k4 = yes ; then
19407                         ol_with_kerberos=found
19408                         ol_link_krb4=yes
19409
19410
19411 cat >>confdefs.h <<\_ACEOF
19412 #define HAVE_KRB4 1
19413 _ACEOF
19414
19415
19416                         KRB4_LIBS="-lkrb -ldes"
19417
19418                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19419
19420 cat >>confdefs.h <<\_ACEOF
19421 #define HAVE_KTH_KERBEROS 1
19422 _ACEOF
19423
19424                         fi
19425                 fi
19426         fi
19427         ;;
19428 esac
19429
19430 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19431         ol_link_kbind=yes
19432
19433 elif test $ol_enable_kbind = yes ; then
19434         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19435 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19436    { (exit 1); exit 1; }; }
19437 fi
19438
19439 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19440
19441 cat >>confdefs.h <<\_ACEOF
19442 #define HAVE_KERBEROS 1
19443 _ACEOF
19444
19445
19446 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19447         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19448 echo "$as_me: error: Kerberos detection failed" >&2;}
19449    { (exit 1); exit 1; }; }
19450 fi
19451
19452
19453 if test $ol_with_tls = yes ; then
19454         ol_with_tls=auto
19455 fi
19456
19457 ol_link_tls=no
19458 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19459
19460 for ac_header in openssl/ssl.h
19461 do
19462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19464   echo "$as_me:$LINENO: checking for $ac_header" >&5
19465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19467   echo $ECHO_N "(cached) $ECHO_C" >&6
19468 fi
19469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19471 else
19472   # Is the header compilable?
19473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481 $ac_includes_default
19482 #include <$ac_header>
19483 _ACEOF
19484 rm -f conftest.$ac_objext
19485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19486   (eval $ac_compile) 2>conftest.er1
19487   ac_status=$?
19488   grep -v '^ *+' conftest.er1 >conftest.err
19489   rm -f conftest.er1
19490   cat conftest.err >&5
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } &&
19493          { ac_try='test -z "$ac_c_werror_flag"
19494                          || test ! -s conftest.err'
19495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496   (eval $ac_try) 2>&5
19497   ac_status=$?
19498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499   (exit $ac_status); }; } &&
19500          { ac_try='test -s conftest.$ac_objext'
19501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502   (eval $ac_try) 2>&5
19503   ac_status=$?
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); }; }; then
19506   ac_header_compiler=yes
19507 else
19508   echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ac_header_compiler=no
19512 fi
19513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19515 echo "${ECHO_T}$ac_header_compiler" >&6
19516
19517 # Is the header present?
19518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19521 /* confdefs.h.  */
19522 _ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h.  */
19526 #include <$ac_header>
19527 _ACEOF
19528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19530   ac_status=$?
19531   grep -v '^ *+' conftest.er1 >conftest.err
19532   rm -f conftest.er1
19533   cat conftest.err >&5
19534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535   (exit $ac_status); } >/dev/null; then
19536   if test -s conftest.err; then
19537     ac_cpp_err=$ac_c_preproc_warn_flag
19538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19539   else
19540     ac_cpp_err=
19541   fi
19542 else
19543   ac_cpp_err=yes
19544 fi
19545 if test -z "$ac_cpp_err"; then
19546   ac_header_preproc=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551   ac_header_preproc=no
19552 fi
19553 rm -f conftest.err conftest.$ac_ext
19554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19555 echo "${ECHO_T}$ac_header_preproc" >&6
19556
19557 # So?  What about this header?
19558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19559   yes:no: )
19560     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19564     ac_header_preproc=yes
19565     ;;
19566   no:yes:* )
19567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19569     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19570 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19571     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19573     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19574 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19577     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19579     (
19580       cat <<\_ASBOX
19581 ## --------------------------------------------- ##
19582 ## Report this to <http://www.openldap.org/its/> ##
19583 ## --------------------------------------------- ##
19584 _ASBOX
19585     ) |
19586       sed "s/^/$as_me: WARNING:     /" >&2
19587     ;;
19588 esac
19589 echo "$as_me:$LINENO: checking for $ac_header" >&5
19590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19592   echo $ECHO_N "(cached) $ECHO_C" >&6
19593 else
19594   eval "$as_ac_Header=\$ac_header_preproc"
19595 fi
19596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19598
19599 fi
19600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19601   cat >>confdefs.h <<_ACEOF
19602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19603 _ACEOF
19604
19605 fi
19606
19607 done
19608
19609
19610         if test $ac_cv_header_openssl_ssl_h = yes ; then
19611                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19612 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19613 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19614   echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616   ac_check_lib_save_LIBS=$LIBS
19617 LIBS="-lssl -lcrypto $LIBS"
19618 cat >conftest.$ac_ext <<_ACEOF
19619 /* confdefs.h.  */
19620 _ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h.  */
19624
19625 /* Override any gcc2 internal prototype to avoid an error.  */
19626 #ifdef __cplusplus
19627 extern "C"
19628 #endif
19629 /* We use char because int might match the return type of a gcc2
19630    builtin and then its argument prototype would still apply.  */
19631 char SSL_library_init ();
19632 int
19633 main ()
19634 {
19635 SSL_library_init ();
19636   ;
19637   return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext conftest$ac_exeext
19641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19642   (eval $ac_link) 2>conftest.er1
19643   ac_status=$?
19644   grep -v '^ *+' conftest.er1 >conftest.err
19645   rm -f conftest.er1
19646   cat conftest.err >&5
19647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648   (exit $ac_status); } &&
19649          { ac_try='test -z "$ac_c_werror_flag"
19650                          || test ! -s conftest.err'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; } &&
19656          { ac_try='test -s conftest$ac_exeext'
19657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19658   (eval $ac_try) 2>&5
19659   ac_status=$?
19660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661   (exit $ac_status); }; }; then
19662   ac_cv_lib_ssl_SSL_library_init=yes
19663 else
19664   echo "$as_me: failed program was:" >&5
19665 sed 's/^/| /' conftest.$ac_ext >&5
19666
19667 ac_cv_lib_ssl_SSL_library_init=no
19668 fi
19669 rm -f conftest.err conftest.$ac_objext \
19670       conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19672 fi
19673 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19674 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19675 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19676   have_openssl=yes
19677                         need_rsaref=no
19678 else
19679   have_openssl=no
19680 fi
19681
19682
19683                 if test $have_openssl = no ; then
19684                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19685 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19686 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19687   echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689   ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h.  */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h.  */
19697
19698 /* Override any gcc2 internal prototype to avoid an error.  */
19699 #ifdef __cplusplus
19700 extern "C"
19701 #endif
19702 /* We use char because int might match the return type of a gcc2
19703    builtin and then its argument prototype would still apply.  */
19704 char ssl3_accept ();
19705 int
19706 main ()
19707 {
19708 ssl3_accept ();
19709   ;
19710   return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19715   (eval $ac_link) 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } &&
19722          { ac_try='test -z "$ac_c_werror_flag"
19723                          || test ! -s conftest.err'
19724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725   (eval $ac_try) 2>&5
19726   ac_status=$?
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); }; } &&
19729          { ac_try='test -s conftest$ac_exeext'
19730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731   (eval $ac_try) 2>&5
19732   ac_status=$?
19733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); }; }; then
19735   ac_cv_lib_ssl_ssl3_accept=yes
19736 else
19737   echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_cv_lib_ssl_ssl3_accept=no
19741 fi
19742 rm -f conftest.err conftest.$ac_objext \
19743       conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19747 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19748 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19749   have_openssl=yes
19750                                 need_rsaref=yes
19751 else
19752   have_openssl=no
19753 fi
19754
19755                 fi
19756
19757                 if test $have_openssl = yes ; then
19758                         ol_with_tls=openssl
19759                         ol_link_tls=yes
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_OPENSSL 1
19764 _ACEOF
19765
19766
19767                         if test $need_rsaref = yes; then
19768
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_RSAREF 1
19771 _ACEOF
19772
19773
19774                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19775                         else
19776                                 TLS_LIBS="-lssl -lcrypto"
19777                         fi
19778
19779                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19780 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19781 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19782   echo $ECHO_N "(cached) $ECHO_C" >&6
19783 else
19784
19785                 cat >conftest.$ac_ext <<_ACEOF
19786 /* confdefs.h.  */
19787 _ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h.  */
19791
19792 #ifdef HAVE_OPENSSL_SSL_H
19793 #include <openssl/ssl.h>
19794 #endif
19795
19796 /* Require 0.9.7d+ */
19797 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19798         char *__ssl_compat = "0.9.7d";
19799 #endif
19800
19801 _ACEOF
19802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19803   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19804   ol_cv_ssl_crl_compat=yes
19805 else
19806   ol_cv_ssl_crl_compat=no
19807 fi
19808 rm -f conftest*
19809
19810 fi
19811 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19812 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19813
19814                         if test $ol_cv_ssl_crl_compat = yes ; then
19815
19816 cat >>confdefs.h <<\_ACEOF
19817 #define HAVE_OPENSSL_CRL 1
19818 _ACEOF
19819
19820                         fi
19821                 fi
19822         fi
19823 fi
19824
19825 WITH_TLS=no
19826 if test $ol_link_tls = yes ; then
19827
19828 cat >>confdefs.h <<\_ACEOF
19829 #define HAVE_TLS 1
19830 _ACEOF
19831
19832         WITH_TLS=yes
19833 elif test $ol_with_tls = auto ; then
19834         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19835 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19836         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19837 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19838 elif test $ol_with_tls != no ; then
19839         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19840 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19841    { (exit 1); exit 1; }; }
19842 else
19843         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19844 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19845 fi
19846
19847 if test $ol_enable_lmpasswd != no; then
19848         if test $ol_link_tls != yes ; then
19849                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19850 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19851    { (exit 1); exit 1; }; }
19852         fi
19853
19854
19855 cat >>confdefs.h <<\_ACEOF
19856 #define SLAPD_LMHASH 1
19857 _ACEOF
19858
19859 fi
19860
19861 ol_link_threads=no
19862
19863 case $ol_with_threads in auto | yes | nt)
19864
19865
19866         echo "$as_me:$LINENO: checking for _beginthread" >&5
19867 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19868 if test "${ac_cv_func__beginthread+set}" = set; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871   cat >conftest.$ac_ext <<_ACEOF
19872 /* confdefs.h.  */
19873 _ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h.  */
19877 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19878    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19879 #define _beginthread innocuous__beginthread
19880
19881 /* System header to define __stub macros and hopefully few prototypes,
19882     which can conflict with char _beginthread (); below.
19883     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19884     <limits.h> exists even on freestanding compilers.  */
19885
19886 #ifdef __STDC__
19887 # include <limits.h>
19888 #else
19889 # include <assert.h>
19890 #endif
19891
19892 #undef _beginthread
19893
19894 /* Override any gcc2 internal prototype to avoid an error.  */
19895 #ifdef __cplusplus
19896 extern "C"
19897 {
19898 #endif
19899 /* We use char because int might match the return type of a gcc2
19900    builtin and then its argument prototype would still apply.  */
19901 char _beginthread ();
19902 /* The GNU C library defines this for functions which it implements
19903     to always fail with ENOSYS.  Some functions are actually named
19904     something starting with __ and the normal name is an alias.  */
19905 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19906 choke me
19907 #else
19908 char (*f) () = _beginthread;
19909 #endif
19910 #ifdef __cplusplus
19911 }
19912 #endif
19913
19914 int
19915 main ()
19916 {
19917 return f != _beginthread;
19918   ;
19919   return 0;
19920 }
19921 _ACEOF
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924   (eval $ac_link) 2>conftest.er1
19925   ac_status=$?
19926   grep -v '^ *+' conftest.er1 >conftest.err
19927   rm -f conftest.er1
19928   cat conftest.err >&5
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } &&
19931          { ac_try='test -z "$ac_c_werror_flag"
19932                          || test ! -s conftest.err'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; } &&
19938          { ac_try='test -s conftest$ac_exeext'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; }; then
19944   ac_cv_func__beginthread=yes
19945 else
19946   echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_cv_func__beginthread=no
19950 fi
19951 rm -f conftest.err conftest.$ac_objext \
19952       conftest$ac_exeext conftest.$ac_ext
19953 fi
19954 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19955 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19956
19957
19958         if test $ac_cv_func__beginthread = yes ; then
19959
19960 cat >>confdefs.h <<\_ACEOF
19961 #define HAVE_NT_THREADS 1
19962 _ACEOF
19963
19964                 ol_cv_nt_threads=yes
19965         fi
19966
19967
19968         if test "$ol_cv_nt_threads" = yes ; then
19969                 ol_link_threads=nt
19970                 ol_with_threads=found
19971                 ol_with_yielding_select=yes
19972
19973
19974 cat >>confdefs.h <<\_ACEOF
19975 #define HAVE_NT_SERVICE_MANAGER 1
19976 _ACEOF
19977
19978
19979 cat >>confdefs.h <<\_ACEOF
19980 #define HAVE_NT_EVENT_LOG 1
19981 _ACEOF
19982
19983         fi
19984
19985         if test $ol_with_threads = nt ; then
19986                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19987 echo "$as_me: error: could not locate NT Threads" >&2;}
19988    { (exit 1); exit 1; }; }
19989         fi
19990         ;;
19991 esac
19992
19993 case $ol_with_threads in auto | yes | posix)
19994
19995
19996 for ac_header in pthread.h
19997 do
19998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20000   echo "$as_me:$LINENO: checking for $ac_header" >&5
20001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003   echo $ECHO_N "(cached) $ECHO_C" >&6
20004 fi
20005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20007 else
20008   # Is the header compilable?
20009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h.  */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h.  */
20017 $ac_includes_default
20018 #include <$ac_header>
20019 _ACEOF
20020 rm -f conftest.$ac_objext
20021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022   (eval $ac_compile) 2>conftest.er1
20023   ac_status=$?
20024   grep -v '^ *+' conftest.er1 >conftest.err
20025   rm -f conftest.er1
20026   cat conftest.err >&5
20027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028   (exit $ac_status); } &&
20029          { ac_try='test -z "$ac_c_werror_flag"
20030                          || test ! -s conftest.err'
20031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032   (eval $ac_try) 2>&5
20033   ac_status=$?
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); }; } &&
20036          { ac_try='test -s conftest.$ac_objext'
20037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038   (eval $ac_try) 2>&5
20039   ac_status=$?
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); }; }; then
20042   ac_header_compiler=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047 ac_header_compiler=no
20048 fi
20049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20051 echo "${ECHO_T}$ac_header_compiler" >&6
20052
20053 # Is the header present?
20054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20056 cat >conftest.$ac_ext <<_ACEOF
20057 /* confdefs.h.  */
20058 _ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h.  */
20062 #include <$ac_header>
20063 _ACEOF
20064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } >/dev/null; then
20072   if test -s conftest.err; then
20073     ac_cpp_err=$ac_c_preproc_warn_flag
20074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20075   else
20076     ac_cpp_err=
20077   fi
20078 else
20079   ac_cpp_err=yes
20080 fi
20081 if test -z "$ac_cpp_err"; then
20082   ac_header_preproc=yes
20083 else
20084   echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20086
20087   ac_header_preproc=no
20088 fi
20089 rm -f conftest.err conftest.$ac_ext
20090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20091 echo "${ECHO_T}$ac_header_preproc" >&6
20092
20093 # So?  What about this header?
20094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20095   yes:no: )
20096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20100     ac_header_preproc=yes
20101     ;;
20102   no:yes:* )
20103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20115     (
20116       cat <<\_ASBOX
20117 ## --------------------------------------------- ##
20118 ## Report this to <http://www.openldap.org/its/> ##
20119 ## --------------------------------------------- ##
20120 _ASBOX
20121     ) |
20122       sed "s/^/$as_me: WARNING:     /" >&2
20123     ;;
20124 esac
20125 echo "$as_me:$LINENO: checking for $ac_header" >&5
20126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20128   echo $ECHO_N "(cached) $ECHO_C" >&6
20129 else
20130   eval "$as_ac_Header=\$ac_header_preproc"
20131 fi
20132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20134
20135 fi
20136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20137   cat >>confdefs.h <<_ACEOF
20138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20139 _ACEOF
20140
20141 fi
20142
20143 done
20144
20145
20146         if test $ac_cv_header_pthread_h = yes ; then
20147                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20148 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20149 if test "${ol_cv_pthread_version+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152
20153         cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159
20160 #               include <pthread.h>
20161
20162 int
20163 main ()
20164 {
20165
20166                 int i = PTHREAD_CREATE_JOINABLE;
20167
20168   ;
20169   return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20174   (eval $ac_compile) 2>conftest.er1
20175   ac_status=$?
20176   grep -v '^ *+' conftest.er1 >conftest.err
20177   rm -f conftest.er1
20178   cat conftest.err >&5
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); } &&
20181          { ac_try='test -z "$ac_c_werror_flag"
20182                          || test ! -s conftest.err'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; } &&
20188          { ac_try='test -s conftest.$ac_objext'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; }; then
20194
20195         cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h.  */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h.  */
20201 #include <pthread.h>
20202
20203 _ACEOF
20204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20205   $EGREP "pthread_detach" >/dev/null 2>&1; then
20206   ol_cv_pthread_version=10
20207 else
20208   ol_cv_pthread_version=8
20209 fi
20210 rm -f conftest*
20211
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216
20217         cat >conftest.$ac_ext <<_ACEOF
20218 /* confdefs.h.  */
20219 _ACEOF
20220 cat confdefs.h >>conftest.$ac_ext
20221 cat >>conftest.$ac_ext <<_ACEOF
20222 /* end confdefs.h.  */
20223
20224 #               include <pthread.h>
20225 #               ifdef PTHREAD_CREATE_UNDETACHED
20226                 draft7
20227 #               endif
20228
20229 _ACEOF
20230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20231   $EGREP "draft7" >/dev/null 2>&1; then
20232   ol_cv_pthread_version=7
20233 else
20234
20235         cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h.  */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h.  */
20241 #include <pthread.h>
20242
20243 _ACEOF
20244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20245   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20246   ol_cv_pthread_version=6
20247 else
20248
20249         cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255
20256 #               include <pthread.h>
20257 #ifdef          PTHREAD_MUTEX_INITIALIZER
20258                 draft5
20259 #endif
20260
20261 _ACEOF
20262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20263   $EGREP "draft5" >/dev/null 2>&1; then
20264   ol_cv_pthread_version=5
20265 else
20266   ol_cv_pthread_version=4
20267 fi
20268 rm -f conftest*
20269
20270 fi
20271 rm -f conftest*
20272
20273 fi
20274 rm -f conftest*
20275
20276 fi
20277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20278
20279 fi
20280 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20281 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20282
20283
20284                 if test $ol_cv_pthread_version != 0 ; then
20285
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_PTHREADS $ol_cv_pthread_version
20288 _ACEOF
20289
20290                 else
20291                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20292 echo "$as_me: error: unknown pthread version" >&2;}
20293    { (exit 1); exit 1; }; }
20294                 fi
20295
20296                 # consider threads found
20297                 ol_with_threads=found
20298
20299
20300         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20301 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20302 if test "${ol_cv_header_linux_threads+set}" = set; then
20303   echo $ECHO_N "(cached) $ECHO_C" >&6
20304 else
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 #include <pthread.h>
20312 _ACEOF
20313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20314   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20315   ol_cv_header_linux_threads=yes
20316 else
20317   ol_cv_header_linux_threads=no
20318 fi
20319 rm -f conftest*
20320
20321
20322 fi
20323 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20324 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20325         if test $ol_cv_header_linux_threads = yes; then
20326
20327 cat >>confdefs.h <<\_ACEOF
20328 #define HAVE_LINUX_THREADS 1
20329 _ACEOF
20330
20331         fi
20332
20333
20334         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20335 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20336 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   cat >conftest.$ac_ext <<_ACEOF
20340 /* confdefs.h.  */
20341 _ACEOF
20342 cat confdefs.h >>conftest.$ac_ext
20343 cat >>conftest.$ac_ext <<_ACEOF
20344 /* end confdefs.h.  */
20345 #include <pthread.h>
20346 #ifdef _POSIX_THREAD_IS_GNU_PTH
20347         __gnu_pth__;
20348 #endif
20349
20350 _ACEOF
20351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20352   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20353   ol_cv_header_gnu_pth_pthread_h=yes
20354 else
20355   ol_cv_header_gnu_pth_pthread_h=no
20356 fi
20357 rm -f conftest*
20358
20359
20360 fi
20361 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20362 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20363
20364
20365                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20366
20367 for ac_header in sched.h
20368 do
20369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20371   echo "$as_me:$LINENO: checking for $ac_header" >&5
20372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20374   echo $ECHO_N "(cached) $ECHO_C" >&6
20375 fi
20376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20378 else
20379   # Is the header compilable?
20380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20382 cat >conftest.$ac_ext <<_ACEOF
20383 /* confdefs.h.  */
20384 _ACEOF
20385 cat confdefs.h >>conftest.$ac_ext
20386 cat >>conftest.$ac_ext <<_ACEOF
20387 /* end confdefs.h.  */
20388 $ac_includes_default
20389 #include <$ac_header>
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393   (eval $ac_compile) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"
20401                          || test ! -s conftest.err'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest.$ac_objext'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; }; then
20413   ac_header_compiler=yes
20414 else
20415   echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ac_header_compiler=no
20419 fi
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20422 echo "${ECHO_T}$ac_header_compiler" >&6
20423
20424 # Is the header present?
20425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20427 cat >conftest.$ac_ext <<_ACEOF
20428 /* confdefs.h.  */
20429 _ACEOF
20430 cat confdefs.h >>conftest.$ac_ext
20431 cat >>conftest.$ac_ext <<_ACEOF
20432 /* end confdefs.h.  */
20433 #include <$ac_header>
20434 _ACEOF
20435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20437   ac_status=$?
20438   grep -v '^ *+' conftest.er1 >conftest.err
20439   rm -f conftest.er1
20440   cat conftest.err >&5
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); } >/dev/null; then
20443   if test -s conftest.err; then
20444     ac_cpp_err=$ac_c_preproc_warn_flag
20445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20446   else
20447     ac_cpp_err=
20448   fi
20449 else
20450   ac_cpp_err=yes
20451 fi
20452 if test -z "$ac_cpp_err"; then
20453   ac_header_preproc=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458   ac_header_preproc=no
20459 fi
20460 rm -f conftest.err conftest.$ac_ext
20461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20462 echo "${ECHO_T}$ac_header_preproc" >&6
20463
20464 # So?  What about this header?
20465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20466   yes:no: )
20467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20471     ac_header_preproc=yes
20472     ;;
20473   no:yes:* )
20474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20486     (
20487       cat <<\_ASBOX
20488 ## --------------------------------------------- ##
20489 ## Report this to <http://www.openldap.org/its/> ##
20490 ## --------------------------------------------- ##
20491 _ASBOX
20492     ) |
20493       sed "s/^/$as_me: WARNING:     /" >&2
20494     ;;
20495 esac
20496 echo "$as_me:$LINENO: checking for $ac_header" >&5
20497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20499   echo $ECHO_N "(cached) $ECHO_C" >&6
20500 else
20501   eval "$as_ac_Header=\$ac_header_preproc"
20502 fi
20503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20505
20506 fi
20507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20508   cat >>confdefs.h <<_ACEOF
20509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20510 _ACEOF
20511
20512 fi
20513
20514 done
20515
20516                 fi
20517
20518
20519                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20520 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20521 if test "${ol_cv_pthread_create+set}" = set; then
20522   echo $ECHO_N "(cached) $ECHO_C" >&6
20523 else
20524
20525                         if test "$cross_compiling" = yes; then
20526   cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532
20533 /* pthread test headers */
20534 #include <pthread.h>
20535 #if HAVE_PTHREADS < 7
20536 #include <errno.h>
20537 #endif
20538 #ifndef NULL
20539 #define NULL (void*)0
20540 #endif
20541
20542 static void *task(p)
20543         void *p;
20544 {
20545         return (void *) (p == NULL);
20546 }
20547
20548 int
20549 main ()
20550 {
20551
20552         /* pthread test function */
20553 #ifndef PTHREAD_CREATE_DETACHED
20554 #define PTHREAD_CREATE_DETACHED 1
20555 #endif
20556         pthread_t t;
20557         int status;
20558         int detach = PTHREAD_CREATE_DETACHED;
20559
20560 #if HAVE_PTHREADS > 4
20561         /* Final pthreads */
20562         pthread_attr_t attr;
20563
20564         status = pthread_attr_init(&attr);
20565         if( status ) return status;
20566
20567 #if HAVE_PTHREADS < 7
20568         status = pthread_attr_setdetachstate(&attr, &detach);
20569         if( status < 0 ) status = errno;
20570 #else
20571         status = pthread_attr_setdetachstate(&attr, detach);
20572 #endif
20573         if( status ) return status;
20574         status = pthread_create( &t, &attr, task, NULL );
20575 #if HAVE_PTHREADS < 7
20576         if( status < 0 ) status = errno;
20577 #endif
20578         if( status ) return status;
20579 #else
20580         /* Draft 4 pthreads */
20581         status = pthread_create( &t, pthread_attr_default, task, NULL );
20582         if( status ) return errno;
20583
20584         /* give thread a chance to complete */
20585         /* it should remain joinable and hence detachable */
20586         sleep( 1 );
20587
20588         status = pthread_detach( &t );
20589         if( status ) return errno;
20590 #endif
20591
20592 #ifdef HAVE_LINUX_THREADS
20593         pthread_kill_other_threads_np();
20594 #endif
20595
20596         return 0;
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 rm -f conftest.$ac_objext conftest$ac_exeext
20603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20604   (eval $ac_link) 2>conftest.er1
20605   ac_status=$?
20606   grep -v '^ *+' conftest.er1 >conftest.err
20607   rm -f conftest.er1
20608   cat conftest.err >&5
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); } &&
20611          { ac_try='test -z "$ac_c_werror_flag"
20612                          || test ! -s conftest.err'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; } &&
20618          { ac_try='test -s conftest$ac_exeext'
20619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20620   (eval $ac_try) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; }; then
20624   ol_cv_pthread_create=yes
20625 else
20626   echo "$as_me: failed program was:" >&5
20627 sed 's/^/| /' conftest.$ac_ext >&5
20628
20629 ol_cv_pthread_create=no
20630 fi
20631 rm -f conftest.err conftest.$ac_objext \
20632       conftest$ac_exeext conftest.$ac_ext
20633 else
20634   cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640
20641 /* pthread test headers */
20642 #include <pthread.h>
20643 #if HAVE_PTHREADS < 7
20644 #include <errno.h>
20645 #endif
20646 #ifndef NULL
20647 #define NULL (void*)0
20648 #endif
20649
20650 static void *task(p)
20651         void *p;
20652 {
20653         return (void *) (p == NULL);
20654 }
20655
20656
20657 int main(argc, argv)
20658         int argc;
20659         char **argv;
20660 {
20661
20662         /* pthread test function */
20663 #ifndef PTHREAD_CREATE_DETACHED
20664 #define PTHREAD_CREATE_DETACHED 1
20665 #endif
20666         pthread_t t;
20667         int status;
20668         int detach = PTHREAD_CREATE_DETACHED;
20669
20670 #if HAVE_PTHREADS > 4
20671         /* Final pthreads */
20672         pthread_attr_t attr;
20673
20674         status = pthread_attr_init(&attr);
20675         if( status ) return status;
20676
20677 #if HAVE_PTHREADS < 7
20678         status = pthread_attr_setdetachstate(&attr, &detach);
20679         if( status < 0 ) status = errno;
20680 #else
20681         status = pthread_attr_setdetachstate(&attr, detach);
20682 #endif
20683         if( status ) return status;
20684         status = pthread_create( &t, &attr, task, NULL );
20685 #if HAVE_PTHREADS < 7
20686         if( status < 0 ) status = errno;
20687 #endif
20688         if( status ) return status;
20689 #else
20690         /* Draft 4 pthreads */
20691         status = pthread_create( &t, pthread_attr_default, task, NULL );
20692         if( status ) return errno;
20693
20694         /* give thread a chance to complete */
20695         /* it should remain joinable and hence detachable */
20696         sleep( 1 );
20697
20698         status = pthread_detach( &t );
20699         if( status ) return errno;
20700 #endif
20701
20702 #ifdef HAVE_LINUX_THREADS
20703         pthread_kill_other_threads_np();
20704 #endif
20705
20706         return 0;
20707
20708 }
20709
20710 _ACEOF
20711 rm -f conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713   (eval $ac_link) 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718   (eval $ac_try) 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; }; then
20722   ol_cv_pthread_create=yes
20723 else
20724   echo "$as_me: program exited with status $ac_status" >&5
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728 ( exit $ac_status )
20729 ol_cv_pthread_create=no
20730 fi
20731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20732 fi
20733 fi
20734 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20735 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20736
20737                 if test $ol_cv_pthread_create != no ; then
20738                         ol_link_threads=posix
20739                         ol_link_pthreads=""
20740                 fi
20741
20742                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20743 if test "$ol_link_threads" = no ; then
20744         # try -kthread
20745         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20746 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20747 if test "${ol_cv_pthread_kthread+set}" = set; then
20748   echo $ECHO_N "(cached) $ECHO_C" >&6
20749 else
20750
20751                 # save the flags
20752                 ol_LIBS="$LIBS"
20753                 LIBS="-kthread $LIBS"
20754
20755                 if test "$cross_compiling" = yes; then
20756   cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762
20763 /* pthread test headers */
20764 #include <pthread.h>
20765 #if HAVE_PTHREADS < 7
20766 #include <errno.h>
20767 #endif
20768 #ifndef NULL
20769 #define NULL (void*)0
20770 #endif
20771
20772 static void *task(p)
20773         void *p;
20774 {
20775         return (void *) (p == NULL);
20776 }
20777
20778 int
20779 main ()
20780 {
20781
20782         /* pthread test function */
20783 #ifndef PTHREAD_CREATE_DETACHED
20784 #define PTHREAD_CREATE_DETACHED 1
20785 #endif
20786         pthread_t t;
20787         int status;
20788         int detach = PTHREAD_CREATE_DETACHED;
20789
20790 #if HAVE_PTHREADS > 4
20791         /* Final pthreads */
20792         pthread_attr_t attr;
20793
20794         status = pthread_attr_init(&attr);
20795         if( status ) return status;
20796
20797 #if HAVE_PTHREADS < 7
20798         status = pthread_attr_setdetachstate(&attr, &detach);
20799         if( status < 0 ) status = errno;
20800 #else
20801         status = pthread_attr_setdetachstate(&attr, detach);
20802 #endif
20803         if( status ) return status;
20804         status = pthread_create( &t, &attr, task, NULL );
20805 #if HAVE_PTHREADS < 7
20806         if( status < 0 ) status = errno;
20807 #endif
20808         if( status ) return status;
20809 #else
20810         /* Draft 4 pthreads */
20811         status = pthread_create( &t, pthread_attr_default, task, NULL );
20812         if( status ) return errno;
20813
20814         /* give thread a chance to complete */
20815         /* it should remain joinable and hence detachable */
20816         sleep( 1 );
20817
20818         status = pthread_detach( &t );
20819         if( status ) return errno;
20820 #endif
20821
20822 #ifdef HAVE_LINUX_THREADS
20823         pthread_kill_other_threads_np();
20824 #endif
20825
20826         return 0;
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext conftest$ac_exeext
20833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20834   (eval $ac_link) 2>conftest.er1
20835   ac_status=$?
20836   grep -v '^ *+' conftest.er1 >conftest.err
20837   rm -f conftest.er1
20838   cat conftest.err >&5
20839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840   (exit $ac_status); } &&
20841          { ac_try='test -z "$ac_c_werror_flag"
20842                          || test ! -s conftest.err'
20843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20844   (eval $ac_try) 2>&5
20845   ac_status=$?
20846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20847   (exit $ac_status); }; } &&
20848          { ac_try='test -s conftest$ac_exeext'
20849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20850   (eval $ac_try) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); }; }; then
20854   ol_cv_pthread_kthread=yes
20855 else
20856   echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ol_cv_pthread_kthread=no
20860 fi
20861 rm -f conftest.err conftest.$ac_objext \
20862       conftest$ac_exeext conftest.$ac_ext
20863 else
20864   cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h.  */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h.  */
20870
20871 /* pthread test headers */
20872 #include <pthread.h>
20873 #if HAVE_PTHREADS < 7
20874 #include <errno.h>
20875 #endif
20876 #ifndef NULL
20877 #define NULL (void*)0
20878 #endif
20879
20880 static void *task(p)
20881         void *p;
20882 {
20883         return (void *) (p == NULL);
20884 }
20885
20886
20887 int main(argc, argv)
20888         int argc;
20889         char **argv;
20890 {
20891
20892         /* pthread test function */
20893 #ifndef PTHREAD_CREATE_DETACHED
20894 #define PTHREAD_CREATE_DETACHED 1
20895 #endif
20896         pthread_t t;
20897         int status;
20898         int detach = PTHREAD_CREATE_DETACHED;
20899
20900 #if HAVE_PTHREADS > 4
20901         /* Final pthreads */
20902         pthread_attr_t attr;
20903
20904         status = pthread_attr_init(&attr);
20905         if( status ) return status;
20906
20907 #if HAVE_PTHREADS < 7
20908         status = pthread_attr_setdetachstate(&attr, &detach);
20909         if( status < 0 ) status = errno;
20910 #else
20911         status = pthread_attr_setdetachstate(&attr, detach);
20912 #endif
20913         if( status ) return status;
20914         status = pthread_create( &t, &attr, task, NULL );
20915 #if HAVE_PTHREADS < 7
20916         if( status < 0 ) status = errno;
20917 #endif
20918         if( status ) return status;
20919 #else
20920         /* Draft 4 pthreads */
20921         status = pthread_create( &t, pthread_attr_default, task, NULL );
20922         if( status ) return errno;
20923
20924         /* give thread a chance to complete */
20925         /* it should remain joinable and hence detachable */
20926         sleep( 1 );
20927
20928         status = pthread_detach( &t );
20929         if( status ) return errno;
20930 #endif
20931
20932 #ifdef HAVE_LINUX_THREADS
20933         pthread_kill_other_threads_np();
20934 #endif
20935
20936         return 0;
20937
20938 }
20939
20940 _ACEOF
20941 rm -f conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943   (eval $ac_link) 2>&5
20944   ac_status=$?
20945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948   (eval $ac_try) 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ol_cv_pthread_kthread=yes
20953 else
20954   echo "$as_me: program exited with status $ac_status" >&5
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20957
20958 ( exit $ac_status )
20959 ol_cv_pthread_kthread=no
20960 fi
20961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20962 fi
20963
20964                 # restore the LIBS
20965                 LIBS="$ol_LIBS"
20966
20967 fi
20968 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20969 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20970
20971         if test $ol_cv_pthread_kthread = yes ; then
20972                 ol_link_pthreads="-kthread"
20973                 ol_link_threads=posix
20974         fi
20975 fi
20976
20977                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20978 if test "$ol_link_threads" = no ; then
20979         # try -pthread
20980         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20981 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20982 if test "${ol_cv_pthread_pthread+set}" = set; then
20983   echo $ECHO_N "(cached) $ECHO_C" >&6
20984 else
20985
20986                 # save the flags
20987                 ol_LIBS="$LIBS"
20988                 LIBS="-pthread $LIBS"
20989
20990                 if test "$cross_compiling" = yes; then
20991   cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997
20998 /* pthread test headers */
20999 #include <pthread.h>
21000 #if HAVE_PTHREADS < 7
21001 #include <errno.h>
21002 #endif
21003 #ifndef NULL
21004 #define NULL (void*)0
21005 #endif
21006
21007 static void *task(p)
21008         void *p;
21009 {
21010         return (void *) (p == NULL);
21011 }
21012
21013 int
21014 main ()
21015 {
21016
21017         /* pthread test function */
21018 #ifndef PTHREAD_CREATE_DETACHED
21019 #define PTHREAD_CREATE_DETACHED 1
21020 #endif
21021         pthread_t t;
21022         int status;
21023         int detach = PTHREAD_CREATE_DETACHED;
21024
21025 #if HAVE_PTHREADS > 4
21026         /* Final pthreads */
21027         pthread_attr_t attr;
21028
21029         status = pthread_attr_init(&attr);
21030         if( status ) return status;
21031
21032 #if HAVE_PTHREADS < 7
21033         status = pthread_attr_setdetachstate(&attr, &detach);
21034         if( status < 0 ) status = errno;
21035 #else
21036         status = pthread_attr_setdetachstate(&attr, detach);
21037 #endif
21038         if( status ) return status;
21039         status = pthread_create( &t, &attr, task, NULL );
21040 #if HAVE_PTHREADS < 7
21041         if( status < 0 ) status = errno;
21042 #endif
21043         if( status ) return status;
21044 #else
21045         /* Draft 4 pthreads */
21046         status = pthread_create( &t, pthread_attr_default, task, NULL );
21047         if( status ) return errno;
21048
21049         /* give thread a chance to complete */
21050         /* it should remain joinable and hence detachable */
21051         sleep( 1 );
21052
21053         status = pthread_detach( &t );
21054         if( status ) return errno;
21055 #endif
21056
21057 #ifdef HAVE_LINUX_THREADS
21058         pthread_kill_other_threads_np();
21059 #endif
21060
21061         return 0;
21062
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext conftest$ac_exeext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069   (eval $ac_link) 2>conftest.er1
21070   ac_status=$?
21071   grep -v '^ *+' conftest.er1 >conftest.err
21072   rm -f conftest.er1
21073   cat conftest.err >&5
21074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075   (exit $ac_status); } &&
21076          { ac_try='test -z "$ac_c_werror_flag"
21077                          || test ! -s conftest.err'
21078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079   (eval $ac_try) 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; } &&
21083          { ac_try='test -s conftest$ac_exeext'
21084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085   (eval $ac_try) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ol_cv_pthread_pthread=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ol_cv_pthread_pthread=no
21095 fi
21096 rm -f conftest.err conftest.$ac_objext \
21097       conftest$ac_exeext conftest.$ac_ext
21098 else
21099   cat >conftest.$ac_ext <<_ACEOF
21100 /* confdefs.h.  */
21101 _ACEOF
21102 cat confdefs.h >>conftest.$ac_ext
21103 cat >>conftest.$ac_ext <<_ACEOF
21104 /* end confdefs.h.  */
21105
21106 /* pthread test headers */
21107 #include <pthread.h>
21108 #if HAVE_PTHREADS < 7
21109 #include <errno.h>
21110 #endif
21111 #ifndef NULL
21112 #define NULL (void*)0
21113 #endif
21114
21115 static void *task(p)
21116         void *p;
21117 {
21118         return (void *) (p == NULL);
21119 }
21120
21121
21122 int main(argc, argv)
21123         int argc;
21124         char **argv;
21125 {
21126
21127         /* pthread test function */
21128 #ifndef PTHREAD_CREATE_DETACHED
21129 #define PTHREAD_CREATE_DETACHED 1
21130 #endif
21131         pthread_t t;
21132         int status;
21133         int detach = PTHREAD_CREATE_DETACHED;
21134
21135 #if HAVE_PTHREADS > 4
21136         /* Final pthreads */
21137         pthread_attr_t attr;
21138
21139         status = pthread_attr_init(&attr);
21140         if( status ) return status;
21141
21142 #if HAVE_PTHREADS < 7
21143         status = pthread_attr_setdetachstate(&attr, &detach);
21144         if( status < 0 ) status = errno;
21145 #else
21146         status = pthread_attr_setdetachstate(&attr, detach);
21147 #endif
21148         if( status ) return status;
21149         status = pthread_create( &t, &attr, task, NULL );
21150 #if HAVE_PTHREADS < 7
21151         if( status < 0 ) status = errno;
21152 #endif
21153         if( status ) return status;
21154 #else
21155         /* Draft 4 pthreads */
21156         status = pthread_create( &t, pthread_attr_default, task, NULL );
21157         if( status ) return errno;
21158
21159         /* give thread a chance to complete */
21160         /* it should remain joinable and hence detachable */
21161         sleep( 1 );
21162
21163         status = pthread_detach( &t );
21164         if( status ) return errno;
21165 #endif
21166
21167 #ifdef HAVE_LINUX_THREADS
21168         pthread_kill_other_threads_np();
21169 #endif
21170
21171         return 0;
21172
21173 }
21174
21175 _ACEOF
21176 rm -f conftest$ac_exeext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21178   (eval $ac_link) 2>&5
21179   ac_status=$?
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186   (exit $ac_status); }; }; then
21187   ol_cv_pthread_pthread=yes
21188 else
21189   echo "$as_me: program exited with status $ac_status" >&5
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ( exit $ac_status )
21194 ol_cv_pthread_pthread=no
21195 fi
21196 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21197 fi
21198
21199                 # restore the LIBS
21200                 LIBS="$ol_LIBS"
21201
21202 fi
21203 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21204 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21205
21206         if test $ol_cv_pthread_pthread = yes ; then
21207                 ol_link_pthreads="-pthread"
21208                 ol_link_threads=posix
21209         fi
21210 fi
21211
21212                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21213 if test "$ol_link_threads" = no ; then
21214         # try -pthreads
21215         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21216 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21217 if test "${ol_cv_pthread_pthreads+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220
21221                 # save the flags
21222                 ol_LIBS="$LIBS"
21223                 LIBS="-pthreads $LIBS"
21224
21225                 if test "$cross_compiling" = yes; then
21226   cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h.  */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h.  */
21232
21233 /* pthread test headers */
21234 #include <pthread.h>
21235 #if HAVE_PTHREADS < 7
21236 #include <errno.h>
21237 #endif
21238 #ifndef NULL
21239 #define NULL (void*)0
21240 #endif
21241
21242 static void *task(p)
21243         void *p;
21244 {
21245         return (void *) (p == NULL);
21246 }
21247
21248 int
21249 main ()
21250 {
21251
21252         /* pthread test function */
21253 #ifndef PTHREAD_CREATE_DETACHED
21254 #define PTHREAD_CREATE_DETACHED 1
21255 #endif
21256         pthread_t t;
21257         int status;
21258         int detach = PTHREAD_CREATE_DETACHED;
21259
21260 #if HAVE_PTHREADS > 4
21261         /* Final pthreads */
21262         pthread_attr_t attr;
21263
21264         status = pthread_attr_init(&attr);
21265         if( status ) return status;
21266
21267 #if HAVE_PTHREADS < 7
21268         status = pthread_attr_setdetachstate(&attr, &detach);
21269         if( status < 0 ) status = errno;
21270 #else
21271         status = pthread_attr_setdetachstate(&attr, detach);
21272 #endif
21273         if( status ) return status;
21274         status = pthread_create( &t, &attr, task, NULL );
21275 #if HAVE_PTHREADS < 7
21276         if( status < 0 ) status = errno;
21277 #endif
21278         if( status ) return status;
21279 #else
21280         /* Draft 4 pthreads */
21281         status = pthread_create( &t, pthread_attr_default, task, NULL );
21282         if( status ) return errno;
21283
21284         /* give thread a chance to complete */
21285         /* it should remain joinable and hence detachable */
21286         sleep( 1 );
21287
21288         status = pthread_detach( &t );
21289         if( status ) return errno;
21290 #endif
21291
21292 #ifdef HAVE_LINUX_THREADS
21293         pthread_kill_other_threads_np();
21294 #endif
21295
21296         return 0;
21297
21298   ;
21299   return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21304   (eval $ac_link) 2>conftest.er1
21305   ac_status=$?
21306   grep -v '^ *+' conftest.er1 >conftest.err
21307   rm -f conftest.er1
21308   cat conftest.err >&5
21309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310   (exit $ac_status); } &&
21311          { ac_try='test -z "$ac_c_werror_flag"
21312                          || test ! -s conftest.err'
21313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314   (eval $ac_try) 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; } &&
21318          { ac_try='test -s conftest$ac_exeext'
21319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320   (eval $ac_try) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); }; }; then
21324   ol_cv_pthread_pthreads=yes
21325 else
21326   echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ol_cv_pthread_pthreads=no
21330 fi
21331 rm -f conftest.err conftest.$ac_objext \
21332       conftest$ac_exeext conftest.$ac_ext
21333 else
21334   cat >conftest.$ac_ext <<_ACEOF
21335 /* confdefs.h.  */
21336 _ACEOF
21337 cat confdefs.h >>conftest.$ac_ext
21338 cat >>conftest.$ac_ext <<_ACEOF
21339 /* end confdefs.h.  */
21340
21341 /* pthread test headers */
21342 #include <pthread.h>
21343 #if HAVE_PTHREADS < 7
21344 #include <errno.h>
21345 #endif
21346 #ifndef NULL
21347 #define NULL (void*)0
21348 #endif
21349
21350 static void *task(p)
21351         void *p;
21352 {
21353         return (void *) (p == NULL);
21354 }
21355
21356
21357 int main(argc, argv)
21358         int argc;
21359         char **argv;
21360 {
21361
21362         /* pthread test function */
21363 #ifndef PTHREAD_CREATE_DETACHED
21364 #define PTHREAD_CREATE_DETACHED 1
21365 #endif
21366         pthread_t t;
21367         int status;
21368         int detach = PTHREAD_CREATE_DETACHED;
21369
21370 #if HAVE_PTHREADS > 4
21371         /* Final pthreads */
21372         pthread_attr_t attr;
21373
21374         status = pthread_attr_init(&attr);
21375         if( status ) return status;
21376
21377 #if HAVE_PTHREADS < 7
21378         status = pthread_attr_setdetachstate(&attr, &detach);
21379         if( status < 0 ) status = errno;
21380 #else
21381         status = pthread_attr_setdetachstate(&attr, detach);
21382 #endif
21383         if( status ) return status;
21384         status = pthread_create( &t, &attr, task, NULL );
21385 #if HAVE_PTHREADS < 7
21386         if( status < 0 ) status = errno;
21387 #endif
21388         if( status ) return status;
21389 #else
21390         /* Draft 4 pthreads */
21391         status = pthread_create( &t, pthread_attr_default, task, NULL );
21392         if( status ) return errno;
21393
21394         /* give thread a chance to complete */
21395         /* it should remain joinable and hence detachable */
21396         sleep( 1 );
21397
21398         status = pthread_detach( &t );
21399         if( status ) return errno;
21400 #endif
21401
21402 #ifdef HAVE_LINUX_THREADS
21403         pthread_kill_other_threads_np();
21404 #endif
21405
21406         return 0;
21407
21408 }
21409
21410 _ACEOF
21411 rm -f conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418   (eval $ac_try) 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; }; then
21422   ol_cv_pthread_pthreads=yes
21423 else
21424   echo "$as_me: program exited with status $ac_status" >&5
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 ( exit $ac_status )
21429 ol_cv_pthread_pthreads=no
21430 fi
21431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21432 fi
21433
21434                 # restore the LIBS
21435                 LIBS="$ol_LIBS"
21436
21437 fi
21438 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21439 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21440
21441         if test $ol_cv_pthread_pthreads = yes ; then
21442                 ol_link_pthreads="-pthreads"
21443                 ol_link_threads=posix
21444         fi
21445 fi
21446
21447                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21448 if test "$ol_link_threads" = no ; then
21449         # try -mthreads
21450         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21451 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21452 if test "${ol_cv_pthread_mthreads+set}" = set; then
21453   echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455
21456                 # save the flags
21457                 ol_LIBS="$LIBS"
21458                 LIBS="-mthreads $LIBS"
21459
21460                 if test "$cross_compiling" = yes; then
21461   cat >conftest.$ac_ext <<_ACEOF
21462 /* confdefs.h.  */
21463 _ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h.  */
21467
21468 /* pthread test headers */
21469 #include <pthread.h>
21470 #if HAVE_PTHREADS < 7
21471 #include <errno.h>
21472 #endif
21473 #ifndef NULL
21474 #define NULL (void*)0
21475 #endif
21476
21477 static void *task(p)
21478         void *p;
21479 {
21480         return (void *) (p == NULL);
21481 }
21482
21483 int
21484 main ()
21485 {
21486
21487         /* pthread test function */
21488 #ifndef PTHREAD_CREATE_DETACHED
21489 #define PTHREAD_CREATE_DETACHED 1
21490 #endif
21491         pthread_t t;
21492         int status;
21493         int detach = PTHREAD_CREATE_DETACHED;
21494
21495 #if HAVE_PTHREADS > 4
21496         /* Final pthreads */
21497         pthread_attr_t attr;
21498
21499         status = pthread_attr_init(&attr);
21500         if( status ) return status;
21501
21502 #if HAVE_PTHREADS < 7
21503         status = pthread_attr_setdetachstate(&attr, &detach);
21504         if( status < 0 ) status = errno;
21505 #else
21506         status = pthread_attr_setdetachstate(&attr, detach);
21507 #endif
21508         if( status ) return status;
21509         status = pthread_create( &t, &attr, task, NULL );
21510 #if HAVE_PTHREADS < 7
21511         if( status < 0 ) status = errno;
21512 #endif
21513         if( status ) return status;
21514 #else
21515         /* Draft 4 pthreads */
21516         status = pthread_create( &t, pthread_attr_default, task, NULL );
21517         if( status ) return errno;
21518
21519         /* give thread a chance to complete */
21520         /* it should remain joinable and hence detachable */
21521         sleep( 1 );
21522
21523         status = pthread_detach( &t );
21524         if( status ) return errno;
21525 #endif
21526
21527 #ifdef HAVE_LINUX_THREADS
21528         pthread_kill_other_threads_np();
21529 #endif
21530
21531         return 0;
21532
21533   ;
21534   return 0;
21535 }
21536 _ACEOF
21537 rm -f conftest.$ac_objext conftest$ac_exeext
21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21539   (eval $ac_link) 2>conftest.er1
21540   ac_status=$?
21541   grep -v '^ *+' conftest.er1 >conftest.err
21542   rm -f conftest.er1
21543   cat conftest.err >&5
21544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545   (exit $ac_status); } &&
21546          { ac_try='test -z "$ac_c_werror_flag"
21547                          || test ! -s conftest.err'
21548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549   (eval $ac_try) 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; } &&
21553          { ac_try='test -s conftest$ac_exeext'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; }; then
21559   ol_cv_pthread_mthreads=yes
21560 else
21561   echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21563
21564 ol_cv_pthread_mthreads=no
21565 fi
21566 rm -f conftest.err conftest.$ac_objext \
21567       conftest$ac_exeext conftest.$ac_ext
21568 else
21569   cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h.  */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h.  */
21575
21576 /* pthread test headers */
21577 #include <pthread.h>
21578 #if HAVE_PTHREADS < 7
21579 #include <errno.h>
21580 #endif
21581 #ifndef NULL
21582 #define NULL (void*)0
21583 #endif
21584
21585 static void *task(p)
21586         void *p;
21587 {
21588         return (void *) (p == NULL);
21589 }
21590
21591
21592 int main(argc, argv)
21593         int argc;
21594         char **argv;
21595 {
21596
21597         /* pthread test function */
21598 #ifndef PTHREAD_CREATE_DETACHED
21599 #define PTHREAD_CREATE_DETACHED 1
21600 #endif
21601         pthread_t t;
21602         int status;
21603         int detach = PTHREAD_CREATE_DETACHED;
21604
21605 #if HAVE_PTHREADS > 4
21606         /* Final pthreads */
21607         pthread_attr_t attr;
21608
21609         status = pthread_attr_init(&attr);
21610         if( status ) return status;
21611
21612 #if HAVE_PTHREADS < 7
21613         status = pthread_attr_setdetachstate(&attr, &detach);
21614         if( status < 0 ) status = errno;
21615 #else
21616         status = pthread_attr_setdetachstate(&attr, detach);
21617 #endif
21618         if( status ) return status;
21619         status = pthread_create( &t, &attr, task, NULL );
21620 #if HAVE_PTHREADS < 7
21621         if( status < 0 ) status = errno;
21622 #endif
21623         if( status ) return status;
21624 #else
21625         /* Draft 4 pthreads */
21626         status = pthread_create( &t, pthread_attr_default, task, NULL );
21627         if( status ) return errno;
21628
21629         /* give thread a chance to complete */
21630         /* it should remain joinable and hence detachable */
21631         sleep( 1 );
21632
21633         status = pthread_detach( &t );
21634         if( status ) return errno;
21635 #endif
21636
21637 #ifdef HAVE_LINUX_THREADS
21638         pthread_kill_other_threads_np();
21639 #endif
21640
21641         return 0;
21642
21643 }
21644
21645 _ACEOF
21646 rm -f conftest$ac_exeext
21647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21648   (eval $ac_link) 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653   (eval $ac_try) 2>&5
21654   ac_status=$?
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); }; }; then
21657   ol_cv_pthread_mthreads=yes
21658 else
21659   echo "$as_me: program exited with status $ac_status" >&5
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ( exit $ac_status )
21664 ol_cv_pthread_mthreads=no
21665 fi
21666 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21667 fi
21668
21669                 # restore the LIBS
21670                 LIBS="$ol_LIBS"
21671
21672 fi
21673 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21674 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21675
21676         if test $ol_cv_pthread_mthreads = yes ; then
21677                 ol_link_pthreads="-mthreads"
21678                 ol_link_threads=posix
21679         fi
21680 fi
21681
21682                 # Pthread try link: -thread (ol_cv_pthread_thread)
21683 if test "$ol_link_threads" = no ; then
21684         # try -thread
21685         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21686 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21687 if test "${ol_cv_pthread_thread+set}" = set; then
21688   echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690
21691                 # save the flags
21692                 ol_LIBS="$LIBS"
21693                 LIBS="-thread $LIBS"
21694
21695                 if test "$cross_compiling" = yes; then
21696   cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h.  */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
21701 /* end confdefs.h.  */
21702
21703 /* pthread test headers */
21704 #include <pthread.h>
21705 #if HAVE_PTHREADS < 7
21706 #include <errno.h>
21707 #endif
21708 #ifndef NULL
21709 #define NULL (void*)0
21710 #endif
21711
21712 static void *task(p)
21713         void *p;
21714 {
21715         return (void *) (p == NULL);
21716 }
21717
21718 int
21719 main ()
21720 {
21721
21722         /* pthread test function */
21723 #ifndef PTHREAD_CREATE_DETACHED
21724 #define PTHREAD_CREATE_DETACHED 1
21725 #endif
21726         pthread_t t;
21727         int status;
21728         int detach = PTHREAD_CREATE_DETACHED;
21729
21730 #if HAVE_PTHREADS > 4
21731         /* Final pthreads */
21732         pthread_attr_t attr;
21733
21734         status = pthread_attr_init(&attr);
21735         if( status ) return status;
21736
21737 #if HAVE_PTHREADS < 7
21738         status = pthread_attr_setdetachstate(&attr, &detach);
21739         if( status < 0 ) status = errno;
21740 #else
21741         status = pthread_attr_setdetachstate(&attr, detach);
21742 #endif
21743         if( status ) return status;
21744         status = pthread_create( &t, &attr, task, NULL );
21745 #if HAVE_PTHREADS < 7
21746         if( status < 0 ) status = errno;
21747 #endif
21748         if( status ) return status;
21749 #else
21750         /* Draft 4 pthreads */
21751         status = pthread_create( &t, pthread_attr_default, task, NULL );
21752         if( status ) return errno;
21753
21754         /* give thread a chance to complete */
21755         /* it should remain joinable and hence detachable */
21756         sleep( 1 );
21757
21758         status = pthread_detach( &t );
21759         if( status ) return errno;
21760 #endif
21761
21762 #ifdef HAVE_LINUX_THREADS
21763         pthread_kill_other_threads_np();
21764 #endif
21765
21766         return 0;
21767
21768   ;
21769   return 0;
21770 }
21771 _ACEOF
21772 rm -f conftest.$ac_objext conftest$ac_exeext
21773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21774   (eval $ac_link) 2>conftest.er1
21775   ac_status=$?
21776   grep -v '^ *+' conftest.er1 >conftest.err
21777   rm -f conftest.er1
21778   cat conftest.err >&5
21779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21780   (exit $ac_status); } &&
21781          { ac_try='test -z "$ac_c_werror_flag"
21782                          || test ! -s conftest.err'
21783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784   (eval $ac_try) 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; } &&
21788          { ac_try='test -s conftest$ac_exeext'
21789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790   (eval $ac_try) 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); }; }; then
21794   ol_cv_pthread_thread=yes
21795 else
21796   echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799 ol_cv_pthread_thread=no
21800 fi
21801 rm -f conftest.err conftest.$ac_objext \
21802       conftest$ac_exeext conftest.$ac_ext
21803 else
21804   cat >conftest.$ac_ext <<_ACEOF
21805 /* confdefs.h.  */
21806 _ACEOF
21807 cat confdefs.h >>conftest.$ac_ext
21808 cat >>conftest.$ac_ext <<_ACEOF
21809 /* end confdefs.h.  */
21810
21811 /* pthread test headers */
21812 #include <pthread.h>
21813 #if HAVE_PTHREADS < 7
21814 #include <errno.h>
21815 #endif
21816 #ifndef NULL
21817 #define NULL (void*)0
21818 #endif
21819
21820 static void *task(p)
21821         void *p;
21822 {
21823         return (void *) (p == NULL);
21824 }
21825
21826
21827 int main(argc, argv)
21828         int argc;
21829         char **argv;
21830 {
21831
21832         /* pthread test function */
21833 #ifndef PTHREAD_CREATE_DETACHED
21834 #define PTHREAD_CREATE_DETACHED 1
21835 #endif
21836         pthread_t t;
21837         int status;
21838         int detach = PTHREAD_CREATE_DETACHED;
21839
21840 #if HAVE_PTHREADS > 4
21841         /* Final pthreads */
21842         pthread_attr_t attr;
21843
21844         status = pthread_attr_init(&attr);
21845         if( status ) return status;
21846
21847 #if HAVE_PTHREADS < 7
21848         status = pthread_attr_setdetachstate(&attr, &detach);
21849         if( status < 0 ) status = errno;
21850 #else
21851         status = pthread_attr_setdetachstate(&attr, detach);
21852 #endif
21853         if( status ) return status;
21854         status = pthread_create( &t, &attr, task, NULL );
21855 #if HAVE_PTHREADS < 7
21856         if( status < 0 ) status = errno;
21857 #endif
21858         if( status ) return status;
21859 #else
21860         /* Draft 4 pthreads */
21861         status = pthread_create( &t, pthread_attr_default, task, NULL );
21862         if( status ) return errno;
21863
21864         /* give thread a chance to complete */
21865         /* it should remain joinable and hence detachable */
21866         sleep( 1 );
21867
21868         status = pthread_detach( &t );
21869         if( status ) return errno;
21870 #endif
21871
21872 #ifdef HAVE_LINUX_THREADS
21873         pthread_kill_other_threads_np();
21874 #endif
21875
21876         return 0;
21877
21878 }
21879
21880 _ACEOF
21881 rm -f conftest$ac_exeext
21882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21883   (eval $ac_link) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888   (eval $ac_try) 2>&5
21889   ac_status=$?
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); }; }; then
21892   ol_cv_pthread_thread=yes
21893 else
21894   echo "$as_me: program exited with status $ac_status" >&5
21895 echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898 ( exit $ac_status )
21899 ol_cv_pthread_thread=no
21900 fi
21901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21902 fi
21903
21904                 # restore the LIBS
21905                 LIBS="$ol_LIBS"
21906
21907 fi
21908 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21909 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21910
21911         if test $ol_cv_pthread_thread = yes ; then
21912                 ol_link_pthreads="-thread"
21913                 ol_link_threads=posix
21914         fi
21915 fi
21916
21917
21918                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21919 if test "$ol_link_threads" = no ; then
21920         # try -lpthread -lmach -lexc -lc_r
21921         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21922 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21923 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 else
21926
21927                 # save the flags
21928                 ol_LIBS="$LIBS"
21929                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21930
21931                 if test "$cross_compiling" = yes; then
21932   cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938
21939 /* pthread test headers */
21940 #include <pthread.h>
21941 #if HAVE_PTHREADS < 7
21942 #include <errno.h>
21943 #endif
21944 #ifndef NULL
21945 #define NULL (void*)0
21946 #endif
21947
21948 static void *task(p)
21949         void *p;
21950 {
21951         return (void *) (p == NULL);
21952 }
21953
21954 int
21955 main ()
21956 {
21957
21958         /* pthread test function */
21959 #ifndef PTHREAD_CREATE_DETACHED
21960 #define PTHREAD_CREATE_DETACHED 1
21961 #endif
21962         pthread_t t;
21963         int status;
21964         int detach = PTHREAD_CREATE_DETACHED;
21965
21966 #if HAVE_PTHREADS > 4
21967         /* Final pthreads */
21968         pthread_attr_t attr;
21969
21970         status = pthread_attr_init(&attr);
21971         if( status ) return status;
21972
21973 #if HAVE_PTHREADS < 7
21974         status = pthread_attr_setdetachstate(&attr, &detach);
21975         if( status < 0 ) status = errno;
21976 #else
21977         status = pthread_attr_setdetachstate(&attr, detach);
21978 #endif
21979         if( status ) return status;
21980         status = pthread_create( &t, &attr, task, NULL );
21981 #if HAVE_PTHREADS < 7
21982         if( status < 0 ) status = errno;
21983 #endif
21984         if( status ) return status;
21985 #else
21986         /* Draft 4 pthreads */
21987         status = pthread_create( &t, pthread_attr_default, task, NULL );
21988         if( status ) return errno;
21989
21990         /* give thread a chance to complete */
21991         /* it should remain joinable and hence detachable */
21992         sleep( 1 );
21993
21994         status = pthread_detach( &t );
21995         if( status ) return errno;
21996 #endif
21997
21998 #ifdef HAVE_LINUX_THREADS
21999         pthread_kill_other_threads_np();
22000 #endif
22001
22002         return 0;
22003
22004   ;
22005   return 0;
22006 }
22007 _ACEOF
22008 rm -f conftest.$ac_objext conftest$ac_exeext
22009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010   (eval $ac_link) 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } &&
22017          { ac_try='test -z "$ac_c_werror_flag"
22018                          || test ! -s conftest.err'
22019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020   (eval $ac_try) 2>&5
22021   ac_status=$?
22022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023   (exit $ac_status); }; } &&
22024          { ac_try='test -s conftest$ac_exeext'
22025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026   (eval $ac_try) 2>&5
22027   ac_status=$?
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); }; }; then
22030   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22031 else
22032   echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22034
22035 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22036 fi
22037 rm -f conftest.err conftest.$ac_objext \
22038       conftest$ac_exeext conftest.$ac_ext
22039 else
22040   cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h.  */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h.  */
22046
22047 /* pthread test headers */
22048 #include <pthread.h>
22049 #if HAVE_PTHREADS < 7
22050 #include <errno.h>
22051 #endif
22052 #ifndef NULL
22053 #define NULL (void*)0
22054 #endif
22055
22056 static void *task(p)
22057         void *p;
22058 {
22059         return (void *) (p == NULL);
22060 }
22061
22062
22063 int main(argc, argv)
22064         int argc;
22065         char **argv;
22066 {
22067
22068         /* pthread test function */
22069 #ifndef PTHREAD_CREATE_DETACHED
22070 #define PTHREAD_CREATE_DETACHED 1
22071 #endif
22072         pthread_t t;
22073         int status;
22074         int detach = PTHREAD_CREATE_DETACHED;
22075
22076 #if HAVE_PTHREADS > 4
22077         /* Final pthreads */
22078         pthread_attr_t attr;
22079
22080         status = pthread_attr_init(&attr);
22081         if( status ) return status;
22082
22083 #if HAVE_PTHREADS < 7
22084         status = pthread_attr_setdetachstate(&attr, &detach);
22085         if( status < 0 ) status = errno;
22086 #else
22087         status = pthread_attr_setdetachstate(&attr, detach);
22088 #endif
22089         if( status ) return status;
22090         status = pthread_create( &t, &attr, task, NULL );
22091 #if HAVE_PTHREADS < 7
22092         if( status < 0 ) status = errno;
22093 #endif
22094         if( status ) return status;
22095 #else
22096         /* Draft 4 pthreads */
22097         status = pthread_create( &t, pthread_attr_default, task, NULL );
22098         if( status ) return errno;
22099
22100         /* give thread a chance to complete */
22101         /* it should remain joinable and hence detachable */
22102         sleep( 1 );
22103
22104         status = pthread_detach( &t );
22105         if( status ) return errno;
22106 #endif
22107
22108 #ifdef HAVE_LINUX_THREADS
22109         pthread_kill_other_threads_np();
22110 #endif
22111
22112         return 0;
22113
22114 }
22115
22116 _ACEOF
22117 rm -f conftest$ac_exeext
22118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22119   (eval $ac_link) 2>&5
22120   ac_status=$?
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22124   (eval $ac_try) 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22129 else
22130   echo "$as_me: program exited with status $ac_status" >&5
22131 echo "$as_me: failed program was:" >&5
22132 sed 's/^/| /' conftest.$ac_ext >&5
22133
22134 ( exit $ac_status )
22135 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22136 fi
22137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22138 fi
22139
22140                 # restore the LIBS
22141                 LIBS="$ol_LIBS"
22142
22143 fi
22144 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22145 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22146
22147         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22148                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22149                 ol_link_threads=posix
22150         fi
22151 fi
22152
22153                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22154 if test "$ol_link_threads" = no ; then
22155         # try -lpthread -lmach -lexc
22156         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22157 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22158 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22159   echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161
22162                 # save the flags
22163                 ol_LIBS="$LIBS"
22164                 LIBS="-lpthread -lmach -lexc $LIBS"
22165
22166                 if test "$cross_compiling" = yes; then
22167   cat >conftest.$ac_ext <<_ACEOF
22168 /* confdefs.h.  */
22169 _ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h.  */
22173
22174 /* pthread test headers */
22175 #include <pthread.h>
22176 #if HAVE_PTHREADS < 7
22177 #include <errno.h>
22178 #endif
22179 #ifndef NULL
22180 #define NULL (void*)0
22181 #endif
22182
22183 static void *task(p)
22184         void *p;
22185 {
22186         return (void *) (p == NULL);
22187 }
22188
22189 int
22190 main ()
22191 {
22192
22193         /* pthread test function */
22194 #ifndef PTHREAD_CREATE_DETACHED
22195 #define PTHREAD_CREATE_DETACHED 1
22196 #endif
22197         pthread_t t;
22198         int status;
22199         int detach = PTHREAD_CREATE_DETACHED;
22200
22201 #if HAVE_PTHREADS > 4
22202         /* Final pthreads */
22203         pthread_attr_t attr;
22204
22205         status = pthread_attr_init(&attr);
22206         if( status ) return status;
22207
22208 #if HAVE_PTHREADS < 7
22209         status = pthread_attr_setdetachstate(&attr, &detach);
22210         if( status < 0 ) status = errno;
22211 #else
22212         status = pthread_attr_setdetachstate(&attr, detach);
22213 #endif
22214         if( status ) return status;
22215         status = pthread_create( &t, &attr, task, NULL );
22216 #if HAVE_PTHREADS < 7
22217         if( status < 0 ) status = errno;
22218 #endif
22219         if( status ) return status;
22220 #else
22221         /* Draft 4 pthreads */
22222         status = pthread_create( &t, pthread_attr_default, task, NULL );
22223         if( status ) return errno;
22224
22225         /* give thread a chance to complete */
22226         /* it should remain joinable and hence detachable */
22227         sleep( 1 );
22228
22229         status = pthread_detach( &t );
22230         if( status ) return errno;
22231 #endif
22232
22233 #ifdef HAVE_LINUX_THREADS
22234         pthread_kill_other_threads_np();
22235 #endif
22236
22237         return 0;
22238
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245   (eval $ac_link) 2>conftest.er1
22246   ac_status=$?
22247   grep -v '^ *+' conftest.er1 >conftest.err
22248   rm -f conftest.er1
22249   cat conftest.err >&5
22250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251   (exit $ac_status); } &&
22252          { ac_try='test -z "$ac_c_werror_flag"
22253                          || test ! -s conftest.err'
22254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255   (eval $ac_try) 2>&5
22256   ac_status=$?
22257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258   (exit $ac_status); }; } &&
22259          { ac_try='test -s conftest$ac_exeext'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; }; then
22265   ol_cv_pthread_lpthread_lmach_lexc=yes
22266 else
22267   echo "$as_me: failed program was:" >&5
22268 sed 's/^/| /' conftest.$ac_ext >&5
22269
22270 ol_cv_pthread_lpthread_lmach_lexc=no
22271 fi
22272 rm -f conftest.err conftest.$ac_objext \
22273       conftest$ac_exeext conftest.$ac_ext
22274 else
22275   cat >conftest.$ac_ext <<_ACEOF
22276 /* confdefs.h.  */
22277 _ACEOF
22278 cat confdefs.h >>conftest.$ac_ext
22279 cat >>conftest.$ac_ext <<_ACEOF
22280 /* end confdefs.h.  */
22281
22282 /* pthread test headers */
22283 #include <pthread.h>
22284 #if HAVE_PTHREADS < 7
22285 #include <errno.h>
22286 #endif
22287 #ifndef NULL
22288 #define NULL (void*)0
22289 #endif
22290
22291 static void *task(p)
22292         void *p;
22293 {
22294         return (void *) (p == NULL);
22295 }
22296
22297
22298 int main(argc, argv)
22299         int argc;
22300         char **argv;
22301 {
22302
22303         /* pthread test function */
22304 #ifndef PTHREAD_CREATE_DETACHED
22305 #define PTHREAD_CREATE_DETACHED 1
22306 #endif
22307         pthread_t t;
22308         int status;
22309         int detach = PTHREAD_CREATE_DETACHED;
22310
22311 #if HAVE_PTHREADS > 4
22312         /* Final pthreads */
22313         pthread_attr_t attr;
22314
22315         status = pthread_attr_init(&attr);
22316         if( status ) return status;
22317
22318 #if HAVE_PTHREADS < 7
22319         status = pthread_attr_setdetachstate(&attr, &detach);
22320         if( status < 0 ) status = errno;
22321 #else
22322         status = pthread_attr_setdetachstate(&attr, detach);
22323 #endif
22324         if( status ) return status;
22325         status = pthread_create( &t, &attr, task, NULL );
22326 #if HAVE_PTHREADS < 7
22327         if( status < 0 ) status = errno;
22328 #endif
22329         if( status ) return status;
22330 #else
22331         /* Draft 4 pthreads */
22332         status = pthread_create( &t, pthread_attr_default, task, NULL );
22333         if( status ) return errno;
22334
22335         /* give thread a chance to complete */
22336         /* it should remain joinable and hence detachable */
22337         sleep( 1 );
22338
22339         status = pthread_detach( &t );
22340         if( status ) return errno;
22341 #endif
22342
22343 #ifdef HAVE_LINUX_THREADS
22344         pthread_kill_other_threads_np();
22345 #endif
22346
22347         return 0;
22348
22349 }
22350
22351 _ACEOF
22352 rm -f conftest$ac_exeext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22354   (eval $ac_link) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359   (eval $ac_try) 2>&5
22360   ac_status=$?
22361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362   (exit $ac_status); }; }; then
22363   ol_cv_pthread_lpthread_lmach_lexc=yes
22364 else
22365   echo "$as_me: program exited with status $ac_status" >&5
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 ( exit $ac_status )
22370 ol_cv_pthread_lpthread_lmach_lexc=no
22371 fi
22372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22373 fi
22374
22375                 # restore the LIBS
22376                 LIBS="$ol_LIBS"
22377
22378 fi
22379 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22380 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22381
22382         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22383                 ol_link_pthreads="-lpthread -lmach -lexc"
22384                 ol_link_threads=posix
22385         fi
22386 fi
22387
22388
22389                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22390 if test "$ol_link_threads" = no ; then
22391         # try -lpthread -Wl,-woff,85
22392         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22393 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22394 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397
22398                 # save the flags
22399                 ol_LIBS="$LIBS"
22400                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22401
22402                 if test "$cross_compiling" = yes; then
22403   cat >conftest.$ac_ext <<_ACEOF
22404 /* confdefs.h.  */
22405 _ACEOF
22406 cat confdefs.h >>conftest.$ac_ext
22407 cat >>conftest.$ac_ext <<_ACEOF
22408 /* end confdefs.h.  */
22409
22410 /* pthread test headers */
22411 #include <pthread.h>
22412 #if HAVE_PTHREADS < 7
22413 #include <errno.h>
22414 #endif
22415 #ifndef NULL
22416 #define NULL (void*)0
22417 #endif
22418
22419 static void *task(p)
22420         void *p;
22421 {
22422         return (void *) (p == NULL);
22423 }
22424
22425 int
22426 main ()
22427 {
22428
22429         /* pthread test function */
22430 #ifndef PTHREAD_CREATE_DETACHED
22431 #define PTHREAD_CREATE_DETACHED 1
22432 #endif
22433         pthread_t t;
22434         int status;
22435         int detach = PTHREAD_CREATE_DETACHED;
22436
22437 #if HAVE_PTHREADS > 4
22438         /* Final pthreads */
22439         pthread_attr_t attr;
22440
22441         status = pthread_attr_init(&attr);
22442         if( status ) return status;
22443
22444 #if HAVE_PTHREADS < 7
22445         status = pthread_attr_setdetachstate(&attr, &detach);
22446         if( status < 0 ) status = errno;
22447 #else
22448         status = pthread_attr_setdetachstate(&attr, detach);
22449 #endif
22450         if( status ) return status;
22451         status = pthread_create( &t, &attr, task, NULL );
22452 #if HAVE_PTHREADS < 7
22453         if( status < 0 ) status = errno;
22454 #endif
22455         if( status ) return status;
22456 #else
22457         /* Draft 4 pthreads */
22458         status = pthread_create( &t, pthread_attr_default, task, NULL );
22459         if( status ) return errno;
22460
22461         /* give thread a chance to complete */
22462         /* it should remain joinable and hence detachable */
22463         sleep( 1 );
22464
22465         status = pthread_detach( &t );
22466         if( status ) return errno;
22467 #endif
22468
22469 #ifdef HAVE_LINUX_THREADS
22470         pthread_kill_other_threads_np();
22471 #endif
22472
22473         return 0;
22474
22475   ;
22476   return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22481   (eval $ac_link) 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } &&
22488          { ac_try='test -z "$ac_c_werror_flag"
22489                          || test ! -s conftest.err'
22490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22491   (eval $ac_try) 2>&5
22492   ac_status=$?
22493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494   (exit $ac_status); }; } &&
22495          { ac_try='test -s conftest$ac_exeext'
22496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); }; }; then
22501   ol_cv_pthread_lib_lpthread_woff=yes
22502 else
22503   echo "$as_me: failed program was:" >&5
22504 sed 's/^/| /' conftest.$ac_ext >&5
22505
22506 ol_cv_pthread_lib_lpthread_woff=no
22507 fi
22508 rm -f conftest.err conftest.$ac_objext \
22509       conftest$ac_exeext conftest.$ac_ext
22510 else
22511   cat >conftest.$ac_ext <<_ACEOF
22512 /* confdefs.h.  */
22513 _ACEOF
22514 cat confdefs.h >>conftest.$ac_ext
22515 cat >>conftest.$ac_ext <<_ACEOF
22516 /* end confdefs.h.  */
22517
22518 /* pthread test headers */
22519 #include <pthread.h>
22520 #if HAVE_PTHREADS < 7
22521 #include <errno.h>
22522 #endif
22523 #ifndef NULL
22524 #define NULL (void*)0
22525 #endif
22526
22527 static void *task(p)
22528         void *p;
22529 {
22530         return (void *) (p == NULL);
22531 }
22532
22533
22534 int main(argc, argv)
22535         int argc;
22536         char **argv;
22537 {
22538
22539         /* pthread test function */
22540 #ifndef PTHREAD_CREATE_DETACHED
22541 #define PTHREAD_CREATE_DETACHED 1
22542 #endif
22543         pthread_t t;
22544         int status;
22545         int detach = PTHREAD_CREATE_DETACHED;
22546
22547 #if HAVE_PTHREADS > 4
22548         /* Final pthreads */
22549         pthread_attr_t attr;
22550
22551         status = pthread_attr_init(&attr);
22552         if( status ) return status;
22553
22554 #if HAVE_PTHREADS < 7
22555         status = pthread_attr_setdetachstate(&attr, &detach);
22556         if( status < 0 ) status = errno;
22557 #else
22558         status = pthread_attr_setdetachstate(&attr, detach);
22559 #endif
22560         if( status ) return status;
22561         status = pthread_create( &t, &attr, task, NULL );
22562 #if HAVE_PTHREADS < 7
22563         if( status < 0 ) status = errno;
22564 #endif
22565         if( status ) return status;
22566 #else
22567         /* Draft 4 pthreads */
22568         status = pthread_create( &t, pthread_attr_default, task, NULL );
22569         if( status ) return errno;
22570
22571         /* give thread a chance to complete */
22572         /* it should remain joinable and hence detachable */
22573         sleep( 1 );
22574
22575         status = pthread_detach( &t );
22576         if( status ) return errno;
22577 #endif
22578
22579 #ifdef HAVE_LINUX_THREADS
22580         pthread_kill_other_threads_np();
22581 #endif
22582
22583         return 0;
22584
22585 }
22586
22587 _ACEOF
22588 rm -f conftest$ac_exeext
22589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22590   (eval $ac_link) 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595   (eval $ac_try) 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; }; then
22599   ol_cv_pthread_lib_lpthread_woff=yes
22600 else
22601   echo "$as_me: program exited with status $ac_status" >&5
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605 ( exit $ac_status )
22606 ol_cv_pthread_lib_lpthread_woff=no
22607 fi
22608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22609 fi
22610
22611                 # restore the LIBS
22612                 LIBS="$ol_LIBS"
22613
22614 fi
22615 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22616 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22617
22618         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22619                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22620                 ol_link_threads=posix
22621         fi
22622 fi
22623
22624
22625                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22626 if test "$ol_link_threads" = no ; then
22627         # try -lpthread
22628         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22629 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22630 if test "${ol_cv_pthread_lpthread+set}" = set; then
22631   echo $ECHO_N "(cached) $ECHO_C" >&6
22632 else
22633
22634                 # save the flags
22635                 ol_LIBS="$LIBS"
22636                 LIBS="-lpthread $LIBS"
22637
22638                 if test "$cross_compiling" = yes; then
22639   cat >conftest.$ac_ext <<_ACEOF
22640 /* confdefs.h.  */
22641 _ACEOF
22642 cat confdefs.h >>conftest.$ac_ext
22643 cat >>conftest.$ac_ext <<_ACEOF
22644 /* end confdefs.h.  */
22645
22646 /* pthread test headers */
22647 #include <pthread.h>
22648 #if HAVE_PTHREADS < 7
22649 #include <errno.h>
22650 #endif
22651 #ifndef NULL
22652 #define NULL (void*)0
22653 #endif
22654
22655 static void *task(p)
22656         void *p;
22657 {
22658         return (void *) (p == NULL);
22659 }
22660
22661 int
22662 main ()
22663 {
22664
22665         /* pthread test function */
22666 #ifndef PTHREAD_CREATE_DETACHED
22667 #define PTHREAD_CREATE_DETACHED 1
22668 #endif
22669         pthread_t t;
22670         int status;
22671         int detach = PTHREAD_CREATE_DETACHED;
22672
22673 #if HAVE_PTHREADS > 4
22674         /* Final pthreads */
22675         pthread_attr_t attr;
22676
22677         status = pthread_attr_init(&attr);
22678         if( status ) return status;
22679
22680 #if HAVE_PTHREADS < 7
22681         status = pthread_attr_setdetachstate(&attr, &detach);
22682         if( status < 0 ) status = errno;
22683 #else
22684         status = pthread_attr_setdetachstate(&attr, detach);
22685 #endif
22686         if( status ) return status;
22687         status = pthread_create( &t, &attr, task, NULL );
22688 #if HAVE_PTHREADS < 7
22689         if( status < 0 ) status = errno;
22690 #endif
22691         if( status ) return status;
22692 #else
22693         /* Draft 4 pthreads */
22694         status = pthread_create( &t, pthread_attr_default, task, NULL );
22695         if( status ) return errno;
22696
22697         /* give thread a chance to complete */
22698         /* it should remain joinable and hence detachable */
22699         sleep( 1 );
22700
22701         status = pthread_detach( &t );
22702         if( status ) return errno;
22703 #endif
22704
22705 #ifdef HAVE_LINUX_THREADS
22706         pthread_kill_other_threads_np();
22707 #endif
22708
22709         return 0;
22710
22711   ;
22712   return 0;
22713 }
22714 _ACEOF
22715 rm -f conftest.$ac_objext conftest$ac_exeext
22716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22717   (eval $ac_link) 2>conftest.er1
22718   ac_status=$?
22719   grep -v '^ *+' conftest.er1 >conftest.err
22720   rm -f conftest.er1
22721   cat conftest.err >&5
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); } &&
22724          { ac_try='test -z "$ac_c_werror_flag"
22725                          || test ! -s conftest.err'
22726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22727   (eval $ac_try) 2>&5
22728   ac_status=$?
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); }; } &&
22731          { ac_try='test -s conftest$ac_exeext'
22732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733   (eval $ac_try) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; }; then
22737   ol_cv_pthread_lpthread=yes
22738 else
22739   echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742 ol_cv_pthread_lpthread=no
22743 fi
22744 rm -f conftest.err conftest.$ac_objext \
22745       conftest$ac_exeext conftest.$ac_ext
22746 else
22747   cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753
22754 /* pthread test headers */
22755 #include <pthread.h>
22756 #if HAVE_PTHREADS < 7
22757 #include <errno.h>
22758 #endif
22759 #ifndef NULL
22760 #define NULL (void*)0
22761 #endif
22762
22763 static void *task(p)
22764         void *p;
22765 {
22766         return (void *) (p == NULL);
22767 }
22768
22769
22770 int main(argc, argv)
22771         int argc;
22772         char **argv;
22773 {
22774
22775         /* pthread test function */
22776 #ifndef PTHREAD_CREATE_DETACHED
22777 #define PTHREAD_CREATE_DETACHED 1
22778 #endif
22779         pthread_t t;
22780         int status;
22781         int detach = PTHREAD_CREATE_DETACHED;
22782
22783 #if HAVE_PTHREADS > 4
22784         /* Final pthreads */
22785         pthread_attr_t attr;
22786
22787         status = pthread_attr_init(&attr);
22788         if( status ) return status;
22789
22790 #if HAVE_PTHREADS < 7
22791         status = pthread_attr_setdetachstate(&attr, &detach);
22792         if( status < 0 ) status = errno;
22793 #else
22794         status = pthread_attr_setdetachstate(&attr, detach);
22795 #endif
22796         if( status ) return status;
22797         status = pthread_create( &t, &attr, task, NULL );
22798 #if HAVE_PTHREADS < 7
22799         if( status < 0 ) status = errno;
22800 #endif
22801         if( status ) return status;
22802 #else
22803         /* Draft 4 pthreads */
22804         status = pthread_create( &t, pthread_attr_default, task, NULL );
22805         if( status ) return errno;
22806
22807         /* give thread a chance to complete */
22808         /* it should remain joinable and hence detachable */
22809         sleep( 1 );
22810
22811         status = pthread_detach( &t );
22812         if( status ) return errno;
22813 #endif
22814
22815 #ifdef HAVE_LINUX_THREADS
22816         pthread_kill_other_threads_np();
22817 #endif
22818
22819         return 0;
22820
22821 }
22822
22823 _ACEOF
22824 rm -f conftest$ac_exeext
22825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22826   (eval $ac_link) 2>&5
22827   ac_status=$?
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831   (eval $ac_try) 2>&5
22832   ac_status=$?
22833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); }; }; then
22835   ol_cv_pthread_lpthread=yes
22836 else
22837   echo "$as_me: program exited with status $ac_status" >&5
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841 ( exit $ac_status )
22842 ol_cv_pthread_lpthread=no
22843 fi
22844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22845 fi
22846
22847                 # restore the LIBS
22848                 LIBS="$ol_LIBS"
22849
22850 fi
22851 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22852 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22853
22854         if test $ol_cv_pthread_lpthread = yes ; then
22855                 ol_link_pthreads="-lpthread"
22856                 ol_link_threads=posix
22857         fi
22858 fi
22859
22860                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22861 if test "$ol_link_threads" = no ; then
22862         # try -lc_r
22863         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22864 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22865 if test "${ol_cv_pthread_lc_r+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868
22869                 # save the flags
22870                 ol_LIBS="$LIBS"
22871                 LIBS="-lc_r $LIBS"
22872
22873                 if test "$cross_compiling" = yes; then
22874   cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* pthread test headers */
22882 #include <pthread.h>
22883 #if HAVE_PTHREADS < 7
22884 #include <errno.h>
22885 #endif
22886 #ifndef NULL
22887 #define NULL (void*)0
22888 #endif
22889
22890 static void *task(p)
22891         void *p;
22892 {
22893         return (void *) (p == NULL);
22894 }
22895
22896 int
22897 main ()
22898 {
22899
22900         /* pthread test function */
22901 #ifndef PTHREAD_CREATE_DETACHED
22902 #define PTHREAD_CREATE_DETACHED 1
22903 #endif
22904         pthread_t t;
22905         int status;
22906         int detach = PTHREAD_CREATE_DETACHED;
22907
22908 #if HAVE_PTHREADS > 4
22909         /* Final pthreads */
22910         pthread_attr_t attr;
22911
22912         status = pthread_attr_init(&attr);
22913         if( status ) return status;
22914
22915 #if HAVE_PTHREADS < 7
22916         status = pthread_attr_setdetachstate(&attr, &detach);
22917         if( status < 0 ) status = errno;
22918 #else
22919         status = pthread_attr_setdetachstate(&attr, detach);
22920 #endif
22921         if( status ) return status;
22922         status = pthread_create( &t, &attr, task, NULL );
22923 #if HAVE_PTHREADS < 7
22924         if( status < 0 ) status = errno;
22925 #endif
22926         if( status ) return status;
22927 #else
22928         /* Draft 4 pthreads */
22929         status = pthread_create( &t, pthread_attr_default, task, NULL );
22930         if( status ) return errno;
22931
22932         /* give thread a chance to complete */
22933         /* it should remain joinable and hence detachable */
22934         sleep( 1 );
22935
22936         status = pthread_detach( &t );
22937         if( status ) return errno;
22938 #endif
22939
22940 #ifdef HAVE_LINUX_THREADS
22941         pthread_kill_other_threads_np();
22942 #endif
22943
22944         return 0;
22945
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952   (eval $ac_link) 2>conftest.er1
22953   ac_status=$?
22954   grep -v '^ *+' conftest.er1 >conftest.err
22955   rm -f conftest.er1
22956   cat conftest.err >&5
22957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958   (exit $ac_status); } &&
22959          { ac_try='test -z "$ac_c_werror_flag"
22960                          || test ! -s conftest.err'
22961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962   (eval $ac_try) 2>&5
22963   ac_status=$?
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); }; } &&
22966          { ac_try='test -s conftest$ac_exeext'
22967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968   (eval $ac_try) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); }; }; then
22972   ol_cv_pthread_lc_r=yes
22973 else
22974   echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 ol_cv_pthread_lc_r=no
22978 fi
22979 rm -f conftest.err conftest.$ac_objext \
22980       conftest$ac_exeext conftest.$ac_ext
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988
22989 /* pthread test headers */
22990 #include <pthread.h>
22991 #if HAVE_PTHREADS < 7
22992 #include <errno.h>
22993 #endif
22994 #ifndef NULL
22995 #define NULL (void*)0
22996 #endif
22997
22998 static void *task(p)
22999         void *p;
23000 {
23001         return (void *) (p == NULL);
23002 }
23003
23004
23005 int main(argc, argv)
23006         int argc;
23007         char **argv;
23008 {
23009
23010         /* pthread test function */
23011 #ifndef PTHREAD_CREATE_DETACHED
23012 #define PTHREAD_CREATE_DETACHED 1
23013 #endif
23014         pthread_t t;
23015         int status;
23016         int detach = PTHREAD_CREATE_DETACHED;
23017
23018 #if HAVE_PTHREADS > 4
23019         /* Final pthreads */
23020         pthread_attr_t attr;
23021
23022         status = pthread_attr_init(&attr);
23023         if( status ) return status;
23024
23025 #if HAVE_PTHREADS < 7
23026         status = pthread_attr_setdetachstate(&attr, &detach);
23027         if( status < 0 ) status = errno;
23028 #else
23029         status = pthread_attr_setdetachstate(&attr, detach);
23030 #endif
23031         if( status ) return status;
23032         status = pthread_create( &t, &attr, task, NULL );
23033 #if HAVE_PTHREADS < 7
23034         if( status < 0 ) status = errno;
23035 #endif
23036         if( status ) return status;
23037 #else
23038         /* Draft 4 pthreads */
23039         status = pthread_create( &t, pthread_attr_default, task, NULL );
23040         if( status ) return errno;
23041
23042         /* give thread a chance to complete */
23043         /* it should remain joinable and hence detachable */
23044         sleep( 1 );
23045
23046         status = pthread_detach( &t );
23047         if( status ) return errno;
23048 #endif
23049
23050 #ifdef HAVE_LINUX_THREADS
23051         pthread_kill_other_threads_np();
23052 #endif
23053
23054         return 0;
23055
23056 }
23057
23058 _ACEOF
23059 rm -f conftest$ac_exeext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23061   (eval $ac_link) 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066   (eval $ac_try) 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; }; then
23070   ol_cv_pthread_lc_r=yes
23071 else
23072   echo "$as_me: program exited with status $ac_status" >&5
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23075
23076 ( exit $ac_status )
23077 ol_cv_pthread_lc_r=no
23078 fi
23079 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23080 fi
23081
23082                 # restore the LIBS
23083                 LIBS="$ol_LIBS"
23084
23085 fi
23086 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23087 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23088
23089         if test $ol_cv_pthread_lc_r = yes ; then
23090                 ol_link_pthreads="-lc_r"
23091                 ol_link_threads=posix
23092         fi
23093 fi
23094
23095
23096                 # Pthread try link: -threads (ol_cv_pthread_threads)
23097 if test "$ol_link_threads" = no ; then
23098         # try -threads
23099         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23100 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23101 if test "${ol_cv_pthread_threads+set}" = set; then
23102   echo $ECHO_N "(cached) $ECHO_C" >&6
23103 else
23104
23105                 # save the flags
23106                 ol_LIBS="$LIBS"
23107                 LIBS="-threads $LIBS"
23108
23109                 if test "$cross_compiling" = yes; then
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116
23117 /* pthread test headers */
23118 #include <pthread.h>
23119 #if HAVE_PTHREADS < 7
23120 #include <errno.h>
23121 #endif
23122 #ifndef NULL
23123 #define NULL (void*)0
23124 #endif
23125
23126 static void *task(p)
23127         void *p;
23128 {
23129         return (void *) (p == NULL);
23130 }
23131
23132 int
23133 main ()
23134 {
23135
23136         /* pthread test function */
23137 #ifndef PTHREAD_CREATE_DETACHED
23138 #define PTHREAD_CREATE_DETACHED 1
23139 #endif
23140         pthread_t t;
23141         int status;
23142         int detach = PTHREAD_CREATE_DETACHED;
23143
23144 #if HAVE_PTHREADS > 4
23145         /* Final pthreads */
23146         pthread_attr_t attr;
23147
23148         status = pthread_attr_init(&attr);
23149         if( status ) return status;
23150
23151 #if HAVE_PTHREADS < 7
23152         status = pthread_attr_setdetachstate(&attr, &detach);
23153         if( status < 0 ) status = errno;
23154 #else
23155         status = pthread_attr_setdetachstate(&attr, detach);
23156 #endif
23157         if( status ) return status;
23158         status = pthread_create( &t, &attr, task, NULL );
23159 #if HAVE_PTHREADS < 7
23160         if( status < 0 ) status = errno;
23161 #endif
23162         if( status ) return status;
23163 #else
23164         /* Draft 4 pthreads */
23165         status = pthread_create( &t, pthread_attr_default, task, NULL );
23166         if( status ) return errno;
23167
23168         /* give thread a chance to complete */
23169         /* it should remain joinable and hence detachable */
23170         sleep( 1 );
23171
23172         status = pthread_detach( &t );
23173         if( status ) return errno;
23174 #endif
23175
23176 #ifdef HAVE_LINUX_THREADS
23177         pthread_kill_other_threads_np();
23178 #endif
23179
23180         return 0;
23181
23182   ;
23183   return 0;
23184 }
23185 _ACEOF
23186 rm -f conftest.$ac_objext conftest$ac_exeext
23187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23188   (eval $ac_link) 2>conftest.er1
23189   ac_status=$?
23190   grep -v '^ *+' conftest.er1 >conftest.err
23191   rm -f conftest.er1
23192   cat conftest.err >&5
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); } &&
23195          { ac_try='test -z "$ac_c_werror_flag"
23196                          || test ! -s conftest.err'
23197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23198   (eval $ac_try) 2>&5
23199   ac_status=$?
23200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201   (exit $ac_status); }; } &&
23202          { ac_try='test -s conftest$ac_exeext'
23203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23204   (eval $ac_try) 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); }; }; then
23208   ol_cv_pthread_threads=yes
23209 else
23210   echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23212
23213 ol_cv_pthread_threads=no
23214 fi
23215 rm -f conftest.err conftest.$ac_objext \
23216       conftest$ac_exeext conftest.$ac_ext
23217 else
23218   cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h.  */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h.  */
23224
23225 /* pthread test headers */
23226 #include <pthread.h>
23227 #if HAVE_PTHREADS < 7
23228 #include <errno.h>
23229 #endif
23230 #ifndef NULL
23231 #define NULL (void*)0
23232 #endif
23233
23234 static void *task(p)
23235         void *p;
23236 {
23237         return (void *) (p == NULL);
23238 }
23239
23240
23241 int main(argc, argv)
23242         int argc;
23243         char **argv;
23244 {
23245
23246         /* pthread test function */
23247 #ifndef PTHREAD_CREATE_DETACHED
23248 #define PTHREAD_CREATE_DETACHED 1
23249 #endif
23250         pthread_t t;
23251         int status;
23252         int detach = PTHREAD_CREATE_DETACHED;
23253
23254 #if HAVE_PTHREADS > 4
23255         /* Final pthreads */
23256         pthread_attr_t attr;
23257
23258         status = pthread_attr_init(&attr);
23259         if( status ) return status;
23260
23261 #if HAVE_PTHREADS < 7
23262         status = pthread_attr_setdetachstate(&attr, &detach);
23263         if( status < 0 ) status = errno;
23264 #else
23265         status = pthread_attr_setdetachstate(&attr, detach);
23266 #endif
23267         if( status ) return status;
23268         status = pthread_create( &t, &attr, task, NULL );
23269 #if HAVE_PTHREADS < 7
23270         if( status < 0 ) status = errno;
23271 #endif
23272         if( status ) return status;
23273 #else
23274         /* Draft 4 pthreads */
23275         status = pthread_create( &t, pthread_attr_default, task, NULL );
23276         if( status ) return errno;
23277
23278         /* give thread a chance to complete */
23279         /* it should remain joinable and hence detachable */
23280         sleep( 1 );
23281
23282         status = pthread_detach( &t );
23283         if( status ) return errno;
23284 #endif
23285
23286 #ifdef HAVE_LINUX_THREADS
23287         pthread_kill_other_threads_np();
23288 #endif
23289
23290         return 0;
23291
23292 }
23293
23294 _ACEOF
23295 rm -f conftest$ac_exeext
23296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23297   (eval $ac_link) 2>&5
23298   ac_status=$?
23299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302   (eval $ac_try) 2>&5
23303   ac_status=$?
23304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305   (exit $ac_status); }; }; then
23306   ol_cv_pthread_threads=yes
23307 else
23308   echo "$as_me: program exited with status $ac_status" >&5
23309 echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23311
23312 ( exit $ac_status )
23313 ol_cv_pthread_threads=no
23314 fi
23315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23316 fi
23317
23318                 # restore the LIBS
23319                 LIBS="$ol_LIBS"
23320
23321 fi
23322 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23323 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23324
23325         if test $ol_cv_pthread_threads = yes ; then
23326                 ol_link_pthreads="-threads"
23327                 ol_link_threads=posix
23328         fi
23329 fi
23330
23331
23332                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23333 if test "$ol_link_threads" = no ; then
23334         # try -lpthreads -lmach -lexc -lc_r
23335         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23336 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23337 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23338   echo $ECHO_N "(cached) $ECHO_C" >&6
23339 else
23340
23341                 # save the flags
23342                 ol_LIBS="$LIBS"
23343                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23344
23345                 if test "$cross_compiling" = yes; then
23346   cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352
23353 /* pthread test headers */
23354 #include <pthread.h>
23355 #if HAVE_PTHREADS < 7
23356 #include <errno.h>
23357 #endif
23358 #ifndef NULL
23359 #define NULL (void*)0
23360 #endif
23361
23362 static void *task(p)
23363         void *p;
23364 {
23365         return (void *) (p == NULL);
23366 }
23367
23368 int
23369 main ()
23370 {
23371
23372         /* pthread test function */
23373 #ifndef PTHREAD_CREATE_DETACHED
23374 #define PTHREAD_CREATE_DETACHED 1
23375 #endif
23376         pthread_t t;
23377         int status;
23378         int detach = PTHREAD_CREATE_DETACHED;
23379
23380 #if HAVE_PTHREADS > 4
23381         /* Final pthreads */
23382         pthread_attr_t attr;
23383
23384         status = pthread_attr_init(&attr);
23385         if( status ) return status;
23386
23387 #if HAVE_PTHREADS < 7
23388         status = pthread_attr_setdetachstate(&attr, &detach);
23389         if( status < 0 ) status = errno;
23390 #else
23391         status = pthread_attr_setdetachstate(&attr, detach);
23392 #endif
23393         if( status ) return status;
23394         status = pthread_create( &t, &attr, task, NULL );
23395 #if HAVE_PTHREADS < 7
23396         if( status < 0 ) status = errno;
23397 #endif
23398         if( status ) return status;
23399 #else
23400         /* Draft 4 pthreads */
23401         status = pthread_create( &t, pthread_attr_default, task, NULL );
23402         if( status ) return errno;
23403
23404         /* give thread a chance to complete */
23405         /* it should remain joinable and hence detachable */
23406         sleep( 1 );
23407
23408         status = pthread_detach( &t );
23409         if( status ) return errno;
23410 #endif
23411
23412 #ifdef HAVE_LINUX_THREADS
23413         pthread_kill_other_threads_np();
23414 #endif
23415
23416         return 0;
23417
23418   ;
23419   return 0;
23420 }
23421 _ACEOF
23422 rm -f conftest.$ac_objext conftest$ac_exeext
23423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23424   (eval $ac_link) 2>conftest.er1
23425   ac_status=$?
23426   grep -v '^ *+' conftest.er1 >conftest.err
23427   rm -f conftest.er1
23428   cat conftest.err >&5
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); } &&
23431          { ac_try='test -z "$ac_c_werror_flag"
23432                          || test ! -s conftest.err'
23433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434   (eval $ac_try) 2>&5
23435   ac_status=$?
23436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437   (exit $ac_status); }; } &&
23438          { ac_try='test -s conftest$ac_exeext'
23439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440   (eval $ac_try) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); }; }; then
23444   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23445 else
23446   echo "$as_me: failed program was:" >&5
23447 sed 's/^/| /' conftest.$ac_ext >&5
23448
23449 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23450 fi
23451 rm -f conftest.err conftest.$ac_objext \
23452       conftest$ac_exeext conftest.$ac_ext
23453 else
23454   cat >conftest.$ac_ext <<_ACEOF
23455 /* confdefs.h.  */
23456 _ACEOF
23457 cat confdefs.h >>conftest.$ac_ext
23458 cat >>conftest.$ac_ext <<_ACEOF
23459 /* end confdefs.h.  */
23460
23461 /* pthread test headers */
23462 #include <pthread.h>
23463 #if HAVE_PTHREADS < 7
23464 #include <errno.h>
23465 #endif
23466 #ifndef NULL
23467 #define NULL (void*)0
23468 #endif
23469
23470 static void *task(p)
23471         void *p;
23472 {
23473         return (void *) (p == NULL);
23474 }
23475
23476
23477 int main(argc, argv)
23478         int argc;
23479         char **argv;
23480 {
23481
23482         /* pthread test function */
23483 #ifndef PTHREAD_CREATE_DETACHED
23484 #define PTHREAD_CREATE_DETACHED 1
23485 #endif
23486         pthread_t t;
23487         int status;
23488         int detach = PTHREAD_CREATE_DETACHED;
23489
23490 #if HAVE_PTHREADS > 4
23491         /* Final pthreads */
23492         pthread_attr_t attr;
23493
23494         status = pthread_attr_init(&attr);
23495         if( status ) return status;
23496
23497 #if HAVE_PTHREADS < 7
23498         status = pthread_attr_setdetachstate(&attr, &detach);
23499         if( status < 0 ) status = errno;
23500 #else
23501         status = pthread_attr_setdetachstate(&attr, detach);
23502 #endif
23503         if( status ) return status;
23504         status = pthread_create( &t, &attr, task, NULL );
23505 #if HAVE_PTHREADS < 7
23506         if( status < 0 ) status = errno;
23507 #endif
23508         if( status ) return status;
23509 #else
23510         /* Draft 4 pthreads */
23511         status = pthread_create( &t, pthread_attr_default, task, NULL );
23512         if( status ) return errno;
23513
23514         /* give thread a chance to complete */
23515         /* it should remain joinable and hence detachable */
23516         sleep( 1 );
23517
23518         status = pthread_detach( &t );
23519         if( status ) return errno;
23520 #endif
23521
23522 #ifdef HAVE_LINUX_THREADS
23523         pthread_kill_other_threads_np();
23524 #endif
23525
23526         return 0;
23527
23528 }
23529
23530 _ACEOF
23531 rm -f conftest$ac_exeext
23532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23533   (eval $ac_link) 2>&5
23534   ac_status=$?
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538   (eval $ac_try) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; }; then
23542   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23543 else
23544   echo "$as_me: program exited with status $ac_status" >&5
23545 echo "$as_me: failed program was:" >&5
23546 sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ( exit $ac_status )
23549 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23550 fi
23551 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23552 fi
23553
23554                 # restore the LIBS
23555                 LIBS="$ol_LIBS"
23556
23557 fi
23558 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23559 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23560
23561         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23562                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23563                 ol_link_threads=posix
23564         fi
23565 fi
23566
23567                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23568 if test "$ol_link_threads" = no ; then
23569         # try -lpthreads -lmach -lexc
23570         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23571 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23572 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23573   echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575
23576                 # save the flags
23577                 ol_LIBS="$LIBS"
23578                 LIBS="-lpthreads -lmach -lexc $LIBS"
23579
23580                 if test "$cross_compiling" = yes; then
23581   cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h.  */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h.  */
23587
23588 /* pthread test headers */
23589 #include <pthread.h>
23590 #if HAVE_PTHREADS < 7
23591 #include <errno.h>
23592 #endif
23593 #ifndef NULL
23594 #define NULL (void*)0
23595 #endif
23596
23597 static void *task(p)
23598         void *p;
23599 {
23600         return (void *) (p == NULL);
23601 }
23602
23603 int
23604 main ()
23605 {
23606
23607         /* pthread test function */
23608 #ifndef PTHREAD_CREATE_DETACHED
23609 #define PTHREAD_CREATE_DETACHED 1
23610 #endif
23611         pthread_t t;
23612         int status;
23613         int detach = PTHREAD_CREATE_DETACHED;
23614
23615 #if HAVE_PTHREADS > 4
23616         /* Final pthreads */
23617         pthread_attr_t attr;
23618
23619         status = pthread_attr_init(&attr);
23620         if( status ) return status;
23621
23622 #if HAVE_PTHREADS < 7
23623         status = pthread_attr_setdetachstate(&attr, &detach);
23624         if( status < 0 ) status = errno;
23625 #else
23626         status = pthread_attr_setdetachstate(&attr, detach);
23627 #endif
23628         if( status ) return status;
23629         status = pthread_create( &t, &attr, task, NULL );
23630 #if HAVE_PTHREADS < 7
23631         if( status < 0 ) status = errno;
23632 #endif
23633         if( status ) return status;
23634 #else
23635         /* Draft 4 pthreads */
23636         status = pthread_create( &t, pthread_attr_default, task, NULL );
23637         if( status ) return errno;
23638
23639         /* give thread a chance to complete */
23640         /* it should remain joinable and hence detachable */
23641         sleep( 1 );
23642
23643         status = pthread_detach( &t );
23644         if( status ) return errno;
23645 #endif
23646
23647 #ifdef HAVE_LINUX_THREADS
23648         pthread_kill_other_threads_np();
23649 #endif
23650
23651         return 0;
23652
23653   ;
23654   return 0;
23655 }
23656 _ACEOF
23657 rm -f conftest.$ac_objext conftest$ac_exeext
23658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23659   (eval $ac_link) 2>conftest.er1
23660   ac_status=$?
23661   grep -v '^ *+' conftest.er1 >conftest.err
23662   rm -f conftest.er1
23663   cat conftest.err >&5
23664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23665   (exit $ac_status); } &&
23666          { ac_try='test -z "$ac_c_werror_flag"
23667                          || test ! -s conftest.err'
23668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); }; } &&
23673          { ac_try='test -s conftest$ac_exeext'
23674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675   (eval $ac_try) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; }; then
23679   ol_cv_pthread_lpthreads_lmach_lexc=yes
23680 else
23681   echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684 ol_cv_pthread_lpthreads_lmach_lexc=no
23685 fi
23686 rm -f conftest.err conftest.$ac_objext \
23687       conftest$ac_exeext conftest.$ac_ext
23688 else
23689   cat >conftest.$ac_ext <<_ACEOF
23690 /* confdefs.h.  */
23691 _ACEOF
23692 cat confdefs.h >>conftest.$ac_ext
23693 cat >>conftest.$ac_ext <<_ACEOF
23694 /* end confdefs.h.  */
23695
23696 /* pthread test headers */
23697 #include <pthread.h>
23698 #if HAVE_PTHREADS < 7
23699 #include <errno.h>
23700 #endif
23701 #ifndef NULL
23702 #define NULL (void*)0
23703 #endif
23704
23705 static void *task(p)
23706         void *p;
23707 {
23708         return (void *) (p == NULL);
23709 }
23710
23711
23712 int main(argc, argv)
23713         int argc;
23714         char **argv;
23715 {
23716
23717         /* pthread test function */
23718 #ifndef PTHREAD_CREATE_DETACHED
23719 #define PTHREAD_CREATE_DETACHED 1
23720 #endif
23721         pthread_t t;
23722         int status;
23723         int detach = PTHREAD_CREATE_DETACHED;
23724
23725 #if HAVE_PTHREADS > 4
23726         /* Final pthreads */
23727         pthread_attr_t attr;
23728
23729         status = pthread_attr_init(&attr);
23730         if( status ) return status;
23731
23732 #if HAVE_PTHREADS < 7
23733         status = pthread_attr_setdetachstate(&attr, &detach);
23734         if( status < 0 ) status = errno;
23735 #else
23736         status = pthread_attr_setdetachstate(&attr, detach);
23737 #endif
23738         if( status ) return status;
23739         status = pthread_create( &t, &attr, task, NULL );
23740 #if HAVE_PTHREADS < 7
23741         if( status < 0 ) status = errno;
23742 #endif
23743         if( status ) return status;
23744 #else
23745         /* Draft 4 pthreads */
23746         status = pthread_create( &t, pthread_attr_default, task, NULL );
23747         if( status ) return errno;
23748
23749         /* give thread a chance to complete */
23750         /* it should remain joinable and hence detachable */
23751         sleep( 1 );
23752
23753         status = pthread_detach( &t );
23754         if( status ) return errno;
23755 #endif
23756
23757 #ifdef HAVE_LINUX_THREADS
23758         pthread_kill_other_threads_np();
23759 #endif
23760
23761         return 0;
23762
23763 }
23764
23765 _ACEOF
23766 rm -f conftest$ac_exeext
23767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23768   (eval $ac_link) 2>&5
23769   ac_status=$?
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773   (eval $ac_try) 2>&5
23774   ac_status=$?
23775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776   (exit $ac_status); }; }; then
23777   ol_cv_pthread_lpthreads_lmach_lexc=yes
23778 else
23779   echo "$as_me: program exited with status $ac_status" >&5
23780 echo "$as_me: failed program was:" >&5
23781 sed 's/^/| /' conftest.$ac_ext >&5
23782
23783 ( exit $ac_status )
23784 ol_cv_pthread_lpthreads_lmach_lexc=no
23785 fi
23786 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23787 fi
23788
23789                 # restore the LIBS
23790                 LIBS="$ol_LIBS"
23791
23792 fi
23793 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23794 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23795
23796         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23797                 ol_link_pthreads="-lpthreads -lmach -lexc"
23798                 ol_link_threads=posix
23799         fi
23800 fi
23801
23802                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23803 if test "$ol_link_threads" = no ; then
23804         # try -lpthreads -lexc
23805         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23806 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23807 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23808   echo $ECHO_N "(cached) $ECHO_C" >&6
23809 else
23810
23811                 # save the flags
23812                 ol_LIBS="$LIBS"
23813                 LIBS="-lpthreads -lexc $LIBS"
23814
23815                 if test "$cross_compiling" = yes; then
23816   cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h.  */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h.  */
23822
23823 /* pthread test headers */
23824 #include <pthread.h>
23825 #if HAVE_PTHREADS < 7
23826 #include <errno.h>
23827 #endif
23828 #ifndef NULL
23829 #define NULL (void*)0
23830 #endif
23831
23832 static void *task(p)
23833         void *p;
23834 {
23835         return (void *) (p == NULL);
23836 }
23837
23838 int
23839 main ()
23840 {
23841
23842         /* pthread test function */
23843 #ifndef PTHREAD_CREATE_DETACHED
23844 #define PTHREAD_CREATE_DETACHED 1
23845 #endif
23846         pthread_t t;
23847         int status;
23848         int detach = PTHREAD_CREATE_DETACHED;
23849
23850 #if HAVE_PTHREADS > 4
23851         /* Final pthreads */
23852         pthread_attr_t attr;
23853
23854         status = pthread_attr_init(&attr);
23855         if( status ) return status;
23856
23857 #if HAVE_PTHREADS < 7
23858         status = pthread_attr_setdetachstate(&attr, &detach);
23859         if( status < 0 ) status = errno;
23860 #else
23861         status = pthread_attr_setdetachstate(&attr, detach);
23862 #endif
23863         if( status ) return status;
23864         status = pthread_create( &t, &attr, task, NULL );
23865 #if HAVE_PTHREADS < 7
23866         if( status < 0 ) status = errno;
23867 #endif
23868         if( status ) return status;
23869 #else
23870         /* Draft 4 pthreads */
23871         status = pthread_create( &t, pthread_attr_default, task, NULL );
23872         if( status ) return errno;
23873
23874         /* give thread a chance to complete */
23875         /* it should remain joinable and hence detachable */
23876         sleep( 1 );
23877
23878         status = pthread_detach( &t );
23879         if( status ) return errno;
23880 #endif
23881
23882 #ifdef HAVE_LINUX_THREADS
23883         pthread_kill_other_threads_np();
23884 #endif
23885
23886         return 0;
23887
23888   ;
23889   return 0;
23890 }
23891 _ACEOF
23892 rm -f conftest.$ac_objext conftest$ac_exeext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23894   (eval $ac_link) 2>conftest.er1
23895   ac_status=$?
23896   grep -v '^ *+' conftest.er1 >conftest.err
23897   rm -f conftest.er1
23898   cat conftest.err >&5
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); } &&
23901          { ac_try='test -z "$ac_c_werror_flag"
23902                          || test ! -s conftest.err'
23903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904   (eval $ac_try) 2>&5
23905   ac_status=$?
23906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907   (exit $ac_status); }; } &&
23908          { ac_try='test -s conftest$ac_exeext'
23909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23910   (eval $ac_try) 2>&5
23911   ac_status=$?
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); }; }; then
23914   ol_cv_pthread_lpthreads_lexc=yes
23915 else
23916   echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23918
23919 ol_cv_pthread_lpthreads_lexc=no
23920 fi
23921 rm -f conftest.err conftest.$ac_objext \
23922       conftest$ac_exeext conftest.$ac_ext
23923 else
23924   cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h.  */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h.  */
23930
23931 /* pthread test headers */
23932 #include <pthread.h>
23933 #if HAVE_PTHREADS < 7
23934 #include <errno.h>
23935 #endif
23936 #ifndef NULL
23937 #define NULL (void*)0
23938 #endif
23939
23940 static void *task(p)
23941         void *p;
23942 {
23943         return (void *) (p == NULL);
23944 }
23945
23946
23947 int main(argc, argv)
23948         int argc;
23949         char **argv;
23950 {
23951
23952         /* pthread test function */
23953 #ifndef PTHREAD_CREATE_DETACHED
23954 #define PTHREAD_CREATE_DETACHED 1
23955 #endif
23956         pthread_t t;
23957         int status;
23958         int detach = PTHREAD_CREATE_DETACHED;
23959
23960 #if HAVE_PTHREADS > 4
23961         /* Final pthreads */
23962         pthread_attr_t attr;
23963
23964         status = pthread_attr_init(&attr);
23965         if( status ) return status;
23966
23967 #if HAVE_PTHREADS < 7
23968         status = pthread_attr_setdetachstate(&attr, &detach);
23969         if( status < 0 ) status = errno;
23970 #else
23971         status = pthread_attr_setdetachstate(&attr, detach);
23972 #endif
23973         if( status ) return status;
23974         status = pthread_create( &t, &attr, task, NULL );
23975 #if HAVE_PTHREADS < 7
23976         if( status < 0 ) status = errno;
23977 #endif
23978         if( status ) return status;
23979 #else
23980         /* Draft 4 pthreads */
23981         status = pthread_create( &t, pthread_attr_default, task, NULL );
23982         if( status ) return errno;
23983
23984         /* give thread a chance to complete */
23985         /* it should remain joinable and hence detachable */
23986         sleep( 1 );
23987
23988         status = pthread_detach( &t );
23989         if( status ) return errno;
23990 #endif
23991
23992 #ifdef HAVE_LINUX_THREADS
23993         pthread_kill_other_threads_np();
23994 #endif
23995
23996         return 0;
23997
23998 }
23999
24000 _ACEOF
24001 rm -f conftest$ac_exeext
24002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24003   (eval $ac_link) 2>&5
24004   ac_status=$?
24005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008   (eval $ac_try) 2>&5
24009   ac_status=$?
24010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011   (exit $ac_status); }; }; then
24012   ol_cv_pthread_lpthreads_lexc=yes
24013 else
24014   echo "$as_me: program exited with status $ac_status" >&5
24015 echo "$as_me: failed program was:" >&5
24016 sed 's/^/| /' conftest.$ac_ext >&5
24017
24018 ( exit $ac_status )
24019 ol_cv_pthread_lpthreads_lexc=no
24020 fi
24021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24022 fi
24023
24024                 # restore the LIBS
24025                 LIBS="$ol_LIBS"
24026
24027 fi
24028 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24029 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24030
24031         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24032                 ol_link_pthreads="-lpthreads -lexc"
24033                 ol_link_threads=posix
24034         fi
24035 fi
24036
24037
24038                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24039 if test "$ol_link_threads" = no ; then
24040         # try -lpthreads
24041         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24042 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24043 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24044   echo $ECHO_N "(cached) $ECHO_C" >&6
24045 else
24046
24047                 # save the flags
24048                 ol_LIBS="$LIBS"
24049                 LIBS="-lpthreads $LIBS"
24050
24051                 if test "$cross_compiling" = yes; then
24052   cat >conftest.$ac_ext <<_ACEOF
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058
24059 /* pthread test headers */
24060 #include <pthread.h>
24061 #if HAVE_PTHREADS < 7
24062 #include <errno.h>
24063 #endif
24064 #ifndef NULL
24065 #define NULL (void*)0
24066 #endif
24067
24068 static void *task(p)
24069         void *p;
24070 {
24071         return (void *) (p == NULL);
24072 }
24073
24074 int
24075 main ()
24076 {
24077
24078         /* pthread test function */
24079 #ifndef PTHREAD_CREATE_DETACHED
24080 #define PTHREAD_CREATE_DETACHED 1
24081 #endif
24082         pthread_t t;
24083         int status;
24084         int detach = PTHREAD_CREATE_DETACHED;
24085
24086 #if HAVE_PTHREADS > 4
24087         /* Final pthreads */
24088         pthread_attr_t attr;
24089
24090         status = pthread_attr_init(&attr);
24091         if( status ) return status;
24092
24093 #if HAVE_PTHREADS < 7
24094         status = pthread_attr_setdetachstate(&attr, &detach);
24095         if( status < 0 ) status = errno;
24096 #else
24097         status = pthread_attr_setdetachstate(&attr, detach);
24098 #endif
24099         if( status ) return status;
24100         status = pthread_create( &t, &attr, task, NULL );
24101 #if HAVE_PTHREADS < 7
24102         if( status < 0 ) status = errno;
24103 #endif
24104         if( status ) return status;
24105 #else
24106         /* Draft 4 pthreads */
24107         status = pthread_create( &t, pthread_attr_default, task, NULL );
24108         if( status ) return errno;
24109
24110         /* give thread a chance to complete */
24111         /* it should remain joinable and hence detachable */
24112         sleep( 1 );
24113
24114         status = pthread_detach( &t );
24115         if( status ) return errno;
24116 #endif
24117
24118 #ifdef HAVE_LINUX_THREADS
24119         pthread_kill_other_threads_np();
24120 #endif
24121
24122         return 0;
24123
24124   ;
24125   return 0;
24126 }
24127 _ACEOF
24128 rm -f conftest.$ac_objext conftest$ac_exeext
24129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130   (eval $ac_link) 2>conftest.er1
24131   ac_status=$?
24132   grep -v '^ *+' conftest.er1 >conftest.err
24133   rm -f conftest.er1
24134   cat conftest.err >&5
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); } &&
24137          { ac_try='test -z "$ac_c_werror_flag"
24138                          || test ! -s conftest.err'
24139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); }; } &&
24144          { ac_try='test -s conftest$ac_exeext'
24145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24146   (eval $ac_try) 2>&5
24147   ac_status=$?
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); }; }; then
24150   ol_cv_pthread_lib_lpthreads=yes
24151 else
24152   echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155 ol_cv_pthread_lib_lpthreads=no
24156 fi
24157 rm -f conftest.err conftest.$ac_objext \
24158       conftest$ac_exeext conftest.$ac_ext
24159 else
24160   cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166
24167 /* pthread test headers */
24168 #include <pthread.h>
24169 #if HAVE_PTHREADS < 7
24170 #include <errno.h>
24171 #endif
24172 #ifndef NULL
24173 #define NULL (void*)0
24174 #endif
24175
24176 static void *task(p)
24177         void *p;
24178 {
24179         return (void *) (p == NULL);
24180 }
24181
24182
24183 int main(argc, argv)
24184         int argc;
24185         char **argv;
24186 {
24187
24188         /* pthread test function */
24189 #ifndef PTHREAD_CREATE_DETACHED
24190 #define PTHREAD_CREATE_DETACHED 1
24191 #endif
24192         pthread_t t;
24193         int status;
24194         int detach = PTHREAD_CREATE_DETACHED;
24195
24196 #if HAVE_PTHREADS > 4
24197         /* Final pthreads */
24198         pthread_attr_t attr;
24199
24200         status = pthread_attr_init(&attr);
24201         if( status ) return status;
24202
24203 #if HAVE_PTHREADS < 7
24204         status = pthread_attr_setdetachstate(&attr, &detach);
24205         if( status < 0 ) status = errno;
24206 #else
24207         status = pthread_attr_setdetachstate(&attr, detach);
24208 #endif
24209         if( status ) return status;
24210         status = pthread_create( &t, &attr, task, NULL );
24211 #if HAVE_PTHREADS < 7
24212         if( status < 0 ) status = errno;
24213 #endif
24214         if( status ) return status;
24215 #else
24216         /* Draft 4 pthreads */
24217         status = pthread_create( &t, pthread_attr_default, task, NULL );
24218         if( status ) return errno;
24219
24220         /* give thread a chance to complete */
24221         /* it should remain joinable and hence detachable */
24222         sleep( 1 );
24223
24224         status = pthread_detach( &t );
24225         if( status ) return errno;
24226 #endif
24227
24228 #ifdef HAVE_LINUX_THREADS
24229         pthread_kill_other_threads_np();
24230 #endif
24231
24232         return 0;
24233
24234 }
24235
24236 _ACEOF
24237 rm -f conftest$ac_exeext
24238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24239   (eval $ac_link) 2>&5
24240   ac_status=$?
24241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24244   (eval $ac_try) 2>&5
24245   ac_status=$?
24246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); }; }; then
24248   ol_cv_pthread_lib_lpthreads=yes
24249 else
24250   echo "$as_me: program exited with status $ac_status" >&5
24251 echo "$as_me: failed program was:" >&5
24252 sed 's/^/| /' conftest.$ac_ext >&5
24253
24254 ( exit $ac_status )
24255 ol_cv_pthread_lib_lpthreads=no
24256 fi
24257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24258 fi
24259
24260                 # restore the LIBS
24261                 LIBS="$ol_LIBS"
24262
24263 fi
24264 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24265 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24266
24267         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24268                 ol_link_pthreads="-lpthreads"
24269                 ol_link_threads=posix
24270         fi
24271 fi
24272
24273
24274                 if test $ol_link_threads != no ; then
24275                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24276
24277                                                 save_CPPFLAGS="$CPPFLAGS"
24278                         save_LIBS="$LIBS"
24279                         LIBS="$LTHREAD_LIBS $LIBS"
24280
24281
24282
24283
24284 for ac_func in sched_yield pthread_yield thr_yield
24285 do
24286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24287 echo "$as_me:$LINENO: checking for $ac_func" >&5
24288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24289 if eval "test \"\${$as_ac_var+set}\" = set"; then
24290   echo $ECHO_N "(cached) $ECHO_C" >&6
24291 else
24292   cat >conftest.$ac_ext <<_ACEOF
24293 /* confdefs.h.  */
24294 _ACEOF
24295 cat confdefs.h >>conftest.$ac_ext
24296 cat >>conftest.$ac_ext <<_ACEOF
24297 /* end confdefs.h.  */
24298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24300 #define $ac_func innocuous_$ac_func
24301
24302 /* System header to define __stub macros and hopefully few prototypes,
24303     which can conflict with char $ac_func (); below.
24304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24305     <limits.h> exists even on freestanding compilers.  */
24306
24307 #ifdef __STDC__
24308 # include <limits.h>
24309 #else
24310 # include <assert.h>
24311 #endif
24312
24313 #undef $ac_func
24314
24315 /* Override any gcc2 internal prototype to avoid an error.  */
24316 #ifdef __cplusplus
24317 extern "C"
24318 {
24319 #endif
24320 /* We use char because int might match the return type of a gcc2
24321    builtin and then its argument prototype would still apply.  */
24322 char $ac_func ();
24323 /* The GNU C library defines this for functions which it implements
24324     to always fail with ENOSYS.  Some functions are actually named
24325     something starting with __ and the normal name is an alias.  */
24326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24327 choke me
24328 #else
24329 char (*f) () = $ac_func;
24330 #endif
24331 #ifdef __cplusplus
24332 }
24333 #endif
24334
24335 int
24336 main ()
24337 {
24338 return f != $ac_func;
24339   ;
24340   return 0;
24341 }
24342 _ACEOF
24343 rm -f conftest.$ac_objext conftest$ac_exeext
24344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24345   (eval $ac_link) 2>conftest.er1
24346   ac_status=$?
24347   grep -v '^ *+' conftest.er1 >conftest.err
24348   rm -f conftest.er1
24349   cat conftest.err >&5
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); } &&
24352          { ac_try='test -z "$ac_c_werror_flag"
24353                          || test ! -s conftest.err'
24354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355   (eval $ac_try) 2>&5
24356   ac_status=$?
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; } &&
24359          { ac_try='test -s conftest$ac_exeext'
24360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361   (eval $ac_try) 2>&5
24362   ac_status=$?
24363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364   (exit $ac_status); }; }; then
24365   eval "$as_ac_var=yes"
24366 else
24367   echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370 eval "$as_ac_var=no"
24371 fi
24372 rm -f conftest.err conftest.$ac_objext \
24373       conftest$ac_exeext conftest.$ac_ext
24374 fi
24375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24377 if test `eval echo '${'$as_ac_var'}'` = yes; then
24378   cat >>confdefs.h <<_ACEOF
24379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24380 _ACEOF
24381
24382 fi
24383 done
24384
24385
24386                         if test $ac_cv_func_sched_yield = no &&
24387                            test $ac_cv_func_pthread_yield = no &&
24388                            test $ac_cv_func_thr_yield = no ; then
24389                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24390 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24391 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24392   echo $ECHO_N "(cached) $ECHO_C" >&6
24393 else
24394   ac_check_lib_save_LIBS=$LIBS
24395 LIBS="-lrt  $LIBS"
24396 cat >conftest.$ac_ext <<_ACEOF
24397 /* confdefs.h.  */
24398 _ACEOF
24399 cat confdefs.h >>conftest.$ac_ext
24400 cat >>conftest.$ac_ext <<_ACEOF
24401 /* end confdefs.h.  */
24402
24403 /* Override any gcc2 internal prototype to avoid an error.  */
24404 #ifdef __cplusplus
24405 extern "C"
24406 #endif
24407 /* We use char because int might match the return type of a gcc2
24408    builtin and then its argument prototype would still apply.  */
24409 char sched_yield ();
24410 int
24411 main ()
24412 {
24413 sched_yield ();
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 rm -f conftest.$ac_objext conftest$ac_exeext
24419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24420   (eval $ac_link) 2>conftest.er1
24421   ac_status=$?
24422   grep -v '^ *+' conftest.er1 >conftest.err
24423   rm -f conftest.er1
24424   cat conftest.err >&5
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } &&
24427          { ac_try='test -z "$ac_c_werror_flag"
24428                          || test ! -s conftest.err'
24429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430   (eval $ac_try) 2>&5
24431   ac_status=$?
24432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433   (exit $ac_status); }; } &&
24434          { ac_try='test -s conftest$ac_exeext'
24435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436   (eval $ac_try) 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); }; }; then
24440   ac_cv_lib_rt_sched_yield=yes
24441 else
24442   echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ac_cv_lib_rt_sched_yield=no
24446 fi
24447 rm -f conftest.err conftest.$ac_objext \
24448       conftest$ac_exeext conftest.$ac_ext
24449 LIBS=$ac_check_lib_save_LIBS
24450 fi
24451 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24452 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24453 if test $ac_cv_lib_rt_sched_yield = yes; then
24454   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24455
24456 cat >>confdefs.h <<\_ACEOF
24457 #define HAVE_SCHED_YIELD 1
24458 _ACEOF
24459
24460                                         ac_cv_func_sched_yield=yes
24461 else
24462   ac_cv_func_sched_yield=no
24463 fi
24464
24465                         fi
24466                         if test $ac_cv_func_sched_yield = no &&
24467                            test $ac_cv_func_pthread_yield = no &&
24468                            test "$ac_cv_func_thr_yield" = no ; then
24469                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24470 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24471                         fi
24472
24473
24474
24475 for ac_func in pthread_kill pthread_rwlock_destroy
24476 do
24477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24478 echo "$as_me:$LINENO: checking for $ac_func" >&5
24479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24480 if eval "test \"\${$as_ac_var+set}\" = set"; then
24481   echo $ECHO_N "(cached) $ECHO_C" >&6
24482 else
24483   cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24491 #define $ac_func innocuous_$ac_func
24492
24493 /* System header to define __stub macros and hopefully few prototypes,
24494     which can conflict with char $ac_func (); below.
24495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24496     <limits.h> exists even on freestanding compilers.  */
24497
24498 #ifdef __STDC__
24499 # include <limits.h>
24500 #else
24501 # include <assert.h>
24502 #endif
24503
24504 #undef $ac_func
24505
24506 /* Override any gcc2 internal prototype to avoid an error.  */
24507 #ifdef __cplusplus
24508 extern "C"
24509 {
24510 #endif
24511 /* We use char because int might match the return type of a gcc2
24512    builtin and then its argument prototype would still apply.  */
24513 char $ac_func ();
24514 /* The GNU C library defines this for functions which it implements
24515     to always fail with ENOSYS.  Some functions are actually named
24516     something starting with __ and the normal name is an alias.  */
24517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24518 choke me
24519 #else
24520 char (*f) () = $ac_func;
24521 #endif
24522 #ifdef __cplusplus
24523 }
24524 #endif
24525
24526 int
24527 main ()
24528 {
24529 return f != $ac_func;
24530   ;
24531   return 0;
24532 }
24533 _ACEOF
24534 rm -f conftest.$ac_objext conftest$ac_exeext
24535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24536   (eval $ac_link) 2>conftest.er1
24537   ac_status=$?
24538   grep -v '^ *+' conftest.er1 >conftest.err
24539   rm -f conftest.er1
24540   cat conftest.err >&5
24541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542   (exit $ac_status); } &&
24543          { ac_try='test -z "$ac_c_werror_flag"
24544                          || test ! -s conftest.err'
24545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24546   (eval $ac_try) 2>&5
24547   ac_status=$?
24548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549   (exit $ac_status); }; } &&
24550          { ac_try='test -s conftest$ac_exeext'
24551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24552   (eval $ac_try) 2>&5
24553   ac_status=$?
24554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555   (exit $ac_status); }; }; then
24556   eval "$as_ac_var=yes"
24557 else
24558   echo "$as_me: failed program was:" >&5
24559 sed 's/^/| /' conftest.$ac_ext >&5
24560
24561 eval "$as_ac_var=no"
24562 fi
24563 rm -f conftest.err conftest.$ac_objext \
24564       conftest$ac_exeext conftest.$ac_ext
24565 fi
24566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24568 if test `eval echo '${'$as_ac_var'}'` = yes; then
24569   cat >>confdefs.h <<_ACEOF
24570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24571 _ACEOF
24572
24573 fi
24574 done
24575
24576
24577                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24578 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24579 if test "${ol_cv_func_pthread_detach+set}" = set; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582
24583                                                                 cat >conftest.$ac_ext <<_ACEOF
24584 /* confdefs.h.  */
24585 _ACEOF
24586 cat confdefs.h >>conftest.$ac_ext
24587 cat >>conftest.$ac_ext <<_ACEOF
24588 /* end confdefs.h.  */
24589
24590 #include <pthread.h>
24591 #ifndef NULL
24592 #define NULL (void*)0
24593 #endif
24594
24595 int
24596 main ()
24597 {
24598 pthread_detach(NULL);
24599   ;
24600   return 0;
24601 }
24602 _ACEOF
24603 rm -f conftest.$ac_objext conftest$ac_exeext
24604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24605   (eval $ac_link) 2>conftest.er1
24606   ac_status=$?
24607   grep -v '^ *+' conftest.er1 >conftest.err
24608   rm -f conftest.er1
24609   cat conftest.err >&5
24610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611   (exit $ac_status); } &&
24612          { ac_try='test -z "$ac_c_werror_flag"
24613                          || test ! -s conftest.err'
24614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615   (eval $ac_try) 2>&5
24616   ac_status=$?
24617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618   (exit $ac_status); }; } &&
24619          { ac_try='test -s conftest$ac_exeext'
24620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621   (eval $ac_try) 2>&5
24622   ac_status=$?
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); }; }; then
24625   ol_cv_func_pthread_detach=yes
24626 else
24627   echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630 ol_cv_func_pthread_detach=no
24631 fi
24632 rm -f conftest.err conftest.$ac_objext \
24633       conftest$ac_exeext conftest.$ac_ext
24634
24635 fi
24636 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24637 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24638
24639                         if test $ol_cv_func_pthread_detach = no ; then
24640                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24641 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24642    { (exit 1); exit 1; }; }
24643                         fi
24644
24645
24646 cat >>confdefs.h <<\_ACEOF
24647 #define HAVE_PTHREAD_DETACH 1
24648 _ACEOF
24649
24650
24651
24652
24653
24654
24655 for ac_func in \
24656                                 pthread_setconcurrency \
24657                                 pthread_getconcurrency \
24658                                 thr_setconcurrency \
24659                                 thr_getconcurrency \
24660
24661 do
24662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24663 echo "$as_me:$LINENO: checking for $ac_func" >&5
24664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24665 if eval "test \"\${$as_ac_var+set}\" = set"; then
24666   echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668   cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h.  */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h.  */
24674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24676 #define $ac_func innocuous_$ac_func
24677
24678 /* System header to define __stub macros and hopefully few prototypes,
24679     which can conflict with char $ac_func (); below.
24680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24681     <limits.h> exists even on freestanding compilers.  */
24682
24683 #ifdef __STDC__
24684 # include <limits.h>
24685 #else
24686 # include <assert.h>
24687 #endif
24688
24689 #undef $ac_func
24690
24691 /* Override any gcc2 internal prototype to avoid an error.  */
24692 #ifdef __cplusplus
24693 extern "C"
24694 {
24695 #endif
24696 /* We use char because int might match the return type of a gcc2
24697    builtin and then its argument prototype would still apply.  */
24698 char $ac_func ();
24699 /* The GNU C library defines this for functions which it implements
24700     to always fail with ENOSYS.  Some functions are actually named
24701     something starting with __ and the normal name is an alias.  */
24702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24703 choke me
24704 #else
24705 char (*f) () = $ac_func;
24706 #endif
24707 #ifdef __cplusplus
24708 }
24709 #endif
24710
24711 int
24712 main ()
24713 {
24714 return f != $ac_func;
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext conftest$ac_exeext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24721   (eval $ac_link) 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } &&
24728          { ac_try='test -z "$ac_c_werror_flag"
24729                          || test ! -s conftest.err'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; } &&
24735          { ac_try='test -s conftest$ac_exeext'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741   eval "$as_ac_var=yes"
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 eval "$as_ac_var=no"
24747 fi
24748 rm -f conftest.err conftest.$ac_objext \
24749       conftest$ac_exeext conftest.$ac_ext
24750 fi
24751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24753 if test `eval echo '${'$as_ac_var'}'` = yes; then
24754   cat >>confdefs.h <<_ACEOF
24755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24756 _ACEOF
24757
24758 fi
24759 done
24760
24761
24762
24763
24764 for ac_func in pthread_kill_other_threads_np
24765 do
24766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24767 echo "$as_me:$LINENO: checking for $ac_func" >&5
24768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24769 if eval "test \"\${$as_ac_var+set}\" = set"; then
24770   echo $ECHO_N "(cached) $ECHO_C" >&6
24771 else
24772   cat >conftest.$ac_ext <<_ACEOF
24773 /* confdefs.h.  */
24774 _ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h.  */
24778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24780 #define $ac_func innocuous_$ac_func
24781
24782 /* System header to define __stub macros and hopefully few prototypes,
24783     which can conflict with char $ac_func (); below.
24784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24785     <limits.h> exists even on freestanding compilers.  */
24786
24787 #ifdef __STDC__
24788 # include <limits.h>
24789 #else
24790 # include <assert.h>
24791 #endif
24792
24793 #undef $ac_func
24794
24795 /* Override any gcc2 internal prototype to avoid an error.  */
24796 #ifdef __cplusplus
24797 extern "C"
24798 {
24799 #endif
24800 /* We use char because int might match the return type of a gcc2
24801    builtin and then its argument prototype would still apply.  */
24802 char $ac_func ();
24803 /* The GNU C library defines this for functions which it implements
24804     to always fail with ENOSYS.  Some functions are actually named
24805     something starting with __ and the normal name is an alias.  */
24806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24807 choke me
24808 #else
24809 char (*f) () = $ac_func;
24810 #endif
24811 #ifdef __cplusplus
24812 }
24813 #endif
24814
24815 int
24816 main ()
24817 {
24818 return f != $ac_func;
24819   ;
24820   return 0;
24821 }
24822 _ACEOF
24823 rm -f conftest.$ac_objext conftest$ac_exeext
24824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24825   (eval $ac_link) 2>conftest.er1
24826   ac_status=$?
24827   grep -v '^ *+' conftest.er1 >conftest.err
24828   rm -f conftest.er1
24829   cat conftest.err >&5
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); } &&
24832          { ac_try='test -z "$ac_c_werror_flag"
24833                          || test ! -s conftest.err'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; } &&
24839          { ac_try='test -s conftest$ac_exeext'
24840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24841   (eval $ac_try) 2>&5
24842   ac_status=$?
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); }; }; then
24845   eval "$as_ac_var=yes"
24846 else
24847   echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24849
24850 eval "$as_ac_var=no"
24851 fi
24852 rm -f conftest.err conftest.$ac_objext \
24853       conftest$ac_exeext conftest.$ac_ext
24854 fi
24855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24857 if test `eval echo '${'$as_ac_var'}'` = yes; then
24858   cat >>confdefs.h <<_ACEOF
24859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24860 _ACEOF
24861
24862 fi
24863 done
24864
24865         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24866 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24867 if test "${ol_cv_sys_linux_threads+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24871 fi
24872 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24873 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24874
24875
24876
24877
24878         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24879 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24880 if test "${ol_cv_linux_threads+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883
24884                 if test $ol_cv_header_linux_threads = yes &&
24885                    test $ol_cv_sys_linux_threads = yes; then
24886                         ol_cv_linux_threads=yes
24887                 elif test $ol_cv_header_linux_threads = no &&
24888                      test $ol_cv_sys_linux_threads = no; then
24889                         ol_cv_linux_threads=no
24890                 else
24891                         ol_cv_linux_threads=error
24892                 fi
24893
24894 fi
24895 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24896 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24897
24898
24899                         if test $ol_cv_linux_threads = error; then
24900                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24901 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24902    { (exit 1); exit 1; }; };
24903                         fi
24904
24905                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24906 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24907 if test "${ol_cv_pthread_create_works+set}" = set; then
24908   echo $ECHO_N "(cached) $ECHO_C" >&6
24909 else
24910
24911                         if test "$cross_compiling" = yes; then
24912                                 ol_cv_pthread_create_works=yes
24913 else
24914   cat >conftest.$ac_ext <<_ACEOF
24915 /* confdefs.h.  */
24916 _ACEOF
24917 cat confdefs.h >>conftest.$ac_ext
24918 cat >>conftest.$ac_ext <<_ACEOF
24919 /* end confdefs.h.  */
24920
24921 /* pthread test headers */
24922 #include <pthread.h>
24923 #if HAVE_PTHREADS < 7
24924 #include <errno.h>
24925 #endif
24926 #ifndef NULL
24927 #define NULL (void*)0
24928 #endif
24929
24930 static void *task(p)
24931         void *p;
24932 {
24933         return (void *) (p == NULL);
24934 }
24935
24936
24937 int main(argc, argv)
24938         int argc;
24939         char **argv;
24940 {
24941
24942         /* pthread test function */
24943 #ifndef PTHREAD_CREATE_DETACHED
24944 #define PTHREAD_CREATE_DETACHED 1
24945 #endif
24946         pthread_t t;
24947         int status;
24948         int detach = PTHREAD_CREATE_DETACHED;
24949
24950 #if HAVE_PTHREADS > 4
24951         /* Final pthreads */
24952         pthread_attr_t attr;
24953
24954         status = pthread_attr_init(&attr);
24955         if( status ) return status;
24956
24957 #if HAVE_PTHREADS < 7
24958         status = pthread_attr_setdetachstate(&attr, &detach);
24959         if( status < 0 ) status = errno;
24960 #else
24961         status = pthread_attr_setdetachstate(&attr, detach);
24962 #endif
24963         if( status ) return status;
24964         status = pthread_create( &t, &attr, task, NULL );
24965 #if HAVE_PTHREADS < 7
24966         if( status < 0 ) status = errno;
24967 #endif
24968         if( status ) return status;
24969 #else
24970         /* Draft 4 pthreads */
24971         status = pthread_create( &t, pthread_attr_default, task, NULL );
24972         if( status ) return errno;
24973
24974         /* give thread a chance to complete */
24975         /* it should remain joinable and hence detachable */
24976         sleep( 1 );
24977
24978         status = pthread_detach( &t );
24979         if( status ) return errno;
24980 #endif
24981
24982 #ifdef HAVE_LINUX_THREADS
24983         pthread_kill_other_threads_np();
24984 #endif
24985
24986         return 0;
24987
24988 }
24989
24990 _ACEOF
24991 rm -f conftest$ac_exeext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24993   (eval $ac_link) 2>&5
24994   ac_status=$?
24995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24998   (eval $ac_try) 2>&5
24999   ac_status=$?
25000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); }; }; then
25002   ol_cv_pthread_create_works=yes
25003 else
25004   echo "$as_me: program exited with status $ac_status" >&5
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008 ( exit $ac_status )
25009 ol_cv_pthread_create_works=no
25010 fi
25011 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25012 fi
25013 fi
25014 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25015 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25016
25017                         if test $ol_cv_pthread_create_works = no ; then
25018                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25019 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25020    { (exit 1); exit 1; }; }
25021                         fi
25022
25023                         ol_replace_broken_yield=no
25024
25025                         if test $ol_replace_broken_yield = yes ; then
25026
25027 cat >>confdefs.h <<\_ACEOF
25028 #define REPLACE_BROKEN_YIELD 1
25029 _ACEOF
25030
25031                         fi
25032
25033                                                 if test $ol_with_yielding_select = auto ; then
25034                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25035 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25036 if test "${ol_cv_pthread_select_yields+set}" = set; then
25037   echo $ECHO_N "(cached) $ECHO_C" >&6
25038 else
25039
25040                                 if test "$cross_compiling" = yes; then
25041   ol_cv_pthread_select_yields=cross
25042 else
25043   cat >conftest.$ac_ext <<_ACEOF
25044 /* confdefs.h.  */
25045 _ACEOF
25046 cat confdefs.h >>conftest.$ac_ext
25047 cat >>conftest.$ac_ext <<_ACEOF
25048 /* end confdefs.h.  */
25049
25050 #include <sys/types.h>
25051 #include <sys/time.h>
25052 #include <unistd.h>
25053 #include <pthread.h>
25054 #ifndef NULL
25055 #define NULL (void*) 0
25056 #endif
25057
25058 static int fildes[2];
25059
25060 static void *task(p)
25061         void *p;
25062 {
25063         int i;
25064         struct timeval tv;
25065
25066         fd_set rfds;
25067
25068         tv.tv_sec=10;
25069         tv.tv_usec=0;
25070
25071         FD_ZERO(&rfds);
25072         FD_SET(fildes[0], &rfds);
25073
25074         /* we're not interested in any fds */
25075         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25076
25077         if(i < 0) {
25078                 perror("select");
25079                 exit(10);
25080         }
25081
25082         exit(0); /* if we exit here, the select blocked the whole process */
25083 }
25084
25085 int main(argc, argv)
25086         int argc;
25087         char **argv;
25088 {
25089         pthread_t t;
25090
25091         /* create a pipe to select */
25092         if(pipe(&fildes[0])) {
25093                 perror("select");
25094                 exit(1);
25095         }
25096
25097 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25098         (void) pthread_setconcurrency(2);
25099 #else
25100 #ifdef HAVE_THR_SETCONCURRENCY
25101         /* Set Solaris LWP concurrency to 2 */
25102         thr_setconcurrency(2);
25103 #endif
25104 #endif
25105
25106 #if HAVE_PTHREADS < 6
25107         pthread_create(&t, pthread_attr_default, task, NULL);
25108 #else
25109         pthread_create(&t, NULL, task, NULL);
25110 #endif
25111
25112         /* make sure task runs first */
25113 #if HAVE_THR_YIELD
25114         thr_yield();
25115 #elif defined( HAVE_SCHED_YIELD )
25116         sched_yield();
25117 #elif defined( HAVE_PTHREAD_YIELD )
25118         pthread_yield();
25119 #endif
25120
25121         exit(2);
25122 }
25123 _ACEOF
25124 rm -f conftest$ac_exeext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126   (eval $ac_link) 2>&5
25127   ac_status=$?
25128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25131   (eval $ac_try) 2>&5
25132   ac_status=$?
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); }; }; then
25135   ol_cv_pthread_select_yields=no
25136 else
25137   echo "$as_me: program exited with status $ac_status" >&5
25138 echo "$as_me: failed program was:" >&5
25139 sed 's/^/| /' conftest.$ac_ext >&5
25140
25141 ( exit $ac_status )
25142 ol_cv_pthread_select_yields=yes
25143 fi
25144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25145 fi
25146 fi
25147 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25148 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25149
25150                                 if test $ol_cv_pthread_select_yields = cross ; then
25151                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25152 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25153    { (exit 1); exit 1; }; }
25154                                 fi
25155
25156                                 if test $ol_cv_pthread_select_yields = yes ; then
25157                                         ol_with_yielding_select=yes
25158                                 fi
25159                         fi
25160
25161                                                 CPPFLAGS="$save_CPPFLAGS"
25162                         LIBS="$save_LIBS"
25163                 else
25164                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25165 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25166    { (exit 1); exit 1; }; }
25167                 fi
25168         fi
25169
25170         if test $ol_with_threads = posix ; then
25171                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25172 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25173    { (exit 1); exit 1; }; }
25174         fi
25175         ;;
25176 esac
25177
25178 case $ol_with_threads in auto | yes | mach)
25179
25180
25181
25182 for ac_header in mach/cthreads.h cthreads.h
25183 do
25184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25186   echo "$as_me:$LINENO: checking for $ac_header" >&5
25187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25189   echo $ECHO_N "(cached) $ECHO_C" >&6
25190 fi
25191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25193 else
25194   # Is the header compilable?
25195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25197 cat >conftest.$ac_ext <<_ACEOF
25198 /* confdefs.h.  */
25199 _ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h.  */
25203 $ac_includes_default
25204 #include <$ac_header>
25205 _ACEOF
25206 rm -f conftest.$ac_objext
25207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25208   (eval $ac_compile) 2>conftest.er1
25209   ac_status=$?
25210   grep -v '^ *+' conftest.er1 >conftest.err
25211   rm -f conftest.er1
25212   cat conftest.err >&5
25213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214   (exit $ac_status); } &&
25215          { ac_try='test -z "$ac_c_werror_flag"
25216                          || test ! -s conftest.err'
25217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218   (eval $ac_try) 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); }; } &&
25222          { ac_try='test -s conftest.$ac_objext'
25223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25224   (eval $ac_try) 2>&5
25225   ac_status=$?
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); }; }; then
25228   ac_header_compiler=yes
25229 else
25230   echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ac_header_compiler=no
25234 fi
25235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25237 echo "${ECHO_T}$ac_header_compiler" >&6
25238
25239 # Is the header present?
25240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25242 cat >conftest.$ac_ext <<_ACEOF
25243 /* confdefs.h.  */
25244 _ACEOF
25245 cat confdefs.h >>conftest.$ac_ext
25246 cat >>conftest.$ac_ext <<_ACEOF
25247 /* end confdefs.h.  */
25248 #include <$ac_header>
25249 _ACEOF
25250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25251   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25252   ac_status=$?
25253   grep -v '^ *+' conftest.er1 >conftest.err
25254   rm -f conftest.er1
25255   cat conftest.err >&5
25256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257   (exit $ac_status); } >/dev/null; then
25258   if test -s conftest.err; then
25259     ac_cpp_err=$ac_c_preproc_warn_flag
25260     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25261   else
25262     ac_cpp_err=
25263   fi
25264 else
25265   ac_cpp_err=yes
25266 fi
25267 if test -z "$ac_cpp_err"; then
25268   ac_header_preproc=yes
25269 else
25270   echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25272
25273   ac_header_preproc=no
25274 fi
25275 rm -f conftest.err conftest.$ac_ext
25276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25277 echo "${ECHO_T}$ac_header_preproc" >&6
25278
25279 # So?  What about this header?
25280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25281   yes:no: )
25282     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25286     ac_header_preproc=yes
25287     ;;
25288   no:yes:* )
25289     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25291     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25292 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25293     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25295     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25296 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25299     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25301     (
25302       cat <<\_ASBOX
25303 ## --------------------------------------------- ##
25304 ## Report this to <http://www.openldap.org/its/> ##
25305 ## --------------------------------------------- ##
25306 _ASBOX
25307     ) |
25308       sed "s/^/$as_me: WARNING:     /" >&2
25309     ;;
25310 esac
25311 echo "$as_me:$LINENO: checking for $ac_header" >&5
25312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25314   echo $ECHO_N "(cached) $ECHO_C" >&6
25315 else
25316   eval "$as_ac_Header=\$ac_header_preproc"
25317 fi
25318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25320
25321 fi
25322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25323   cat >>confdefs.h <<_ACEOF
25324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25325 _ACEOF
25326
25327 fi
25328
25329 done
25330
25331         if test $ac_cv_header_mach_cthreads_h = yes ; then
25332                 ol_with_threads=found
25333
25334                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25335 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25336 if test "${ac_cv_func_cthread_fork+set}" = set; then
25337   echo $ECHO_N "(cached) $ECHO_C" >&6
25338 else
25339   cat >conftest.$ac_ext <<_ACEOF
25340 /* confdefs.h.  */
25341 _ACEOF
25342 cat confdefs.h >>conftest.$ac_ext
25343 cat >>conftest.$ac_ext <<_ACEOF
25344 /* end confdefs.h.  */
25345 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25347 #define cthread_fork innocuous_cthread_fork
25348
25349 /* System header to define __stub macros and hopefully few prototypes,
25350     which can conflict with char cthread_fork (); below.
25351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25352     <limits.h> exists even on freestanding compilers.  */
25353
25354 #ifdef __STDC__
25355 # include <limits.h>
25356 #else
25357 # include <assert.h>
25358 #endif
25359
25360 #undef cthread_fork
25361
25362 /* Override any gcc2 internal prototype to avoid an error.  */
25363 #ifdef __cplusplus
25364 extern "C"
25365 {
25366 #endif
25367 /* We use char because int might match the return type of a gcc2
25368    builtin and then its argument prototype would still apply.  */
25369 char cthread_fork ();
25370 /* The GNU C library defines this for functions which it implements
25371     to always fail with ENOSYS.  Some functions are actually named
25372     something starting with __ and the normal name is an alias.  */
25373 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25374 choke me
25375 #else
25376 char (*f) () = cthread_fork;
25377 #endif
25378 #ifdef __cplusplus
25379 }
25380 #endif
25381
25382 int
25383 main ()
25384 {
25385 return f != cthread_fork;
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 rm -f conftest.$ac_objext conftest$ac_exeext
25391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25392   (eval $ac_link) 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } &&
25399          { ac_try='test -z "$ac_c_werror_flag"
25400                          || test ! -s conftest.err'
25401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25402   (eval $ac_try) 2>&5
25403   ac_status=$?
25404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405   (exit $ac_status); }; } &&
25406          { ac_try='test -s conftest$ac_exeext'
25407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408   (eval $ac_try) 2>&5
25409   ac_status=$?
25410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411   (exit $ac_status); }; }; then
25412   ac_cv_func_cthread_fork=yes
25413 else
25414   echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25416
25417 ac_cv_func_cthread_fork=no
25418 fi
25419 rm -f conftest.err conftest.$ac_objext \
25420       conftest$ac_exeext conftest.$ac_ext
25421 fi
25422 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25423 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25424 if test $ac_cv_func_cthread_fork = yes; then
25425   ol_link_threads=yes
25426 fi
25427
25428
25429                 if test $ol_link_threads = no ; then
25430                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25431 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25432 if test "${ol_cv_cthread_all_load+set}" = set; then
25433   echo $ECHO_N "(cached) $ECHO_C" >&6
25434 else
25435
25436                                                                 save_LIBS="$LIBS"
25437                                 LIBS="-all_load $LIBS"
25438                                 cat >conftest.$ac_ext <<_ACEOF
25439 /* confdefs.h.  */
25440 _ACEOF
25441 cat confdefs.h >>conftest.$ac_ext
25442 cat >>conftest.$ac_ext <<_ACEOF
25443 /* end confdefs.h.  */
25444 #include <mach/cthreads.h>
25445 int
25446 main ()
25447 {
25448
25449                                         cthread_fork((void *)0, (void *)0);
25450
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 rm -f conftest.$ac_objext conftest$ac_exeext
25456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25457   (eval $ac_link) 2>conftest.er1
25458   ac_status=$?
25459   grep -v '^ *+' conftest.er1 >conftest.err
25460   rm -f conftest.er1
25461   cat conftest.err >&5
25462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25463   (exit $ac_status); } &&
25464          { ac_try='test -z "$ac_c_werror_flag"
25465                          || test ! -s conftest.err'
25466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25467   (eval $ac_try) 2>&5
25468   ac_status=$?
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); }; } &&
25471          { ac_try='test -s conftest$ac_exeext'
25472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473   (eval $ac_try) 2>&5
25474   ac_status=$?
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); }; }; then
25477   ol_cv_cthread_all_load=yes
25478 else
25479   echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25481
25482 ol_cv_cthread_all_load=no
25483 fi
25484 rm -f conftest.err conftest.$ac_objext \
25485       conftest$ac_exeext conftest.$ac_ext
25486                                                                 LIBS="$save_LIBS"
25487
25488 fi
25489 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25490 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25491
25492                         if test $ol_cv_cthread_all_load = yes ; then
25493                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25494                                 ol_link_threads=mach
25495                                 ol_with_threads=found
25496                         fi
25497                 fi
25498
25499         elif test $ac_cv_header_cthreads_h = yes ; then
25500
25501                 ol_with_threads=found
25502
25503                                 save_LIBS="$LIBS"
25504                 LIBS="$LIBS -lthreads"
25505                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25506 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25507 if test "${ac_cv_func_cthread_fork+set}" = set; then
25508   echo $ECHO_N "(cached) $ECHO_C" >&6
25509 else
25510   cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25518 #define cthread_fork innocuous_cthread_fork
25519
25520 /* System header to define __stub macros and hopefully few prototypes,
25521     which can conflict with char cthread_fork (); below.
25522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25523     <limits.h> exists even on freestanding compilers.  */
25524
25525 #ifdef __STDC__
25526 # include <limits.h>
25527 #else
25528 # include <assert.h>
25529 #endif
25530
25531 #undef cthread_fork
25532
25533 /* Override any gcc2 internal prototype to avoid an error.  */
25534 #ifdef __cplusplus
25535 extern "C"
25536 {
25537 #endif
25538 /* We use char because int might match the return type of a gcc2
25539    builtin and then its argument prototype would still apply.  */
25540 char cthread_fork ();
25541 /* The GNU C library defines this for functions which it implements
25542     to always fail with ENOSYS.  Some functions are actually named
25543     something starting with __ and the normal name is an alias.  */
25544 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25545 choke me
25546 #else
25547 char (*f) () = cthread_fork;
25548 #endif
25549 #ifdef __cplusplus
25550 }
25551 #endif
25552
25553 int
25554 main ()
25555 {
25556 return f != cthread_fork;
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest.$ac_objext conftest$ac_exeext
25562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25563   (eval $ac_link) 2>conftest.er1
25564   ac_status=$?
25565   grep -v '^ *+' conftest.er1 >conftest.err
25566   rm -f conftest.er1
25567   cat conftest.err >&5
25568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569   (exit $ac_status); } &&
25570          { ac_try='test -z "$ac_c_werror_flag"
25571                          || test ! -s conftest.err'
25572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573   (eval $ac_try) 2>&5
25574   ac_status=$?
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); }; } &&
25577          { ac_try='test -s conftest$ac_exeext'
25578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25579   (eval $ac_try) 2>&5
25580   ac_status=$?
25581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582   (exit $ac_status); }; }; then
25583   ac_cv_func_cthread_fork=yes
25584 else
25585   echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25587
25588 ac_cv_func_cthread_fork=no
25589 fi
25590 rm -f conftest.err conftest.$ac_objext \
25591       conftest$ac_exeext conftest.$ac_ext
25592 fi
25593 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25594 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25595 if test $ac_cv_func_cthread_fork = yes; then
25596   ol_link_threads=yes
25597 fi
25598
25599                 LIBS="$save_LIBS"
25600
25601                 if test $ol_link_threads = yes ; then
25602                         LTHREAD_LIBS="-lthreads"
25603                         ol_link_threads=mach
25604                         ol_with_threads=found
25605                 else
25606                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25607 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25608    { (exit 1); exit 1; }; }
25609                 fi
25610
25611         elif test $ol_with_threads = mach ; then
25612                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25613 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25614    { (exit 1); exit 1; }; }
25615         fi
25616
25617         if test $ol_link_threads = mach ; then
25618
25619 cat >>confdefs.h <<\_ACEOF
25620 #define HAVE_MACH_CTHREADS 1
25621 _ACEOF
25622
25623         elif test $ol_with_threads = found ; then
25624                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25625 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25626    { (exit 1); exit 1; }; }
25627         fi
25628         ;;
25629 esac
25630
25631 case $ol_with_threads in auto | yes | pth)
25632
25633
25634 for ac_header in pth.h
25635 do
25636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25638   echo "$as_me:$LINENO: checking for $ac_header" >&5
25639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25641   echo $ECHO_N "(cached) $ECHO_C" >&6
25642 fi
25643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25645 else
25646   # Is the header compilable?
25647 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25648 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25649 cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 $ac_includes_default
25656 #include <$ac_header>
25657 _ACEOF
25658 rm -f conftest.$ac_objext
25659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660   (eval $ac_compile) 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } &&
25667          { ac_try='test -z "$ac_c_werror_flag"
25668                          || test ! -s conftest.err'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; } &&
25674          { ac_try='test -s conftest.$ac_objext'
25675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); }; }; then
25680   ac_header_compiler=yes
25681 else
25682   echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685 ac_header_compiler=no
25686 fi
25687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25688 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25689 echo "${ECHO_T}$ac_header_compiler" >&6
25690
25691 # Is the header present?
25692 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25694 cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h.  */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h.  */
25700 #include <$ac_header>
25701 _ACEOF
25702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25704   ac_status=$?
25705   grep -v '^ *+' conftest.er1 >conftest.err
25706   rm -f conftest.er1
25707   cat conftest.err >&5
25708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709   (exit $ac_status); } >/dev/null; then
25710   if test -s conftest.err; then
25711     ac_cpp_err=$ac_c_preproc_warn_flag
25712     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25713   else
25714     ac_cpp_err=
25715   fi
25716 else
25717   ac_cpp_err=yes
25718 fi
25719 if test -z "$ac_cpp_err"; then
25720   ac_header_preproc=yes
25721 else
25722   echo "$as_me: failed program was:" >&5
25723 sed 's/^/| /' conftest.$ac_ext >&5
25724
25725   ac_header_preproc=no
25726 fi
25727 rm -f conftest.err conftest.$ac_ext
25728 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25729 echo "${ECHO_T}$ac_header_preproc" >&6
25730
25731 # So?  What about this header?
25732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25733   yes:no: )
25734     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25738     ac_header_preproc=yes
25739     ;;
25740   no:yes:* )
25741     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25743     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25744 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25745     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25747     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25748 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25751     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25753     (
25754       cat <<\_ASBOX
25755 ## --------------------------------------------- ##
25756 ## Report this to <http://www.openldap.org/its/> ##
25757 ## --------------------------------------------- ##
25758 _ASBOX
25759     ) |
25760       sed "s/^/$as_me: WARNING:     /" >&2
25761     ;;
25762 esac
25763 echo "$as_me:$LINENO: checking for $ac_header" >&5
25764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25766   echo $ECHO_N "(cached) $ECHO_C" >&6
25767 else
25768   eval "$as_ac_Header=\$ac_header_preproc"
25769 fi
25770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25772
25773 fi
25774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25775   cat >>confdefs.h <<_ACEOF
25776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25777 _ACEOF
25778
25779 fi
25780
25781 done
25782
25783
25784         if test $ac_cv_header_pth_h = yes ; then
25785                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25786 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25787 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25788   echo $ECHO_N "(cached) $ECHO_C" >&6
25789 else
25790   ac_check_lib_save_LIBS=$LIBS
25791 LIBS="-lpth  $LIBS"
25792 cat >conftest.$ac_ext <<_ACEOF
25793 /* confdefs.h.  */
25794 _ACEOF
25795 cat confdefs.h >>conftest.$ac_ext
25796 cat >>conftest.$ac_ext <<_ACEOF
25797 /* end confdefs.h.  */
25798
25799 /* Override any gcc2 internal prototype to avoid an error.  */
25800 #ifdef __cplusplus
25801 extern "C"
25802 #endif
25803 /* We use char because int might match the return type of a gcc2
25804    builtin and then its argument prototype would still apply.  */
25805 char pth_version ();
25806 int
25807 main ()
25808 {
25809 pth_version ();
25810   ;
25811   return 0;
25812 }
25813 _ACEOF
25814 rm -f conftest.$ac_objext conftest$ac_exeext
25815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25816   (eval $ac_link) 2>conftest.er1
25817   ac_status=$?
25818   grep -v '^ *+' conftest.er1 >conftest.err
25819   rm -f conftest.er1
25820   cat conftest.err >&5
25821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822   (exit $ac_status); } &&
25823          { ac_try='test -z "$ac_c_werror_flag"
25824                          || test ! -s conftest.err'
25825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25826   (eval $ac_try) 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; } &&
25830          { ac_try='test -s conftest$ac_exeext'
25831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832   (eval $ac_try) 2>&5
25833   ac_status=$?
25834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835   (exit $ac_status); }; }; then
25836   ac_cv_lib_pth_pth_version=yes
25837 else
25838   echo "$as_me: failed program was:" >&5
25839 sed 's/^/| /' conftest.$ac_ext >&5
25840
25841 ac_cv_lib_pth_pth_version=no
25842 fi
25843 rm -f conftest.err conftest.$ac_objext \
25844       conftest$ac_exeext conftest.$ac_ext
25845 LIBS=$ac_check_lib_save_LIBS
25846 fi
25847 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25848 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25849 if test $ac_cv_lib_pth_pth_version = yes; then
25850   have_pth=yes
25851 else
25852   have_pth=no
25853 fi
25854
25855
25856                 if test $have_pth = yes ; then
25857
25858 cat >>confdefs.h <<\_ACEOF
25859 #define HAVE_GNU_PTH 1
25860 _ACEOF
25861
25862                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25863                         ol_link_threads=pth
25864                         ol_with_threads=found
25865
25866                         if test $ol_with_yielding_select = auto ; then
25867                                 ol_with_yielding_select=yes
25868                         fi
25869                 fi
25870         fi
25871         ;;
25872 esac
25873
25874 case $ol_with_threads in auto | yes | lwp)
25875
25876
25877
25878 for ac_header in thread.h synch.h
25879 do
25880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25882   echo "$as_me:$LINENO: checking for $ac_header" >&5
25883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25885   echo $ECHO_N "(cached) $ECHO_C" >&6
25886 fi
25887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25889 else
25890   # Is the header compilable?
25891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25893 cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h.  */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h.  */
25899 $ac_includes_default
25900 #include <$ac_header>
25901 _ACEOF
25902 rm -f conftest.$ac_objext
25903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25904   (eval $ac_compile) 2>conftest.er1
25905   ac_status=$?
25906   grep -v '^ *+' conftest.er1 >conftest.err
25907   rm -f conftest.er1
25908   cat conftest.err >&5
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); } &&
25911          { ac_try='test -z "$ac_c_werror_flag"
25912                          || test ! -s conftest.err'
25913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914   (eval $ac_try) 2>&5
25915   ac_status=$?
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); }; } &&
25918          { ac_try='test -s conftest.$ac_objext'
25919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25920   (eval $ac_try) 2>&5
25921   ac_status=$?
25922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25923   (exit $ac_status); }; }; then
25924   ac_header_compiler=yes
25925 else
25926   echo "$as_me: failed program was:" >&5
25927 sed 's/^/| /' conftest.$ac_ext >&5
25928
25929 ac_header_compiler=no
25930 fi
25931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25933 echo "${ECHO_T}$ac_header_compiler" >&6
25934
25935 # Is the header present?
25936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25938 cat >conftest.$ac_ext <<_ACEOF
25939 /* confdefs.h.  */
25940 _ACEOF
25941 cat confdefs.h >>conftest.$ac_ext
25942 cat >>conftest.$ac_ext <<_ACEOF
25943 /* end confdefs.h.  */
25944 #include <$ac_header>
25945 _ACEOF
25946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25948   ac_status=$?
25949   grep -v '^ *+' conftest.er1 >conftest.err
25950   rm -f conftest.er1
25951   cat conftest.err >&5
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); } >/dev/null; then
25954   if test -s conftest.err; then
25955     ac_cpp_err=$ac_c_preproc_warn_flag
25956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25957   else
25958     ac_cpp_err=
25959   fi
25960 else
25961   ac_cpp_err=yes
25962 fi
25963 if test -z "$ac_cpp_err"; then
25964   ac_header_preproc=yes
25965 else
25966   echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25968
25969   ac_header_preproc=no
25970 fi
25971 rm -f conftest.err conftest.$ac_ext
25972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25973 echo "${ECHO_T}$ac_header_preproc" >&6
25974
25975 # So?  What about this header?
25976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25977   yes:no: )
25978     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25980     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25982     ac_header_preproc=yes
25983     ;;
25984   no:yes:* )
25985     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25987     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25988 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25989     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25991     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25992 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25995     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25997     (
25998       cat <<\_ASBOX
25999 ## --------------------------------------------- ##
26000 ## Report this to <http://www.openldap.org/its/> ##
26001 ## --------------------------------------------- ##
26002 _ASBOX
26003     ) |
26004       sed "s/^/$as_me: WARNING:     /" >&2
26005     ;;
26006 esac
26007 echo "$as_me:$LINENO: checking for $ac_header" >&5
26008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26010   echo $ECHO_N "(cached) $ECHO_C" >&6
26011 else
26012   eval "$as_ac_Header=\$ac_header_preproc"
26013 fi
26014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26016
26017 fi
26018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26019   cat >>confdefs.h <<_ACEOF
26020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26021 _ACEOF
26022
26023 fi
26024
26025 done
26026
26027         if test $ac_cv_header_thread_h = yes &&
26028            test $ac_cv_header_synch_h = yes ; then
26029                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26030 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26031 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26032   echo $ECHO_N "(cached) $ECHO_C" >&6
26033 else
26034   ac_check_lib_save_LIBS=$LIBS
26035 LIBS="-lthread  $LIBS"
26036 cat >conftest.$ac_ext <<_ACEOF
26037 /* confdefs.h.  */
26038 _ACEOF
26039 cat confdefs.h >>conftest.$ac_ext
26040 cat >>conftest.$ac_ext <<_ACEOF
26041 /* end confdefs.h.  */
26042
26043 /* Override any gcc2 internal prototype to avoid an error.  */
26044 #ifdef __cplusplus
26045 extern "C"
26046 #endif
26047 /* We use char because int might match the return type of a gcc2
26048    builtin and then its argument prototype would still apply.  */
26049 char thr_create ();
26050 int
26051 main ()
26052 {
26053 thr_create ();
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26060   (eval $ac_link) 2>conftest.er1
26061   ac_status=$?
26062   grep -v '^ *+' conftest.er1 >conftest.err
26063   rm -f conftest.er1
26064   cat conftest.err >&5
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); } &&
26067          { ac_try='test -z "$ac_c_werror_flag"
26068                          || test ! -s conftest.err'
26069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26070   (eval $ac_try) 2>&5
26071   ac_status=$?
26072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073   (exit $ac_status); }; } &&
26074          { ac_try='test -s conftest$ac_exeext'
26075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076   (eval $ac_try) 2>&5
26077   ac_status=$?
26078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079   (exit $ac_status); }; }; then
26080   ac_cv_lib_thread_thr_create=yes
26081 else
26082   echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 ac_cv_lib_thread_thr_create=no
26086 fi
26087 rm -f conftest.err conftest.$ac_objext \
26088       conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26090 fi
26091 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26092 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26093 if test $ac_cv_lib_thread_thr_create = yes; then
26094   have_thr=yes
26095 else
26096   have_thr=no
26097 fi
26098
26099
26100                 if test $have_thr = yes ; then
26101
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_THR 1
26104 _ACEOF
26105
26106                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26107                         ol_link_threads=thr
26108
26109                         if test $ol_with_yielding_select = auto ; then
26110                                 ol_with_yielding_select=yes
26111                         fi
26112
26113
26114
26115 for ac_func in \
26116                                 thr_setconcurrency \
26117                                 thr_getconcurrency \
26118
26119 do
26120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26121 echo "$as_me:$LINENO: checking for $ac_func" >&5
26122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26123 if eval "test \"\${$as_ac_var+set}\" = set"; then
26124   echo $ECHO_N "(cached) $ECHO_C" >&6
26125 else
26126   cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26134 #define $ac_func innocuous_$ac_func
26135
26136 /* System header to define __stub macros and hopefully few prototypes,
26137     which can conflict with char $ac_func (); below.
26138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26139     <limits.h> exists even on freestanding compilers.  */
26140
26141 #ifdef __STDC__
26142 # include <limits.h>
26143 #else
26144 # include <assert.h>
26145 #endif
26146
26147 #undef $ac_func
26148
26149 /* Override any gcc2 internal prototype to avoid an error.  */
26150 #ifdef __cplusplus
26151 extern "C"
26152 {
26153 #endif
26154 /* We use char because int might match the return type of a gcc2
26155    builtin and then its argument prototype would still apply.  */
26156 char $ac_func ();
26157 /* The GNU C library defines this for functions which it implements
26158     to always fail with ENOSYS.  Some functions are actually named
26159     something starting with __ and the normal name is an alias.  */
26160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26161 choke me
26162 #else
26163 char (*f) () = $ac_func;
26164 #endif
26165 #ifdef __cplusplus
26166 }
26167 #endif
26168
26169 int
26170 main ()
26171 {
26172 return f != $ac_func;
26173   ;
26174   return 0;
26175 }
26176 _ACEOF
26177 rm -f conftest.$ac_objext conftest$ac_exeext
26178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26179   (eval $ac_link) 2>conftest.er1
26180   ac_status=$?
26181   grep -v '^ *+' conftest.er1 >conftest.err
26182   rm -f conftest.er1
26183   cat conftest.err >&5
26184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185   (exit $ac_status); } &&
26186          { ac_try='test -z "$ac_c_werror_flag"
26187                          || test ! -s conftest.err'
26188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189   (eval $ac_try) 2>&5
26190   ac_status=$?
26191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192   (exit $ac_status); }; } &&
26193          { ac_try='test -s conftest$ac_exeext'
26194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195   (eval $ac_try) 2>&5
26196   ac_status=$?
26197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198   (exit $ac_status); }; }; then
26199   eval "$as_ac_var=yes"
26200 else
26201   echo "$as_me: failed program was:" >&5
26202 sed 's/^/| /' conftest.$ac_ext >&5
26203
26204 eval "$as_ac_var=no"
26205 fi
26206 rm -f conftest.err conftest.$ac_objext \
26207       conftest$ac_exeext conftest.$ac_ext
26208 fi
26209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26211 if test `eval echo '${'$as_ac_var'}'` = yes; then
26212   cat >>confdefs.h <<_ACEOF
26213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26214 _ACEOF
26215
26216 fi
26217 done
26218
26219                 fi
26220         fi
26221
26222
26223 for ac_header in lwp/lwp.h
26224 do
26225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26227   echo "$as_me:$LINENO: checking for $ac_header" >&5
26228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 fi
26232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26234 else
26235   # Is the header compilable?
26236 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26238 cat >conftest.$ac_ext <<_ACEOF
26239 /* confdefs.h.  */
26240 _ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h.  */
26244 $ac_includes_default
26245 #include <$ac_header>
26246 _ACEOF
26247 rm -f conftest.$ac_objext
26248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26249   (eval $ac_compile) 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } &&
26256          { ac_try='test -z "$ac_c_werror_flag"
26257                          || test ! -s conftest.err'
26258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26259   (eval $ac_try) 2>&5
26260   ac_status=$?
26261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26262   (exit $ac_status); }; } &&
26263          { ac_try='test -s conftest.$ac_objext'
26264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26265   (eval $ac_try) 2>&5
26266   ac_status=$?
26267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268   (exit $ac_status); }; }; then
26269   ac_header_compiler=yes
26270 else
26271   echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26273
26274 ac_header_compiler=no
26275 fi
26276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26278 echo "${ECHO_T}$ac_header_compiler" >&6
26279
26280 # Is the header present?
26281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26283 cat >conftest.$ac_ext <<_ACEOF
26284 /* confdefs.h.  */
26285 _ACEOF
26286 cat confdefs.h >>conftest.$ac_ext
26287 cat >>conftest.$ac_ext <<_ACEOF
26288 /* end confdefs.h.  */
26289 #include <$ac_header>
26290 _ACEOF
26291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26293   ac_status=$?
26294   grep -v '^ *+' conftest.er1 >conftest.err
26295   rm -f conftest.er1
26296   cat conftest.err >&5
26297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298   (exit $ac_status); } >/dev/null; then
26299   if test -s conftest.err; then
26300     ac_cpp_err=$ac_c_preproc_warn_flag
26301     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26302   else
26303     ac_cpp_err=
26304   fi
26305 else
26306   ac_cpp_err=yes
26307 fi
26308 if test -z "$ac_cpp_err"; then
26309   ac_header_preproc=yes
26310 else
26311   echo "$as_me: failed program was:" >&5
26312 sed 's/^/| /' conftest.$ac_ext >&5
26313
26314   ac_header_preproc=no
26315 fi
26316 rm -f conftest.err conftest.$ac_ext
26317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26318 echo "${ECHO_T}$ac_header_preproc" >&6
26319
26320 # So?  What about this header?
26321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26322   yes:no: )
26323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26327     ac_header_preproc=yes
26328     ;;
26329   no:yes:* )
26330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26342     (
26343       cat <<\_ASBOX
26344 ## --------------------------------------------- ##
26345 ## Report this to <http://www.openldap.org/its/> ##
26346 ## --------------------------------------------- ##
26347 _ASBOX
26348     ) |
26349       sed "s/^/$as_me: WARNING:     /" >&2
26350     ;;
26351 esac
26352 echo "$as_me:$LINENO: checking for $ac_header" >&5
26353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357   eval "$as_ac_Header=\$ac_header_preproc"
26358 fi
26359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26361
26362 fi
26363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26364   cat >>confdefs.h <<_ACEOF
26365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26366 _ACEOF
26367
26368 fi
26369
26370 done
26371
26372         if test $ac_cv_header_lwp_lwp_h = yes ; then
26373                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26374 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26375 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26376   echo $ECHO_N "(cached) $ECHO_C" >&6
26377 else
26378   ac_check_lib_save_LIBS=$LIBS
26379 LIBS="-llwp  $LIBS"
26380 cat >conftest.$ac_ext <<_ACEOF
26381 /* confdefs.h.  */
26382 _ACEOF
26383 cat confdefs.h >>conftest.$ac_ext
26384 cat >>conftest.$ac_ext <<_ACEOF
26385 /* end confdefs.h.  */
26386
26387 /* Override any gcc2 internal prototype to avoid an error.  */
26388 #ifdef __cplusplus
26389 extern "C"
26390 #endif
26391 /* We use char because int might match the return type of a gcc2
26392    builtin and then its argument prototype would still apply.  */
26393 char lwp_create ();
26394 int
26395 main ()
26396 {
26397 lwp_create ();
26398   ;
26399   return 0;
26400 }
26401 _ACEOF
26402 rm -f conftest.$ac_objext conftest$ac_exeext
26403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26404   (eval $ac_link) 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } &&
26411          { ac_try='test -z "$ac_c_werror_flag"
26412                          || test ! -s conftest.err'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; } &&
26418          { ac_try='test -s conftest$ac_exeext'
26419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420   (eval $ac_try) 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; }; then
26424   ac_cv_lib_lwp_lwp_create=yes
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429 ac_cv_lib_lwp_lwp_create=no
26430 fi
26431 rm -f conftest.err conftest.$ac_objext \
26432       conftest$ac_exeext conftest.$ac_ext
26433 LIBS=$ac_check_lib_save_LIBS
26434 fi
26435 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26436 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26437 if test $ac_cv_lib_lwp_lwp_create = yes; then
26438   have_lwp=yes
26439 else
26440   have_lwp=no
26441 fi
26442
26443
26444                 if test $have_lwp = yes ; then
26445
26446 cat >>confdefs.h <<\_ACEOF
26447 #define HAVE_LWP 1
26448 _ACEOF
26449
26450                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26451                         ol_link_threads=lwp
26452
26453                         if test $ol_with_yielding_select = auto ; then
26454                                 ol_with_yielding_select=no
26455                         fi
26456                 fi
26457         fi
26458         ;;
26459 esac
26460
26461 if test $ol_with_yielding_select = yes ; then
26462
26463 cat >>confdefs.h <<\_ACEOF
26464 #define HAVE_YIELDING_SELECT 1
26465 _ACEOF
26466
26467 fi
26468
26469 if test $ol_with_threads = manual ; then
26470                 ol_link_threads=yes
26471
26472         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26473 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26474
26475
26476
26477 for ac_header in pthread.h sched.h
26478 do
26479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26481   echo "$as_me:$LINENO: checking for $ac_header" >&5
26482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26484   echo $ECHO_N "(cached) $ECHO_C" >&6
26485 fi
26486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26488 else
26489   # Is the header compilable?
26490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26492 cat >conftest.$ac_ext <<_ACEOF
26493 /* confdefs.h.  */
26494 _ACEOF
26495 cat confdefs.h >>conftest.$ac_ext
26496 cat >>conftest.$ac_ext <<_ACEOF
26497 /* end confdefs.h.  */
26498 $ac_includes_default
26499 #include <$ac_header>
26500 _ACEOF
26501 rm -f conftest.$ac_objext
26502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26503   (eval $ac_compile) 2>conftest.er1
26504   ac_status=$?
26505   grep -v '^ *+' conftest.er1 >conftest.err
26506   rm -f conftest.er1
26507   cat conftest.err >&5
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); } &&
26510          { ac_try='test -z "$ac_c_werror_flag"
26511                          || test ! -s conftest.err'
26512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513   (eval $ac_try) 2>&5
26514   ac_status=$?
26515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516   (exit $ac_status); }; } &&
26517          { ac_try='test -s conftest.$ac_objext'
26518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519   (eval $ac_try) 2>&5
26520   ac_status=$?
26521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522   (exit $ac_status); }; }; then
26523   ac_header_compiler=yes
26524 else
26525   echo "$as_me: failed program was:" >&5
26526 sed 's/^/| /' conftest.$ac_ext >&5
26527
26528 ac_header_compiler=no
26529 fi
26530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26532 echo "${ECHO_T}$ac_header_compiler" >&6
26533
26534 # Is the header present?
26535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26537 cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 #include <$ac_header>
26544 _ACEOF
26545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26547   ac_status=$?
26548   grep -v '^ *+' conftest.er1 >conftest.err
26549   rm -f conftest.er1
26550   cat conftest.err >&5
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); } >/dev/null; then
26553   if test -s conftest.err; then
26554     ac_cpp_err=$ac_c_preproc_warn_flag
26555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26556   else
26557     ac_cpp_err=
26558   fi
26559 else
26560   ac_cpp_err=yes
26561 fi
26562 if test -z "$ac_cpp_err"; then
26563   ac_header_preproc=yes
26564 else
26565   echo "$as_me: failed program was:" >&5
26566 sed 's/^/| /' conftest.$ac_ext >&5
26567
26568   ac_header_preproc=no
26569 fi
26570 rm -f conftest.err conftest.$ac_ext
26571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26572 echo "${ECHO_T}$ac_header_preproc" >&6
26573
26574 # So?  What about this header?
26575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26576   yes:no: )
26577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26581     ac_header_preproc=yes
26582     ;;
26583   no:yes:* )
26584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26596     (
26597       cat <<\_ASBOX
26598 ## --------------------------------------------- ##
26599 ## Report this to <http://www.openldap.org/its/> ##
26600 ## --------------------------------------------- ##
26601 _ASBOX
26602     ) |
26603       sed "s/^/$as_me: WARNING:     /" >&2
26604     ;;
26605 esac
26606 echo "$as_me:$LINENO: checking for $ac_header" >&5
26607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26609   echo $ECHO_N "(cached) $ECHO_C" >&6
26610 else
26611   eval "$as_ac_Header=\$ac_header_preproc"
26612 fi
26613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26615
26616 fi
26617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26618   cat >>confdefs.h <<_ACEOF
26619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26620 _ACEOF
26621
26622 fi
26623
26624 done
26625
26626
26627
26628 for ac_func in sched_yield pthread_yield
26629 do
26630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26631 echo "$as_me:$LINENO: checking for $ac_func" >&5
26632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26633 if eval "test \"\${$as_ac_var+set}\" = set"; then
26634   echo $ECHO_N "(cached) $ECHO_C" >&6
26635 else
26636   cat >conftest.$ac_ext <<_ACEOF
26637 /* confdefs.h.  */
26638 _ACEOF
26639 cat confdefs.h >>conftest.$ac_ext
26640 cat >>conftest.$ac_ext <<_ACEOF
26641 /* end confdefs.h.  */
26642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26644 #define $ac_func innocuous_$ac_func
26645
26646 /* System header to define __stub macros and hopefully few prototypes,
26647     which can conflict with char $ac_func (); below.
26648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26649     <limits.h> exists even on freestanding compilers.  */
26650
26651 #ifdef __STDC__
26652 # include <limits.h>
26653 #else
26654 # include <assert.h>
26655 #endif
26656
26657 #undef $ac_func
26658
26659 /* Override any gcc2 internal prototype to avoid an error.  */
26660 #ifdef __cplusplus
26661 extern "C"
26662 {
26663 #endif
26664 /* We use char because int might match the return type of a gcc2
26665    builtin and then its argument prototype would still apply.  */
26666 char $ac_func ();
26667 /* The GNU C library defines this for functions which it implements
26668     to always fail with ENOSYS.  Some functions are actually named
26669     something starting with __ and the normal name is an alias.  */
26670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26671 choke me
26672 #else
26673 char (*f) () = $ac_func;
26674 #endif
26675 #ifdef __cplusplus
26676 }
26677 #endif
26678
26679 int
26680 main ()
26681 {
26682 return f != $ac_func;
26683   ;
26684   return 0;
26685 }
26686 _ACEOF
26687 rm -f conftest.$ac_objext conftest$ac_exeext
26688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26689   (eval $ac_link) 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } &&
26696          { ac_try='test -z "$ac_c_werror_flag"
26697                          || test ! -s conftest.err'
26698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699   (eval $ac_try) 2>&5
26700   ac_status=$?
26701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702   (exit $ac_status); }; } &&
26703          { ac_try='test -s conftest$ac_exeext'
26704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705   (eval $ac_try) 2>&5
26706   ac_status=$?
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); }; }; then
26709   eval "$as_ac_var=yes"
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714 eval "$as_ac_var=no"
26715 fi
26716 rm -f conftest.err conftest.$ac_objext \
26717       conftest$ac_exeext conftest.$ac_ext
26718 fi
26719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26721 if test `eval echo '${'$as_ac_var'}'` = yes; then
26722   cat >>confdefs.h <<_ACEOF
26723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26724 _ACEOF
26725
26726 fi
26727 done
26728
26729
26730         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26731 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26732 if test "${ol_cv_header_linux_threads+set}" = set; then
26733   echo $ECHO_N "(cached) $ECHO_C" >&6
26734 else
26735   cat >conftest.$ac_ext <<_ACEOF
26736 /* confdefs.h.  */
26737 _ACEOF
26738 cat confdefs.h >>conftest.$ac_ext
26739 cat >>conftest.$ac_ext <<_ACEOF
26740 /* end confdefs.h.  */
26741 #include <pthread.h>
26742 _ACEOF
26743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26744   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26745   ol_cv_header_linux_threads=yes
26746 else
26747   ol_cv_header_linux_threads=no
26748 fi
26749 rm -f conftest*
26750
26751
26752 fi
26753 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26754 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26755         if test $ol_cv_header_linux_threads = yes; then
26756
26757 cat >>confdefs.h <<\_ACEOF
26758 #define HAVE_LINUX_THREADS 1
26759 _ACEOF
26760
26761         fi
26762
26763
26764
26765 for ac_header in mach/cthreads.h
26766 do
26767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26769   echo "$as_me:$LINENO: checking for $ac_header" >&5
26770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26772   echo $ECHO_N "(cached) $ECHO_C" >&6
26773 fi
26774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26776 else
26777   # Is the header compilable?
26778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26780 cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 $ac_includes_default
26787 #include <$ac_header>
26788 _ACEOF
26789 rm -f conftest.$ac_objext
26790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26791   (eval $ac_compile) 2>conftest.er1
26792   ac_status=$?
26793   grep -v '^ *+' conftest.er1 >conftest.err
26794   rm -f conftest.er1
26795   cat conftest.err >&5
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); } &&
26798          { ac_try='test -z "$ac_c_werror_flag"
26799                          || test ! -s conftest.err'
26800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801   (eval $ac_try) 2>&5
26802   ac_status=$?
26803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804   (exit $ac_status); }; } &&
26805          { ac_try='test -s conftest.$ac_objext'
26806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807   (eval $ac_try) 2>&5
26808   ac_status=$?
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); }; }; then
26811   ac_header_compiler=yes
26812 else
26813   echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816 ac_header_compiler=no
26817 fi
26818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26820 echo "${ECHO_T}$ac_header_compiler" >&6
26821
26822 # Is the header present?
26823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26825 cat >conftest.$ac_ext <<_ACEOF
26826 /* confdefs.h.  */
26827 _ACEOF
26828 cat confdefs.h >>conftest.$ac_ext
26829 cat >>conftest.$ac_ext <<_ACEOF
26830 /* end confdefs.h.  */
26831 #include <$ac_header>
26832 _ACEOF
26833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26834   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26835   ac_status=$?
26836   grep -v '^ *+' conftest.er1 >conftest.err
26837   rm -f conftest.er1
26838   cat conftest.err >&5
26839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840   (exit $ac_status); } >/dev/null; then
26841   if test -s conftest.err; then
26842     ac_cpp_err=$ac_c_preproc_warn_flag
26843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26844   else
26845     ac_cpp_err=
26846   fi
26847 else
26848   ac_cpp_err=yes
26849 fi
26850 if test -z "$ac_cpp_err"; then
26851   ac_header_preproc=yes
26852 else
26853   echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26855
26856   ac_header_preproc=no
26857 fi
26858 rm -f conftest.err conftest.$ac_ext
26859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26860 echo "${ECHO_T}$ac_header_preproc" >&6
26861
26862 # So?  What about this header?
26863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26864   yes:no: )
26865     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26867     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26869     ac_header_preproc=yes
26870     ;;
26871   no:yes:* )
26872     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26874     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26875 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26876     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26878     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26879 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26882     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26884     (
26885       cat <<\_ASBOX
26886 ## --------------------------------------------- ##
26887 ## Report this to <http://www.openldap.org/its/> ##
26888 ## --------------------------------------------- ##
26889 _ASBOX
26890     ) |
26891       sed "s/^/$as_me: WARNING:     /" >&2
26892     ;;
26893 esac
26894 echo "$as_me:$LINENO: checking for $ac_header" >&5
26895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26897   echo $ECHO_N "(cached) $ECHO_C" >&6
26898 else
26899   eval "$as_ac_Header=\$ac_header_preproc"
26900 fi
26901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26903
26904 fi
26905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26906   cat >>confdefs.h <<_ACEOF
26907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26908 _ACEOF
26909
26910 fi
26911
26912 done
26913
26914
26915 for ac_header in lwp/lwp.h
26916 do
26917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26919   echo "$as_me:$LINENO: checking for $ac_header" >&5
26920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26922   echo $ECHO_N "(cached) $ECHO_C" >&6
26923 fi
26924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26926 else
26927   # Is the header compilable?
26928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h.  */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h.  */
26936 $ac_includes_default
26937 #include <$ac_header>
26938 _ACEOF
26939 rm -f conftest.$ac_objext
26940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26941   (eval $ac_compile) 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } &&
26948          { ac_try='test -z "$ac_c_werror_flag"
26949                          || test ! -s conftest.err'
26950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951   (eval $ac_try) 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; } &&
26955          { ac_try='test -s conftest.$ac_objext'
26956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957   (eval $ac_try) 2>&5
26958   ac_status=$?
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); }; }; then
26961   ac_header_compiler=yes
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966 ac_header_compiler=no
26967 fi
26968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26970 echo "${ECHO_T}$ac_header_compiler" >&6
26971
26972 # Is the header present?
26973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26975 cat >conftest.$ac_ext <<_ACEOF
26976 /* confdefs.h.  */
26977 _ACEOF
26978 cat confdefs.h >>conftest.$ac_ext
26979 cat >>conftest.$ac_ext <<_ACEOF
26980 /* end confdefs.h.  */
26981 #include <$ac_header>
26982 _ACEOF
26983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26985   ac_status=$?
26986   grep -v '^ *+' conftest.er1 >conftest.err
26987   rm -f conftest.er1
26988   cat conftest.err >&5
26989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26990   (exit $ac_status); } >/dev/null; then
26991   if test -s conftest.err; then
26992     ac_cpp_err=$ac_c_preproc_warn_flag
26993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26994   else
26995     ac_cpp_err=
26996   fi
26997 else
26998   ac_cpp_err=yes
26999 fi
27000 if test -z "$ac_cpp_err"; then
27001   ac_header_preproc=yes
27002 else
27003   echo "$as_me: failed program was:" >&5
27004 sed 's/^/| /' conftest.$ac_ext >&5
27005
27006   ac_header_preproc=no
27007 fi
27008 rm -f conftest.err conftest.$ac_ext
27009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27010 echo "${ECHO_T}$ac_header_preproc" >&6
27011
27012 # So?  What about this header?
27013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27014   yes:no: )
27015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27019     ac_header_preproc=yes
27020     ;;
27021   no:yes:* )
27022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27034     (
27035       cat <<\_ASBOX
27036 ## --------------------------------------------- ##
27037 ## Report this to <http://www.openldap.org/its/> ##
27038 ## --------------------------------------------- ##
27039 _ASBOX
27040     ) |
27041       sed "s/^/$as_me: WARNING:     /" >&2
27042     ;;
27043 esac
27044 echo "$as_me:$LINENO: checking for $ac_header" >&5
27045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27047   echo $ECHO_N "(cached) $ECHO_C" >&6
27048 else
27049   eval "$as_ac_Header=\$ac_header_preproc"
27050 fi
27051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27053
27054 fi
27055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27056   cat >>confdefs.h <<_ACEOF
27057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27058 _ACEOF
27059
27060 fi
27061
27062 done
27063
27064
27065
27066 for ac_header in thread.h synch.h
27067 do
27068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27070   echo "$as_me:$LINENO: checking for $ac_header" >&5
27071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27073   echo $ECHO_N "(cached) $ECHO_C" >&6
27074 fi
27075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27077 else
27078   # Is the header compilable?
27079 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27081 cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087 $ac_includes_default
27088 #include <$ac_header>
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27092   (eval $ac_compile) 2>conftest.er1
27093   ac_status=$?
27094   grep -v '^ *+' conftest.er1 >conftest.err
27095   rm -f conftest.er1
27096   cat conftest.err >&5
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); } &&
27099          { ac_try='test -z "$ac_c_werror_flag"
27100                          || test ! -s conftest.err'
27101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102   (eval $ac_try) 2>&5
27103   ac_status=$?
27104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105   (exit $ac_status); }; } &&
27106          { ac_try='test -s conftest.$ac_objext'
27107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108   (eval $ac_try) 2>&5
27109   ac_status=$?
27110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111   (exit $ac_status); }; }; then
27112   ac_header_compiler=yes
27113 else
27114   echo "$as_me: failed program was:" >&5
27115 sed 's/^/| /' conftest.$ac_ext >&5
27116
27117 ac_header_compiler=no
27118 fi
27119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27121 echo "${ECHO_T}$ac_header_compiler" >&6
27122
27123 # Is the header present?
27124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27126 cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h.  */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h.  */
27132 #include <$ac_header>
27133 _ACEOF
27134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27136   ac_status=$?
27137   grep -v '^ *+' conftest.er1 >conftest.err
27138   rm -f conftest.er1
27139   cat conftest.err >&5
27140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141   (exit $ac_status); } >/dev/null; then
27142   if test -s conftest.err; then
27143     ac_cpp_err=$ac_c_preproc_warn_flag
27144     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27145   else
27146     ac_cpp_err=
27147   fi
27148 else
27149   ac_cpp_err=yes
27150 fi
27151 if test -z "$ac_cpp_err"; then
27152   ac_header_preproc=yes
27153 else
27154   echo "$as_me: failed program was:" >&5
27155 sed 's/^/| /' conftest.$ac_ext >&5
27156
27157   ac_header_preproc=no
27158 fi
27159 rm -f conftest.err conftest.$ac_ext
27160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27161 echo "${ECHO_T}$ac_header_preproc" >&6
27162
27163 # So?  What about this header?
27164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27165   yes:no: )
27166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27170     ac_header_preproc=yes
27171     ;;
27172   no:yes:* )
27173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27185     (
27186       cat <<\_ASBOX
27187 ## --------------------------------------------- ##
27188 ## Report this to <http://www.openldap.org/its/> ##
27189 ## --------------------------------------------- ##
27190 _ASBOX
27191     ) |
27192       sed "s/^/$as_me: WARNING:     /" >&2
27193     ;;
27194 esac
27195 echo "$as_me:$LINENO: checking for $ac_header" >&5
27196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27198   echo $ECHO_N "(cached) $ECHO_C" >&6
27199 else
27200   eval "$as_ac_Header=\$ac_header_preproc"
27201 fi
27202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27204
27205 fi
27206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27207   cat >>confdefs.h <<_ACEOF
27208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27209 _ACEOF
27210
27211 fi
27212
27213 done
27214
27215 fi
27216
27217 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27218                         cat >>confdefs.h <<\_ACEOF
27219 #define REENTRANT 1
27220 _ACEOF
27221
27222         cat >>confdefs.h <<\_ACEOF
27223 #define _REENTRANT 1
27224 _ACEOF
27225
27226         cat >>confdefs.h <<\_ACEOF
27227 #define THREAD_SAFE 1
27228 _ACEOF
27229
27230         cat >>confdefs.h <<\_ACEOF
27231 #define _THREAD_SAFE 1
27232 _ACEOF
27233
27234         cat >>confdefs.h <<\_ACEOF
27235 #define THREADSAFE 1
27236 _ACEOF
27237
27238         cat >>confdefs.h <<\_ACEOF
27239 #define _THREADSAFE 1
27240 _ACEOF
27241
27242         cat >>confdefs.h <<\_ACEOF
27243 #define _SGI_MP_SOURCE 1
27244 _ACEOF
27245
27246
27247                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27248 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27249 if test "${ol_cv_errno_thread_specific+set}" = set; then
27250   echo $ECHO_N "(cached) $ECHO_C" >&6
27251 else
27252
27253                 cat >conftest.$ac_ext <<_ACEOF
27254 /* confdefs.h.  */
27255 _ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h.  */
27259 #include <errno.h>
27260 int
27261 main ()
27262 {
27263 errno = 0;
27264   ;
27265   return 0;
27266 }
27267 _ACEOF
27268 rm -f conftest.$ac_objext conftest$ac_exeext
27269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27270   (eval $ac_link) 2>conftest.er1
27271   ac_status=$?
27272   grep -v '^ *+' conftest.er1 >conftest.err
27273   rm -f conftest.er1
27274   cat conftest.err >&5
27275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276   (exit $ac_status); } &&
27277          { ac_try='test -z "$ac_c_werror_flag"
27278                          || test ! -s conftest.err'
27279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27280   (eval $ac_try) 2>&5
27281   ac_status=$?
27282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27283   (exit $ac_status); }; } &&
27284          { ac_try='test -s conftest$ac_exeext'
27285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27286   (eval $ac_try) 2>&5
27287   ac_status=$?
27288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27289   (exit $ac_status); }; }; then
27290   ol_cv_errno_thread_specific=yes
27291 else
27292   echo "$as_me: failed program was:" >&5
27293 sed 's/^/| /' conftest.$ac_ext >&5
27294
27295 ol_cv_errno_thread_specific=no
27296 fi
27297 rm -f conftest.err conftest.$ac_objext \
27298       conftest$ac_exeext conftest.$ac_ext
27299
27300 fi
27301 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27302 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27303
27304                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27305 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27306 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27307   echo $ECHO_N "(cached) $ECHO_C" >&6
27308 else
27309
27310                 cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 #include <netdb.h>
27317 int
27318 main ()
27319 {
27320 h_errno = 0;
27321   ;
27322   return 0;
27323 }
27324 _ACEOF
27325 rm -f conftest.$ac_objext conftest$ac_exeext
27326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27327   (eval $ac_link) 2>conftest.er1
27328   ac_status=$?
27329   grep -v '^ *+' conftest.er1 >conftest.err
27330   rm -f conftest.er1
27331   cat conftest.err >&5
27332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333   (exit $ac_status); } &&
27334          { ac_try='test -z "$ac_c_werror_flag"
27335                          || test ! -s conftest.err'
27336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27337   (eval $ac_try) 2>&5
27338   ac_status=$?
27339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27340   (exit $ac_status); }; } &&
27341          { ac_try='test -s conftest$ac_exeext'
27342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343   (eval $ac_try) 2>&5
27344   ac_status=$?
27345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346   (exit $ac_status); }; }; then
27347   ol_cv_h_errno_thread_specific=yes
27348 else
27349   echo "$as_me: failed program was:" >&5
27350 sed 's/^/| /' conftest.$ac_ext >&5
27351
27352 ol_cv_h_errno_thread_specific=no
27353 fi
27354 rm -f conftest.err conftest.$ac_objext \
27355       conftest$ac_exeext conftest.$ac_ext
27356
27357 fi
27358 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27359 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27360
27361         if test $ol_cv_errno_thread_specific != yes ||
27362            test $ol_cv_h_errno_thread_specific != yes ; then
27363                 LIBS="$LTHREAD_LIBS $LIBS"
27364                 LTHREAD_LIBS=""
27365         fi
27366
27367 fi
27368
27369 if test $ol_link_threads = no ; then
27370         if test $ol_with_threads = yes ; then
27371                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27372 echo "$as_me: error: no suitable thread support" >&2;}
27373    { (exit 1); exit 1; }; }
27374         fi
27375
27376         if test $ol_with_threads = auto ; then
27377                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27378 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27379                 ol_with_threads=no
27380         fi
27381
27382
27383 cat >>confdefs.h <<\_ACEOF
27384 #define NO_THREADS 1
27385 _ACEOF
27386
27387         LTHREAD_LIBS=""
27388         BUILD_THREAD=no
27389 else
27390         BUILD_THREAD=yes
27391 fi
27392
27393 if test $ol_link_threads != no ; then
27394
27395 cat >>confdefs.h <<\_ACEOF
27396 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27397 _ACEOF
27398
27399 fi
27400
27401
27402
27403
27404 for ac_func in \
27405         ctime_r                 \
27406         gethostbyname_r gethostbyaddr_r \
27407
27408 do
27409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27410 echo "$as_me:$LINENO: checking for $ac_func" >&5
27411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27412 if eval "test \"\${$as_ac_var+set}\" = set"; then
27413   echo $ECHO_N "(cached) $ECHO_C" >&6
27414 else
27415   cat >conftest.$ac_ext <<_ACEOF
27416 /* confdefs.h.  */
27417 _ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h.  */
27421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27423 #define $ac_func innocuous_$ac_func
27424
27425 /* System header to define __stub macros and hopefully few prototypes,
27426     which can conflict with char $ac_func (); below.
27427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27428     <limits.h> exists even on freestanding compilers.  */
27429
27430 #ifdef __STDC__
27431 # include <limits.h>
27432 #else
27433 # include <assert.h>
27434 #endif
27435
27436 #undef $ac_func
27437
27438 /* Override any gcc2 internal prototype to avoid an error.  */
27439 #ifdef __cplusplus
27440 extern "C"
27441 {
27442 #endif
27443 /* We use char because int might match the return type of a gcc2
27444    builtin and then its argument prototype would still apply.  */
27445 char $ac_func ();
27446 /* The GNU C library defines this for functions which it implements
27447     to always fail with ENOSYS.  Some functions are actually named
27448     something starting with __ and the normal name is an alias.  */
27449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27450 choke me
27451 #else
27452 char (*f) () = $ac_func;
27453 #endif
27454 #ifdef __cplusplus
27455 }
27456 #endif
27457
27458 int
27459 main ()
27460 {
27461 return f != $ac_func;
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27468   (eval $ac_link) 2>conftest.er1
27469   ac_status=$?
27470   grep -v '^ *+' conftest.er1 >conftest.err
27471   rm -f conftest.er1
27472   cat conftest.err >&5
27473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474   (exit $ac_status); } &&
27475          { ac_try='test -z "$ac_c_werror_flag"
27476                          || test ! -s conftest.err'
27477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27478   (eval $ac_try) 2>&5
27479   ac_status=$?
27480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27481   (exit $ac_status); }; } &&
27482          { ac_try='test -s conftest$ac_exeext'
27483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27484   (eval $ac_try) 2>&5
27485   ac_status=$?
27486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487   (exit $ac_status); }; }; then
27488   eval "$as_ac_var=yes"
27489 else
27490   echo "$as_me: failed program was:" >&5
27491 sed 's/^/| /' conftest.$ac_ext >&5
27492
27493 eval "$as_ac_var=no"
27494 fi
27495 rm -f conftest.err conftest.$ac_objext \
27496       conftest$ac_exeext conftest.$ac_ext
27497 fi
27498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27500 if test `eval echo '${'$as_ac_var'}'` = yes; then
27501   cat >>confdefs.h <<_ACEOF
27502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27503 _ACEOF
27504
27505 fi
27506 done
27507
27508
27509 if test "$ac_cv_func_ctime_r" = no ; then
27510         ol_cv_func_ctime_r_nargs=0
27511 else
27512         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27513 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27514 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27515   echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517   cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523 #include <time.h>
27524 int
27525 main ()
27526 {
27527 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27528   ;
27529   return 0;
27530 }
27531 _ACEOF
27532 rm -f conftest.$ac_objext
27533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27534   (eval $ac_compile) 2>conftest.er1
27535   ac_status=$?
27536   grep -v '^ *+' conftest.er1 >conftest.err
27537   rm -f conftest.er1
27538   cat conftest.err >&5
27539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540   (exit $ac_status); } &&
27541          { ac_try='test -z "$ac_c_werror_flag"
27542                          || test ! -s conftest.err'
27543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544   (eval $ac_try) 2>&5
27545   ac_status=$?
27546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547   (exit $ac_status); }; } &&
27548          { ac_try='test -s conftest.$ac_objext'
27549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550   (eval $ac_try) 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; }; then
27554   ol_cv_func_ctime_r_nargs3=yes
27555 else
27556   echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27558
27559 ol_cv_func_ctime_r_nargs3=no
27560 fi
27561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27562
27563         cat >conftest.$ac_ext <<_ACEOF
27564 /* confdefs.h.  */
27565 _ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h.  */
27569 #include <time.h>
27570 int
27571 main ()
27572 {
27573 time_t ti; char *buffer; ctime_r(&ti,buffer);
27574   ;
27575   return 0;
27576 }
27577 _ACEOF
27578 rm -f conftest.$ac_objext
27579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27580   (eval $ac_compile) 2>conftest.er1
27581   ac_status=$?
27582   grep -v '^ *+' conftest.er1 >conftest.err
27583   rm -f conftest.er1
27584   cat conftest.err >&5
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); } &&
27587          { ac_try='test -z "$ac_c_werror_flag"
27588                          || test ! -s conftest.err'
27589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27590   (eval $ac_try) 2>&5
27591   ac_status=$?
27592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27593   (exit $ac_status); }; } &&
27594          { ac_try='test -s conftest.$ac_objext'
27595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27596   (eval $ac_try) 2>&5
27597   ac_status=$?
27598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599   (exit $ac_status); }; }; then
27600   ol_cv_func_ctime_r_nargs2=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ol_cv_func_ctime_r_nargs2=no
27606 fi
27607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27608
27609         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27610            test $ol_cv_func_ctime_r_nargs2 = no ; then
27611
27612                 ol_cv_func_ctime_r_nargs=3
27613
27614         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27615              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27616
27617                 ol_cv_func_ctime_r_nargs=2
27618
27619         else
27620                 ol_cv_func_ctime_r_nargs=0
27621         fi
27622
27623 fi
27624 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27625 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27626
27627   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27628
27629 cat >>confdefs.h <<_ACEOF
27630 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27631 _ACEOF
27632
27633   fi
27634
27635 fi
27636
27637 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27638         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27639 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27640 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27641   echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27643   cat >conftest.$ac_ext <<_ACEOF
27644 /* confdefs.h.  */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h.  */
27649 #include <sys/types.h>
27650 #include <sys/socket.h>
27651 #include <netinet/in.h>
27652 #include <netdb.h>
27653 #define BUFSIZE (sizeof(struct hostent)+10)
27654 int
27655 main ()
27656 {
27657 struct hostent hent; char buffer[BUFSIZE];
27658                 int bufsize=BUFSIZE;int h_errno;
27659                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27660                         buffer, bufsize, &h_errno);
27661   ;
27662   return 0;
27663 }
27664 _ACEOF
27665 rm -f conftest.$ac_objext
27666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27667   (eval $ac_compile) 2>conftest.er1
27668   ac_status=$?
27669   grep -v '^ *+' conftest.er1 >conftest.err
27670   rm -f conftest.er1
27671   cat conftest.err >&5
27672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673   (exit $ac_status); } &&
27674          { ac_try='test -z "$ac_c_werror_flag"
27675                          || test ! -s conftest.err'
27676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677   (eval $ac_try) 2>&5
27678   ac_status=$?
27679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680   (exit $ac_status); }; } &&
27681          { ac_try='test -s conftest.$ac_objext'
27682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683   (eval $ac_try) 2>&5
27684   ac_status=$?
27685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686   (exit $ac_status); }; }; then
27687   ol_cv_func_gethostbyname_r_nargs5=yes
27688 else
27689   echo "$as_me: failed program was:" >&5
27690 sed 's/^/| /' conftest.$ac_ext >&5
27691
27692 ol_cv_func_gethostbyname_r_nargs5=no
27693 fi
27694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27695
27696         cat >conftest.$ac_ext <<_ACEOF
27697 /* confdefs.h.  */
27698 _ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h.  */
27702 #include <sys/types.h>
27703 #include <sys/socket.h>
27704 #include <netinet/in.h>
27705 #include <netdb.h>
27706 #define BUFSIZE (sizeof(struct hostent)+10)
27707 int
27708 main ()
27709 {
27710 struct hostent hent;struct hostent *rhent;
27711                 char buffer[BUFSIZE];
27712                 int bufsize=BUFSIZE;int h_errno;
27713                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27714                         &rhent, &h_errno);
27715   ;
27716   return 0;
27717 }
27718 _ACEOF
27719 rm -f conftest.$ac_objext
27720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27721   (eval $ac_compile) 2>conftest.er1
27722   ac_status=$?
27723   grep -v '^ *+' conftest.er1 >conftest.err
27724   rm -f conftest.er1
27725   cat conftest.err >&5
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); } &&
27728          { ac_try='test -z "$ac_c_werror_flag"
27729                          || test ! -s conftest.err'
27730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27731   (eval $ac_try) 2>&5
27732   ac_status=$?
27733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734   (exit $ac_status); }; } &&
27735          { ac_try='test -s conftest.$ac_objext'
27736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737   (eval $ac_try) 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; }; then
27741   ol_cv_func_gethostbyname_r_nargs6=yes
27742 else
27743   echo "$as_me: failed program was:" >&5
27744 sed 's/^/| /' conftest.$ac_ext >&5
27745
27746 ol_cv_func_gethostbyname_r_nargs6=no
27747 fi
27748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27749
27750         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27751            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27752
27753                 ol_cv_func_gethostbyname_r_nargs=5
27754
27755         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27756              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27757
27758                 ol_cv_func_gethostbyname_r_nargs=6
27759
27760         else
27761                 ol_cv_func_gethostbyname_r_nargs=0
27762         fi
27763
27764 fi
27765 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27766 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27767   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27768
27769 cat >>confdefs.h <<_ACEOF
27770 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27771 _ACEOF
27772
27773   fi
27774
27775 else
27776         ol_cv_func_gethostbyname_r_nargs=0
27777 fi
27778
27779 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27780         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27781 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27782 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27783   echo $ECHO_N "(cached) $ECHO_C" >&6
27784 else
27785   cat >conftest.$ac_ext <<_ACEOF
27786 /* confdefs.h.  */
27787 _ACEOF
27788 cat confdefs.h >>conftest.$ac_ext
27789 cat >>conftest.$ac_ext <<_ACEOF
27790 /* end confdefs.h.  */
27791 #include <sys/types.h>
27792 #include <sys/socket.h>
27793 #include <netinet/in.h>
27794 #include <netdb.h>
27795 #define BUFSIZE (sizeof(struct hostent)+10)
27796 int
27797 main ()
27798 {
27799 struct hostent hent; char buffer[BUFSIZE];
27800             struct in_addr add;
27801             size_t alen=sizeof(struct in_addr);
27802             int bufsize=BUFSIZE;int h_errno;
27803                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27804                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27805   ;
27806   return 0;
27807 }
27808 _ACEOF
27809 rm -f conftest.$ac_objext
27810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27811   (eval $ac_compile) 2>conftest.er1
27812   ac_status=$?
27813   grep -v '^ *+' conftest.er1 >conftest.err
27814   rm -f conftest.er1
27815   cat conftest.err >&5
27816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817   (exit $ac_status); } &&
27818          { ac_try='test -z "$ac_c_werror_flag"
27819                          || test ! -s conftest.err'
27820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27821   (eval $ac_try) 2>&5
27822   ac_status=$?
27823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27824   (exit $ac_status); }; } &&
27825          { ac_try='test -s conftest.$ac_objext'
27826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27827   (eval $ac_try) 2>&5
27828   ac_status=$?
27829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830   (exit $ac_status); }; }; then
27831   ol_cv_func_gethostbyaddr_r_nargs7=yes
27832 else
27833   echo "$as_me: failed program was:" >&5
27834 sed 's/^/| /' conftest.$ac_ext >&5
27835
27836 ol_cv_func_gethostbyaddr_r_nargs7=no
27837 fi
27838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27839
27840         cat >conftest.$ac_ext <<_ACEOF
27841 /* confdefs.h.  */
27842 _ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h.  */
27846 #include <sys/types.h>
27847 #include <sys/socket.h>
27848 #include <netinet/in.h>
27849 #include <netdb.h>
27850 #define BUFSIZE (sizeof(struct hostent)+10)
27851 int
27852 main ()
27853 {
27854 struct hostent hent;
27855                 struct hostent *rhent; char buffer[BUFSIZE];
27856                 struct in_addr add;
27857                 size_t alen=sizeof(struct in_addr);
27858                 int bufsize=BUFSIZE;int h_errno;
27859                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27860                         alen, AF_INET, &hent, buffer, bufsize,
27861                         &rhent, &h_errno);
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 rm -f conftest.$ac_objext
27867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27868   (eval $ac_compile) 2>conftest.er1
27869   ac_status=$?
27870   grep -v '^ *+' conftest.er1 >conftest.err
27871   rm -f conftest.er1
27872   cat conftest.err >&5
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); } &&
27875          { ac_try='test -z "$ac_c_werror_flag"
27876                          || test ! -s conftest.err'
27877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27878   (eval $ac_try) 2>&5
27879   ac_status=$?
27880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881   (exit $ac_status); }; } &&
27882          { ac_try='test -s conftest.$ac_objext'
27883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884   (eval $ac_try) 2>&5
27885   ac_status=$?
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); }; }; then
27888   ol_cv_func_gethostbyaddr_r_nargs8=yes
27889 else
27890   echo "$as_me: failed program was:" >&5
27891 sed 's/^/| /' conftest.$ac_ext >&5
27892
27893 ol_cv_func_gethostbyaddr_r_nargs8=no
27894 fi
27895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27896
27897         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27898            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27899
27900                 ol_cv_func_gethostbyaddr_r_nargs=7
27901
27902         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27903              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27904
27905                 ol_cv_func_gethostbyaddr_r_nargs=8
27906
27907         else
27908                 ol_cv_func_gethostbyaddr_r_nargs=0
27909         fi
27910
27911 fi
27912 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27913 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27914   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27915
27916 cat >>confdefs.h <<_ACEOF
27917 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27918 _ACEOF
27919
27920   fi
27921
27922 else
27923         ol_cv_func_gethostbyaddr_r_nargs=0
27924 fi
27925
27926 ol_link_bdb=no
27927
27928 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27929         ol_cv_berkeley_db=no
27930
27931 for ac_header in db.h
27932 do
27933 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27935   echo "$as_me:$LINENO: checking for $ac_header" >&5
27936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27938   echo $ECHO_N "(cached) $ECHO_C" >&6
27939 fi
27940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27941 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27942 else
27943   # Is the header compilable?
27944 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27945 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27946 cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952 $ac_includes_default
27953 #include <$ac_header>
27954 _ACEOF
27955 rm -f conftest.$ac_objext
27956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27957   (eval $ac_compile) 2>conftest.er1
27958   ac_status=$?
27959   grep -v '^ *+' conftest.er1 >conftest.err
27960   rm -f conftest.er1
27961   cat conftest.err >&5
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); } &&
27964          { ac_try='test -z "$ac_c_werror_flag"
27965                          || test ! -s conftest.err'
27966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967   (eval $ac_try) 2>&5
27968   ac_status=$?
27969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970   (exit $ac_status); }; } &&
27971          { ac_try='test -s conftest.$ac_objext'
27972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973   (eval $ac_try) 2>&5
27974   ac_status=$?
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); }; }; then
27977   ac_header_compiler=yes
27978 else
27979   echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27981
27982 ac_header_compiler=no
27983 fi
27984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27986 echo "${ECHO_T}$ac_header_compiler" >&6
27987
27988 # Is the header present?
27989 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27991 cat >conftest.$ac_ext <<_ACEOF
27992 /* confdefs.h.  */
27993 _ACEOF
27994 cat confdefs.h >>conftest.$ac_ext
27995 cat >>conftest.$ac_ext <<_ACEOF
27996 /* end confdefs.h.  */
27997 #include <$ac_header>
27998 _ACEOF
27999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28001   ac_status=$?
28002   grep -v '^ *+' conftest.er1 >conftest.err
28003   rm -f conftest.er1
28004   cat conftest.err >&5
28005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006   (exit $ac_status); } >/dev/null; then
28007   if test -s conftest.err; then
28008     ac_cpp_err=$ac_c_preproc_warn_flag
28009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28010   else
28011     ac_cpp_err=
28012   fi
28013 else
28014   ac_cpp_err=yes
28015 fi
28016 if test -z "$ac_cpp_err"; then
28017   ac_header_preproc=yes
28018 else
28019   echo "$as_me: failed program was:" >&5
28020 sed 's/^/| /' conftest.$ac_ext >&5
28021
28022   ac_header_preproc=no
28023 fi
28024 rm -f conftest.err conftest.$ac_ext
28025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28026 echo "${ECHO_T}$ac_header_preproc" >&6
28027
28028 # So?  What about this header?
28029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28030   yes:no: )
28031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28035     ac_header_preproc=yes
28036     ;;
28037   no:yes:* )
28038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28050     (
28051       cat <<\_ASBOX
28052 ## --------------------------------------------- ##
28053 ## Report this to <http://www.openldap.org/its/> ##
28054 ## --------------------------------------------- ##
28055 _ASBOX
28056     ) |
28057       sed "s/^/$as_me: WARNING:     /" >&2
28058     ;;
28059 esac
28060 echo "$as_me:$LINENO: checking for $ac_header" >&5
28061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28063   echo $ECHO_N "(cached) $ECHO_C" >&6
28064 else
28065   eval "$as_ac_Header=\$ac_header_preproc"
28066 fi
28067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28068 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28069
28070 fi
28071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28072   cat >>confdefs.h <<_ACEOF
28073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28074 _ACEOF
28075
28076 fi
28077
28078 done
28079
28080 if test $ac_cv_header_db_h = yes; then
28081         ol_cv_lib_db=no
28082
28083 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
28084 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
28085 if test "${ol_cv_bdb_major+set}" = set; then
28086   echo $ECHO_N "(cached) $ECHO_C" >&6
28087 else
28088
28089         ol_cv_bdb_major=0
28090         if test $ol_cv_bdb_major = 0 ; then
28091                 cat >conftest.$ac_ext <<_ACEOF
28092 /* confdefs.h.  */
28093 _ACEOF
28094 cat confdefs.h >>conftest.$ac_ext
28095 cat >>conftest.$ac_ext <<_ACEOF
28096 /* end confdefs.h.  */
28097
28098 #include <db.h>
28099 #ifndef DB_VERSION_MAJOR
28100 #       define DB_VERSION_MAJOR 1
28101 #endif
28102 #if DB_VERSION_MAJOR == 4
28103 __db_version
28104 #endif
28105
28106 _ACEOF
28107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28108   $EGREP "__db_version" >/dev/null 2>&1; then
28109   ol_cv_bdb_major=4
28110 else
28111   :
28112 fi
28113 rm -f conftest*
28114
28115         fi
28116         if test $ol_cv_bdb_major = 0 ; then
28117                 cat >conftest.$ac_ext <<_ACEOF
28118 /* confdefs.h.  */
28119 _ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h.  */
28123
28124 #include <db.h>
28125 #ifndef DB_VERSION_MAJOR
28126 #       define DB_VERSION_MAJOR 1
28127 #endif
28128 #if DB_VERSION_MAJOR == 3
28129 __db_version
28130 #endif
28131
28132 _ACEOF
28133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28134   $EGREP "__db_version" >/dev/null 2>&1; then
28135   ol_cv_bdb_major=3
28136 else
28137   :
28138 fi
28139 rm -f conftest*
28140
28141         fi
28142         if test $ol_cv_bdb_major = 0 ; then
28143                 cat >conftest.$ac_ext <<_ACEOF
28144 /* confdefs.h.  */
28145 _ACEOF
28146 cat confdefs.h >>conftest.$ac_ext
28147 cat >>conftest.$ac_ext <<_ACEOF
28148 /* end confdefs.h.  */
28149
28150 #include <db.h>
28151 #ifndef DB_VERSION_MAJOR
28152 #       define DB_VERSION_MAJOR 1
28153 #endif
28154 #if DB_VERSION_MAJOR == 2
28155 __db_version
28156 #endif
28157
28158 _ACEOF
28159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28160   $EGREP "__db_version" >/dev/null 2>&1; then
28161   ol_cv_bdb_major=2
28162 else
28163   :
28164 fi
28165 rm -f conftest*
28166
28167         fi
28168         if test $ol_cv_bdb_major = 0 ; then
28169                 cat >conftest.$ac_ext <<_ACEOF
28170 /* confdefs.h.  */
28171 _ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h.  */
28175
28176 #include <db.h>
28177 #ifndef DB_VERSION_MAJOR
28178 #       define DB_VERSION_MAJOR 1
28179 #endif
28180 #if DB_VERSION_MAJOR == 1
28181 __db_version
28182 #endif
28183
28184 _ACEOF
28185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28186   $EGREP "__db_version" >/dev/null 2>&1; then
28187   ol_cv_bdb_major=1
28188 else
28189   :
28190 fi
28191 rm -f conftest*
28192
28193         fi
28194
28195         if test $ol_cv_bdb_major = 0 ; then
28196                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28197 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28198    { (exit 1); exit 1; }; }
28199         fi
28200
28201 fi
28202 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28203 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28204
28205 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28206 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28207 if test "${ol_cv_bdb_minor+set}" = set; then
28208   echo $ECHO_N "(cached) $ECHO_C" >&6
28209 else
28210
28211         ol_cv_bdb_minor=0
28212         if test $ol_cv_bdb_minor = 0 ; then
28213                 cat >conftest.$ac_ext <<_ACEOF
28214 /* confdefs.h.  */
28215 _ACEOF
28216 cat confdefs.h >>conftest.$ac_ext
28217 cat >>conftest.$ac_ext <<_ACEOF
28218 /* end confdefs.h.  */
28219
28220 #include <db.h>
28221 #ifndef DB_VERSION_MINOR
28222 #       define DB_VERSION_MINOR 0
28223 #endif
28224 #if DB_VERSION_MINOR == 9
28225 __db_version
28226 #endif
28227
28228 _ACEOF
28229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28230   $EGREP "__db_version" >/dev/null 2>&1; then
28231   ol_cv_bdb_minor=9
28232 else
28233   :
28234 fi
28235 rm -f conftest*
28236
28237         fi
28238         if test $ol_cv_bdb_minor = 0 ; then
28239                 cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245
28246 #include <db.h>
28247 #ifndef DB_VERSION_MINOR
28248 #       define DB_VERSION_MINOR 0
28249 #endif
28250 #if DB_VERSION_MINOR == 8
28251 __db_version
28252 #endif
28253
28254 _ACEOF
28255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28256   $EGREP "__db_version" >/dev/null 2>&1; then
28257   ol_cv_bdb_minor=8
28258 else
28259   :
28260 fi
28261 rm -f conftest*
28262
28263         fi
28264         if test $ol_cv_bdb_minor = 0 ; then
28265                 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h.  */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h.  */
28271
28272 #include <db.h>
28273 #ifndef DB_VERSION_MINOR
28274 #       define DB_VERSION_MINOR 0
28275 #endif
28276 #if DB_VERSION_MINOR == 7
28277 __db_version
28278 #endif
28279
28280 _ACEOF
28281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28282   $EGREP "__db_version" >/dev/null 2>&1; then
28283   ol_cv_bdb_minor=7
28284 else
28285   :
28286 fi
28287 rm -f conftest*
28288
28289         fi
28290         if test $ol_cv_bdb_minor = 0 ; then
28291                 cat >conftest.$ac_ext <<_ACEOF
28292 /* confdefs.h.  */
28293 _ACEOF
28294 cat confdefs.h >>conftest.$ac_ext
28295 cat >>conftest.$ac_ext <<_ACEOF
28296 /* end confdefs.h.  */
28297
28298 #include <db.h>
28299 #ifndef DB_VERSION_MINOR
28300 #       define DB_VERSION_MINOR 0
28301 #endif
28302 #if DB_VERSION_MINOR == 6
28303 __db_version
28304 #endif
28305
28306 _ACEOF
28307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28308   $EGREP "__db_version" >/dev/null 2>&1; then
28309   ol_cv_bdb_minor=6
28310 else
28311   :
28312 fi
28313 rm -f conftest*
28314
28315         fi
28316         if test $ol_cv_bdb_minor = 0 ; then
28317                 cat >conftest.$ac_ext <<_ACEOF
28318 /* confdefs.h.  */
28319 _ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h.  */
28323
28324 #include <db.h>
28325 #ifndef DB_VERSION_MINOR
28326 #       define DB_VERSION_MINOR 0
28327 #endif
28328 #if DB_VERSION_MINOR == 5
28329 __db_version
28330 #endif
28331
28332 _ACEOF
28333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28334   $EGREP "__db_version" >/dev/null 2>&1; then
28335   ol_cv_bdb_minor=5
28336 else
28337   :
28338 fi
28339 rm -f conftest*
28340
28341         fi
28342         if test $ol_cv_bdb_minor = 0 ; then
28343                 cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h.  */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h.  */
28349
28350 #include <db.h>
28351 #ifndef DB_VERSION_MINOR
28352 #       define DB_VERSION_MINOR 0
28353 #endif
28354 #if DB_VERSION_MINOR == 4
28355 __db_version
28356 #endif
28357
28358 _ACEOF
28359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28360   $EGREP "__db_version" >/dev/null 2>&1; then
28361   ol_cv_bdb_minor=4
28362 else
28363   :
28364 fi
28365 rm -f conftest*
28366
28367         fi
28368         if test $ol_cv_bdb_minor = 0 ; then
28369                 cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h.  */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h.  */
28375
28376 #include <db.h>
28377 #ifndef DB_VERSION_MINOR
28378 #       define DB_VERSION_MINOR 0
28379 #endif
28380 #if DB_VERSION_MINOR == 3
28381 __db_version
28382 #endif
28383
28384 _ACEOF
28385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28386   $EGREP "__db_version" >/dev/null 2>&1; then
28387   ol_cv_bdb_minor=3
28388 else
28389   :
28390 fi
28391 rm -f conftest*
28392
28393         fi
28394         if test $ol_cv_bdb_minor = 0 ; then
28395                 cat >conftest.$ac_ext <<_ACEOF
28396 /* confdefs.h.  */
28397 _ACEOF
28398 cat confdefs.h >>conftest.$ac_ext
28399 cat >>conftest.$ac_ext <<_ACEOF
28400 /* end confdefs.h.  */
28401
28402 #include <db.h>
28403 #ifndef DB_VERSION_MINOR
28404 #       define DB_VERSION_MINOR 0
28405 #endif
28406 #if DB_VERSION_MINOR == 2
28407 __db_version
28408 #endif
28409
28410 _ACEOF
28411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28412   $EGREP "__db_version" >/dev/null 2>&1; then
28413   ol_cv_bdb_minor=2
28414 else
28415   :
28416 fi
28417 rm -f conftest*
28418
28419         fi
28420         if test $ol_cv_bdb_minor = 0 ; then
28421                 cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427
28428 #include <db.h>
28429 #ifndef DB_VERSION_MINOR
28430 #       define DB_VERSION_MINOR 0
28431 #endif
28432 #if DB_VERSION_MINOR == 1
28433 __db_version
28434 #endif
28435
28436 _ACEOF
28437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28438   $EGREP "__db_version" >/dev/null 2>&1; then
28439   ol_cv_bdb_minor=1
28440 else
28441   :
28442 fi
28443 rm -f conftest*
28444
28445         fi
28446
28447 fi
28448 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28449 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28450
28451 if test $ol_cv_bdb_major = 4 ; then
28452         if test $ol_cv_bdb_minor = 4 ; then
28453                 if test $ol_cv_lib_db = no ; then
28454         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28455 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28456 if test "${ol_cv_db_db44+set}" = set; then
28457   echo $ECHO_N "(cached) $ECHO_C" >&6
28458 else
28459
28460         ol_DB_LIB=-ldb44
28461         ol_LIBS=$LIBS
28462         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28463
28464         cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470
28471 #ifdef HAVE_DB_185_H
28472 # include <db_185.h>
28473 #else
28474 # include <db.h>
28475 #endif
28476
28477 #ifndef DB_VERSION_MAJOR
28478 # define DB_VERSION_MAJOR 1
28479 #endif
28480
28481 #ifndef NULL
28482 #define NULL ((void*)0)
28483 #endif
28484
28485 int
28486 main ()
28487 {
28488
28489 #if DB_VERSION_MAJOR > 1
28490         {
28491                 char *version;
28492                 int major, minor, patch;
28493
28494                 version = db_version( &major, &minor, &patch );
28495
28496                 if( major != DB_VERSION_MAJOR ||
28497                         minor < DB_VERSION_MINOR )
28498                 {
28499                         printf("Berkeley DB version mismatch\n"
28500                                 "\theader: %s\n\tlibrary: %s\n",
28501                                 DB_VERSION_STRING, version);
28502                         return 1;
28503                 }
28504         }
28505 #endif
28506
28507 #if DB_VERSION_MAJOR > 2
28508         db_env_create( NULL, 0 );
28509 #elif DB_VERSION_MAJOR > 1
28510         db_appexit( NULL );
28511 #else
28512         (void) dbopen( NULL, 0, 0, 0, NULL);
28513 #endif
28514
28515   ;
28516   return 0;
28517 }
28518 _ACEOF
28519 rm -f conftest.$ac_objext conftest$ac_exeext
28520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28521   (eval $ac_link) 2>conftest.er1
28522   ac_status=$?
28523   grep -v '^ *+' conftest.er1 >conftest.err
28524   rm -f conftest.er1
28525   cat conftest.err >&5
28526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527   (exit $ac_status); } &&
28528          { ac_try='test -z "$ac_c_werror_flag"
28529                          || test ! -s conftest.err'
28530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531   (eval $ac_try) 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; } &&
28535          { ac_try='test -s conftest$ac_exeext'
28536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28537   (eval $ac_try) 2>&5
28538   ac_status=$?
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); }; }; then
28541   ol_cv_db_db44=yes
28542 else
28543   echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28545
28546 ol_cv_db_db44=no
28547 fi
28548 rm -f conftest.err conftest.$ac_objext \
28549       conftest$ac_exeext conftest.$ac_ext
28550
28551         LIBS="$ol_LIBS"
28552
28553 fi
28554 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28555 echo "${ECHO_T}$ol_cv_db_db44" >&6
28556
28557         if test $ol_cv_db_db44 = yes ; then
28558                 ol_cv_lib_db=-ldb44
28559         fi
28560 fi
28561
28562                 if test $ol_cv_lib_db = no ; then
28563         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28564 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28565 if test "${ol_cv_db_db_44+set}" = set; then
28566   echo $ECHO_N "(cached) $ECHO_C" >&6
28567 else
28568
28569         ol_DB_LIB=-ldb-44
28570         ol_LIBS=$LIBS
28571         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28572
28573         cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579
28580 #ifdef HAVE_DB_185_H
28581 # include <db_185.h>
28582 #else
28583 # include <db.h>
28584 #endif
28585
28586 #ifndef DB_VERSION_MAJOR
28587 # define DB_VERSION_MAJOR 1
28588 #endif
28589
28590 #ifndef NULL
28591 #define NULL ((void*)0)
28592 #endif
28593
28594 int
28595 main ()
28596 {
28597
28598 #if DB_VERSION_MAJOR > 1
28599         {
28600                 char *version;
28601                 int major, minor, patch;
28602
28603                 version = db_version( &major, &minor, &patch );
28604
28605                 if( major != DB_VERSION_MAJOR ||
28606                         minor < DB_VERSION_MINOR )
28607                 {
28608                         printf("Berkeley DB version mismatch\n"
28609                                 "\theader: %s\n\tlibrary: %s\n",
28610                                 DB_VERSION_STRING, version);
28611                         return 1;
28612                 }
28613         }
28614 #endif
28615
28616 #if DB_VERSION_MAJOR > 2
28617         db_env_create( NULL, 0 );
28618 #elif DB_VERSION_MAJOR > 1
28619         db_appexit( NULL );
28620 #else
28621         (void) dbopen( NULL, 0, 0, 0, NULL);
28622 #endif
28623
28624   ;
28625   return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630   (eval $ac_link) 2>conftest.er1
28631   ac_status=$?
28632   grep -v '^ *+' conftest.er1 >conftest.err
28633   rm -f conftest.er1
28634   cat conftest.err >&5
28635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636   (exit $ac_status); } &&
28637          { ac_try='test -z "$ac_c_werror_flag"
28638                          || test ! -s conftest.err'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; } &&
28644          { ac_try='test -s conftest$ac_exeext'
28645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646   (eval $ac_try) 2>&5
28647   ac_status=$?
28648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649   (exit $ac_status); }; }; then
28650   ol_cv_db_db_44=yes
28651 else
28652   echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 ol_cv_db_db_44=no
28656 fi
28657 rm -f conftest.err conftest.$ac_objext \
28658       conftest$ac_exeext conftest.$ac_ext
28659
28660         LIBS="$ol_LIBS"
28661
28662 fi
28663 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28664 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28665
28666         if test $ol_cv_db_db_44 = yes ; then
28667                 ol_cv_lib_db=-ldb-44
28668         fi
28669 fi
28670
28671                 if test $ol_cv_lib_db = no ; then
28672         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28673 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28674 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28675   echo $ECHO_N "(cached) $ECHO_C" >&6
28676 else
28677
28678         ol_DB_LIB=-ldb-4.4
28679         ol_LIBS=$LIBS
28680         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28681
28682         cat >conftest.$ac_ext <<_ACEOF
28683 /* confdefs.h.  */
28684 _ACEOF
28685 cat confdefs.h >>conftest.$ac_ext
28686 cat >>conftest.$ac_ext <<_ACEOF
28687 /* end confdefs.h.  */
28688
28689 #ifdef HAVE_DB_185_H
28690 # include <db_185.h>
28691 #else
28692 # include <db.h>
28693 #endif
28694
28695 #ifndef DB_VERSION_MAJOR
28696 # define DB_VERSION_MAJOR 1
28697 #endif
28698
28699 #ifndef NULL
28700 #define NULL ((void*)0)
28701 #endif
28702
28703 int
28704 main ()
28705 {
28706
28707 #if DB_VERSION_MAJOR > 1
28708         {
28709                 char *version;
28710                 int major, minor, patch;
28711
28712                 version = db_version( &major, &minor, &patch );
28713
28714                 if( major != DB_VERSION_MAJOR ||
28715                         minor < DB_VERSION_MINOR )
28716                 {
28717                         printf("Berkeley DB version mismatch\n"
28718                                 "\theader: %s\n\tlibrary: %s\n",
28719                                 DB_VERSION_STRING, version);
28720                         return 1;
28721                 }
28722         }
28723 #endif
28724
28725 #if DB_VERSION_MAJOR > 2
28726         db_env_create( NULL, 0 );
28727 #elif DB_VERSION_MAJOR > 1
28728         db_appexit( NULL );
28729 #else
28730         (void) dbopen( NULL, 0, 0, 0, NULL);
28731 #endif
28732
28733   ;
28734   return 0;
28735 }
28736 _ACEOF
28737 rm -f conftest.$ac_objext conftest$ac_exeext
28738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28739   (eval $ac_link) 2>conftest.er1
28740   ac_status=$?
28741   grep -v '^ *+' conftest.er1 >conftest.err
28742   rm -f conftest.er1
28743   cat conftest.err >&5
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); } &&
28746          { ac_try='test -z "$ac_c_werror_flag"
28747                          || test ! -s conftest.err'
28748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28749   (eval $ac_try) 2>&5
28750   ac_status=$?
28751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); }; } &&
28753          { ac_try='test -s conftest$ac_exeext'
28754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28755   (eval $ac_try) 2>&5
28756   ac_status=$?
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); }; }; then
28759   ol_cv_db_db_4_dot_4=yes
28760 else
28761   echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28763
28764 ol_cv_db_db_4_dot_4=no
28765 fi
28766 rm -f conftest.err conftest.$ac_objext \
28767       conftest$ac_exeext conftest.$ac_ext
28768
28769         LIBS="$ol_LIBS"
28770
28771 fi
28772 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28773 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28774
28775         if test $ol_cv_db_db_4_dot_4 = yes ; then
28776                 ol_cv_lib_db=-ldb-4.4
28777         fi
28778 fi
28779
28780                 if test $ol_cv_lib_db = no ; then
28781         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28782 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28783 if test "${ol_cv_db_db_4_4+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786
28787         ol_DB_LIB=-ldb-4-4
28788         ol_LIBS=$LIBS
28789         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28790
28791         cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797
28798 #ifdef HAVE_DB_185_H
28799 # include <db_185.h>
28800 #else
28801 # include <db.h>
28802 #endif
28803
28804 #ifndef DB_VERSION_MAJOR
28805 # define DB_VERSION_MAJOR 1
28806 #endif
28807
28808 #ifndef NULL
28809 #define NULL ((void*)0)
28810 #endif
28811
28812 int
28813 main ()
28814 {
28815
28816 #if DB_VERSION_MAJOR > 1
28817         {
28818                 char *version;
28819                 int major, minor, patch;
28820
28821                 version = db_version( &major, &minor, &patch );
28822
28823                 if( major != DB_VERSION_MAJOR ||
28824                         minor < DB_VERSION_MINOR )
28825                 {
28826                         printf("Berkeley DB version mismatch\n"
28827                                 "\theader: %s\n\tlibrary: %s\n",
28828                                 DB_VERSION_STRING, version);
28829                         return 1;
28830                 }
28831         }
28832 #endif
28833
28834 #if DB_VERSION_MAJOR > 2
28835         db_env_create( NULL, 0 );
28836 #elif DB_VERSION_MAJOR > 1
28837         db_appexit( NULL );
28838 #else
28839         (void) dbopen( NULL, 0, 0, 0, NULL);
28840 #endif
28841
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848   (eval $ac_link) 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } &&
28855          { ac_try='test -z "$ac_c_werror_flag"
28856                          || test ! -s conftest.err'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; } &&
28862          { ac_try='test -s conftest$ac_exeext'
28863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864   (eval $ac_try) 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); }; }; then
28868   ol_cv_db_db_4_4=yes
28869 else
28870   echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28872
28873 ol_cv_db_db_4_4=no
28874 fi
28875 rm -f conftest.err conftest.$ac_objext \
28876       conftest$ac_exeext conftest.$ac_ext
28877
28878         LIBS="$ol_LIBS"
28879
28880 fi
28881 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28882 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28883
28884         if test $ol_cv_db_db_4_4 = yes ; then
28885                 ol_cv_lib_db=-ldb-4-4
28886         fi
28887 fi
28888
28889         elif test $ol_cv_bdb_minor = 3 ; then
28890                 if test $ol_cv_lib_db = no ; then
28891         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28892 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28893 if test "${ol_cv_db_db43+set}" = set; then
28894   echo $ECHO_N "(cached) $ECHO_C" >&6
28895 else
28896
28897         ol_DB_LIB=-ldb43
28898         ol_LIBS=$LIBS
28899         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28900
28901         cat >conftest.$ac_ext <<_ACEOF
28902 /* confdefs.h.  */
28903 _ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h.  */
28907
28908 #ifdef HAVE_DB_185_H
28909 # include <db_185.h>
28910 #else
28911 # include <db.h>
28912 #endif
28913
28914 #ifndef DB_VERSION_MAJOR
28915 # define DB_VERSION_MAJOR 1
28916 #endif
28917
28918 #ifndef NULL
28919 #define NULL ((void*)0)
28920 #endif
28921
28922 int
28923 main ()
28924 {
28925
28926 #if DB_VERSION_MAJOR > 1
28927         {
28928                 char *version;
28929                 int major, minor, patch;
28930
28931                 version = db_version( &major, &minor, &patch );
28932
28933                 if( major != DB_VERSION_MAJOR ||
28934                         minor < DB_VERSION_MINOR )
28935                 {
28936                         printf("Berkeley DB version mismatch\n"
28937                                 "\theader: %s\n\tlibrary: %s\n",
28938                                 DB_VERSION_STRING, version);
28939                         return 1;
28940                 }
28941         }
28942 #endif
28943
28944 #if DB_VERSION_MAJOR > 2
28945         db_env_create( NULL, 0 );
28946 #elif DB_VERSION_MAJOR > 1
28947         db_appexit( NULL );
28948 #else
28949         (void) dbopen( NULL, 0, 0, 0, NULL);
28950 #endif
28951
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958   (eval $ac_link) 2>conftest.er1
28959   ac_status=$?
28960   grep -v '^ *+' conftest.er1 >conftest.err
28961   rm -f conftest.er1
28962   cat conftest.err >&5
28963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964   (exit $ac_status); } &&
28965          { ac_try='test -z "$ac_c_werror_flag"
28966                          || test ! -s conftest.err'
28967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968   (eval $ac_try) 2>&5
28969   ac_status=$?
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); }; } &&
28972          { ac_try='test -s conftest$ac_exeext'
28973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974   (eval $ac_try) 2>&5
28975   ac_status=$?
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); }; }; then
28978   ol_cv_db_db43=yes
28979 else
28980   echo "$as_me: failed program was:" >&5
28981 sed 's/^/| /' conftest.$ac_ext >&5
28982
28983 ol_cv_db_db43=no
28984 fi
28985 rm -f conftest.err conftest.$ac_objext \
28986       conftest$ac_exeext conftest.$ac_ext
28987
28988         LIBS="$ol_LIBS"
28989
28990 fi
28991 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28992 echo "${ECHO_T}$ol_cv_db_db43" >&6
28993
28994         if test $ol_cv_db_db43 = yes ; then
28995                 ol_cv_lib_db=-ldb43
28996         fi
28997 fi
28998
28999                 if test $ol_cv_lib_db = no ; then
29000         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
29001 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
29002 if test "${ol_cv_db_db_43+set}" = set; then
29003   echo $ECHO_N "(cached) $ECHO_C" >&6
29004 else
29005
29006         ol_DB_LIB=-ldb-43
29007         ol_LIBS=$LIBS
29008         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29009
29010         cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h.  */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h.  */
29016
29017 #ifdef HAVE_DB_185_H
29018 # include <db_185.h>
29019 #else
29020 # include <db.h>
29021 #endif
29022
29023 #ifndef DB_VERSION_MAJOR
29024 # define DB_VERSION_MAJOR 1
29025 #endif
29026
29027 #ifndef NULL
29028 #define NULL ((void*)0)
29029 #endif
29030
29031 int
29032 main ()
29033 {
29034
29035 #if DB_VERSION_MAJOR > 1
29036         {
29037                 char *version;
29038                 int major, minor, patch;
29039
29040                 version = db_version( &major, &minor, &patch );
29041
29042                 if( major != DB_VERSION_MAJOR ||
29043                         minor < DB_VERSION_MINOR )
29044                 {
29045                         printf("Berkeley DB version mismatch\n"
29046                                 "\theader: %s\n\tlibrary: %s\n",
29047                                 DB_VERSION_STRING, version);
29048                         return 1;
29049                 }
29050         }
29051 #endif
29052
29053 #if DB_VERSION_MAJOR > 2
29054         db_env_create( NULL, 0 );
29055 #elif DB_VERSION_MAJOR > 1
29056         db_appexit( NULL );
29057 #else
29058         (void) dbopen( NULL, 0, 0, 0, NULL);
29059 #endif
29060
29061   ;
29062   return 0;
29063 }
29064 _ACEOF
29065 rm -f conftest.$ac_objext conftest$ac_exeext
29066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29067   (eval $ac_link) 2>conftest.er1
29068   ac_status=$?
29069   grep -v '^ *+' conftest.er1 >conftest.err
29070   rm -f conftest.er1
29071   cat conftest.err >&5
29072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29073   (exit $ac_status); } &&
29074          { ac_try='test -z "$ac_c_werror_flag"
29075                          || test ! -s conftest.err'
29076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29077   (eval $ac_try) 2>&5
29078   ac_status=$?
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); }; } &&
29081          { ac_try='test -s conftest$ac_exeext'
29082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29083   (eval $ac_try) 2>&5
29084   ac_status=$?
29085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086   (exit $ac_status); }; }; then
29087   ol_cv_db_db_43=yes
29088 else
29089   echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092 ol_cv_db_db_43=no
29093 fi
29094 rm -f conftest.err conftest.$ac_objext \
29095       conftest$ac_exeext conftest.$ac_ext
29096
29097         LIBS="$ol_LIBS"
29098
29099 fi
29100 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29101 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29102
29103         if test $ol_cv_db_db_43 = yes ; then
29104                 ol_cv_lib_db=-ldb-43
29105         fi
29106 fi
29107
29108                 if test $ol_cv_lib_db = no ; then
29109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29110 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29111 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29112   echo $ECHO_N "(cached) $ECHO_C" >&6
29113 else
29114
29115         ol_DB_LIB=-ldb-4.3
29116         ol_LIBS=$LIBS
29117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29118
29119         cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 #ifdef HAVE_DB_185_H
29127 # include <db_185.h>
29128 #else
29129 # include <db.h>
29130 #endif
29131
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29134 #endif
29135
29136 #ifndef NULL
29137 #define NULL ((void*)0)
29138 #endif
29139
29140 int
29141 main ()
29142 {
29143
29144 #if DB_VERSION_MAJOR > 1
29145         {
29146                 char *version;
29147                 int major, minor, patch;
29148
29149                 version = db_version( &major, &minor, &patch );
29150
29151                 if( major != DB_VERSION_MAJOR ||
29152                         minor < DB_VERSION_MINOR )
29153                 {
29154                         printf("Berkeley DB version mismatch\n"
29155                                 "\theader: %s\n\tlibrary: %s\n",
29156                                 DB_VERSION_STRING, version);
29157                         return 1;
29158                 }
29159         }
29160 #endif
29161
29162 #if DB_VERSION_MAJOR > 2
29163         db_env_create( NULL, 0 );
29164 #elif DB_VERSION_MAJOR > 1
29165         db_appexit( NULL );
29166 #else
29167         (void) dbopen( NULL, 0, 0, 0, NULL);
29168 #endif
29169
29170   ;
29171   return 0;
29172 }
29173 _ACEOF
29174 rm -f conftest.$ac_objext conftest$ac_exeext
29175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29176   (eval $ac_link) 2>conftest.er1
29177   ac_status=$?
29178   grep -v '^ *+' conftest.er1 >conftest.err
29179   rm -f conftest.er1
29180   cat conftest.err >&5
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); } &&
29183          { ac_try='test -z "$ac_c_werror_flag"
29184                          || test ! -s conftest.err'
29185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186   (eval $ac_try) 2>&5
29187   ac_status=$?
29188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189   (exit $ac_status); }; } &&
29190          { ac_try='test -s conftest$ac_exeext'
29191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192   (eval $ac_try) 2>&5
29193   ac_status=$?
29194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195   (exit $ac_status); }; }; then
29196   ol_cv_db_db_4_dot_3=yes
29197 else
29198   echo "$as_me: failed program was:" >&5
29199 sed 's/^/| /' conftest.$ac_ext >&5
29200
29201 ol_cv_db_db_4_dot_3=no
29202 fi
29203 rm -f conftest.err conftest.$ac_objext \
29204       conftest$ac_exeext conftest.$ac_ext
29205
29206         LIBS="$ol_LIBS"
29207
29208 fi
29209 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29210 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29211
29212         if test $ol_cv_db_db_4_dot_3 = yes ; then
29213                 ol_cv_lib_db=-ldb-4.3
29214         fi
29215 fi
29216
29217                 if test $ol_cv_lib_db = no ; then
29218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29220 if test "${ol_cv_db_db_4_3+set}" = set; then
29221   echo $ECHO_N "(cached) $ECHO_C" >&6
29222 else
29223
29224         ol_DB_LIB=-ldb-4-3
29225         ol_LIBS=$LIBS
29226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29227
29228         cat >conftest.$ac_ext <<_ACEOF
29229 /* confdefs.h.  */
29230 _ACEOF
29231 cat confdefs.h >>conftest.$ac_ext
29232 cat >>conftest.$ac_ext <<_ACEOF
29233 /* end confdefs.h.  */
29234
29235 #ifdef HAVE_DB_185_H
29236 # include <db_185.h>
29237 #else
29238 # include <db.h>
29239 #endif
29240
29241 #ifndef DB_VERSION_MAJOR
29242 # define DB_VERSION_MAJOR 1
29243 #endif
29244
29245 #ifndef NULL
29246 #define NULL ((void*)0)
29247 #endif
29248
29249 int
29250 main ()
29251 {
29252
29253 #if DB_VERSION_MAJOR > 1
29254         {
29255                 char *version;
29256                 int major, minor, patch;
29257
29258                 version = db_version( &major, &minor, &patch );
29259
29260                 if( major != DB_VERSION_MAJOR ||
29261                         minor < DB_VERSION_MINOR )
29262                 {
29263                         printf("Berkeley DB version mismatch\n"
29264                                 "\theader: %s\n\tlibrary: %s\n",
29265                                 DB_VERSION_STRING, version);
29266                         return 1;
29267                 }
29268         }
29269 #endif
29270
29271 #if DB_VERSION_MAJOR > 2
29272         db_env_create( NULL, 0 );
29273 #elif DB_VERSION_MAJOR > 1
29274         db_appexit( NULL );
29275 #else
29276         (void) dbopen( NULL, 0, 0, 0, NULL);
29277 #endif
29278
29279   ;
29280   return 0;
29281 }
29282 _ACEOF
29283 rm -f conftest.$ac_objext conftest$ac_exeext
29284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29285   (eval $ac_link) 2>conftest.er1
29286   ac_status=$?
29287   grep -v '^ *+' conftest.er1 >conftest.err
29288   rm -f conftest.er1
29289   cat conftest.err >&5
29290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291   (exit $ac_status); } &&
29292          { ac_try='test -z "$ac_c_werror_flag"
29293                          || test ! -s conftest.err'
29294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29295   (eval $ac_try) 2>&5
29296   ac_status=$?
29297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298   (exit $ac_status); }; } &&
29299          { ac_try='test -s conftest$ac_exeext'
29300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29301   (eval $ac_try) 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; }; then
29305   ol_cv_db_db_4_3=yes
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310 ol_cv_db_db_4_3=no
29311 fi
29312 rm -f conftest.err conftest.$ac_objext \
29313       conftest$ac_exeext conftest.$ac_ext
29314
29315         LIBS="$ol_LIBS"
29316
29317 fi
29318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29319 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29320
29321         if test $ol_cv_db_db_4_3 = yes ; then
29322                 ol_cv_lib_db=-ldb-4-3
29323         fi
29324 fi
29325
29326         elif test $ol_cv_bdb_minor = 2 ; then
29327                 if test $ol_cv_lib_db = no ; then
29328         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29329 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29330 if test "${ol_cv_db_db42+set}" = set; then
29331   echo $ECHO_N "(cached) $ECHO_C" >&6
29332 else
29333
29334         ol_DB_LIB=-ldb42
29335         ol_LIBS=$LIBS
29336         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29337
29338         cat >conftest.$ac_ext <<_ACEOF
29339 /* confdefs.h.  */
29340 _ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h.  */
29344
29345 #ifdef HAVE_DB_185_H
29346 # include <db_185.h>
29347 #else
29348 # include <db.h>
29349 #endif
29350
29351 #ifndef DB_VERSION_MAJOR
29352 # define DB_VERSION_MAJOR 1
29353 #endif
29354
29355 #ifndef NULL
29356 #define NULL ((void*)0)
29357 #endif
29358
29359 int
29360 main ()
29361 {
29362
29363 #if DB_VERSION_MAJOR > 1
29364         {
29365                 char *version;
29366                 int major, minor, patch;
29367
29368                 version = db_version( &major, &minor, &patch );
29369
29370                 if( major != DB_VERSION_MAJOR ||
29371                         minor < DB_VERSION_MINOR )
29372                 {
29373                         printf("Berkeley DB version mismatch\n"
29374                                 "\theader: %s\n\tlibrary: %s\n",
29375                                 DB_VERSION_STRING, version);
29376                         return 1;
29377                 }
29378         }
29379 #endif
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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395   (eval $ac_link) 2>conftest.er1
29396   ac_status=$?
29397   grep -v '^ *+' conftest.er1 >conftest.err
29398   rm -f conftest.er1
29399   cat conftest.err >&5
29400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401   (exit $ac_status); } &&
29402          { ac_try='test -z "$ac_c_werror_flag"
29403                          || test ! -s conftest.err'
29404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405   (eval $ac_try) 2>&5
29406   ac_status=$?
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); }; } &&
29409          { ac_try='test -s conftest$ac_exeext'
29410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29411   (eval $ac_try) 2>&5
29412   ac_status=$?
29413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414   (exit $ac_status); }; }; then
29415   ol_cv_db_db42=yes
29416 else
29417   echo "$as_me: failed program was:" >&5
29418 sed 's/^/| /' conftest.$ac_ext >&5
29419
29420 ol_cv_db_db42=no
29421 fi
29422 rm -f conftest.err conftest.$ac_objext \
29423       conftest$ac_exeext conftest.$ac_ext
29424
29425         LIBS="$ol_LIBS"
29426
29427 fi
29428 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29429 echo "${ECHO_T}$ol_cv_db_db42" >&6
29430
29431         if test $ol_cv_db_db42 = yes ; then
29432                 ol_cv_lib_db=-ldb42
29433         fi
29434 fi
29435
29436                 if test $ol_cv_lib_db = no ; then
29437         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29438 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29439 if test "${ol_cv_db_db_42+set}" = set; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442
29443         ol_DB_LIB=-ldb-42
29444         ol_LIBS=$LIBS
29445         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29446
29447         cat >conftest.$ac_ext <<_ACEOF
29448 /* confdefs.h.  */
29449 _ACEOF
29450 cat confdefs.h >>conftest.$ac_ext
29451 cat >>conftest.$ac_ext <<_ACEOF
29452 /* end confdefs.h.  */
29453
29454 #ifdef HAVE_DB_185_H
29455 # include <db_185.h>
29456 #else
29457 # include <db.h>
29458 #endif
29459
29460 #ifndef DB_VERSION_MAJOR
29461 # define DB_VERSION_MAJOR 1
29462 #endif
29463
29464 #ifndef NULL
29465 #define NULL ((void*)0)
29466 #endif
29467
29468 int
29469 main ()
29470 {
29471
29472 #if DB_VERSION_MAJOR > 1
29473         {
29474                 char *version;
29475                 int major, minor, patch;
29476
29477                 version = db_version( &major, &minor, &patch );
29478
29479                 if( major != DB_VERSION_MAJOR ||
29480                         minor < DB_VERSION_MINOR )
29481                 {
29482                         printf("Berkeley DB version mismatch\n"
29483                                 "\theader: %s\n\tlibrary: %s\n",
29484                                 DB_VERSION_STRING, version);
29485                         return 1;
29486                 }
29487         }
29488 #endif
29489
29490 #if DB_VERSION_MAJOR > 2
29491         db_env_create( NULL, 0 );
29492 #elif DB_VERSION_MAJOR > 1
29493         db_appexit( NULL );
29494 #else
29495         (void) dbopen( NULL, 0, 0, 0, NULL);
29496 #endif
29497
29498   ;
29499   return 0;
29500 }
29501 _ACEOF
29502 rm -f conftest.$ac_objext conftest$ac_exeext
29503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29504   (eval $ac_link) 2>conftest.er1
29505   ac_status=$?
29506   grep -v '^ *+' conftest.er1 >conftest.err
29507   rm -f conftest.er1
29508   cat conftest.err >&5
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); } &&
29511          { ac_try='test -z "$ac_c_werror_flag"
29512                          || test ! -s conftest.err'
29513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514   (eval $ac_try) 2>&5
29515   ac_status=$?
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); }; } &&
29518          { ac_try='test -s conftest$ac_exeext'
29519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29520   (eval $ac_try) 2>&5
29521   ac_status=$?
29522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29523   (exit $ac_status); }; }; then
29524   ol_cv_db_db_42=yes
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529 ol_cv_db_db_42=no
29530 fi
29531 rm -f conftest.err conftest.$ac_objext \
29532       conftest$ac_exeext conftest.$ac_ext
29533
29534         LIBS="$ol_LIBS"
29535
29536 fi
29537 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29538 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29539
29540         if test $ol_cv_db_db_42 = yes ; then
29541                 ol_cv_lib_db=-ldb-42
29542         fi
29543 fi
29544
29545                 if test $ol_cv_lib_db = no ; then
29546         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29547 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29548 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29549   echo $ECHO_N "(cached) $ECHO_C" >&6
29550 else
29551
29552         ol_DB_LIB=-ldb-4.2
29553         ol_LIBS=$LIBS
29554         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29555
29556         cat >conftest.$ac_ext <<_ACEOF
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562
29563 #ifdef HAVE_DB_185_H
29564 # include <db_185.h>
29565 #else
29566 # include <db.h>
29567 #endif
29568
29569 #ifndef DB_VERSION_MAJOR
29570 # define DB_VERSION_MAJOR 1
29571 #endif
29572
29573 #ifndef NULL
29574 #define NULL ((void*)0)
29575 #endif
29576
29577 int
29578 main ()
29579 {
29580
29581 #if DB_VERSION_MAJOR > 1
29582         {
29583                 char *version;
29584                 int major, minor, patch;
29585
29586                 version = db_version( &major, &minor, &patch );
29587
29588                 if( major != DB_VERSION_MAJOR ||
29589                         minor < DB_VERSION_MINOR )
29590                 {
29591                         printf("Berkeley DB version mismatch\n"
29592                                 "\theader: %s\n\tlibrary: %s\n",
29593                                 DB_VERSION_STRING, version);
29594                         return 1;
29595                 }
29596         }
29597 #endif
29598
29599 #if DB_VERSION_MAJOR > 2
29600         db_env_create( NULL, 0 );
29601 #elif DB_VERSION_MAJOR > 1
29602         db_appexit( NULL );
29603 #else
29604         (void) dbopen( NULL, 0, 0, 0, NULL);
29605 #endif
29606
29607   ;
29608   return 0;
29609 }
29610 _ACEOF
29611 rm -f conftest.$ac_objext conftest$ac_exeext
29612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29613   (eval $ac_link) 2>conftest.er1
29614   ac_status=$?
29615   grep -v '^ *+' conftest.er1 >conftest.err
29616   rm -f conftest.er1
29617   cat conftest.err >&5
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); } &&
29620          { ac_try='test -z "$ac_c_werror_flag"
29621                          || test ! -s conftest.err'
29622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29623   (eval $ac_try) 2>&5
29624   ac_status=$?
29625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626   (exit $ac_status); }; } &&
29627          { ac_try='test -s conftest$ac_exeext'
29628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29629   (eval $ac_try) 2>&5
29630   ac_status=$?
29631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632   (exit $ac_status); }; }; then
29633   ol_cv_db_db_4_dot_2=yes
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638 ol_cv_db_db_4_dot_2=no
29639 fi
29640 rm -f conftest.err conftest.$ac_objext \
29641       conftest$ac_exeext conftest.$ac_ext
29642
29643         LIBS="$ol_LIBS"
29644
29645 fi
29646 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29647 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29648
29649         if test $ol_cv_db_db_4_dot_2 = yes ; then
29650                 ol_cv_lib_db=-ldb-4.2
29651         fi
29652 fi
29653
29654                 if test $ol_cv_lib_db = no ; then
29655         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29656 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29657 if test "${ol_cv_db_db_4_2+set}" = set; then
29658   echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660
29661         ol_DB_LIB=-ldb-4-2
29662         ol_LIBS=$LIBS
29663         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29664
29665         cat >conftest.$ac_ext <<_ACEOF
29666 /* confdefs.h.  */
29667 _ACEOF
29668 cat confdefs.h >>conftest.$ac_ext
29669 cat >>conftest.$ac_ext <<_ACEOF
29670 /* end confdefs.h.  */
29671
29672 #ifdef HAVE_DB_185_H
29673 # include <db_185.h>
29674 #else
29675 # include <db.h>
29676 #endif
29677
29678 #ifndef DB_VERSION_MAJOR
29679 # define DB_VERSION_MAJOR 1
29680 #endif
29681
29682 #ifndef NULL
29683 #define NULL ((void*)0)
29684 #endif
29685
29686 int
29687 main ()
29688 {
29689
29690 #if DB_VERSION_MAJOR > 1
29691         {
29692                 char *version;
29693                 int major, minor, patch;
29694
29695                 version = db_version( &major, &minor, &patch );
29696
29697                 if( major != DB_VERSION_MAJOR ||
29698                         minor < DB_VERSION_MINOR )
29699                 {
29700                         printf("Berkeley DB version mismatch\n"
29701                                 "\theader: %s\n\tlibrary: %s\n",
29702                                 DB_VERSION_STRING, version);
29703                         return 1;
29704                 }
29705         }
29706 #endif
29707
29708 #if DB_VERSION_MAJOR > 2
29709         db_env_create( NULL, 0 );
29710 #elif DB_VERSION_MAJOR > 1
29711         db_appexit( NULL );
29712 #else
29713         (void) dbopen( NULL, 0, 0, 0, NULL);
29714 #endif
29715
29716   ;
29717   return 0;
29718 }
29719 _ACEOF
29720 rm -f conftest.$ac_objext conftest$ac_exeext
29721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29722   (eval $ac_link) 2>conftest.er1
29723   ac_status=$?
29724   grep -v '^ *+' conftest.er1 >conftest.err
29725   rm -f conftest.er1
29726   cat conftest.err >&5
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); } &&
29729          { ac_try='test -z "$ac_c_werror_flag"
29730                          || test ! -s conftest.err'
29731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29732   (eval $ac_try) 2>&5
29733   ac_status=$?
29734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735   (exit $ac_status); }; } &&
29736          { ac_try='test -s conftest$ac_exeext'
29737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29738   (eval $ac_try) 2>&5
29739   ac_status=$?
29740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); }; }; then
29742   ol_cv_db_db_4_2=yes
29743 else
29744   echo "$as_me: failed program was:" >&5
29745 sed 's/^/| /' conftest.$ac_ext >&5
29746
29747 ol_cv_db_db_4_2=no
29748 fi
29749 rm -f conftest.err conftest.$ac_objext \
29750       conftest$ac_exeext conftest.$ac_ext
29751
29752         LIBS="$ol_LIBS"
29753
29754 fi
29755 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29756 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29757
29758         if test $ol_cv_db_db_4_2 = yes ; then
29759                 ol_cv_lib_db=-ldb-4-2
29760         fi
29761 fi
29762
29763         elif test $ol_cv_bdb_minor = 1 ; then
29764                 if test $ol_cv_lib_db = no ; then
29765         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29766 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29767 if test "${ol_cv_db_db41+set}" = set; then
29768   echo $ECHO_N "(cached) $ECHO_C" >&6
29769 else
29770
29771         ol_DB_LIB=-ldb41
29772         ol_LIBS=$LIBS
29773         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29774
29775         cat >conftest.$ac_ext <<_ACEOF
29776 /* confdefs.h.  */
29777 _ACEOF
29778 cat confdefs.h >>conftest.$ac_ext
29779 cat >>conftest.$ac_ext <<_ACEOF
29780 /* end confdefs.h.  */
29781
29782 #ifdef HAVE_DB_185_H
29783 # include <db_185.h>
29784 #else
29785 # include <db.h>
29786 #endif
29787
29788 #ifndef DB_VERSION_MAJOR
29789 # define DB_VERSION_MAJOR 1
29790 #endif
29791
29792 #ifndef NULL
29793 #define NULL ((void*)0)
29794 #endif
29795
29796 int
29797 main ()
29798 {
29799
29800 #if DB_VERSION_MAJOR > 1
29801         {
29802                 char *version;
29803                 int major, minor, patch;
29804
29805                 version = db_version( &major, &minor, &patch );
29806
29807                 if( major != DB_VERSION_MAJOR ||
29808                         minor < DB_VERSION_MINOR )
29809                 {
29810                         printf("Berkeley DB version mismatch\n"
29811                                 "\theader: %s\n\tlibrary: %s\n",
29812                                 DB_VERSION_STRING, version);
29813                         return 1;
29814                 }
29815         }
29816 #endif
29817
29818 #if DB_VERSION_MAJOR > 2
29819         db_env_create( NULL, 0 );
29820 #elif DB_VERSION_MAJOR > 1
29821         db_appexit( NULL );
29822 #else
29823         (void) dbopen( NULL, 0, 0, 0, NULL);
29824 #endif
29825
29826   ;
29827   return 0;
29828 }
29829 _ACEOF
29830 rm -f conftest.$ac_objext conftest$ac_exeext
29831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29832   (eval $ac_link) 2>conftest.er1
29833   ac_status=$?
29834   grep -v '^ *+' conftest.er1 >conftest.err
29835   rm -f conftest.er1
29836   cat conftest.err >&5
29837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838   (exit $ac_status); } &&
29839          { ac_try='test -z "$ac_c_werror_flag"
29840                          || test ! -s conftest.err'
29841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29842   (eval $ac_try) 2>&5
29843   ac_status=$?
29844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845   (exit $ac_status); }; } &&
29846          { ac_try='test -s conftest$ac_exeext'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; }; then
29852   ol_cv_db_db41=yes
29853 else
29854   echo "$as_me: failed program was:" >&5
29855 sed 's/^/| /' conftest.$ac_ext >&5
29856
29857 ol_cv_db_db41=no
29858 fi
29859 rm -f conftest.err conftest.$ac_objext \
29860       conftest$ac_exeext conftest.$ac_ext
29861
29862         LIBS="$ol_LIBS"
29863
29864 fi
29865 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29866 echo "${ECHO_T}$ol_cv_db_db41" >&6
29867
29868         if test $ol_cv_db_db41 = yes ; then
29869                 ol_cv_lib_db=-ldb41
29870         fi
29871 fi
29872
29873                 if test $ol_cv_lib_db = no ; then
29874         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29875 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29876 if test "${ol_cv_db_db_41+set}" = set; then
29877   echo $ECHO_N "(cached) $ECHO_C" >&6
29878 else
29879
29880         ol_DB_LIB=-ldb-41
29881         ol_LIBS=$LIBS
29882         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29883
29884         cat >conftest.$ac_ext <<_ACEOF
29885 /* confdefs.h.  */
29886 _ACEOF
29887 cat confdefs.h >>conftest.$ac_ext
29888 cat >>conftest.$ac_ext <<_ACEOF
29889 /* end confdefs.h.  */
29890
29891 #ifdef HAVE_DB_185_H
29892 # include <db_185.h>
29893 #else
29894 # include <db.h>
29895 #endif
29896
29897 #ifndef DB_VERSION_MAJOR
29898 # define DB_VERSION_MAJOR 1
29899 #endif
29900
29901 #ifndef NULL
29902 #define NULL ((void*)0)
29903 #endif
29904
29905 int
29906 main ()
29907 {
29908
29909 #if DB_VERSION_MAJOR > 1
29910         {
29911                 char *version;
29912                 int major, minor, patch;
29913
29914                 version = db_version( &major, &minor, &patch );
29915
29916                 if( major != DB_VERSION_MAJOR ||
29917                         minor < DB_VERSION_MINOR )
29918                 {
29919                         printf("Berkeley DB version mismatch\n"
29920                                 "\theader: %s\n\tlibrary: %s\n",
29921                                 DB_VERSION_STRING, version);
29922                         return 1;
29923                 }
29924         }
29925 #endif
29926
29927 #if DB_VERSION_MAJOR > 2
29928         db_env_create( NULL, 0 );
29929 #elif DB_VERSION_MAJOR > 1
29930         db_appexit( NULL );
29931 #else
29932         (void) dbopen( NULL, 0, 0, 0, NULL);
29933 #endif
29934
29935   ;
29936   return 0;
29937 }
29938 _ACEOF
29939 rm -f conftest.$ac_objext conftest$ac_exeext
29940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29941   (eval $ac_link) 2>conftest.er1
29942   ac_status=$?
29943   grep -v '^ *+' conftest.er1 >conftest.err
29944   rm -f conftest.er1
29945   cat conftest.err >&5
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); } &&
29948          { ac_try='test -z "$ac_c_werror_flag"
29949                          || test ! -s conftest.err'
29950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951   (eval $ac_try) 2>&5
29952   ac_status=$?
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); }; } &&
29955          { ac_try='test -s conftest$ac_exeext'
29956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957   (eval $ac_try) 2>&5
29958   ac_status=$?
29959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960   (exit $ac_status); }; }; then
29961   ol_cv_db_db_41=yes
29962 else
29963   echo "$as_me: failed program was:" >&5
29964 sed 's/^/| /' conftest.$ac_ext >&5
29965
29966 ol_cv_db_db_41=no
29967 fi
29968 rm -f conftest.err conftest.$ac_objext \
29969       conftest$ac_exeext conftest.$ac_ext
29970
29971         LIBS="$ol_LIBS"
29972
29973 fi
29974 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29975 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29976
29977         if test $ol_cv_db_db_41 = yes ; then
29978                 ol_cv_lib_db=-ldb-41
29979         fi
29980 fi
29981
29982                 if test $ol_cv_lib_db = no ; then
29983         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29984 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29985 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29986   echo $ECHO_N "(cached) $ECHO_C" >&6
29987 else
29988
29989         ol_DB_LIB=-ldb-4.1
29990         ol_LIBS=$LIBS
29991         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29992
29993         cat >conftest.$ac_ext <<_ACEOF
29994 /* confdefs.h.  */
29995 _ACEOF
29996 cat confdefs.h >>conftest.$ac_ext
29997 cat >>conftest.$ac_ext <<_ACEOF
29998 /* end confdefs.h.  */
29999
30000 #ifdef HAVE_DB_185_H
30001 # include <db_185.h>
30002 #else
30003 # include <db.h>
30004 #endif
30005
30006 #ifndef DB_VERSION_MAJOR
30007 # define DB_VERSION_MAJOR 1
30008 #endif
30009
30010 #ifndef NULL
30011 #define NULL ((void*)0)
30012 #endif
30013
30014 int
30015 main ()
30016 {
30017
30018 #if DB_VERSION_MAJOR > 1
30019         {
30020                 char *version;
30021                 int major, minor, patch;
30022
30023                 version = db_version( &major, &minor, &patch );
30024
30025                 if( major != DB_VERSION_MAJOR ||
30026                         minor < DB_VERSION_MINOR )
30027                 {
30028                         printf("Berkeley DB version mismatch\n"
30029                                 "\theader: %s\n\tlibrary: %s\n",
30030                                 DB_VERSION_STRING, version);
30031                         return 1;
30032                 }
30033         }
30034 #endif
30035
30036 #if DB_VERSION_MAJOR > 2
30037         db_env_create( NULL, 0 );
30038 #elif DB_VERSION_MAJOR > 1
30039         db_appexit( NULL );
30040 #else
30041         (void) dbopen( NULL, 0, 0, 0, NULL);
30042 #endif
30043
30044   ;
30045   return 0;
30046 }
30047 _ACEOF
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30050   (eval $ac_link) 2>conftest.er1
30051   ac_status=$?
30052   grep -v '^ *+' conftest.er1 >conftest.err
30053   rm -f conftest.er1
30054   cat conftest.err >&5
30055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056   (exit $ac_status); } &&
30057          { ac_try='test -z "$ac_c_werror_flag"
30058                          || test ! -s conftest.err'
30059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060   (eval $ac_try) 2>&5
30061   ac_status=$?
30062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063   (exit $ac_status); }; } &&
30064          { ac_try='test -s conftest$ac_exeext'
30065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066   (eval $ac_try) 2>&5
30067   ac_status=$?
30068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069   (exit $ac_status); }; }; then
30070   ol_cv_db_db_4_dot_1=yes
30071 else
30072   echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.$ac_ext >&5
30074
30075 ol_cv_db_db_4_dot_1=no
30076 fi
30077 rm -f conftest.err conftest.$ac_objext \
30078       conftest$ac_exeext conftest.$ac_ext
30079
30080         LIBS="$ol_LIBS"
30081
30082 fi
30083 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
30084 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
30085
30086         if test $ol_cv_db_db_4_dot_1 = yes ; then
30087                 ol_cv_lib_db=-ldb-4.1
30088         fi
30089 fi
30090
30091                 if test $ol_cv_lib_db = no ; then
30092         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30093 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30094 if test "${ol_cv_db_db_4_1+set}" = set; then
30095   echo $ECHO_N "(cached) $ECHO_C" >&6
30096 else
30097
30098         ol_DB_LIB=-ldb-4-1
30099         ol_LIBS=$LIBS
30100         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30101
30102         cat >conftest.$ac_ext <<_ACEOF
30103 /* confdefs.h.  */
30104 _ACEOF
30105 cat confdefs.h >>conftest.$ac_ext
30106 cat >>conftest.$ac_ext <<_ACEOF
30107 /* end confdefs.h.  */
30108
30109 #ifdef HAVE_DB_185_H
30110 # include <db_185.h>
30111 #else
30112 # include <db.h>
30113 #endif
30114
30115 #ifndef DB_VERSION_MAJOR
30116 # define DB_VERSION_MAJOR 1
30117 #endif
30118
30119 #ifndef NULL
30120 #define NULL ((void*)0)
30121 #endif
30122
30123 int
30124 main ()
30125 {
30126
30127 #if DB_VERSION_MAJOR > 1
30128         {
30129                 char *version;
30130                 int major, minor, patch;
30131
30132                 version = db_version( &major, &minor, &patch );
30133
30134                 if( major != DB_VERSION_MAJOR ||
30135                         minor < DB_VERSION_MINOR )
30136                 {
30137                         printf("Berkeley DB version mismatch\n"
30138                                 "\theader: %s\n\tlibrary: %s\n",
30139                                 DB_VERSION_STRING, version);
30140                         return 1;
30141                 }
30142         }
30143 #endif
30144
30145 #if DB_VERSION_MAJOR > 2
30146         db_env_create( NULL, 0 );
30147 #elif DB_VERSION_MAJOR > 1
30148         db_appexit( NULL );
30149 #else
30150         (void) dbopen( NULL, 0, 0, 0, NULL);
30151 #endif
30152
30153   ;
30154   return 0;
30155 }
30156 _ACEOF
30157 rm -f conftest.$ac_objext conftest$ac_exeext
30158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30159   (eval $ac_link) 2>conftest.er1
30160   ac_status=$?
30161   grep -v '^ *+' conftest.er1 >conftest.err
30162   rm -f conftest.er1
30163   cat conftest.err >&5
30164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165   (exit $ac_status); } &&
30166          { ac_try='test -z "$ac_c_werror_flag"
30167                          || test ! -s conftest.err'
30168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30169   (eval $ac_try) 2>&5
30170   ac_status=$?
30171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172   (exit $ac_status); }; } &&
30173          { ac_try='test -s conftest$ac_exeext'
30174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30175   (eval $ac_try) 2>&5
30176   ac_status=$?
30177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178   (exit $ac_status); }; }; then
30179   ol_cv_db_db_4_1=yes
30180 else
30181   echo "$as_me: failed program was:" >&5
30182 sed 's/^/| /' conftest.$ac_ext >&5
30183
30184 ol_cv_db_db_4_1=no
30185 fi
30186 rm -f conftest.err conftest.$ac_objext \
30187       conftest$ac_exeext conftest.$ac_ext
30188
30189         LIBS="$ol_LIBS"
30190
30191 fi
30192 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30193 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30194
30195         if test $ol_cv_db_db_4_1 = yes ; then
30196                 ol_cv_lib_db=-ldb-4-1
30197         fi
30198 fi
30199
30200         fi
30201         if test $ol_cv_lib_db = no ; then
30202         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30203 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30204 if test "${ol_cv_db_db_4+set}" = set; then
30205   echo $ECHO_N "(cached) $ECHO_C" >&6
30206 else
30207
30208         ol_DB_LIB=-ldb-4
30209         ol_LIBS=$LIBS
30210         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30211
30212         cat >conftest.$ac_ext <<_ACEOF
30213 /* confdefs.h.  */
30214 _ACEOF
30215 cat confdefs.h >>conftest.$ac_ext
30216 cat >>conftest.$ac_ext <<_ACEOF
30217 /* end confdefs.h.  */
30218
30219 #ifdef HAVE_DB_185_H
30220 # include <db_185.h>
30221 #else
30222 # include <db.h>
30223 #endif
30224
30225 #ifndef DB_VERSION_MAJOR
30226 # define DB_VERSION_MAJOR 1
30227 #endif
30228
30229 #ifndef NULL
30230 #define NULL ((void*)0)
30231 #endif
30232
30233 int
30234 main ()
30235 {
30236
30237 #if DB_VERSION_MAJOR > 1
30238         {
30239                 char *version;
30240                 int major, minor, patch;
30241
30242                 version = db_version( &major, &minor, &patch );
30243
30244                 if( major != DB_VERSION_MAJOR ||
30245                         minor < DB_VERSION_MINOR )
30246                 {
30247                         printf("Berkeley DB version mismatch\n"
30248                                 "\theader: %s\n\tlibrary: %s\n",
30249                                 DB_VERSION_STRING, version);
30250                         return 1;
30251                 }
30252         }
30253 #endif
30254
30255 #if DB_VERSION_MAJOR > 2
30256         db_env_create( NULL, 0 );
30257 #elif DB_VERSION_MAJOR > 1
30258         db_appexit( NULL );
30259 #else
30260         (void) dbopen( NULL, 0, 0, 0, NULL);
30261 #endif
30262
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 rm -f conftest.$ac_objext conftest$ac_exeext
30268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30269   (eval $ac_link) 2>conftest.er1
30270   ac_status=$?
30271   grep -v '^ *+' conftest.er1 >conftest.err
30272   rm -f conftest.er1
30273   cat conftest.err >&5
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); } &&
30276          { ac_try='test -z "$ac_c_werror_flag"
30277                          || test ! -s conftest.err'
30278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30279   (eval $ac_try) 2>&5
30280   ac_status=$?
30281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282   (exit $ac_status); }; } &&
30283          { ac_try='test -s conftest$ac_exeext'
30284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30285   (eval $ac_try) 2>&5
30286   ac_status=$?
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); }; }; then
30289   ol_cv_db_db_4=yes
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294 ol_cv_db_db_4=no
30295 fi
30296 rm -f conftest.err conftest.$ac_objext \
30297       conftest$ac_exeext conftest.$ac_ext
30298
30299         LIBS="$ol_LIBS"
30300
30301 fi
30302 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30303 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30304
30305         if test $ol_cv_db_db_4 = yes ; then
30306                 ol_cv_lib_db=-ldb-4
30307         fi
30308 fi
30309
30310         if test $ol_cv_lib_db = no ; then
30311         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30312 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30313 if test "${ol_cv_db_db4+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316
30317         ol_DB_LIB=-ldb4
30318         ol_LIBS=$LIBS
30319         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30320
30321         cat >conftest.$ac_ext <<_ACEOF
30322 /* confdefs.h.  */
30323 _ACEOF
30324 cat confdefs.h >>conftest.$ac_ext
30325 cat >>conftest.$ac_ext <<_ACEOF
30326 /* end confdefs.h.  */
30327
30328 #ifdef HAVE_DB_185_H
30329 # include <db_185.h>
30330 #else
30331 # include <db.h>
30332 #endif
30333
30334 #ifndef DB_VERSION_MAJOR
30335 # define DB_VERSION_MAJOR 1
30336 #endif
30337
30338 #ifndef NULL
30339 #define NULL ((void*)0)
30340 #endif
30341
30342 int
30343 main ()
30344 {
30345
30346 #if DB_VERSION_MAJOR > 1
30347         {
30348                 char *version;
30349                 int major, minor, patch;
30350
30351                 version = db_version( &major, &minor, &patch );
30352
30353                 if( major != DB_VERSION_MAJOR ||
30354                         minor < DB_VERSION_MINOR )
30355                 {
30356                         printf("Berkeley DB version mismatch\n"
30357                                 "\theader: %s\n\tlibrary: %s\n",
30358                                 DB_VERSION_STRING, version);
30359                         return 1;
30360                 }
30361         }
30362 #endif
30363
30364 #if DB_VERSION_MAJOR > 2
30365         db_env_create( NULL, 0 );
30366 #elif DB_VERSION_MAJOR > 1
30367         db_appexit( NULL );
30368 #else
30369         (void) dbopen( NULL, 0, 0, 0, NULL);
30370 #endif
30371
30372   ;
30373   return 0;
30374 }
30375 _ACEOF
30376 rm -f conftest.$ac_objext conftest$ac_exeext
30377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30378   (eval $ac_link) 2>conftest.er1
30379   ac_status=$?
30380   grep -v '^ *+' conftest.er1 >conftest.err
30381   rm -f conftest.er1
30382   cat conftest.err >&5
30383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384   (exit $ac_status); } &&
30385          { ac_try='test -z "$ac_c_werror_flag"
30386                          || test ! -s conftest.err'
30387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388   (eval $ac_try) 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; } &&
30392          { ac_try='test -s conftest$ac_exeext'
30393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394   (eval $ac_try) 2>&5
30395   ac_status=$?
30396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397   (exit $ac_status); }; }; then
30398   ol_cv_db_db4=yes
30399 else
30400   echo "$as_me: failed program was:" >&5
30401 sed 's/^/| /' conftest.$ac_ext >&5
30402
30403 ol_cv_db_db4=no
30404 fi
30405 rm -f conftest.err conftest.$ac_objext \
30406       conftest$ac_exeext conftest.$ac_ext
30407
30408         LIBS="$ol_LIBS"
30409
30410 fi
30411 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30412 echo "${ECHO_T}$ol_cv_db_db4" >&6
30413
30414         if test $ol_cv_db_db4 = yes ; then
30415                 ol_cv_lib_db=-ldb4
30416         fi
30417 fi
30418
30419         if test $ol_cv_lib_db = no ; then
30420         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30421 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30422 if test "${ol_cv_db_db+set}" = set; then
30423   echo $ECHO_N "(cached) $ECHO_C" >&6
30424 else
30425
30426         ol_DB_LIB=-ldb
30427         ol_LIBS=$LIBS
30428         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30429
30430         cat >conftest.$ac_ext <<_ACEOF
30431 /* confdefs.h.  */
30432 _ACEOF
30433 cat confdefs.h >>conftest.$ac_ext
30434 cat >>conftest.$ac_ext <<_ACEOF
30435 /* end confdefs.h.  */
30436
30437 #ifdef HAVE_DB_185_H
30438 # include <db_185.h>
30439 #else
30440 # include <db.h>
30441 #endif
30442
30443 #ifndef DB_VERSION_MAJOR
30444 # define DB_VERSION_MAJOR 1
30445 #endif
30446
30447 #ifndef NULL
30448 #define NULL ((void*)0)
30449 #endif
30450
30451 int
30452 main ()
30453 {
30454
30455 #if DB_VERSION_MAJOR > 1
30456         {
30457                 char *version;
30458                 int major, minor, patch;
30459
30460                 version = db_version( &major, &minor, &patch );
30461
30462                 if( major != DB_VERSION_MAJOR ||
30463                         minor < DB_VERSION_MINOR )
30464                 {
30465                         printf("Berkeley DB version mismatch\n"
30466                                 "\theader: %s\n\tlibrary: %s\n",
30467                                 DB_VERSION_STRING, version);
30468                         return 1;
30469                 }
30470         }
30471 #endif
30472
30473 #if DB_VERSION_MAJOR > 2
30474         db_env_create( NULL, 0 );
30475 #elif DB_VERSION_MAJOR > 1
30476         db_appexit( NULL );
30477 #else
30478         (void) dbopen( NULL, 0, 0, 0, NULL);
30479 #endif
30480
30481   ;
30482   return 0;
30483 }
30484 _ACEOF
30485 rm -f conftest.$ac_objext conftest$ac_exeext
30486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30487   (eval $ac_link) 2>conftest.er1
30488   ac_status=$?
30489   grep -v '^ *+' conftest.er1 >conftest.err
30490   rm -f conftest.er1
30491   cat conftest.err >&5
30492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493   (exit $ac_status); } &&
30494          { ac_try='test -z "$ac_c_werror_flag"
30495                          || test ! -s conftest.err'
30496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30497   (eval $ac_try) 2>&5
30498   ac_status=$?
30499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500   (exit $ac_status); }; } &&
30501          { ac_try='test -s conftest$ac_exeext'
30502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30503   (eval $ac_try) 2>&5
30504   ac_status=$?
30505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506   (exit $ac_status); }; }; then
30507   ol_cv_db_db=yes
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512 ol_cv_db_db=no
30513 fi
30514 rm -f conftest.err conftest.$ac_objext \
30515       conftest$ac_exeext conftest.$ac_ext
30516
30517         LIBS="$ol_LIBS"
30518
30519 fi
30520 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30521 echo "${ECHO_T}$ol_cv_db_db" >&6
30522
30523         if test $ol_cv_db_db = yes ; then
30524                 ol_cv_lib_db=-ldb
30525         fi
30526 fi
30527
30528
30529 elif test $ol_cv_bdb_major = 3 ; then
30530         if test $ol_cv_lib_db = no ; then
30531         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30532 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30533 if test "${ol_cv_db_db3+set}" = set; then
30534   echo $ECHO_N "(cached) $ECHO_C" >&6
30535 else
30536
30537         ol_DB_LIB=-ldb3
30538         ol_LIBS=$LIBS
30539         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30540
30541         cat >conftest.$ac_ext <<_ACEOF
30542 /* confdefs.h.  */
30543 _ACEOF
30544 cat confdefs.h >>conftest.$ac_ext
30545 cat >>conftest.$ac_ext <<_ACEOF
30546 /* end confdefs.h.  */
30547
30548 #ifdef HAVE_DB_185_H
30549 # include <db_185.h>
30550 #else
30551 # include <db.h>
30552 #endif
30553
30554 #ifndef DB_VERSION_MAJOR
30555 # define DB_VERSION_MAJOR 1
30556 #endif
30557
30558 #ifndef NULL
30559 #define NULL ((void*)0)
30560 #endif
30561
30562 int
30563 main ()
30564 {
30565
30566 #if DB_VERSION_MAJOR > 1
30567         {
30568                 char *version;
30569                 int major, minor, patch;
30570
30571                 version = db_version( &major, &minor, &patch );
30572
30573                 if( major != DB_VERSION_MAJOR ||
30574                         minor < DB_VERSION_MINOR )
30575                 {
30576                         printf("Berkeley DB version mismatch\n"
30577                                 "\theader: %s\n\tlibrary: %s\n",
30578                                 DB_VERSION_STRING, version);
30579                         return 1;
30580                 }
30581         }
30582 #endif
30583
30584 #if DB_VERSION_MAJOR > 2
30585         db_env_create( NULL, 0 );
30586 #elif DB_VERSION_MAJOR > 1
30587         db_appexit( NULL );
30588 #else
30589         (void) dbopen( NULL, 0, 0, 0, NULL);
30590 #endif
30591
30592   ;
30593   return 0;
30594 }
30595 _ACEOF
30596 rm -f conftest.$ac_objext conftest$ac_exeext
30597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30598   (eval $ac_link) 2>conftest.er1
30599   ac_status=$?
30600   grep -v '^ *+' conftest.er1 >conftest.err
30601   rm -f conftest.er1
30602   cat conftest.err >&5
30603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604   (exit $ac_status); } &&
30605          { ac_try='test -z "$ac_c_werror_flag"
30606                          || test ! -s conftest.err'
30607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30608   (eval $ac_try) 2>&5
30609   ac_status=$?
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); }; } &&
30612          { ac_try='test -s conftest$ac_exeext'
30613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30614   (eval $ac_try) 2>&5
30615   ac_status=$?
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); }; }; then
30618   ol_cv_db_db3=yes
30619 else
30620   echo "$as_me: failed program was:" >&5
30621 sed 's/^/| /' conftest.$ac_ext >&5
30622
30623 ol_cv_db_db3=no
30624 fi
30625 rm -f conftest.err conftest.$ac_objext \
30626       conftest$ac_exeext conftest.$ac_ext
30627
30628         LIBS="$ol_LIBS"
30629
30630 fi
30631 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30632 echo "${ECHO_T}$ol_cv_db_db3" >&6
30633
30634         if test $ol_cv_db_db3 = yes ; then
30635                 ol_cv_lib_db=-ldb3
30636         fi
30637 fi
30638
30639         if test $ol_cv_lib_db = no ; then
30640         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30641 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30642 if test "${ol_cv_db_db_3+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645
30646         ol_DB_LIB=-ldb-3
30647         ol_LIBS=$LIBS
30648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30649
30650         cat >conftest.$ac_ext <<_ACEOF
30651 /* confdefs.h.  */
30652 _ACEOF
30653 cat confdefs.h >>conftest.$ac_ext
30654 cat >>conftest.$ac_ext <<_ACEOF
30655 /* end confdefs.h.  */
30656
30657 #ifdef HAVE_DB_185_H
30658 # include <db_185.h>
30659 #else
30660 # include <db.h>
30661 #endif
30662
30663 #ifndef DB_VERSION_MAJOR
30664 # define DB_VERSION_MAJOR 1
30665 #endif
30666
30667 #ifndef NULL
30668 #define NULL ((void*)0)
30669 #endif
30670
30671 int
30672 main ()
30673 {
30674
30675 #if DB_VERSION_MAJOR > 1
30676         {
30677                 char *version;
30678                 int major, minor, patch;
30679
30680                 version = db_version( &major, &minor, &patch );
30681
30682                 if( major != DB_VERSION_MAJOR ||
30683                         minor < DB_VERSION_MINOR )
30684                 {
30685                         printf("Berkeley DB version mismatch\n"
30686                                 "\theader: %s\n\tlibrary: %s\n",
30687                                 DB_VERSION_STRING, version);
30688                         return 1;
30689                 }
30690         }
30691 #endif
30692
30693 #if DB_VERSION_MAJOR > 2
30694         db_env_create( NULL, 0 );
30695 #elif DB_VERSION_MAJOR > 1
30696         db_appexit( NULL );
30697 #else
30698         (void) dbopen( NULL, 0, 0, 0, NULL);
30699 #endif
30700
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext conftest$ac_exeext
30706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30707   (eval $ac_link) 2>conftest.er1
30708   ac_status=$?
30709   grep -v '^ *+' conftest.er1 >conftest.err
30710   rm -f conftest.er1
30711   cat conftest.err >&5
30712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30713   (exit $ac_status); } &&
30714          { ac_try='test -z "$ac_c_werror_flag"
30715                          || test ! -s conftest.err'
30716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30717   (eval $ac_try) 2>&5
30718   ac_status=$?
30719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720   (exit $ac_status); }; } &&
30721          { ac_try='test -s conftest$ac_exeext'
30722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723   (eval $ac_try) 2>&5
30724   ac_status=$?
30725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726   (exit $ac_status); }; }; then
30727   ol_cv_db_db_3=yes
30728 else
30729   echo "$as_me: failed program was:" >&5
30730 sed 's/^/| /' conftest.$ac_ext >&5
30731
30732 ol_cv_db_db_3=no
30733 fi
30734 rm -f conftest.err conftest.$ac_objext \
30735       conftest$ac_exeext conftest.$ac_ext
30736
30737         LIBS="$ol_LIBS"
30738
30739 fi
30740 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30741 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30742
30743         if test $ol_cv_db_db_3 = yes ; then
30744                 ol_cv_lib_db=-ldb-3
30745         fi
30746 fi
30747
30748
30749 elif test $ol_cv_bdb_major = 2 ; then
30750         if test $ol_cv_lib_db = no ; then
30751         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30752 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30753 if test "${ol_cv_db_db2+set}" = set; then
30754   echo $ECHO_N "(cached) $ECHO_C" >&6
30755 else
30756
30757         ol_DB_LIB=-ldb2
30758         ol_LIBS=$LIBS
30759         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30760
30761         cat >conftest.$ac_ext <<_ACEOF
30762 /* confdefs.h.  */
30763 _ACEOF
30764 cat confdefs.h >>conftest.$ac_ext
30765 cat >>conftest.$ac_ext <<_ACEOF
30766 /* end confdefs.h.  */
30767
30768 #ifdef HAVE_DB_185_H
30769 # include <db_185.h>
30770 #else
30771 # include <db.h>
30772 #endif
30773
30774 #ifndef DB_VERSION_MAJOR
30775 # define DB_VERSION_MAJOR 1
30776 #endif
30777
30778 #ifndef NULL
30779 #define NULL ((void*)0)
30780 #endif
30781
30782 int
30783 main ()
30784 {
30785
30786 #if DB_VERSION_MAJOR > 1
30787         {
30788                 char *version;
30789                 int major, minor, patch;
30790
30791                 version = db_version( &major, &minor, &patch );
30792
30793                 if( major != DB_VERSION_MAJOR ||
30794                         minor < DB_VERSION_MINOR )
30795                 {
30796                         printf("Berkeley DB version mismatch\n"
30797                                 "\theader: %s\n\tlibrary: %s\n",
30798                                 DB_VERSION_STRING, version);
30799                         return 1;
30800                 }
30801         }
30802 #endif
30803
30804 #if DB_VERSION_MAJOR > 2
30805         db_env_create( NULL, 0 );
30806 #elif DB_VERSION_MAJOR > 1
30807         db_appexit( NULL );
30808 #else
30809         (void) dbopen( NULL, 0, 0, 0, NULL);
30810 #endif
30811
30812   ;
30813   return 0;
30814 }
30815 _ACEOF
30816 rm -f conftest.$ac_objext conftest$ac_exeext
30817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30818   (eval $ac_link) 2>conftest.er1
30819   ac_status=$?
30820   grep -v '^ *+' conftest.er1 >conftest.err
30821   rm -f conftest.er1
30822   cat conftest.err >&5
30823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824   (exit $ac_status); } &&
30825          { ac_try='test -z "$ac_c_werror_flag"
30826                          || test ! -s conftest.err'
30827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30828   (eval $ac_try) 2>&5
30829   ac_status=$?
30830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831   (exit $ac_status); }; } &&
30832          { ac_try='test -s conftest$ac_exeext'
30833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30834   (eval $ac_try) 2>&5
30835   ac_status=$?
30836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837   (exit $ac_status); }; }; then
30838   ol_cv_db_db2=yes
30839 else
30840   echo "$as_me: failed program was:" >&5
30841 sed 's/^/| /' conftest.$ac_ext >&5
30842
30843 ol_cv_db_db2=no
30844 fi
30845 rm -f conftest.err conftest.$ac_objext \
30846       conftest$ac_exeext conftest.$ac_ext
30847
30848         LIBS="$ol_LIBS"
30849
30850 fi
30851 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30852 echo "${ECHO_T}$ol_cv_db_db2" >&6
30853
30854         if test $ol_cv_db_db2 = yes ; then
30855                 ol_cv_lib_db=-ldb2
30856         fi
30857 fi
30858
30859         if test $ol_cv_lib_db = no ; then
30860         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30861 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30862 if test "${ol_cv_db_db_2+set}" = set; then
30863   echo $ECHO_N "(cached) $ECHO_C" >&6
30864 else
30865
30866         ol_DB_LIB=-ldb-2
30867         ol_LIBS=$LIBS
30868         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30869
30870         cat >conftest.$ac_ext <<_ACEOF
30871 /* confdefs.h.  */
30872 _ACEOF
30873 cat confdefs.h >>conftest.$ac_ext
30874 cat >>conftest.$ac_ext <<_ACEOF
30875 /* end confdefs.h.  */
30876
30877 #ifdef HAVE_DB_185_H
30878 # include <db_185.h>
30879 #else
30880 # include <db.h>
30881 #endif
30882
30883 #ifndef DB_VERSION_MAJOR
30884 # define DB_VERSION_MAJOR 1
30885 #endif
30886
30887 #ifndef NULL
30888 #define NULL ((void*)0)
30889 #endif
30890
30891 int
30892 main ()
30893 {
30894
30895 #if DB_VERSION_MAJOR > 1
30896         {
30897                 char *version;
30898                 int major, minor, patch;
30899
30900                 version = db_version( &major, &minor, &patch );
30901
30902                 if( major != DB_VERSION_MAJOR ||
30903                         minor < DB_VERSION_MINOR )
30904                 {
30905                         printf("Berkeley DB version mismatch\n"
30906                                 "\theader: %s\n\tlibrary: %s\n",
30907                                 DB_VERSION_STRING, version);
30908                         return 1;
30909                 }
30910         }
30911 #endif
30912
30913 #if DB_VERSION_MAJOR > 2
30914         db_env_create( NULL, 0 );
30915 #elif DB_VERSION_MAJOR > 1
30916         db_appexit( NULL );
30917 #else
30918         (void) dbopen( NULL, 0, 0, 0, NULL);
30919 #endif
30920
30921   ;
30922   return 0;
30923 }
30924 _ACEOF
30925 rm -f conftest.$ac_objext conftest$ac_exeext
30926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30927   (eval $ac_link) 2>conftest.er1
30928   ac_status=$?
30929   grep -v '^ *+' conftest.er1 >conftest.err
30930   rm -f conftest.er1
30931   cat conftest.err >&5
30932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933   (exit $ac_status); } &&
30934          { ac_try='test -z "$ac_c_werror_flag"
30935                          || test ! -s conftest.err'
30936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30937   (eval $ac_try) 2>&5
30938   ac_status=$?
30939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30940   (exit $ac_status); }; } &&
30941          { ac_try='test -s conftest$ac_exeext'
30942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30943   (eval $ac_try) 2>&5
30944   ac_status=$?
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); }; }; then
30947   ol_cv_db_db_2=yes
30948 else
30949   echo "$as_me: failed program was:" >&5
30950 sed 's/^/| /' conftest.$ac_ext >&5
30951
30952 ol_cv_db_db_2=no
30953 fi
30954 rm -f conftest.err conftest.$ac_objext \
30955       conftest$ac_exeext conftest.$ac_ext
30956
30957         LIBS="$ol_LIBS"
30958
30959 fi
30960 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30961 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30962
30963         if test $ol_cv_db_db_2 = yes ; then
30964                 ol_cv_lib_db=-ldb-2
30965         fi
30966 fi
30967
30968
30969 elif test $ol_cv_bdb_major = 1 ; then
30970         if test $ol_cv_lib_db = no ; then
30971         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30972 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30973 if test "${ol_cv_db_db1+set}" = set; then
30974   echo $ECHO_N "(cached) $ECHO_C" >&6
30975 else
30976
30977         ol_DB_LIB=-ldb1
30978         ol_LIBS=$LIBS
30979         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30980
30981         cat >conftest.$ac_ext <<_ACEOF
30982 /* confdefs.h.  */
30983 _ACEOF
30984 cat confdefs.h >>conftest.$ac_ext
30985 cat >>conftest.$ac_ext <<_ACEOF
30986 /* end confdefs.h.  */
30987
30988 #ifdef HAVE_DB_185_H
30989 # include <db_185.h>
30990 #else
30991 # include <db.h>
30992 #endif
30993
30994 #ifndef DB_VERSION_MAJOR
30995 # define DB_VERSION_MAJOR 1
30996 #endif
30997
30998 #ifndef NULL
30999 #define NULL ((void*)0)
31000 #endif
31001
31002 int
31003 main ()
31004 {
31005
31006 #if DB_VERSION_MAJOR > 1
31007         {
31008                 char *version;
31009                 int major, minor, patch;
31010
31011                 version = db_version( &major, &minor, &patch );
31012
31013                 if( major != DB_VERSION_MAJOR ||
31014                         minor < DB_VERSION_MINOR )
31015                 {
31016                         printf("Berkeley DB version mismatch\n"
31017                                 "\theader: %s\n\tlibrary: %s\n",
31018                                 DB_VERSION_STRING, version);
31019                         return 1;
31020                 }
31021         }
31022 #endif
31023
31024 #if DB_VERSION_MAJOR > 2
31025         db_env_create( NULL, 0 );
31026 #elif DB_VERSION_MAJOR > 1
31027         db_appexit( NULL );
31028 #else
31029         (void) dbopen( NULL, 0, 0, 0, NULL);
31030 #endif
31031
31032   ;
31033   return 0;
31034 }
31035 _ACEOF
31036 rm -f conftest.$ac_objext conftest$ac_exeext
31037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31038   (eval $ac_link) 2>conftest.er1
31039   ac_status=$?
31040   grep -v '^ *+' conftest.er1 >conftest.err
31041   rm -f conftest.er1
31042   cat conftest.err >&5
31043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044   (exit $ac_status); } &&
31045          { ac_try='test -z "$ac_c_werror_flag"
31046                          || test ! -s conftest.err'
31047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31048   (eval $ac_try) 2>&5
31049   ac_status=$?
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); }; } &&
31052          { ac_try='test -s conftest$ac_exeext'
31053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054   (eval $ac_try) 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; }; then
31058   ol_cv_db_db1=yes
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ol_cv_db_db1=no
31064 fi
31065 rm -f conftest.err conftest.$ac_objext \
31066       conftest$ac_exeext conftest.$ac_ext
31067
31068         LIBS="$ol_LIBS"
31069
31070 fi
31071 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
31072 echo "${ECHO_T}$ol_cv_db_db1" >&6
31073
31074         if test $ol_cv_db_db1 = yes ; then
31075                 ol_cv_lib_db=-ldb1
31076         fi
31077 fi
31078
31079         if test $ol_cv_lib_db = no ; then
31080         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
31081 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
31082 if test "${ol_cv_db_db_1+set}" = set; then
31083   echo $ECHO_N "(cached) $ECHO_C" >&6
31084 else
31085
31086         ol_DB_LIB=-ldb-1
31087         ol_LIBS=$LIBS
31088         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31089
31090         cat >conftest.$ac_ext <<_ACEOF
31091 /* confdefs.h.  */
31092 _ACEOF
31093 cat confdefs.h >>conftest.$ac_ext
31094 cat >>conftest.$ac_ext <<_ACEOF
31095 /* end confdefs.h.  */
31096
31097 #ifdef HAVE_DB_185_H
31098 # include <db_185.h>
31099 #else
31100 # include <db.h>
31101 #endif
31102
31103 #ifndef DB_VERSION_MAJOR
31104 # define DB_VERSION_MAJOR 1
31105 #endif
31106
31107 #ifndef NULL
31108 #define NULL ((void*)0)
31109 #endif
31110
31111 int
31112 main ()
31113 {
31114
31115 #if DB_VERSION_MAJOR > 1
31116         {
31117                 char *version;
31118                 int major, minor, patch;
31119
31120                 version = db_version( &major, &minor, &patch );
31121
31122                 if( major != DB_VERSION_MAJOR ||
31123                         minor < DB_VERSION_MINOR )
31124                 {
31125                         printf("Berkeley DB version mismatch\n"
31126                                 "\theader: %s\n\tlibrary: %s\n",
31127                                 DB_VERSION_STRING, version);
31128                         return 1;
31129                 }
31130         }
31131 #endif
31132
31133 #if DB_VERSION_MAJOR > 2
31134         db_env_create( NULL, 0 );
31135 #elif DB_VERSION_MAJOR > 1
31136         db_appexit( NULL );
31137 #else
31138         (void) dbopen( NULL, 0, 0, 0, NULL);
31139 #endif
31140
31141   ;
31142   return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31147   (eval $ac_link) 2>conftest.er1
31148   ac_status=$?
31149   grep -v '^ *+' conftest.er1 >conftest.err
31150   rm -f conftest.er1
31151   cat conftest.err >&5
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); } &&
31154          { ac_try='test -z "$ac_c_werror_flag"
31155                          || test ! -s conftest.err'
31156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157   (eval $ac_try) 2>&5
31158   ac_status=$?
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); }; } &&
31161          { ac_try='test -s conftest$ac_exeext'
31162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163   (eval $ac_try) 2>&5
31164   ac_status=$?
31165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166   (exit $ac_status); }; }; then
31167   ol_cv_db_db_1=yes
31168 else
31169   echo "$as_me: failed program was:" >&5
31170 sed 's/^/| /' conftest.$ac_ext >&5
31171
31172 ol_cv_db_db_1=no
31173 fi
31174 rm -f conftest.err conftest.$ac_objext \
31175       conftest$ac_exeext conftest.$ac_ext
31176
31177         LIBS="$ol_LIBS"
31178
31179 fi
31180 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31181 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31182
31183         if test $ol_cv_db_db_1 = yes ; then
31184                 ol_cv_lib_db=-ldb-1
31185         fi
31186 fi
31187
31188 fi
31189 if test $ol_cv_lib_db = no ; then
31190         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31191 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31192 if test "${ol_cv_db_none+set}" = set; then
31193   echo $ECHO_N "(cached) $ECHO_C" >&6
31194 else
31195
31196         ol_DB_LIB=
31197         ol_LIBS=$LIBS
31198         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
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_DB_185_H
31208 # include <db_185.h>
31209 #else
31210 # include <db.h>
31211 #endif
31212
31213 #ifndef DB_VERSION_MAJOR
31214 # define DB_VERSION_MAJOR 1
31215 #endif
31216
31217 #ifndef NULL
31218 #define NULL ((void*)0)
31219 #endif
31220
31221 int
31222 main ()
31223 {
31224
31225 #if DB_VERSION_MAJOR > 1
31226         {
31227                 char *version;
31228                 int major, minor, patch;
31229
31230                 version = db_version( &major, &minor, &patch );
31231
31232                 if( major != DB_VERSION_MAJOR ||
31233                         minor < DB_VERSION_MINOR )
31234                 {
31235                         printf("Berkeley DB version mismatch\n"
31236                                 "\theader: %s\n\tlibrary: %s\n",
31237                                 DB_VERSION_STRING, version);
31238                         return 1;
31239                 }
31240         }
31241 #endif
31242
31243 #if DB_VERSION_MAJOR > 2
31244         db_env_create( NULL, 0 );
31245 #elif DB_VERSION_MAJOR > 1
31246         db_appexit( NULL );
31247 #else
31248         (void) dbopen( NULL, 0, 0, 0, NULL);
31249 #endif
31250
31251   ;
31252   return 0;
31253 }
31254 _ACEOF
31255 rm -f conftest.$ac_objext conftest$ac_exeext
31256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31257   (eval $ac_link) 2>conftest.er1
31258   ac_status=$?
31259   grep -v '^ *+' conftest.er1 >conftest.err
31260   rm -f conftest.er1
31261   cat conftest.err >&5
31262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263   (exit $ac_status); } &&
31264          { ac_try='test -z "$ac_c_werror_flag"
31265                          || test ! -s conftest.err'
31266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31267   (eval $ac_try) 2>&5
31268   ac_status=$?
31269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270   (exit $ac_status); }; } &&
31271          { ac_try='test -s conftest$ac_exeext'
31272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31273   (eval $ac_try) 2>&5
31274   ac_status=$?
31275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31276   (exit $ac_status); }; }; then
31277   ol_cv_db_none=yes
31278 else
31279   echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282 ol_cv_db_none=no
31283 fi
31284 rm -f conftest.err conftest.$ac_objext \
31285       conftest$ac_exeext conftest.$ac_ext
31286
31287         LIBS="$ol_LIBS"
31288
31289 fi
31290 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31291 echo "${ECHO_T}$ol_cv_db_none" >&6
31292
31293         if test $ol_cv_db_none = yes ; then
31294                 ol_cv_lib_db=yes
31295         fi
31296 fi
31297
31298
31299         if test "$ol_cv_lib_db" != no ; then
31300                 ol_cv_berkeley_db=yes
31301                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31302 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31303 if test "${ol_cv_berkeley_db_version+set}" = set; then
31304   echo $ECHO_N "(cached) $ECHO_C" >&6
31305 else
31306
31307         ol_LIBS="$LIBS"
31308         LIBS="$LTHREAD_LIBS $LIBS"
31309         if test $ol_cv_lib_db != yes ; then
31310                 LIBS="$ol_cv_lib_db $LIBS"
31311         fi
31312
31313         if test "$cross_compiling" = yes; then
31314   ol_cv_berkeley_db_version=cross
31315 else
31316   cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h.  */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h.  */
31322
31323 #ifdef HAVE_DB_185_H
31324         choke me;
31325 #else
31326 #include <db.h>
31327 #endif
31328 #ifndef DB_VERSION_MAJOR
31329 # define DB_VERSION_MAJOR 1
31330 #endif
31331 #ifndef NULL
31332 #define NULL ((void *)0)
31333 #endif
31334 main()
31335 {
31336 #if DB_VERSION_MAJOR > 1
31337         char *version;
31338         int major, minor, patch;
31339
31340         version = db_version( &major, &minor, &patch );
31341
31342         if( major != DB_VERSION_MAJOR ||
31343                 minor != DB_VERSION_MINOR ||
31344                 patch != DB_VERSION_PATCH )
31345         {
31346                 printf("Berkeley DB version mismatch\n"
31347                         "\theader: %s\n\tlibrary: %s\n",
31348                         DB_VERSION_STRING, version);
31349                 return 1;
31350         }
31351 #endif
31352
31353         return 0;
31354 }
31355 _ACEOF
31356 rm -f conftest$ac_exeext
31357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31358   (eval $ac_link) 2>&5
31359   ac_status=$?
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363   (eval $ac_try) 2>&5
31364   ac_status=$?
31365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366   (exit $ac_status); }; }; then
31367   ol_cv_berkeley_db_version=yes
31368 else
31369   echo "$as_me: program exited with status $ac_status" >&5
31370 echo "$as_me: failed program was:" >&5
31371 sed 's/^/| /' conftest.$ac_ext >&5
31372
31373 ( exit $ac_status )
31374 ol_cv_berkeley_db_version=no
31375 fi
31376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31377 fi
31378
31379         LIBS="$ol_LIBS"
31380
31381 fi
31382 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31383 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31384
31385         if test $ol_cv_berkeley_db_version = no ; then
31386                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31387 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31388    { (exit 1); exit 1; }; }
31389         fi
31390
31391                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31392 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31393 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31394   echo $ECHO_N "(cached) $ECHO_C" >&6
31395 else
31396
31397         ol_LIBS="$LIBS"
31398         LIBS="$LTHREAD_LIBS $LIBS"
31399         if test $ol_cv_lib_db != yes ; then
31400                 LIBS="$ol_cv_lib_db $LIBS"
31401         fi
31402
31403         if test "$cross_compiling" = yes; then
31404   ol_cv_berkeley_db_thread=cross
31405 else
31406   cat >conftest.$ac_ext <<_ACEOF
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412
31413 #ifdef HAVE_DB_185_H
31414         choke me;
31415 #else
31416 #include <db.h>
31417 #endif
31418 #ifndef NULL
31419 #define NULL ((void *)0)
31420 #endif
31421 main()
31422 {
31423         int rc;
31424         u_int32_t flags = DB_CREATE |
31425 #ifdef DB_PRIVATE
31426                 DB_PRIVATE |
31427 #endif
31428                 DB_THREAD;
31429
31430 #if DB_VERSION_MAJOR > 2
31431         DB_ENV *env = NULL;
31432
31433         rc = db_env_create( &env, 0 );
31434
31435         flags |= DB_INIT_MPOOL;
31436 #ifdef DB_MPOOL_PRIVATE
31437         flags |= DB_MPOOL_PRIVATE;
31438 #endif
31439
31440         if( rc ) {
31441                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31442                 return rc;
31443         }
31444
31445 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31446         rc = env->open( env, NULL, flags, 0 );
31447 #else
31448         rc = env->open( env, NULL, NULL, flags, 0 );
31449 #endif
31450
31451         if ( rc == 0 ) {
31452                 rc = env->close( env, 0 );
31453         }
31454
31455         if( rc ) {
31456                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31457                 return rc;
31458         }
31459
31460 #else
31461         DB_ENV env;
31462         memset( &env, '\0', sizeof(env) );
31463
31464         rc = db_appinit( NULL, NULL, &env, flags );
31465
31466         if( rc == 0 ) {
31467                 db_appexit( &env );
31468         }
31469
31470         unlink("__db_mpool.share");
31471         unlink("__db_lock.share");
31472 #endif
31473
31474         return rc;
31475 }
31476 _ACEOF
31477 rm -f conftest$ac_exeext
31478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31479   (eval $ac_link) 2>&5
31480   ac_status=$?
31481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31484   (eval $ac_try) 2>&5
31485   ac_status=$?
31486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487   (exit $ac_status); }; }; then
31488   ol_cv_berkeley_db_thread=yes
31489 else
31490   echo "$as_me: program exited with status $ac_status" >&5
31491 echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31493
31494 ( exit $ac_status )
31495 ol_cv_berkeley_db_thread=no
31496 fi
31497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31498 fi
31499
31500         LIBS="$ol_LIBS"
31501
31502 fi
31503 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31504 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31505
31506         if test $ol_cv_berkeley_db_thread != no ; then
31507
31508 cat >>confdefs.h <<\_ACEOF
31509 #define HAVE_BERKELEY_DB_THREAD 1
31510 _ACEOF
31511
31512         fi
31513
31514         fi
31515 fi
31516
31517
31518         if test $ol_cv_berkeley_db = no ; then
31519                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31520 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31521    { (exit 1); exit 1; }; }
31522         fi
31523
31524
31525 cat >>confdefs.h <<\_ACEOF
31526 #define HAVE_BERKELEY_DB 1
31527 _ACEOF
31528
31529
31530                         if test $ol_cv_lib_db != yes ; then
31531                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31532         fi
31533
31534         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31535 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31536 if test "${ol_cv_bdb_compat+set}" = set; then
31537   echo $ECHO_N "(cached) $ECHO_C" >&6
31538 else
31539
31540         cat >conftest.$ac_ext <<_ACEOF
31541 /* confdefs.h.  */
31542 _ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h.  */
31546
31547 #include <db.h>
31548
31549  /* this check could be improved */
31550 #ifndef DB_VERSION_MAJOR
31551 #       define DB_VERSION_MAJOR 1
31552 #endif
31553 #ifndef DB_VERSION_MINOR
31554 #       define DB_VERSION_MINOR 0
31555 #endif
31556
31557 /* require 4.2 or later, but exclude 4.3 */
31558 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
31559         __db_version_compat
31560 #endif
31561
31562 _ACEOF
31563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31564   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31565   ol_cv_bdb_compat=yes
31566 else
31567   ol_cv_bdb_compat=no
31568 fi
31569 rm -f conftest*
31570
31571 fi
31572 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31573 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31574
31575
31576         if test $ol_cv_bdb_compat != yes ; then
31577                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31578 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31579    { (exit 1); exit 1; }; }
31580         fi
31581
31582         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31583
31584         ol_link_bdb=yes
31585 fi
31586
31587
31588 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31589         BUILD_LIBS_DYNAMIC=shared
31590
31591 cat >>confdefs.h <<\_ACEOF
31592 #define LDAP_LIBS_DYNAMIC 1
31593 _ACEOF
31594
31595         LTSTATIC=""
31596 else
31597         BUILD_LIBS_DYNAMIC=static
31598         LTSTATIC="-static"
31599 fi
31600
31601 if test $ol_enable_wrappers != no ; then
31602
31603 for ac_header in tcpd.h
31604 do
31605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31607   echo "$as_me:$LINENO: checking for $ac_header" >&5
31608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31610   echo $ECHO_N "(cached) $ECHO_C" >&6
31611 fi
31612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31614 else
31615   # Is the header compilable?
31616 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31618 cat >conftest.$ac_ext <<_ACEOF
31619 /* confdefs.h.  */
31620 _ACEOF
31621 cat confdefs.h >>conftest.$ac_ext
31622 cat >>conftest.$ac_ext <<_ACEOF
31623 /* end confdefs.h.  */
31624 $ac_includes_default
31625 #include <$ac_header>
31626 _ACEOF
31627 rm -f conftest.$ac_objext
31628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31629   (eval $ac_compile) 2>conftest.er1
31630   ac_status=$?
31631   grep -v '^ *+' conftest.er1 >conftest.err
31632   rm -f conftest.er1
31633   cat conftest.err >&5
31634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635   (exit $ac_status); } &&
31636          { ac_try='test -z "$ac_c_werror_flag"
31637                          || test ! -s conftest.err'
31638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31639   (eval $ac_try) 2>&5
31640   ac_status=$?
31641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642   (exit $ac_status); }; } &&
31643          { ac_try='test -s conftest.$ac_objext'
31644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31645   (eval $ac_try) 2>&5
31646   ac_status=$?
31647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648   (exit $ac_status); }; }; then
31649   ac_header_compiler=yes
31650 else
31651   echo "$as_me: failed program was:" >&5
31652 sed 's/^/| /' conftest.$ac_ext >&5
31653
31654 ac_header_compiler=no
31655 fi
31656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31657 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31658 echo "${ECHO_T}$ac_header_compiler" >&6
31659
31660 # Is the header present?
31661 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31662 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31663 cat >conftest.$ac_ext <<_ACEOF
31664 /* confdefs.h.  */
31665 _ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h.  */
31669 #include <$ac_header>
31670 _ACEOF
31671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31672   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31673   ac_status=$?
31674   grep -v '^ *+' conftest.er1 >conftest.err
31675   rm -f conftest.er1
31676   cat conftest.err >&5
31677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678   (exit $ac_status); } >/dev/null; then
31679   if test -s conftest.err; then
31680     ac_cpp_err=$ac_c_preproc_warn_flag
31681     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31682   else
31683     ac_cpp_err=
31684   fi
31685 else
31686   ac_cpp_err=yes
31687 fi
31688 if test -z "$ac_cpp_err"; then
31689   ac_header_preproc=yes
31690 else
31691   echo "$as_me: failed program was:" >&5
31692 sed 's/^/| /' conftest.$ac_ext >&5
31693
31694   ac_header_preproc=no
31695 fi
31696 rm -f conftest.err conftest.$ac_ext
31697 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31698 echo "${ECHO_T}$ac_header_preproc" >&6
31699
31700 # So?  What about this header?
31701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31702   yes:no: )
31703     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31705     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31707     ac_header_preproc=yes
31708     ;;
31709   no:yes:* )
31710     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31712     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31713 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31714     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31716     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31717 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31720     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31722     (
31723       cat <<\_ASBOX
31724 ## --------------------------------------------- ##
31725 ## Report this to <http://www.openldap.org/its/> ##
31726 ## --------------------------------------------- ##
31727 _ASBOX
31728     ) |
31729       sed "s/^/$as_me: WARNING:     /" >&2
31730     ;;
31731 esac
31732 echo "$as_me:$LINENO: checking for $ac_header" >&5
31733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31735   echo $ECHO_N "(cached) $ECHO_C" >&6
31736 else
31737   eval "$as_ac_Header=\$ac_header_preproc"
31738 fi
31739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31741
31742 fi
31743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31744   cat >>confdefs.h <<_ACEOF
31745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31746 _ACEOF
31747
31748                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31749 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31750                 save_LIBS="$LIBS"
31751                 LIBS="$LIBS -lwrap"
31752                 cat >conftest.$ac_ext <<_ACEOF
31753 /* confdefs.h.  */
31754 _ACEOF
31755 cat confdefs.h >>conftest.$ac_ext
31756 cat >>conftest.$ac_ext <<_ACEOF
31757 /* end confdefs.h.  */
31758
31759 #include <tcpd.h>
31760 int allow_severity = 0;
31761 int deny_severity  = 0;
31762
31763 struct request_info *req;
31764
31765 int
31766 main ()
31767 {
31768
31769 hosts_access(req)
31770
31771   ;
31772   return 0;
31773 }
31774 _ACEOF
31775 rm -f conftest.$ac_objext conftest$ac_exeext
31776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31777   (eval $ac_link) 2>conftest.er1
31778   ac_status=$?
31779   grep -v '^ *+' conftest.er1 >conftest.err
31780   rm -f conftest.er1
31781   cat conftest.err >&5
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); } &&
31784          { ac_try='test -z "$ac_c_werror_flag"
31785                          || test ! -s conftest.err'
31786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31787   (eval $ac_try) 2>&5
31788   ac_status=$?
31789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790   (exit $ac_status); }; } &&
31791          { ac_try='test -s conftest$ac_exeext'
31792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31793   (eval $ac_try) 2>&5
31794   ac_status=$?
31795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796   (exit $ac_status); }; }; then
31797   echo "$as_me:$LINENO: result: -lwrap" >&5
31798 echo "${ECHO_T}-lwrap" >&6
31799                 have_wrappers=yes
31800                 LIBS="$save_LIBS"
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805
31806                                 LIBS="$LIBS -lnsl"
31807                 cat >conftest.$ac_ext <<_ACEOF
31808 /* confdefs.h.  */
31809 _ACEOF
31810 cat confdefs.h >>conftest.$ac_ext
31811 cat >>conftest.$ac_ext <<_ACEOF
31812 /* end confdefs.h.  */
31813
31814 #include <tcpd.h>
31815 int allow_severity = 0;
31816 int deny_severity  = 0;
31817
31818 struct request_info *req;
31819
31820 int
31821 main ()
31822 {
31823
31824 hosts_access(req)
31825
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext conftest$ac_exeext
31831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31832   (eval $ac_link) 2>conftest.er1
31833   ac_status=$?
31834   grep -v '^ *+' conftest.er1 >conftest.err
31835   rm -f conftest.er1
31836   cat conftest.err >&5
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); } &&
31839          { ac_try='test -z "$ac_c_werror_flag"
31840                          || test ! -s conftest.err'
31841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842   (eval $ac_try) 2>&5
31843   ac_status=$?
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); }; } &&
31846          { ac_try='test -s conftest$ac_exeext'
31847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31848   (eval $ac_try) 2>&5
31849   ac_status=$?
31850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851   (exit $ac_status); }; }; then
31852   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31853 echo "${ECHO_T}-lwrap -lnsl" >&6
31854                 have_wrappers=yes
31855                 LIBS="$save_LIBS -lnsl"
31856 else
31857   echo "$as_me: failed program was:" >&5
31858 sed 's/^/| /' conftest.$ac_ext >&5
31859
31860
31861                 echo "$as_me:$LINENO: result: no" >&5
31862 echo "${ECHO_T}no" >&6
31863                 have_wrappers=no
31864                 LIBS=$save_LIBS
31865 fi
31866 rm -f conftest.err conftest.$ac_objext \
31867       conftest$ac_exeext conftest.$ac_ext
31868 fi
31869 rm -f conftest.err conftest.$ac_objext \
31870       conftest$ac_exeext conftest.$ac_ext
31871 else
31872   have_wrappers=no
31873 fi
31874
31875 done
31876
31877
31878         if test $have_wrappers = yes ; then
31879
31880 cat >>confdefs.h <<\_ACEOF
31881 #define HAVE_TCPD 1
31882 _ACEOF
31883
31884                 WRAP_LIBS="-lwrap"
31885         elif test $ol_enable_wrappers = yes ; then
31886                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31887 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31888    { (exit 1); exit 1; }; }
31889         else
31890                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31891 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31892                 WRAP_LIBS=""
31893         fi
31894 fi
31895
31896 if test $ol_enable_syslog != no ; then
31897         echo "$as_me:$LINENO: checking for openlog" >&5
31898 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31899 if test "${ac_cv_func_openlog+set}" = set; then
31900   echo $ECHO_N "(cached) $ECHO_C" >&6
31901 else
31902   cat >conftest.$ac_ext <<_ACEOF
31903 /* confdefs.h.  */
31904 _ACEOF
31905 cat confdefs.h >>conftest.$ac_ext
31906 cat >>conftest.$ac_ext <<_ACEOF
31907 /* end confdefs.h.  */
31908 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31910 #define openlog innocuous_openlog
31911
31912 /* System header to define __stub macros and hopefully few prototypes,
31913     which can conflict with char openlog (); below.
31914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31915     <limits.h> exists even on freestanding compilers.  */
31916
31917 #ifdef __STDC__
31918 # include <limits.h>
31919 #else
31920 # include <assert.h>
31921 #endif
31922
31923 #undef openlog
31924
31925 /* Override any gcc2 internal prototype to avoid an error.  */
31926 #ifdef __cplusplus
31927 extern "C"
31928 {
31929 #endif
31930 /* We use char because int might match the return type of a gcc2
31931    builtin and then its argument prototype would still apply.  */
31932 char openlog ();
31933 /* The GNU C library defines this for functions which it implements
31934     to always fail with ENOSYS.  Some functions are actually named
31935     something starting with __ and the normal name is an alias.  */
31936 #if defined (__stub_openlog) || defined (__stub___openlog)
31937 choke me
31938 #else
31939 char (*f) () = openlog;
31940 #endif
31941 #ifdef __cplusplus
31942 }
31943 #endif
31944
31945 int
31946 main ()
31947 {
31948 return f != openlog;
31949   ;
31950   return 0;
31951 }
31952 _ACEOF
31953 rm -f conftest.$ac_objext conftest$ac_exeext
31954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31955   (eval $ac_link) 2>conftest.er1
31956   ac_status=$?
31957   grep -v '^ *+' conftest.er1 >conftest.err
31958   rm -f conftest.er1
31959   cat conftest.err >&5
31960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); } &&
31962          { ac_try='test -z "$ac_c_werror_flag"
31963                          || test ! -s conftest.err'
31964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31965   (eval $ac_try) 2>&5
31966   ac_status=$?
31967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968   (exit $ac_status); }; } &&
31969          { ac_try='test -s conftest$ac_exeext'
31970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31971   (eval $ac_try) 2>&5
31972   ac_status=$?
31973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974   (exit $ac_status); }; }; then
31975   ac_cv_func_openlog=yes
31976 else
31977   echo "$as_me: failed program was:" >&5
31978 sed 's/^/| /' conftest.$ac_ext >&5
31979
31980 ac_cv_func_openlog=no
31981 fi
31982 rm -f conftest.err conftest.$ac_objext \
31983       conftest$ac_exeext conftest.$ac_ext
31984 fi
31985 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31986 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31987
31988         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31989                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31990 echo "$as_me: error: could not find syslog" >&2;}
31991    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31992         fi
31993         ol_enable_syslog=$ac_cv_func_openlog
31994 fi
31995
31996 ol_link_sql=no
31997 if test $ol_enable_sql != no ; then
31998
31999
32000 for ac_header in sql.h sqlext.h
32001 do
32002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32004   echo "$as_me:$LINENO: checking for $ac_header" >&5
32005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32007   echo $ECHO_N "(cached) $ECHO_C" >&6
32008 fi
32009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32011 else
32012   # Is the header compilable?
32013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32015 cat >conftest.$ac_ext <<_ACEOF
32016 /* confdefs.h.  */
32017 _ACEOF
32018 cat confdefs.h >>conftest.$ac_ext
32019 cat >>conftest.$ac_ext <<_ACEOF
32020 /* end confdefs.h.  */
32021 $ac_includes_default
32022 #include <$ac_header>
32023 _ACEOF
32024 rm -f conftest.$ac_objext
32025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32026   (eval $ac_compile) 2>conftest.er1
32027   ac_status=$?
32028   grep -v '^ *+' conftest.er1 >conftest.err
32029   rm -f conftest.er1
32030   cat conftest.err >&5
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); } &&
32033          { ac_try='test -z "$ac_c_werror_flag"
32034                          || test ! -s conftest.err'
32035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32036   (eval $ac_try) 2>&5
32037   ac_status=$?
32038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039   (exit $ac_status); }; } &&
32040          { ac_try='test -s conftest.$ac_objext'
32041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32042   (eval $ac_try) 2>&5
32043   ac_status=$?
32044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045   (exit $ac_status); }; }; then
32046   ac_header_compiler=yes
32047 else
32048   echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32050
32051 ac_header_compiler=no
32052 fi
32053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32055 echo "${ECHO_T}$ac_header_compiler" >&6
32056
32057 # Is the header present?
32058 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32060 cat >conftest.$ac_ext <<_ACEOF
32061 /* confdefs.h.  */
32062 _ACEOF
32063 cat confdefs.h >>conftest.$ac_ext
32064 cat >>conftest.$ac_ext <<_ACEOF
32065 /* end confdefs.h.  */
32066 #include <$ac_header>
32067 _ACEOF
32068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32069   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32070   ac_status=$?
32071   grep -v '^ *+' conftest.er1 >conftest.err
32072   rm -f conftest.er1
32073   cat conftest.err >&5
32074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075   (exit $ac_status); } >/dev/null; then
32076   if test -s conftest.err; then
32077     ac_cpp_err=$ac_c_preproc_warn_flag
32078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32079   else
32080     ac_cpp_err=
32081   fi
32082 else
32083   ac_cpp_err=yes
32084 fi
32085 if test -z "$ac_cpp_err"; then
32086   ac_header_preproc=yes
32087 else
32088   echo "$as_me: failed program was:" >&5
32089 sed 's/^/| /' conftest.$ac_ext >&5
32090
32091   ac_header_preproc=no
32092 fi
32093 rm -f conftest.err conftest.$ac_ext
32094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32095 echo "${ECHO_T}$ac_header_preproc" >&6
32096
32097 # So?  What about this header?
32098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32099   yes:no: )
32100     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32102     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32104     ac_header_preproc=yes
32105     ;;
32106   no:yes:* )
32107     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32109     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32110 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32111     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32113     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32114 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32115     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32117     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32119     (
32120       cat <<\_ASBOX
32121 ## --------------------------------------------- ##
32122 ## Report this to <http://www.openldap.org/its/> ##
32123 ## --------------------------------------------- ##
32124 _ASBOX
32125     ) |
32126       sed "s/^/$as_me: WARNING:     /" >&2
32127     ;;
32128 esac
32129 echo "$as_me:$LINENO: checking for $ac_header" >&5
32130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32132   echo $ECHO_N "(cached) $ECHO_C" >&6
32133 else
32134   eval "$as_ac_Header=\$ac_header_preproc"
32135 fi
32136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32138
32139 fi
32140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32141   cat >>confdefs.h <<_ACEOF
32142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32143 _ACEOF
32144
32145 else
32146
32147                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32148 echo "$as_me: error: could not locate SQL headers" >&2;}
32149    { (exit 1); exit 1; }; }
32150
32151 fi
32152
32153 done
32154
32155
32156         sql_LIBS="$LIBS"
32157         LIBS="$LTHREAD_LIBS"
32158
32159         if test $ol_with_odbc = auto ; then
32160                 ol_with_odbc="iodbc unixodbc"
32161         fi
32162
32163         for odbc in $ol_with_odbc ; do
32164                 if test $ol_link_sql = no ; then
32165                         case $odbc in
32166                         iodbc)
32167                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32168 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32169 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32170   echo $ECHO_N "(cached) $ECHO_C" >&6
32171 else
32172   ac_check_lib_save_LIBS=$LIBS
32173 LIBS="-liodbc  $LIBS"
32174 cat >conftest.$ac_ext <<_ACEOF
32175 /* confdefs.h.  */
32176 _ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h.  */
32180
32181 /* Override any gcc2 internal prototype to avoid an error.  */
32182 #ifdef __cplusplus
32183 extern "C"
32184 #endif
32185 /* We use char because int might match the return type of a gcc2
32186    builtin and then its argument prototype would still apply.  */
32187 char SQLDriverConnect ();
32188 int
32189 main ()
32190 {
32191 SQLDriverConnect ();
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext conftest$ac_exeext
32197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32198   (eval $ac_link) 2>conftest.er1
32199   ac_status=$?
32200   grep -v '^ *+' conftest.er1 >conftest.err
32201   rm -f conftest.er1
32202   cat conftest.err >&5
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -z "$ac_c_werror_flag"
32206                          || test ! -s conftest.err'
32207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32208   (eval $ac_try) 2>&5
32209   ac_status=$?
32210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32211   (exit $ac_status); }; } &&
32212          { ac_try='test -s conftest$ac_exeext'
32213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214   (eval $ac_try) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); }; }; then
32218   ac_cv_lib_iodbc_SQLDriverConnect=yes
32219 else
32220   echo "$as_me: failed program was:" >&5
32221 sed 's/^/| /' conftest.$ac_ext >&5
32222
32223 ac_cv_lib_iodbc_SQLDriverConnect=no
32224 fi
32225 rm -f conftest.err conftest.$ac_objext \
32226       conftest$ac_exeext conftest.$ac_ext
32227 LIBS=$ac_check_lib_save_LIBS
32228 fi
32229 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32230 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32231 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32232   have_iodbc=yes
32233 else
32234   have_iodbc=no
32235 fi
32236
32237                                 if test $have_iodbc = yes ; then
32238                                         ol_link_sql="-liodbc"
32239                                 fi
32240                                 ;;
32241
32242                         unixodbc)
32243                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32244 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32245 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32246   echo $ECHO_N "(cached) $ECHO_C" >&6
32247 else
32248   ac_check_lib_save_LIBS=$LIBS
32249 LIBS="-lodbc  $LIBS"
32250 cat >conftest.$ac_ext <<_ACEOF
32251 /* confdefs.h.  */
32252 _ACEOF
32253 cat confdefs.h >>conftest.$ac_ext
32254 cat >>conftest.$ac_ext <<_ACEOF
32255 /* end confdefs.h.  */
32256
32257 /* Override any gcc2 internal prototype to avoid an error.  */
32258 #ifdef __cplusplus
32259 extern "C"
32260 #endif
32261 /* We use char because int might match the return type of a gcc2
32262    builtin and then its argument prototype would still apply.  */
32263 char SQLDriverConnect ();
32264 int
32265 main ()
32266 {
32267 SQLDriverConnect ();
32268   ;
32269   return 0;
32270 }
32271 _ACEOF
32272 rm -f conftest.$ac_objext conftest$ac_exeext
32273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32274   (eval $ac_link) 2>conftest.er1
32275   ac_status=$?
32276   grep -v '^ *+' conftest.er1 >conftest.err
32277   rm -f conftest.er1
32278   cat conftest.err >&5
32279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280   (exit $ac_status); } &&
32281          { ac_try='test -z "$ac_c_werror_flag"
32282                          || test ! -s conftest.err'
32283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284   (eval $ac_try) 2>&5
32285   ac_status=$?
32286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287   (exit $ac_status); }; } &&
32288          { ac_try='test -s conftest$ac_exeext'
32289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290   (eval $ac_try) 2>&5
32291   ac_status=$?
32292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293   (exit $ac_status); }; }; then
32294   ac_cv_lib_odbc_SQLDriverConnect=yes
32295 else
32296   echo "$as_me: failed program was:" >&5
32297 sed 's/^/| /' conftest.$ac_ext >&5
32298
32299 ac_cv_lib_odbc_SQLDriverConnect=no
32300 fi
32301 rm -f conftest.err conftest.$ac_objext \
32302       conftest$ac_exeext conftest.$ac_ext
32303 LIBS=$ac_check_lib_save_LIBS
32304 fi
32305 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32306 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32307 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32308   have_odbc=yes
32309 else
32310   have_odbc=no
32311 fi
32312
32313                                 if test $have_odbc = yes ; then
32314                                         ol_link_sql="-lodbc"
32315                                 fi
32316                                 ;;
32317
32318                         *)
32319                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
32320 echo "$as_me: error: unknown ODBC library" >&2;}
32321    { (exit 1); exit 1; }; }
32322                                 ;;
32323                         esac
32324                 fi
32325         done
32326
32327         LIBS="$sql_LIBS"
32328
32329         if test $ol_link_sql != no ; then
32330                 SLAPD_SQL_LIBS="$ol_link_sql"
32331
32332         elif test $ol_enable_sql != auto ; then
32333                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32334 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32335    { (exit 1); exit 1; }; }
32336         fi
32337 fi
32338
32339 ol_icu=no
32340
32341 for ac_header in unicode/utypes.h
32342 do
32343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32345   echo "$as_me:$LINENO: checking for $ac_header" >&5
32346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32348   echo $ECHO_N "(cached) $ECHO_C" >&6
32349 fi
32350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32352 else
32353   # Is the header compilable?
32354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362 $ac_includes_default
32363 #include <$ac_header>
32364 _ACEOF
32365 rm -f conftest.$ac_objext
32366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32367   (eval $ac_compile) 2>conftest.er1
32368   ac_status=$?
32369   grep -v '^ *+' conftest.er1 >conftest.err
32370   rm -f conftest.er1
32371   cat conftest.err >&5
32372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373   (exit $ac_status); } &&
32374          { ac_try='test -z "$ac_c_werror_flag"
32375                          || test ! -s conftest.err'
32376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32377   (eval $ac_try) 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; } &&
32381          { ac_try='test -s conftest.$ac_objext'
32382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32383   (eval $ac_try) 2>&5
32384   ac_status=$?
32385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386   (exit $ac_status); }; }; then
32387   ac_header_compiler=yes
32388 else
32389   echo "$as_me: failed program was:" >&5
32390 sed 's/^/| /' conftest.$ac_ext >&5
32391
32392 ac_header_compiler=no
32393 fi
32394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32396 echo "${ECHO_T}$ac_header_compiler" >&6
32397
32398 # Is the header present?
32399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32401 cat >conftest.$ac_ext <<_ACEOF
32402 /* confdefs.h.  */
32403 _ACEOF
32404 cat confdefs.h >>conftest.$ac_ext
32405 cat >>conftest.$ac_ext <<_ACEOF
32406 /* end confdefs.h.  */
32407 #include <$ac_header>
32408 _ACEOF
32409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32410   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32411   ac_status=$?
32412   grep -v '^ *+' conftest.er1 >conftest.err
32413   rm -f conftest.er1
32414   cat conftest.err >&5
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); } >/dev/null; then
32417   if test -s conftest.err; then
32418     ac_cpp_err=$ac_c_preproc_warn_flag
32419     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32420   else
32421     ac_cpp_err=
32422   fi
32423 else
32424   ac_cpp_err=yes
32425 fi
32426 if test -z "$ac_cpp_err"; then
32427   ac_header_preproc=yes
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432   ac_header_preproc=no
32433 fi
32434 rm -f conftest.err conftest.$ac_ext
32435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32436 echo "${ECHO_T}$ac_header_preproc" >&6
32437
32438 # So?  What about this header?
32439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32440   yes:no: )
32441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32445     ac_header_preproc=yes
32446     ;;
32447   no:yes:* )
32448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32460     (
32461       cat <<\_ASBOX
32462 ## --------------------------------------------- ##
32463 ## Report this to <http://www.openldap.org/its/> ##
32464 ## --------------------------------------------- ##
32465 _ASBOX
32466     ) |
32467       sed "s/^/$as_me: WARNING:     /" >&2
32468     ;;
32469 esac
32470 echo "$as_me:$LINENO: checking for $ac_header" >&5
32471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32473   echo $ECHO_N "(cached) $ECHO_C" >&6
32474 else
32475   eval "$as_ac_Header=\$ac_header_preproc"
32476 fi
32477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32479
32480 fi
32481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32482   cat >>confdefs.h <<_ACEOF
32483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32484 _ACEOF
32485
32486 fi
32487
32488 done
32489
32490 if test $ac_cv_header_unicode_utypes_h = yes ; then
32491                 OL_ICULIBS="-licuuc -licudata"
32492
32493         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32494 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32495 if test "${ol_cv_lib_icu+set}" = set; then
32496   echo $ECHO_N "(cached) $ECHO_C" >&6
32497 else
32498
32499                 ol_LIBS="$LIBS"
32500                 LIBS="$OL_ICULIBS $LIBS"
32501                 cat >conftest.$ac_ext <<_ACEOF
32502 /* confdefs.h.  */
32503 _ACEOF
32504 cat confdefs.h >>conftest.$ac_ext
32505 cat >>conftest.$ac_ext <<_ACEOF
32506 /* end confdefs.h.  */
32507
32508 #include <unicode/utypes.h>
32509
32510 int
32511 main ()
32512 {
32513
32514 (void) u_errorName(0);
32515
32516   ;
32517   return 0;
32518 }
32519 _ACEOF
32520 rm -f conftest.$ac_objext conftest$ac_exeext
32521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32522   (eval $ac_link) 2>conftest.er1
32523   ac_status=$?
32524   grep -v '^ *+' conftest.er1 >conftest.err
32525   rm -f conftest.er1
32526   cat conftest.err >&5
32527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528   (exit $ac_status); } &&
32529          { ac_try='test -z "$ac_c_werror_flag"
32530                          || test ! -s conftest.err'
32531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532   (eval $ac_try) 2>&5
32533   ac_status=$?
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); }; } &&
32536          { ac_try='test -s conftest$ac_exeext'
32537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538   (eval $ac_try) 2>&5
32539   ac_status=$?
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); }; }; then
32542   ol_cv_lib_icu=yes
32543 else
32544   echo "$as_me: failed program was:" >&5
32545 sed 's/^/| /' conftest.$ac_ext >&5
32546
32547 ol_cv_lib_icu=no
32548 fi
32549 rm -f conftest.err conftest.$ac_objext \
32550       conftest$ac_exeext conftest.$ac_ext
32551                 LIBS="$ol_LIBS"
32552
32553 fi
32554 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32555 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32556
32557         if test $ol_cv_lib_icu != no ; then
32558                 ol_icu="$OL_ICULIBS"
32559
32560 cat >>confdefs.h <<\_ACEOF
32561 #define HAVE_ICU 1
32562 _ACEOF
32563
32564         fi
32565 fi
32566
32567 if test "$ol_icu" = no ; then
32568         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32569 echo "$as_me: WARNING: ICU not available" >&2;}
32570 else
32571         ICU_LIBS="$ol_icu"
32572 fi
32573 WITH_SASL=no
32574 ol_link_sasl=no
32575 ol_link_spasswd=no
32576 if test $ol_with_cyrus_sasl != no ; then
32577
32578
32579 for ac_header in sasl/sasl.h sasl.h
32580 do
32581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32583   echo "$as_me:$LINENO: checking for $ac_header" >&5
32584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32586   echo $ECHO_N "(cached) $ECHO_C" >&6
32587 fi
32588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32590 else
32591   # Is the header compilable?
32592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32594 cat >conftest.$ac_ext <<_ACEOF
32595 /* confdefs.h.  */
32596 _ACEOF
32597 cat confdefs.h >>conftest.$ac_ext
32598 cat >>conftest.$ac_ext <<_ACEOF
32599 /* end confdefs.h.  */
32600 $ac_includes_default
32601 #include <$ac_header>
32602 _ACEOF
32603 rm -f conftest.$ac_objext
32604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32605   (eval $ac_compile) 2>conftest.er1
32606   ac_status=$?
32607   grep -v '^ *+' conftest.er1 >conftest.err
32608   rm -f conftest.er1
32609   cat conftest.err >&5
32610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32611   (exit $ac_status); } &&
32612          { ac_try='test -z "$ac_c_werror_flag"
32613                          || test ! -s conftest.err'
32614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615   (eval $ac_try) 2>&5
32616   ac_status=$?
32617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618   (exit $ac_status); }; } &&
32619          { ac_try='test -s conftest.$ac_objext'
32620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621   (eval $ac_try) 2>&5
32622   ac_status=$?
32623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624   (exit $ac_status); }; }; then
32625   ac_header_compiler=yes
32626 else
32627   echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.$ac_ext >&5
32629
32630 ac_header_compiler=no
32631 fi
32632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32634 echo "${ECHO_T}$ac_header_compiler" >&6
32635
32636 # Is the header present?
32637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32639 cat >conftest.$ac_ext <<_ACEOF
32640 /* confdefs.h.  */
32641 _ACEOF
32642 cat confdefs.h >>conftest.$ac_ext
32643 cat >>conftest.$ac_ext <<_ACEOF
32644 /* end confdefs.h.  */
32645 #include <$ac_header>
32646 _ACEOF
32647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32649   ac_status=$?
32650   grep -v '^ *+' conftest.er1 >conftest.err
32651   rm -f conftest.er1
32652   cat conftest.err >&5
32653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654   (exit $ac_status); } >/dev/null; then
32655   if test -s conftest.err; then
32656     ac_cpp_err=$ac_c_preproc_warn_flag
32657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32658   else
32659     ac_cpp_err=
32660   fi
32661 else
32662   ac_cpp_err=yes
32663 fi
32664 if test -z "$ac_cpp_err"; then
32665   ac_header_preproc=yes
32666 else
32667   echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.$ac_ext >&5
32669
32670   ac_header_preproc=no
32671 fi
32672 rm -f conftest.err conftest.$ac_ext
32673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32674 echo "${ECHO_T}$ac_header_preproc" >&6
32675
32676 # So?  What about this header?
32677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32678   yes:no: )
32679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32683     ac_header_preproc=yes
32684     ;;
32685   no:yes:* )
32686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32698     (
32699       cat <<\_ASBOX
32700 ## --------------------------------------------- ##
32701 ## Report this to <http://www.openldap.org/its/> ##
32702 ## --------------------------------------------- ##
32703 _ASBOX
32704     ) |
32705       sed "s/^/$as_me: WARNING:     /" >&2
32706     ;;
32707 esac
32708 echo "$as_me:$LINENO: checking for $ac_header" >&5
32709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32711   echo $ECHO_N "(cached) $ECHO_C" >&6
32712 else
32713   eval "$as_ac_Header=\$ac_header_preproc"
32714 fi
32715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32717
32718 fi
32719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32720   cat >>confdefs.h <<_ACEOF
32721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32722 _ACEOF
32723
32724 fi
32725
32726 done
32727
32728
32729         if test $ac_cv_header_sasl_sasl_h = yes ||
32730            test $ac_cv_header_sasl_h = yes; then
32731                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32732 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32733 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32734   echo $ECHO_N "(cached) $ECHO_C" >&6
32735 else
32736   ac_check_lib_save_LIBS=$LIBS
32737 LIBS="-lsasl2  $LIBS"
32738 cat >conftest.$ac_ext <<_ACEOF
32739 /* confdefs.h.  */
32740 _ACEOF
32741 cat confdefs.h >>conftest.$ac_ext
32742 cat >>conftest.$ac_ext <<_ACEOF
32743 /* end confdefs.h.  */
32744
32745 /* Override any gcc2 internal prototype to avoid an error.  */
32746 #ifdef __cplusplus
32747 extern "C"
32748 #endif
32749 /* We use char because int might match the return type of a gcc2
32750    builtin and then its argument prototype would still apply.  */
32751 char sasl_client_init ();
32752 int
32753 main ()
32754 {
32755 sasl_client_init ();
32756   ;
32757   return 0;
32758 }
32759 _ACEOF
32760 rm -f conftest.$ac_objext conftest$ac_exeext
32761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32762   (eval $ac_link) 2>conftest.er1
32763   ac_status=$?
32764   grep -v '^ *+' conftest.er1 >conftest.err
32765   rm -f conftest.er1
32766   cat conftest.err >&5
32767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768   (exit $ac_status); } &&
32769          { ac_try='test -z "$ac_c_werror_flag"
32770                          || test ! -s conftest.err'
32771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772   (eval $ac_try) 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); }; } &&
32776          { ac_try='test -s conftest$ac_exeext'
32777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778   (eval $ac_try) 2>&5
32779   ac_status=$?
32780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781   (exit $ac_status); }; }; then
32782   ac_cv_lib_sasl2_sasl_client_init=yes
32783 else
32784   echo "$as_me: failed program was:" >&5
32785 sed 's/^/| /' conftest.$ac_ext >&5
32786
32787 ac_cv_lib_sasl2_sasl_client_init=no
32788 fi
32789 rm -f conftest.err conftest.$ac_objext \
32790       conftest$ac_exeext conftest.$ac_ext
32791 LIBS=$ac_check_lib_save_LIBS
32792 fi
32793 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32794 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32795 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32796   ol_link_sasl="-lsasl2"
32797 else
32798   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32799 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32800 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32801   echo $ECHO_N "(cached) $ECHO_C" >&6
32802 else
32803   ac_check_lib_save_LIBS=$LIBS
32804 LIBS="-lsasl  $LIBS"
32805 cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811
32812 /* Override any gcc2 internal prototype to avoid an error.  */
32813 #ifdef __cplusplus
32814 extern "C"
32815 #endif
32816 /* We use char because int might match the return type of a gcc2
32817    builtin and then its argument prototype would still apply.  */
32818 char sasl_client_init ();
32819 int
32820 main ()
32821 {
32822 sasl_client_init ();
32823   ;
32824   return 0;
32825 }
32826 _ACEOF
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32829   (eval $ac_link) 2>conftest.er1
32830   ac_status=$?
32831   grep -v '^ *+' conftest.er1 >conftest.err
32832   rm -f conftest.er1
32833   cat conftest.err >&5
32834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835   (exit $ac_status); } &&
32836          { ac_try='test -z "$ac_c_werror_flag"
32837                          || test ! -s conftest.err'
32838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32839   (eval $ac_try) 2>&5
32840   ac_status=$?
32841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32842   (exit $ac_status); }; } &&
32843          { ac_try='test -s conftest$ac_exeext'
32844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32845   (eval $ac_try) 2>&5
32846   ac_status=$?
32847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32848   (exit $ac_status); }; }; then
32849   ac_cv_lib_sasl_sasl_client_init=yes
32850 else
32851   echo "$as_me: failed program was:" >&5
32852 sed 's/^/| /' conftest.$ac_ext >&5
32853
32854 ac_cv_lib_sasl_sasl_client_init=no
32855 fi
32856 rm -f conftest.err conftest.$ac_objext \
32857       conftest$ac_exeext conftest.$ac_ext
32858 LIBS=$ac_check_lib_save_LIBS
32859 fi
32860 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32861 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32862 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32863   ol_link_sasl="-lsasl"
32864 fi
32865
32866 fi
32867
32868         fi
32869
32870         if test $ol_link_sasl = no ; then
32871                 if test $ol_with_cyrus_sasl != auto ; then
32872                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32873 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32874    { (exit 1); exit 1; }; }
32875                 else
32876                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32877 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32878                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32879 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32880                         if test $ol_link_tls = no ; then
32881                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32882 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32883                         fi
32884                 fi
32885         else
32886                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32887 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32888 if test "${ol_cv_sasl_compat+set}" = set; then
32889   echo $ECHO_N "(cached) $ECHO_C" >&6
32890 else
32891
32892         cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h.  */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h.  */
32898
32899 #ifdef HAVE_SASL_SASL_H
32900 #include <sasl/sasl.h>
32901 #else
32902 #include <sasl.h>
32903 #endif
32904
32905 /* Require 2.1.15+ */
32906 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32907         char *__sasl_compat = "2.2+ or better okay (we guess)";
32908 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32909         && SASL_VERSION_STEP >=15
32910         char *__sasl_compat = "2.1.15+ or better okay";
32911 #endif
32912
32913 _ACEOF
32914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32915   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32916   ol_cv_sasl_compat=yes
32917 else
32918   ol_cv_sasl_compat=no
32919 fi
32920 rm -f conftest*
32921
32922 fi
32923 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32924 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32925
32926                 if test $ol_cv_sasl_compat = no ; then
32927                         ol_link_sasl=no
32928                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32929 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32930    { (exit 1); exit 1; }; }
32931                 fi
32932
32933
32934 cat >>confdefs.h <<\_ACEOF
32935 #define HAVE_CYRUS_SASL 1
32936 _ACEOF
32937
32938                 SASL_LIBS="$ol_link_sasl"
32939                 if test $ol_enable_spasswd != no ; then
32940                         ol_link_spasswd=yes
32941                 fi
32942
32943                 ac_save_LIBS="$LIBS"
32944                 LIBS="$LIBS $ol_link_sasl"
32945                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32946 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32947 if test "${ac_cv_func_sasl_version+set}" = set; then
32948   echo $ECHO_N "(cached) $ECHO_C" >&6
32949 else
32950   cat >conftest.$ac_ext <<_ACEOF
32951 /* confdefs.h.  */
32952 _ACEOF
32953 cat confdefs.h >>conftest.$ac_ext
32954 cat >>conftest.$ac_ext <<_ACEOF
32955 /* end confdefs.h.  */
32956 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32958 #define sasl_version innocuous_sasl_version
32959
32960 /* System header to define __stub macros and hopefully few prototypes,
32961     which can conflict with char sasl_version (); below.
32962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963     <limits.h> exists even on freestanding compilers.  */
32964
32965 #ifdef __STDC__
32966 # include <limits.h>
32967 #else
32968 # include <assert.h>
32969 #endif
32970
32971 #undef sasl_version
32972
32973 /* Override any gcc2 internal prototype to avoid an error.  */
32974 #ifdef __cplusplus
32975 extern "C"
32976 {
32977 #endif
32978 /* We use char because int might match the return type of a gcc2
32979    builtin and then its argument prototype would still apply.  */
32980 char sasl_version ();
32981 /* The GNU C library defines this for functions which it implements
32982     to always fail with ENOSYS.  Some functions are actually named
32983     something starting with __ and the normal name is an alias.  */
32984 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32985 choke me
32986 #else
32987 char (*f) () = sasl_version;
32988 #endif
32989 #ifdef __cplusplus
32990 }
32991 #endif
32992
32993 int
32994 main ()
32995 {
32996 return f != sasl_version;
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33003   (eval $ac_link) 2>conftest.er1
33004   ac_status=$?
33005   grep -v '^ *+' conftest.er1 >conftest.err
33006   rm -f conftest.er1
33007   cat conftest.err >&5
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); } &&
33010          { ac_try='test -z "$ac_c_werror_flag"
33011                          || test ! -s conftest.err'
33012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013   (eval $ac_try) 2>&5
33014   ac_status=$?
33015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016   (exit $ac_status); }; } &&
33017          { ac_try='test -s conftest$ac_exeext'
33018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019   (eval $ac_try) 2>&5
33020   ac_status=$?
33021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022   (exit $ac_status); }; }; then
33023   ac_cv_func_sasl_version=yes
33024 else
33025   echo "$as_me: failed program was:" >&5
33026 sed 's/^/| /' conftest.$ac_ext >&5
33027
33028 ac_cv_func_sasl_version=no
33029 fi
33030 rm -f conftest.err conftest.$ac_objext \
33031       conftest$ac_exeext conftest.$ac_ext
33032 fi
33033 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
33034 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
33035 if test $ac_cv_func_sasl_version = yes; then
33036
33037 cat >>confdefs.h <<\_ACEOF
33038 #define HAVE_SASL_VERSION 1
33039 _ACEOF
33040
33041 fi
33042
33043                 LIBS="$ac_save_LIBS"
33044
33045                 WITH_SASL=yes
33046         fi
33047
33048 else
33049         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
33050 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
33051         if test $ol_link_tls = no ; then
33052                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
33053 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
33054         fi
33055 fi
33056
33057 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
33058         dev=no
33059         if test -r /dev/urandom ; then
33060                 dev="/dev/urandom";
33061         elif test -r /idev/urandom ; then
33062                 dev="/idev/urandom";
33063         elif test -r /dev/srandom ; then
33064                 dev="/dev/srandom";
33065         elif test -r /dev/random ; then
33066                 dev="/dev/random";
33067         elif test -r /idev/random ; then
33068                 dev="/idev/random";
33069         fi
33070
33071         if test $dev != no ; then
33072
33073 cat >>confdefs.h <<_ACEOF
33074 #define URANDOM_DEVICE "$dev"
33075 _ACEOF
33076
33077         fi
33078 fi
33079
33080 ol_link_fetch=no
33081 if test $ol_with_fetch != no ; then
33082         ol_LIBS=$LIBS
33083 LIBS="-lfetch -lcom_err $LIBS"
33084 echo "$as_me:$LINENO: checking fetch(3) library" >&5
33085 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
33086 if test "${ol_cv_lib_fetch+set}" = set; then
33087   echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089
33090         cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h.  */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h.  */
33096
33097 #include <sys/param.h>
33098 #include <stdio.h>
33099 #include <fetch.h>
33100 int
33101 main ()
33102 {
33103 struct url *u = fetchParseURL("file:///");
33104   ;
33105   return 0;
33106 }
33107 _ACEOF
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33110   (eval $ac_link) 2>conftest.er1
33111   ac_status=$?
33112   grep -v '^ *+' conftest.er1 >conftest.err
33113   rm -f conftest.er1
33114   cat conftest.err >&5
33115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116   (exit $ac_status); } &&
33117          { ac_try='test -z "$ac_c_werror_flag"
33118                          || test ! -s conftest.err'
33119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33120   (eval $ac_try) 2>&5
33121   ac_status=$?
33122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123   (exit $ac_status); }; } &&
33124          { ac_try='test -s conftest$ac_exeext'
33125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33126   (eval $ac_try) 2>&5
33127   ac_status=$?
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); }; }; then
33130   ol_cv_lib_fetch=yes
33131 else
33132   echo "$as_me: failed program was:" >&5
33133 sed 's/^/| /' conftest.$ac_ext >&5
33134
33135 ol_cv_lib_fetch=no
33136 fi
33137 rm -f conftest.err conftest.$ac_objext \
33138       conftest$ac_exeext conftest.$ac_ext
33139 fi
33140 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33141 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33142 LIBS=$ol_LIBS
33143 if test $ol_cv_lib_fetch != no ; then
33144         ol_link_fetch="-lfetch -lcom_err"
33145
33146 cat >>confdefs.h <<\_ACEOF
33147 #define HAVE_FETCH 1
33148 _ACEOF
33149
33150 fi
33151
33152
33153         if test $ol_cv_lib_fetch != no ; then
33154                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33155                 ol_link_fetch=freebsd
33156
33157         elif test $ol_with_fetch != auto ; then
33158                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33159 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33160    { (exit 1); exit 1; }; }
33161         fi
33162 fi
33163
33164 if test $ol_enable_crypt != no ; then
33165         save_LIBS="$LIBS"
33166         LIBS="$TLS_LIBS $LIBS"
33167
33168         echo "$as_me:$LINENO: checking for crypt" >&5
33169 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33170 if test "${ac_cv_func_crypt+set}" = set; then
33171   echo $ECHO_N "(cached) $ECHO_C" >&6
33172 else
33173   cat >conftest.$ac_ext <<_ACEOF
33174 /* confdefs.h.  */
33175 _ACEOF
33176 cat confdefs.h >>conftest.$ac_ext
33177 cat >>conftest.$ac_ext <<_ACEOF
33178 /* end confdefs.h.  */
33179 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33181 #define crypt innocuous_crypt
33182
33183 /* System header to define __stub macros and hopefully few prototypes,
33184     which can conflict with char crypt (); below.
33185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33186     <limits.h> exists even on freestanding compilers.  */
33187
33188 #ifdef __STDC__
33189 # include <limits.h>
33190 #else
33191 # include <assert.h>
33192 #endif
33193
33194 #undef crypt
33195
33196 /* Override any gcc2 internal prototype to avoid an error.  */
33197 #ifdef __cplusplus
33198 extern "C"
33199 {
33200 #endif
33201 /* We use char because int might match the return type of a gcc2
33202    builtin and then its argument prototype would still apply.  */
33203 char crypt ();
33204 /* The GNU C library defines this for functions which it implements
33205     to always fail with ENOSYS.  Some functions are actually named
33206     something starting with __ and the normal name is an alias.  */
33207 #if defined (__stub_crypt) || defined (__stub___crypt)
33208 choke me
33209 #else
33210 char (*f) () = crypt;
33211 #endif
33212 #ifdef __cplusplus
33213 }
33214 #endif
33215
33216 int
33217 main ()
33218 {
33219 return f != crypt;
33220   ;
33221   return 0;
33222 }
33223 _ACEOF
33224 rm -f conftest.$ac_objext conftest$ac_exeext
33225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33226   (eval $ac_link) 2>conftest.er1
33227   ac_status=$?
33228   grep -v '^ *+' conftest.er1 >conftest.err
33229   rm -f conftest.er1
33230   cat conftest.err >&5
33231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232   (exit $ac_status); } &&
33233          { ac_try='test -z "$ac_c_werror_flag"
33234                          || test ! -s conftest.err'
33235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33236   (eval $ac_try) 2>&5
33237   ac_status=$?
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); }; } &&
33240          { ac_try='test -s conftest$ac_exeext'
33241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33242   (eval $ac_try) 2>&5
33243   ac_status=$?
33244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245   (exit $ac_status); }; }; then
33246   ac_cv_func_crypt=yes
33247 else
33248   echo "$as_me: failed program was:" >&5
33249 sed 's/^/| /' conftest.$ac_ext >&5
33250
33251 ac_cv_func_crypt=no
33252 fi
33253 rm -f conftest.err conftest.$ac_objext \
33254       conftest$ac_exeext conftest.$ac_ext
33255 fi
33256 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33257 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33258 if test $ac_cv_func_crypt = yes; then
33259   have_crypt=yes
33260 else
33261
33262                 LIBS="$save_LIBS"
33263                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33264 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33265 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33266   echo $ECHO_N "(cached) $ECHO_C" >&6
33267 else
33268   ac_check_lib_save_LIBS=$LIBS
33269 LIBS="-lcrypt  $LIBS"
33270 cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276
33277 /* Override any gcc2 internal prototype to avoid an error.  */
33278 #ifdef __cplusplus
33279 extern "C"
33280 #endif
33281 /* We use char because int might match the return type of a gcc2
33282    builtin and then its argument prototype would still apply.  */
33283 char crypt ();
33284 int
33285 main ()
33286 {
33287 crypt ();
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext conftest$ac_exeext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33294   (eval $ac_link) 2>conftest.er1
33295   ac_status=$?
33296   grep -v '^ *+' conftest.er1 >conftest.err
33297   rm -f conftest.er1
33298   cat conftest.err >&5
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); } &&
33301          { ac_try='test -z "$ac_c_werror_flag"
33302                          || test ! -s conftest.err'
33303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304   (eval $ac_try) 2>&5
33305   ac_status=$?
33306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307   (exit $ac_status); }; } &&
33308          { ac_try='test -s conftest$ac_exeext'
33309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310   (eval $ac_try) 2>&5
33311   ac_status=$?
33312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313   (exit $ac_status); }; }; then
33314   ac_cv_lib_crypt_crypt=yes
33315 else
33316   echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33318
33319 ac_cv_lib_crypt_crypt=no
33320 fi
33321 rm -f conftest.err conftest.$ac_objext \
33322       conftest$ac_exeext conftest.$ac_ext
33323 LIBS=$ac_check_lib_save_LIBS
33324 fi
33325 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33326 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33327 if test $ac_cv_lib_crypt_crypt = yes; then
33328   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33329                         have_crypt=yes
33330 else
33331   have_crypt=no
33332 fi
33333
33334 fi
33335
33336
33337         LIBS="$save_LIBS"
33338
33339         if test $have_crypt = yes ; then
33340
33341 cat >>confdefs.h <<\_ACEOF
33342 #define HAVE_CRYPT 1
33343 _ACEOF
33344
33345         else
33346                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33347 echo "$as_me: WARNING: could not find crypt" >&2;}
33348                 if test $ol_enable_crypt = yes ; then
33349                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33350 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33351    { (exit 1); exit 1; }; }
33352                 fi
33353
33354                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33355 echo "$as_me: WARNING: disabling crypt support" >&2;}
33356                 ol_enable_crypt=no
33357         fi
33358 fi
33359
33360 if test $ol_enable_proctitle != no ; then
33361         echo "$as_me:$LINENO: checking for setproctitle" >&5
33362 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33363 if test "${ac_cv_func_setproctitle+set}" = set; then
33364   echo $ECHO_N "(cached) $ECHO_C" >&6
33365 else
33366   cat >conftest.$ac_ext <<_ACEOF
33367 /* confdefs.h.  */
33368 _ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h.  */
33372 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33374 #define setproctitle innocuous_setproctitle
33375
33376 /* System header to define __stub macros and hopefully few prototypes,
33377     which can conflict with char setproctitle (); below.
33378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33379     <limits.h> exists even on freestanding compilers.  */
33380
33381 #ifdef __STDC__
33382 # include <limits.h>
33383 #else
33384 # include <assert.h>
33385 #endif
33386
33387 #undef setproctitle
33388
33389 /* Override any gcc2 internal prototype to avoid an error.  */
33390 #ifdef __cplusplus
33391 extern "C"
33392 {
33393 #endif
33394 /* We use char because int might match the return type of a gcc2
33395    builtin and then its argument prototype would still apply.  */
33396 char setproctitle ();
33397 /* The GNU C library defines this for functions which it implements
33398     to always fail with ENOSYS.  Some functions are actually named
33399     something starting with __ and the normal name is an alias.  */
33400 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33401 choke me
33402 #else
33403 char (*f) () = setproctitle;
33404 #endif
33405 #ifdef __cplusplus
33406 }
33407 #endif
33408
33409 int
33410 main ()
33411 {
33412 return f != setproctitle;
33413   ;
33414   return 0;
33415 }
33416 _ACEOF
33417 rm -f conftest.$ac_objext conftest$ac_exeext
33418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33419   (eval $ac_link) 2>conftest.er1
33420   ac_status=$?
33421   grep -v '^ *+' conftest.er1 >conftest.err
33422   rm -f conftest.er1
33423   cat conftest.err >&5
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); } &&
33426          { ac_try='test -z "$ac_c_werror_flag"
33427                          || test ! -s conftest.err'
33428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33429   (eval $ac_try) 2>&5
33430   ac_status=$?
33431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432   (exit $ac_status); }; } &&
33433          { ac_try='test -s conftest$ac_exeext'
33434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33435   (eval $ac_try) 2>&5
33436   ac_status=$?
33437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438   (exit $ac_status); }; }; then
33439   ac_cv_func_setproctitle=yes
33440 else
33441   echo "$as_me: failed program was:" >&5
33442 sed 's/^/| /' conftest.$ac_ext >&5
33443
33444 ac_cv_func_setproctitle=no
33445 fi
33446 rm -f conftest.err conftest.$ac_objext \
33447       conftest$ac_exeext conftest.$ac_ext
33448 fi
33449 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33450 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33451 if test $ac_cv_func_setproctitle = yes; then
33452   have_setproctitle=yes
33453 else
33454
33455                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33456 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33457 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33458   echo $ECHO_N "(cached) $ECHO_C" >&6
33459 else
33460   ac_check_lib_save_LIBS=$LIBS
33461 LIBS="-lutil  $LIBS"
33462 cat >conftest.$ac_ext <<_ACEOF
33463 /* confdefs.h.  */
33464 _ACEOF
33465 cat confdefs.h >>conftest.$ac_ext
33466 cat >>conftest.$ac_ext <<_ACEOF
33467 /* end confdefs.h.  */
33468
33469 /* Override any gcc2 internal prototype to avoid an error.  */
33470 #ifdef __cplusplus
33471 extern "C"
33472 #endif
33473 /* We use char because int might match the return type of a gcc2
33474    builtin and then its argument prototype would still apply.  */
33475 char setproctitle ();
33476 int
33477 main ()
33478 {
33479 setproctitle ();
33480   ;
33481   return 0;
33482 }
33483 _ACEOF
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33486   (eval $ac_link) 2>conftest.er1
33487   ac_status=$?
33488   grep -v '^ *+' conftest.er1 >conftest.err
33489   rm -f conftest.er1
33490   cat conftest.err >&5
33491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492   (exit $ac_status); } &&
33493          { ac_try='test -z "$ac_c_werror_flag"
33494                          || test ! -s conftest.err'
33495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33496   (eval $ac_try) 2>&5
33497   ac_status=$?
33498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33499   (exit $ac_status); }; } &&
33500          { ac_try='test -s conftest$ac_exeext'
33501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33502   (eval $ac_try) 2>&5
33503   ac_status=$?
33504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33505   (exit $ac_status); }; }; then
33506   ac_cv_lib_util_setproctitle=yes
33507 else
33508   echo "$as_me: failed program was:" >&5
33509 sed 's/^/| /' conftest.$ac_ext >&5
33510
33511 ac_cv_lib_util_setproctitle=no
33512 fi
33513 rm -f conftest.err conftest.$ac_objext \
33514       conftest$ac_exeext conftest.$ac_ext
33515 LIBS=$ac_check_lib_save_LIBS
33516 fi
33517 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33518 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33519 if test $ac_cv_lib_util_setproctitle = yes; then
33520   have_setproctitle=yes
33521                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33522 else
33523   have_setproctitle=no
33524                         case $LIBOBJS in
33525     "setproctitle.$ac_objext"   | \
33526   *" setproctitle.$ac_objext"   | \
33527     "setproctitle.$ac_objext "* | \
33528   *" setproctitle.$ac_objext "* ) ;;
33529   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33530 esac
33531
33532                         LIBSRCS="$LIBSRCS setproctitle.c"
33533 fi
33534
33535 fi
33536
33537
33538         if test $have_setproctitle = yes ; then
33539
33540 cat >>confdefs.h <<\_ACEOF
33541 #define HAVE_SETPROCTITLE 1
33542 _ACEOF
33543
33544         fi
33545 fi
33546
33547 if test $ol_enable_slp != no ; then
33548
33549 for ac_header in slp.h
33550 do
33551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33553   echo "$as_me:$LINENO: checking for $ac_header" >&5
33554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33556   echo $ECHO_N "(cached) $ECHO_C" >&6
33557 fi
33558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33560 else
33561   # Is the header compilable?
33562 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33564 cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h.  */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h.  */
33570 $ac_includes_default
33571 #include <$ac_header>
33572 _ACEOF
33573 rm -f conftest.$ac_objext
33574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33575   (eval $ac_compile) 2>conftest.er1
33576   ac_status=$?
33577   grep -v '^ *+' conftest.er1 >conftest.err
33578   rm -f conftest.er1
33579   cat conftest.err >&5
33580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581   (exit $ac_status); } &&
33582          { ac_try='test -z "$ac_c_werror_flag"
33583                          || test ! -s conftest.err'
33584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33585   (eval $ac_try) 2>&5
33586   ac_status=$?
33587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33588   (exit $ac_status); }; } &&
33589          { ac_try='test -s conftest.$ac_objext'
33590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591   (eval $ac_try) 2>&5
33592   ac_status=$?
33593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594   (exit $ac_status); }; }; then
33595   ac_header_compiler=yes
33596 else
33597   echo "$as_me: failed program was:" >&5
33598 sed 's/^/| /' conftest.$ac_ext >&5
33599
33600 ac_header_compiler=no
33601 fi
33602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33603 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33604 echo "${ECHO_T}$ac_header_compiler" >&6
33605
33606 # Is the header present?
33607 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33609 cat >conftest.$ac_ext <<_ACEOF
33610 /* confdefs.h.  */
33611 _ACEOF
33612 cat confdefs.h >>conftest.$ac_ext
33613 cat >>conftest.$ac_ext <<_ACEOF
33614 /* end confdefs.h.  */
33615 #include <$ac_header>
33616 _ACEOF
33617 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33618   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33619   ac_status=$?
33620   grep -v '^ *+' conftest.er1 >conftest.err
33621   rm -f conftest.er1
33622   cat conftest.err >&5
33623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624   (exit $ac_status); } >/dev/null; then
33625   if test -s conftest.err; then
33626     ac_cpp_err=$ac_c_preproc_warn_flag
33627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33628   else
33629     ac_cpp_err=
33630   fi
33631 else
33632   ac_cpp_err=yes
33633 fi
33634 if test -z "$ac_cpp_err"; then
33635   ac_header_preproc=yes
33636 else
33637   echo "$as_me: failed program was:" >&5
33638 sed 's/^/| /' conftest.$ac_ext >&5
33639
33640   ac_header_preproc=no
33641 fi
33642 rm -f conftest.err conftest.$ac_ext
33643 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33644 echo "${ECHO_T}$ac_header_preproc" >&6
33645
33646 # So?  What about this header?
33647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33648   yes:no: )
33649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33653     ac_header_preproc=yes
33654     ;;
33655   no:yes:* )
33656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33668     (
33669       cat <<\_ASBOX
33670 ## --------------------------------------------- ##
33671 ## Report this to <http://www.openldap.org/its/> ##
33672 ## --------------------------------------------- ##
33673 _ASBOX
33674     ) |
33675       sed "s/^/$as_me: WARNING:     /" >&2
33676     ;;
33677 esac
33678 echo "$as_me:$LINENO: checking for $ac_header" >&5
33679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33680 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33681   echo $ECHO_N "(cached) $ECHO_C" >&6
33682 else
33683   eval "$as_ac_Header=\$ac_header_preproc"
33684 fi
33685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33687
33688 fi
33689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33690   cat >>confdefs.h <<_ACEOF
33691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33692 _ACEOF
33693
33694 fi
33695
33696 done
33697
33698
33699         if test $ac_cv_header_slp_h = yes ; then
33700                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33701 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33702 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33703   echo $ECHO_N "(cached) $ECHO_C" >&6
33704 else
33705   ac_check_lib_save_LIBS=$LIBS
33706 LIBS="-lslp  $LIBS"
33707 cat >conftest.$ac_ext <<_ACEOF
33708 /* confdefs.h.  */
33709 _ACEOF
33710 cat confdefs.h >>conftest.$ac_ext
33711 cat >>conftest.$ac_ext <<_ACEOF
33712 /* end confdefs.h.  */
33713
33714 /* Override any gcc2 internal prototype to avoid an error.  */
33715 #ifdef __cplusplus
33716 extern "C"
33717 #endif
33718 /* We use char because int might match the return type of a gcc2
33719    builtin and then its argument prototype would still apply.  */
33720 char SLPOpen ();
33721 int
33722 main ()
33723 {
33724 SLPOpen ();
33725   ;
33726   return 0;
33727 }
33728 _ACEOF
33729 rm -f conftest.$ac_objext conftest$ac_exeext
33730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33731   (eval $ac_link) 2>conftest.er1
33732   ac_status=$?
33733   grep -v '^ *+' conftest.er1 >conftest.err
33734   rm -f conftest.er1
33735   cat conftest.err >&5
33736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33737   (exit $ac_status); } &&
33738          { ac_try='test -z "$ac_c_werror_flag"
33739                          || test ! -s conftest.err'
33740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33741   (eval $ac_try) 2>&5
33742   ac_status=$?
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); }; } &&
33745          { ac_try='test -s conftest$ac_exeext'
33746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33747   (eval $ac_try) 2>&5
33748   ac_status=$?
33749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33750   (exit $ac_status); }; }; then
33751   ac_cv_lib_slp_SLPOpen=yes
33752 else
33753   echo "$as_me: failed program was:" >&5
33754 sed 's/^/| /' conftest.$ac_ext >&5
33755
33756 ac_cv_lib_slp_SLPOpen=no
33757 fi
33758 rm -f conftest.err conftest.$ac_objext \
33759       conftest$ac_exeext conftest.$ac_ext
33760 LIBS=$ac_check_lib_save_LIBS
33761 fi
33762 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33763 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33764 if test $ac_cv_lib_slp_SLPOpen = yes; then
33765   have_slp=yes
33766 else
33767   have_slp=no
33768 fi
33769
33770                 if test $have_slp = yes ; then
33771
33772 cat >>confdefs.h <<\_ACEOF
33773 #define HAVE_SLP 1
33774 _ACEOF
33775
33776                         SLAPD_SLP_LIBS=-lslp
33777                 fi
33778
33779         elif test $ol_enable_slp = yes ; then
33780                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33781 echo "$as_me: error: SLP not found" >&2;}
33782    { (exit 1); exit 1; }; }
33783         fi
33784 fi
33785
33786
33787 echo "$as_me:$LINENO: checking for mode_t" >&5
33788 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33789 if test "${ac_cv_type_mode_t+set}" = set; then
33790   echo $ECHO_N "(cached) $ECHO_C" >&6
33791 else
33792   cat >conftest.$ac_ext <<_ACEOF
33793 /* confdefs.h.  */
33794 _ACEOF
33795 cat confdefs.h >>conftest.$ac_ext
33796 cat >>conftest.$ac_ext <<_ACEOF
33797 /* end confdefs.h.  */
33798 $ac_includes_default
33799 int
33800 main ()
33801 {
33802 if ((mode_t *) 0)
33803   return 0;
33804 if (sizeof (mode_t))
33805   return 0;
33806   ;
33807   return 0;
33808 }
33809 _ACEOF
33810 rm -f conftest.$ac_objext
33811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33812   (eval $ac_compile) 2>conftest.er1
33813   ac_status=$?
33814   grep -v '^ *+' conftest.er1 >conftest.err
33815   rm -f conftest.er1
33816   cat conftest.err >&5
33817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818   (exit $ac_status); } &&
33819          { ac_try='test -z "$ac_c_werror_flag"
33820                          || test ! -s conftest.err'
33821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822   (eval $ac_try) 2>&5
33823   ac_status=$?
33824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825   (exit $ac_status); }; } &&
33826          { ac_try='test -s conftest.$ac_objext'
33827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33828   (eval $ac_try) 2>&5
33829   ac_status=$?
33830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33831   (exit $ac_status); }; }; then
33832   ac_cv_type_mode_t=yes
33833 else
33834   echo "$as_me: failed program was:" >&5
33835 sed 's/^/| /' conftest.$ac_ext >&5
33836
33837 ac_cv_type_mode_t=no
33838 fi
33839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33840 fi
33841 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33842 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33843 if test $ac_cv_type_mode_t = yes; then
33844   :
33845 else
33846
33847 cat >>confdefs.h <<_ACEOF
33848 #define mode_t int
33849 _ACEOF
33850
33851 fi
33852
33853 echo "$as_me:$LINENO: checking for off_t" >&5
33854 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33855 if test "${ac_cv_type_off_t+set}" = set; then
33856   echo $ECHO_N "(cached) $ECHO_C" >&6
33857 else
33858   cat >conftest.$ac_ext <<_ACEOF
33859 /* confdefs.h.  */
33860 _ACEOF
33861 cat confdefs.h >>conftest.$ac_ext
33862 cat >>conftest.$ac_ext <<_ACEOF
33863 /* end confdefs.h.  */
33864 $ac_includes_default
33865 int
33866 main ()
33867 {
33868 if ((off_t *) 0)
33869   return 0;
33870 if (sizeof (off_t))
33871   return 0;
33872   ;
33873   return 0;
33874 }
33875 _ACEOF
33876 rm -f conftest.$ac_objext
33877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33878   (eval $ac_compile) 2>conftest.er1
33879   ac_status=$?
33880   grep -v '^ *+' conftest.er1 >conftest.err
33881   rm -f conftest.er1
33882   cat conftest.err >&5
33883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884   (exit $ac_status); } &&
33885          { ac_try='test -z "$ac_c_werror_flag"
33886                          || test ! -s conftest.err'
33887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33888   (eval $ac_try) 2>&5
33889   ac_status=$?
33890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33891   (exit $ac_status); }; } &&
33892          { ac_try='test -s conftest.$ac_objext'
33893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33894   (eval $ac_try) 2>&5
33895   ac_status=$?
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); }; }; then
33898   ac_cv_type_off_t=yes
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903 ac_cv_type_off_t=no
33904 fi
33905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33906 fi
33907 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33908 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33909 if test $ac_cv_type_off_t = yes; then
33910   :
33911 else
33912
33913 cat >>confdefs.h <<_ACEOF
33914 #define off_t long
33915 _ACEOF
33916
33917 fi
33918
33919 echo "$as_me:$LINENO: checking for pid_t" >&5
33920 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33921 if test "${ac_cv_type_pid_t+set}" = set; then
33922   echo $ECHO_N "(cached) $ECHO_C" >&6
33923 else
33924   cat >conftest.$ac_ext <<_ACEOF
33925 /* confdefs.h.  */
33926 _ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h.  */
33930 $ac_includes_default
33931 int
33932 main ()
33933 {
33934 if ((pid_t *) 0)
33935   return 0;
33936 if (sizeof (pid_t))
33937   return 0;
33938   ;
33939   return 0;
33940 }
33941 _ACEOF
33942 rm -f conftest.$ac_objext
33943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33944   (eval $ac_compile) 2>conftest.er1
33945   ac_status=$?
33946   grep -v '^ *+' conftest.er1 >conftest.err
33947   rm -f conftest.er1
33948   cat conftest.err >&5
33949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33950   (exit $ac_status); } &&
33951          { ac_try='test -z "$ac_c_werror_flag"
33952                          || test ! -s conftest.err'
33953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954   (eval $ac_try) 2>&5
33955   ac_status=$?
33956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957   (exit $ac_status); }; } &&
33958          { ac_try='test -s conftest.$ac_objext'
33959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960   (eval $ac_try) 2>&5
33961   ac_status=$?
33962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963   (exit $ac_status); }; }; then
33964   ac_cv_type_pid_t=yes
33965 else
33966   echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33968
33969 ac_cv_type_pid_t=no
33970 fi
33971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33972 fi
33973 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33974 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33975 if test $ac_cv_type_pid_t = yes; then
33976   :
33977 else
33978
33979 cat >>confdefs.h <<_ACEOF
33980 #define pid_t int
33981 _ACEOF
33982
33983 fi
33984
33985 echo "$as_me:$LINENO: checking for ssize_t" >&5
33986 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33987 if test "${ac_cv_type_ssize_t+set}" = set; then
33988   echo $ECHO_N "(cached) $ECHO_C" >&6
33989 else
33990   cat >conftest.$ac_ext <<_ACEOF
33991 /* confdefs.h.  */
33992 _ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h.  */
33996 $ac_includes_default
33997 int
33998 main ()
33999 {
34000 if ((ssize_t *) 0)
34001   return 0;
34002 if (sizeof (ssize_t))
34003   return 0;
34004   ;
34005   return 0;
34006 }
34007 _ACEOF
34008 rm -f conftest.$ac_objext
34009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34010   (eval $ac_compile) 2>conftest.er1
34011   ac_status=$?
34012   grep -v '^ *+' conftest.er1 >conftest.err
34013   rm -f conftest.er1
34014   cat conftest.err >&5
34015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016   (exit $ac_status); } &&
34017          { ac_try='test -z "$ac_c_werror_flag"
34018                          || test ! -s conftest.err'
34019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34020   (eval $ac_try) 2>&5
34021   ac_status=$?
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); }; } &&
34024          { ac_try='test -s conftest.$ac_objext'
34025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026   (eval $ac_try) 2>&5
34027   ac_status=$?
34028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029   (exit $ac_status); }; }; then
34030   ac_cv_type_ssize_t=yes
34031 else
34032   echo "$as_me: failed program was:" >&5
34033 sed 's/^/| /' conftest.$ac_ext >&5
34034
34035 ac_cv_type_ssize_t=no
34036 fi
34037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34038 fi
34039 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34040 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34041 if test $ac_cv_type_ssize_t = yes; then
34042   :
34043 else
34044
34045 cat >>confdefs.h <<_ACEOF
34046 #define ssize_t signed int
34047 _ACEOF
34048
34049 fi
34050
34051 echo "$as_me:$LINENO: checking for caddr_t" >&5
34052 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
34053 if test "${ac_cv_type_caddr_t+set}" = set; then
34054   echo $ECHO_N "(cached) $ECHO_C" >&6
34055 else
34056   cat >conftest.$ac_ext <<_ACEOF
34057 /* confdefs.h.  */
34058 _ACEOF
34059 cat confdefs.h >>conftest.$ac_ext
34060 cat >>conftest.$ac_ext <<_ACEOF
34061 /* end confdefs.h.  */
34062 $ac_includes_default
34063 int
34064 main ()
34065 {
34066 if ((caddr_t *) 0)
34067   return 0;
34068 if (sizeof (caddr_t))
34069   return 0;
34070   ;
34071   return 0;
34072 }
34073 _ACEOF
34074 rm -f conftest.$ac_objext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34076   (eval $ac_compile) 2>conftest.er1
34077   ac_status=$?
34078   grep -v '^ *+' conftest.er1 >conftest.err
34079   rm -f conftest.er1
34080   cat conftest.err >&5
34081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082   (exit $ac_status); } &&
34083          { ac_try='test -z "$ac_c_werror_flag"
34084                          || test ! -s conftest.err'
34085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086   (eval $ac_try) 2>&5
34087   ac_status=$?
34088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089   (exit $ac_status); }; } &&
34090          { ac_try='test -s conftest.$ac_objext'
34091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092   (eval $ac_try) 2>&5
34093   ac_status=$?
34094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095   (exit $ac_status); }; }; then
34096   ac_cv_type_caddr_t=yes
34097 else
34098   echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34100
34101 ac_cv_type_caddr_t=no
34102 fi
34103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34104 fi
34105 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
34106 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
34107 if test $ac_cv_type_caddr_t = yes; then
34108   :
34109 else
34110
34111 cat >>confdefs.h <<_ACEOF
34112 #define caddr_t char *
34113 _ACEOF
34114
34115 fi
34116
34117 echo "$as_me:$LINENO: checking for size_t" >&5
34118 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34119 if test "${ac_cv_type_size_t+set}" = set; then
34120   echo $ECHO_N "(cached) $ECHO_C" >&6
34121 else
34122   cat >conftest.$ac_ext <<_ACEOF
34123 /* confdefs.h.  */
34124 _ACEOF
34125 cat confdefs.h >>conftest.$ac_ext
34126 cat >>conftest.$ac_ext <<_ACEOF
34127 /* end confdefs.h.  */
34128 $ac_includes_default
34129 int
34130 main ()
34131 {
34132 if ((size_t *) 0)
34133   return 0;
34134 if (sizeof (size_t))
34135   return 0;
34136   ;
34137   return 0;
34138 }
34139 _ACEOF
34140 rm -f conftest.$ac_objext
34141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34142   (eval $ac_compile) 2>conftest.er1
34143   ac_status=$?
34144   grep -v '^ *+' conftest.er1 >conftest.err
34145   rm -f conftest.er1
34146   cat conftest.err >&5
34147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148   (exit $ac_status); } &&
34149          { ac_try='test -z "$ac_c_werror_flag"
34150                          || test ! -s conftest.err'
34151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34152   (eval $ac_try) 2>&5
34153   ac_status=$?
34154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34155   (exit $ac_status); }; } &&
34156          { ac_try='test -s conftest.$ac_objext'
34157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34158   (eval $ac_try) 2>&5
34159   ac_status=$?
34160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34161   (exit $ac_status); }; }; then
34162   ac_cv_type_size_t=yes
34163 else
34164   echo "$as_me: failed program was:" >&5
34165 sed 's/^/| /' conftest.$ac_ext >&5
34166
34167 ac_cv_type_size_t=no
34168 fi
34169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34170 fi
34171 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34172 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34173 if test $ac_cv_type_size_t = yes; then
34174   :
34175 else
34176
34177 cat >>confdefs.h <<_ACEOF
34178 #define size_t unsigned
34179 _ACEOF
34180
34181 fi
34182
34183
34184 echo "$as_me:$LINENO: checking for long long" >&5
34185 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34186 if test "${ac_cv_type_long_long+set}" = set; then
34187   echo $ECHO_N "(cached) $ECHO_C" >&6
34188 else
34189   cat >conftest.$ac_ext <<_ACEOF
34190 /* confdefs.h.  */
34191 _ACEOF
34192 cat confdefs.h >>conftest.$ac_ext
34193 cat >>conftest.$ac_ext <<_ACEOF
34194 /* end confdefs.h.  */
34195 $ac_includes_default
34196 int
34197 main ()
34198 {
34199 if ((long long *) 0)
34200   return 0;
34201 if (sizeof (long long))
34202   return 0;
34203   ;
34204   return 0;
34205 }
34206 _ACEOF
34207 rm -f conftest.$ac_objext
34208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34209   (eval $ac_compile) 2>conftest.er1
34210   ac_status=$?
34211   grep -v '^ *+' conftest.er1 >conftest.err
34212   rm -f conftest.er1
34213   cat conftest.err >&5
34214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215   (exit $ac_status); } &&
34216          { ac_try='test -z "$ac_c_werror_flag"
34217                          || test ! -s conftest.err'
34218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219   (eval $ac_try) 2>&5
34220   ac_status=$?
34221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); }; } &&
34223          { ac_try='test -s conftest.$ac_objext'
34224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225   (eval $ac_try) 2>&5
34226   ac_status=$?
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); }; }; then
34229   ac_cv_type_long_long=yes
34230 else
34231   echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34233
34234 ac_cv_type_long_long=no
34235 fi
34236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34237 fi
34238 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34239 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34240 if test $ac_cv_type_long_long = yes; then
34241
34242 cat >>confdefs.h <<_ACEOF
34243 #define HAVE_LONG_LONG 1
34244 _ACEOF
34245
34246
34247 fi
34248
34249 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34250 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34251 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34252   echo $ECHO_N "(cached) $ECHO_C" >&6
34253 else
34254   cat >conftest.$ac_ext <<_ACEOF
34255 /* confdefs.h.  */
34256 _ACEOF
34257 cat confdefs.h >>conftest.$ac_ext
34258 cat >>conftest.$ac_ext <<_ACEOF
34259 /* end confdefs.h.  */
34260 $ac_includes_default
34261 int
34262 main ()
34263 {
34264 if ((ptrdiff_t *) 0)
34265   return 0;
34266 if (sizeof (ptrdiff_t))
34267   return 0;
34268   ;
34269   return 0;
34270 }
34271 _ACEOF
34272 rm -f conftest.$ac_objext
34273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34274   (eval $ac_compile) 2>conftest.er1
34275   ac_status=$?
34276   grep -v '^ *+' conftest.er1 >conftest.err
34277   rm -f conftest.er1
34278   cat conftest.err >&5
34279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280   (exit $ac_status); } &&
34281          { ac_try='test -z "$ac_c_werror_flag"
34282                          || test ! -s conftest.err'
34283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284   (eval $ac_try) 2>&5
34285   ac_status=$?
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); }; } &&
34288          { ac_try='test -s conftest.$ac_objext'
34289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34290   (eval $ac_try) 2>&5
34291   ac_status=$?
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); }; }; then
34294   ac_cv_type_ptrdiff_t=yes
34295 else
34296   echo "$as_me: failed program was:" >&5
34297 sed 's/^/| /' conftest.$ac_ext >&5
34298
34299 ac_cv_type_ptrdiff_t=no
34300 fi
34301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34302 fi
34303 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34304 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34305 if test $ac_cv_type_ptrdiff_t = yes; then
34306
34307 cat >>confdefs.h <<_ACEOF
34308 #define HAVE_PTRDIFF_T 1
34309 _ACEOF
34310
34311
34312 fi
34313
34314
34315 echo "$as_me:$LINENO: checking for socklen_t" >&5
34316 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34317 if test "${ac_cv_type_socklen_t+set}" = set; then
34318   echo $ECHO_N "(cached) $ECHO_C" >&6
34319 else
34320   cat >conftest.$ac_ext <<_ACEOF
34321 /* confdefs.h.  */
34322 _ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h.  */
34326 $ac_includes_default
34327 #ifdef HAVE_SYS_SOCKET_H
34328 #include <sys/socket.h>
34329 #endif
34330
34331
34332 int
34333 main ()
34334 {
34335 if ((socklen_t *) 0)
34336   return 0;
34337 if (sizeof (socklen_t))
34338   return 0;
34339   ;
34340   return 0;
34341 }
34342 _ACEOF
34343 rm -f conftest.$ac_objext
34344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34345   (eval $ac_compile) 2>conftest.er1
34346   ac_status=$?
34347   grep -v '^ *+' conftest.er1 >conftest.err
34348   rm -f conftest.er1
34349   cat conftest.err >&5
34350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351   (exit $ac_status); } &&
34352          { ac_try='test -z "$ac_c_werror_flag"
34353                          || test ! -s conftest.err'
34354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355   (eval $ac_try) 2>&5
34356   ac_status=$?
34357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358   (exit $ac_status); }; } &&
34359          { ac_try='test -s conftest.$ac_objext'
34360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361   (eval $ac_try) 2>&5
34362   ac_status=$?
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); }; }; then
34365   ac_cv_type_socklen_t=yes
34366 else
34367   echo "$as_me: failed program was:" >&5
34368 sed 's/^/| /' conftest.$ac_ext >&5
34369
34370 ac_cv_type_socklen_t=no
34371 fi
34372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34373 fi
34374 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34375 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34376 if test $ac_cv_type_socklen_t = yes; then
34377   :
34378 else
34379
34380 cat >>confdefs.h <<_ACEOF
34381 #define socklen_t int
34382 _ACEOF
34383
34384 fi
34385
34386
34387 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34388 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34389 if test "${ac_cv_type_signal+set}" = set; then
34390   echo $ECHO_N "(cached) $ECHO_C" >&6
34391 else
34392   cat >conftest.$ac_ext <<_ACEOF
34393 /* confdefs.h.  */
34394 _ACEOF
34395 cat confdefs.h >>conftest.$ac_ext
34396 cat >>conftest.$ac_ext <<_ACEOF
34397 /* end confdefs.h.  */
34398 #include <sys/types.h>
34399 #include <signal.h>
34400 #ifdef signal
34401 # undef signal
34402 #endif
34403 #ifdef __cplusplus
34404 extern "C" void (*signal (int, void (*)(int)))(int);
34405 #else
34406 void (*signal ()) ();
34407 #endif
34408
34409 int
34410 main ()
34411 {
34412 int i;
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34419   (eval $ac_compile) 2>conftest.er1
34420   ac_status=$?
34421   grep -v '^ *+' conftest.er1 >conftest.err
34422   rm -f conftest.er1
34423   cat conftest.err >&5
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); } &&
34426          { ac_try='test -z "$ac_c_werror_flag"
34427                          || test ! -s conftest.err'
34428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429   (eval $ac_try) 2>&5
34430   ac_status=$?
34431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432   (exit $ac_status); }; } &&
34433          { ac_try='test -s conftest.$ac_objext'
34434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435   (eval $ac_try) 2>&5
34436   ac_status=$?
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); }; }; then
34439   ac_cv_type_signal=void
34440 else
34441   echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34443
34444 ac_cv_type_signal=int
34445 fi
34446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34447 fi
34448 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34449 echo "${ECHO_T}$ac_cv_type_signal" >&6
34450
34451 cat >>confdefs.h <<_ACEOF
34452 #define RETSIGTYPE $ac_cv_type_signal
34453 _ACEOF
34454
34455
34456
34457 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34458 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34459 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34460   echo $ECHO_N "(cached) $ECHO_C" >&6
34461 else
34462   cat >conftest.$ac_ext <<_ACEOF
34463 /* confdefs.h.  */
34464 _ACEOF
34465 cat confdefs.h >>conftest.$ac_ext
34466 cat >>conftest.$ac_ext <<_ACEOF
34467 /* end confdefs.h.  */
34468 $ac_includes_default
34469 #include <signal.h>
34470
34471
34472 int
34473 main ()
34474 {
34475 if ((sig_atomic_t *) 0)
34476   return 0;
34477 if (sizeof (sig_atomic_t))
34478   return 0;
34479   ;
34480   return 0;
34481 }
34482 _ACEOF
34483 rm -f conftest.$ac_objext
34484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34485   (eval $ac_compile) 2>conftest.er1
34486   ac_status=$?
34487   grep -v '^ *+' conftest.er1 >conftest.err
34488   rm -f conftest.er1
34489   cat conftest.err >&5
34490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491   (exit $ac_status); } &&
34492          { ac_try='test -z "$ac_c_werror_flag"
34493                          || test ! -s conftest.err'
34494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34495   (eval $ac_try) 2>&5
34496   ac_status=$?
34497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34498   (exit $ac_status); }; } &&
34499          { ac_try='test -s conftest.$ac_objext'
34500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34501   (eval $ac_try) 2>&5
34502   ac_status=$?
34503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34504   (exit $ac_status); }; }; then
34505   ac_cv_type_sig_atomic_t=yes
34506 else
34507   echo "$as_me: failed program was:" >&5
34508 sed 's/^/| /' conftest.$ac_ext >&5
34509
34510 ac_cv_type_sig_atomic_t=no
34511 fi
34512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34513 fi
34514 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34515 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34516 if test $ac_cv_type_sig_atomic_t = yes; then
34517   :
34518 else
34519
34520 cat >>confdefs.h <<_ACEOF
34521 #define sig_atomic_t int
34522 _ACEOF
34523
34524 fi
34525
34526
34527 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34528 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34529 if test "${ac_cv_type_uid_t+set}" = set; then
34530   echo $ECHO_N "(cached) $ECHO_C" >&6
34531 else
34532   cat >conftest.$ac_ext <<_ACEOF
34533 /* confdefs.h.  */
34534 _ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h.  */
34538 #include <sys/types.h>
34539
34540 _ACEOF
34541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34542   $EGREP "uid_t" >/dev/null 2>&1; then
34543   ac_cv_type_uid_t=yes
34544 else
34545   ac_cv_type_uid_t=no
34546 fi
34547 rm -f conftest*
34548
34549 fi
34550 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34551 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34552 if test $ac_cv_type_uid_t = no; then
34553
34554 cat >>confdefs.h <<\_ACEOF
34555 #define uid_t int
34556 _ACEOF
34557
34558
34559 cat >>confdefs.h <<\_ACEOF
34560 #define gid_t int
34561 _ACEOF
34562
34563 fi
34564
34565
34566 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34567 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34568 if test "${ac_cv_header_time+set}" = set; then
34569   echo $ECHO_N "(cached) $ECHO_C" >&6
34570 else
34571   cat >conftest.$ac_ext <<_ACEOF
34572 /* confdefs.h.  */
34573 _ACEOF
34574 cat confdefs.h >>conftest.$ac_ext
34575 cat >>conftest.$ac_ext <<_ACEOF
34576 /* end confdefs.h.  */
34577 #include <sys/types.h>
34578 #include <sys/time.h>
34579 #include <time.h>
34580
34581 int
34582 main ()
34583 {
34584 if ((struct tm *) 0)
34585 return 0;
34586   ;
34587   return 0;
34588 }
34589 _ACEOF
34590 rm -f conftest.$ac_objext
34591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34592   (eval $ac_compile) 2>conftest.er1
34593   ac_status=$?
34594   grep -v '^ *+' conftest.er1 >conftest.err
34595   rm -f conftest.er1
34596   cat conftest.err >&5
34597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34598   (exit $ac_status); } &&
34599          { ac_try='test -z "$ac_c_werror_flag"
34600                          || test ! -s conftest.err'
34601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34602   (eval $ac_try) 2>&5
34603   ac_status=$?
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); }; } &&
34606          { ac_try='test -s conftest.$ac_objext'
34607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34608   (eval $ac_try) 2>&5
34609   ac_status=$?
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); }; }; then
34612   ac_cv_header_time=yes
34613 else
34614   echo "$as_me: failed program was:" >&5
34615 sed 's/^/| /' conftest.$ac_ext >&5
34616
34617 ac_cv_header_time=no
34618 fi
34619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34620 fi
34621 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34622 echo "${ECHO_T}$ac_cv_header_time" >&6
34623 if test $ac_cv_header_time = yes; then
34624
34625 cat >>confdefs.h <<\_ACEOF
34626 #define TIME_WITH_SYS_TIME 1
34627 _ACEOF
34628
34629 fi
34630
34631 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34632 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34633 if test "${ac_cv_struct_tm+set}" = set; then
34634   echo $ECHO_N "(cached) $ECHO_C" >&6
34635 else
34636   cat >conftest.$ac_ext <<_ACEOF
34637 /* confdefs.h.  */
34638 _ACEOF
34639 cat confdefs.h >>conftest.$ac_ext
34640 cat >>conftest.$ac_ext <<_ACEOF
34641 /* end confdefs.h.  */
34642 #include <sys/types.h>
34643 #include <time.h>
34644
34645 int
34646 main ()
34647 {
34648 struct tm *tp; tp->tm_sec;
34649   ;
34650   return 0;
34651 }
34652 _ACEOF
34653 rm -f conftest.$ac_objext
34654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34655   (eval $ac_compile) 2>conftest.er1
34656   ac_status=$?
34657   grep -v '^ *+' conftest.er1 >conftest.err
34658   rm -f conftest.er1
34659   cat conftest.err >&5
34660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661   (exit $ac_status); } &&
34662          { ac_try='test -z "$ac_c_werror_flag"
34663                          || test ! -s conftest.err'
34664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34665   (eval $ac_try) 2>&5
34666   ac_status=$?
34667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668   (exit $ac_status); }; } &&
34669          { ac_try='test -s conftest.$ac_objext'
34670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34671   (eval $ac_try) 2>&5
34672   ac_status=$?
34673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674   (exit $ac_status); }; }; then
34675   ac_cv_struct_tm=time.h
34676 else
34677   echo "$as_me: failed program was:" >&5
34678 sed 's/^/| /' conftest.$ac_ext >&5
34679
34680 ac_cv_struct_tm=sys/time.h
34681 fi
34682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34683 fi
34684 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34685 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34686 if test $ac_cv_struct_tm = sys/time.h; then
34687
34688 cat >>confdefs.h <<\_ACEOF
34689 #define TM_IN_SYS_TIME 1
34690 _ACEOF
34691
34692 fi
34693
34694 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34695 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34696 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34697   echo $ECHO_N "(cached) $ECHO_C" >&6
34698 else
34699   cat >conftest.$ac_ext <<_ACEOF
34700 /* confdefs.h.  */
34701 _ACEOF
34702 cat confdefs.h >>conftest.$ac_ext
34703 cat >>conftest.$ac_ext <<_ACEOF
34704 /* end confdefs.h.  */
34705 $ac_includes_default
34706 int
34707 main ()
34708 {
34709 static struct stat ac_aggr;
34710 if (ac_aggr.st_blksize)
34711 return 0;
34712   ;
34713   return 0;
34714 }
34715 _ACEOF
34716 rm -f conftest.$ac_objext
34717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34718   (eval $ac_compile) 2>conftest.er1
34719   ac_status=$?
34720   grep -v '^ *+' conftest.er1 >conftest.err
34721   rm -f conftest.er1
34722   cat conftest.err >&5
34723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34724   (exit $ac_status); } &&
34725          { ac_try='test -z "$ac_c_werror_flag"
34726                          || test ! -s conftest.err'
34727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728   (eval $ac_try) 2>&5
34729   ac_status=$?
34730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731   (exit $ac_status); }; } &&
34732          { ac_try='test -s conftest.$ac_objext'
34733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34734   (eval $ac_try) 2>&5
34735   ac_status=$?
34736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34737   (exit $ac_status); }; }; then
34738   ac_cv_member_struct_stat_st_blksize=yes
34739 else
34740   echo "$as_me: failed program was:" >&5
34741 sed 's/^/| /' conftest.$ac_ext >&5
34742
34743 cat >conftest.$ac_ext <<_ACEOF
34744 /* confdefs.h.  */
34745 _ACEOF
34746 cat confdefs.h >>conftest.$ac_ext
34747 cat >>conftest.$ac_ext <<_ACEOF
34748 /* end confdefs.h.  */
34749 $ac_includes_default
34750 int
34751 main ()
34752 {
34753 static struct stat ac_aggr;
34754 if (sizeof ac_aggr.st_blksize)
34755 return 0;
34756   ;
34757   return 0;
34758 }
34759 _ACEOF
34760 rm -f conftest.$ac_objext
34761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34762   (eval $ac_compile) 2>conftest.er1
34763   ac_status=$?
34764   grep -v '^ *+' conftest.er1 >conftest.err
34765   rm -f conftest.er1
34766   cat conftest.err >&5
34767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768   (exit $ac_status); } &&
34769          { ac_try='test -z "$ac_c_werror_flag"
34770                          || test ! -s conftest.err'
34771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34772   (eval $ac_try) 2>&5
34773   ac_status=$?
34774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775   (exit $ac_status); }; } &&
34776          { ac_try='test -s conftest.$ac_objext'
34777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778   (eval $ac_try) 2>&5
34779   ac_status=$?
34780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781   (exit $ac_status); }; }; then
34782   ac_cv_member_struct_stat_st_blksize=yes
34783 else
34784   echo "$as_me: failed program was:" >&5
34785 sed 's/^/| /' conftest.$ac_ext >&5
34786
34787 ac_cv_member_struct_stat_st_blksize=no
34788 fi
34789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34790 fi
34791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34792 fi
34793 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34794 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34795 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34796
34797 cat >>confdefs.h <<_ACEOF
34798 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34799 _ACEOF
34800
34801
34802 fi
34803
34804 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34805 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34806 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34807   echo $ECHO_N "(cached) $ECHO_C" >&6
34808 else
34809   cat >conftest.$ac_ext <<_ACEOF
34810 /* confdefs.h.  */
34811 _ACEOF
34812 cat confdefs.h >>conftest.$ac_ext
34813 cat >>conftest.$ac_ext <<_ACEOF
34814 /* end confdefs.h.  */
34815 $ac_includes_default
34816 #include <pwd.h>
34817
34818 int
34819 main ()
34820 {
34821 static struct passwd ac_aggr;
34822 if (ac_aggr.pw_gecos)
34823 return 0;
34824   ;
34825   return 0;
34826 }
34827 _ACEOF
34828 rm -f conftest.$ac_objext
34829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34830   (eval $ac_compile) 2>conftest.er1
34831   ac_status=$?
34832   grep -v '^ *+' conftest.er1 >conftest.err
34833   rm -f conftest.er1
34834   cat conftest.err >&5
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); } &&
34837          { ac_try='test -z "$ac_c_werror_flag"
34838                          || test ! -s conftest.err'
34839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34840   (eval $ac_try) 2>&5
34841   ac_status=$?
34842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34843   (exit $ac_status); }; } &&
34844          { ac_try='test -s conftest.$ac_objext'
34845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846   (eval $ac_try) 2>&5
34847   ac_status=$?
34848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849   (exit $ac_status); }; }; then
34850   ac_cv_member_struct_passwd_pw_gecos=yes
34851 else
34852   echo "$as_me: failed program was:" >&5
34853 sed 's/^/| /' conftest.$ac_ext >&5
34854
34855 cat >conftest.$ac_ext <<_ACEOF
34856 /* confdefs.h.  */
34857 _ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h.  */
34861 $ac_includes_default
34862 #include <pwd.h>
34863
34864 int
34865 main ()
34866 {
34867 static struct passwd ac_aggr;
34868 if (sizeof ac_aggr.pw_gecos)
34869 return 0;
34870   ;
34871   return 0;
34872 }
34873 _ACEOF
34874 rm -f conftest.$ac_objext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34876   (eval $ac_compile) 2>conftest.er1
34877   ac_status=$?
34878   grep -v '^ *+' conftest.er1 >conftest.err
34879   rm -f conftest.er1
34880   cat conftest.err >&5
34881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882   (exit $ac_status); } &&
34883          { ac_try='test -z "$ac_c_werror_flag"
34884                          || test ! -s conftest.err'
34885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886   (eval $ac_try) 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); }; } &&
34890          { ac_try='test -s conftest.$ac_objext'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; }; then
34896   ac_cv_member_struct_passwd_pw_gecos=yes
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901 ac_cv_member_struct_passwd_pw_gecos=no
34902 fi
34903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34904 fi
34905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34906 fi
34907 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34908 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34909 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34910
34911 cat >>confdefs.h <<_ACEOF
34912 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34913 _ACEOF
34914
34915
34916 fi
34917
34918 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34919 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34920 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34921   echo $ECHO_N "(cached) $ECHO_C" >&6
34922 else
34923   cat >conftest.$ac_ext <<_ACEOF
34924 /* confdefs.h.  */
34925 _ACEOF
34926 cat confdefs.h >>conftest.$ac_ext
34927 cat >>conftest.$ac_ext <<_ACEOF
34928 /* end confdefs.h.  */
34929 $ac_includes_default
34930 #include <pwd.h>
34931
34932 int
34933 main ()
34934 {
34935 static struct passwd ac_aggr;
34936 if (ac_aggr.pw_passwd)
34937 return 0;
34938   ;
34939   return 0;
34940 }
34941 _ACEOF
34942 rm -f conftest.$ac_objext
34943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34944   (eval $ac_compile) 2>conftest.er1
34945   ac_status=$?
34946   grep -v '^ *+' conftest.er1 >conftest.err
34947   rm -f conftest.er1
34948   cat conftest.err >&5
34949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950   (exit $ac_status); } &&
34951          { ac_try='test -z "$ac_c_werror_flag"
34952                          || test ! -s conftest.err'
34953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954   (eval $ac_try) 2>&5
34955   ac_status=$?
34956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957   (exit $ac_status); }; } &&
34958          { ac_try='test -s conftest.$ac_objext'
34959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960   (eval $ac_try) 2>&5
34961   ac_status=$?
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); }; }; then
34964   ac_cv_member_struct_passwd_pw_passwd=yes
34965 else
34966   echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34968
34969 cat >conftest.$ac_ext <<_ACEOF
34970 /* confdefs.h.  */
34971 _ACEOF
34972 cat confdefs.h >>conftest.$ac_ext
34973 cat >>conftest.$ac_ext <<_ACEOF
34974 /* end confdefs.h.  */
34975 $ac_includes_default
34976 #include <pwd.h>
34977
34978 int
34979 main ()
34980 {
34981 static struct passwd ac_aggr;
34982 if (sizeof ac_aggr.pw_passwd)
34983 return 0;
34984   ;
34985   return 0;
34986 }
34987 _ACEOF
34988 rm -f conftest.$ac_objext
34989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34990   (eval $ac_compile) 2>conftest.er1
34991   ac_status=$?
34992   grep -v '^ *+' conftest.er1 >conftest.err
34993   rm -f conftest.er1
34994   cat conftest.err >&5
34995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996   (exit $ac_status); } &&
34997          { ac_try='test -z "$ac_c_werror_flag"
34998                          || test ! -s conftest.err'
34999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000   (eval $ac_try) 2>&5
35001   ac_status=$?
35002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003   (exit $ac_status); }; } &&
35004          { ac_try='test -s conftest.$ac_objext'
35005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006   (eval $ac_try) 2>&5
35007   ac_status=$?
35008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009   (exit $ac_status); }; }; then
35010   ac_cv_member_struct_passwd_pw_passwd=yes
35011 else
35012   echo "$as_me: failed program was:" >&5
35013 sed 's/^/| /' conftest.$ac_ext >&5
35014
35015 ac_cv_member_struct_passwd_pw_passwd=no
35016 fi
35017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35018 fi
35019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35020 fi
35021 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
35022 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
35023 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
35024
35025 cat >>confdefs.h <<_ACEOF
35026 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
35027 _ACEOF
35028
35029
35030 fi
35031
35032
35033 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
35034 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
35035 if test "${ol_cv_c_upper_lower+set}" = set; then
35036   echo $ECHO_N "(cached) $ECHO_C" >&6
35037 else
35038
35039         if test "$cross_compiling" = yes; then
35040   ol_cv_c_upper_lower=safe
35041 else
35042   cat >conftest.$ac_ext <<_ACEOF
35043 /* confdefs.h.  */
35044 _ACEOF
35045 cat confdefs.h >>conftest.$ac_ext
35046 cat >>conftest.$ac_ext <<_ACEOF
35047 /* end confdefs.h.  */
35048
35049 #include <ctype.h>
35050 main()
35051 {
35052         if ('C' == toupper('C'))
35053                 exit(0);
35054         else
35055                 exit(1);
35056 }
35057 _ACEOF
35058 rm -f conftest$ac_exeext
35059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35060   (eval $ac_link) 2>&5
35061   ac_status=$?
35062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065   (eval $ac_try) 2>&5
35066   ac_status=$?
35067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068   (exit $ac_status); }; }; then
35069   ol_cv_c_upper_lower=no
35070 else
35071   echo "$as_me: program exited with status $ac_status" >&5
35072 echo "$as_me: failed program was:" >&5
35073 sed 's/^/| /' conftest.$ac_ext >&5
35074
35075 ( exit $ac_status )
35076 ol_cv_c_upper_lower=yes
35077 fi
35078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35079 fi
35080 fi
35081 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
35082 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
35083 if test $ol_cv_c_upper_lower != no ; then
35084
35085 cat >>confdefs.h <<\_ACEOF
35086 #define C_UPPER_LOWER 1
35087 _ACEOF
35088
35089 fi
35090
35091 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35092 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35093 if test "${ac_cv_c_const+set}" = set; then
35094   echo $ECHO_N "(cached) $ECHO_C" >&6
35095 else
35096   cat >conftest.$ac_ext <<_ACEOF
35097 /* confdefs.h.  */
35098 _ACEOF
35099 cat confdefs.h >>conftest.$ac_ext
35100 cat >>conftest.$ac_ext <<_ACEOF
35101 /* end confdefs.h.  */
35102
35103 int
35104 main ()
35105 {
35106 /* FIXME: Include the comments suggested by Paul. */
35107 #ifndef __cplusplus
35108   /* Ultrix mips cc rejects this.  */
35109   typedef int charset[2];
35110   const charset x;
35111   /* SunOS 4.1.1 cc rejects this.  */
35112   char const *const *ccp;
35113   char **p;
35114   /* NEC SVR4.0.2 mips cc rejects this.  */
35115   struct point {int x, y;};
35116   static struct point const zero = {0,0};
35117   /* AIX XL C 1.02.0.0 rejects this.
35118      It does not let you subtract one const X* pointer from another in
35119      an arm of an if-expression whose if-part is not a constant
35120      expression */
35121   const char *g = "string";
35122   ccp = &g + (g ? g-g : 0);
35123   /* HPUX 7.0 cc rejects these. */
35124   ++ccp;
35125   p = (char**) ccp;
35126   ccp = (char const *const *) p;
35127   { /* SCO 3.2v4 cc rejects this.  */
35128     char *t;
35129     char const *s = 0 ? (char *) 0 : (char const *) 0;
35130
35131     *t++ = 0;
35132   }
35133   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35134     int x[] = {25, 17};
35135     const int *foo = &x[0];
35136     ++foo;
35137   }
35138   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35139     typedef const int *iptr;
35140     iptr p = 0;
35141     ++p;
35142   }
35143   { /* AIX XL C 1.02.0.0 rejects this saying
35144        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35145     struct s { int j; const int *ap[3]; };
35146     struct s *b; b->j = 5;
35147   }
35148   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35149     const int foo = 10;
35150   }
35151 #endif
35152
35153   ;
35154   return 0;
35155 }
35156 _ACEOF
35157 rm -f conftest.$ac_objext
35158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35159   (eval $ac_compile) 2>conftest.er1
35160   ac_status=$?
35161   grep -v '^ *+' conftest.er1 >conftest.err
35162   rm -f conftest.er1
35163   cat conftest.err >&5
35164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35165   (exit $ac_status); } &&
35166          { ac_try='test -z "$ac_c_werror_flag"
35167                          || test ! -s conftest.err'
35168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35169   (eval $ac_try) 2>&5
35170   ac_status=$?
35171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172   (exit $ac_status); }; } &&
35173          { ac_try='test -s conftest.$ac_objext'
35174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35175   (eval $ac_try) 2>&5
35176   ac_status=$?
35177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35178   (exit $ac_status); }; }; then
35179   ac_cv_c_const=yes
35180 else
35181   echo "$as_me: failed program was:" >&5
35182 sed 's/^/| /' conftest.$ac_ext >&5
35183
35184 ac_cv_c_const=no
35185 fi
35186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35187 fi
35188 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35189 echo "${ECHO_T}$ac_cv_c_const" >&6
35190 if test $ac_cv_c_const = no; then
35191
35192 cat >>confdefs.h <<\_ACEOF
35193 #define const
35194 _ACEOF
35195
35196 fi
35197
35198 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35199 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35200 if test "${ol_cv_c_volatile+set}" = set; then
35201   echo $ECHO_N "(cached) $ECHO_C" >&6
35202 else
35203   cat >conftest.$ac_ext <<_ACEOF
35204 /* confdefs.h.  */
35205 _ACEOF
35206 cat confdefs.h >>conftest.$ac_ext
35207 cat >>conftest.$ac_ext <<_ACEOF
35208 /* end confdefs.h.  */
35209 int x, y, z;
35210 int
35211 main ()
35212 {
35213 volatile int a; int * volatile b = x ? &y : &z;
35214       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35215       *b = 0;
35216   ;
35217   return 0;
35218 }
35219 _ACEOF
35220 rm -f conftest.$ac_objext
35221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35222   (eval $ac_compile) 2>conftest.er1
35223   ac_status=$?
35224   grep -v '^ *+' conftest.er1 >conftest.err
35225   rm -f conftest.er1
35226   cat conftest.err >&5
35227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35228   (exit $ac_status); } &&
35229          { ac_try='test -z "$ac_c_werror_flag"
35230                          || test ! -s conftest.err'
35231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35232   (eval $ac_try) 2>&5
35233   ac_status=$?
35234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235   (exit $ac_status); }; } &&
35236          { ac_try='test -s conftest.$ac_objext'
35237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238   (eval $ac_try) 2>&5
35239   ac_status=$?
35240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241   (exit $ac_status); }; }; then
35242   ol_cv_c_volatile=yes
35243 else
35244   echo "$as_me: failed program was:" >&5
35245 sed 's/^/| /' conftest.$ac_ext >&5
35246
35247 ol_cv_c_volatile=no
35248 fi
35249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35250 fi
35251 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35252 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35253   if test $ol_cv_c_volatile = yes; then
35254     :
35255   else
35256
35257 cat >>confdefs.h <<\_ACEOF
35258 #define volatile
35259 _ACEOF
35260
35261   fi
35262
35263
35264 if test $cross_compiling = yes ; then
35265         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35266 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35267
35268 cat >>confdefs.h <<\_ACEOF
35269 #define CROSS_COMPILING 1
35270 _ACEOF
35271
35272 else
35273         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35274 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35275 if test "${ac_cv_c_bigendian+set}" = set; then
35276   echo $ECHO_N "(cached) $ECHO_C" >&6
35277 else
35278   # See if sys/param.h defines the BYTE_ORDER macro.
35279 cat >conftest.$ac_ext <<_ACEOF
35280 /* confdefs.h.  */
35281 _ACEOF
35282 cat confdefs.h >>conftest.$ac_ext
35283 cat >>conftest.$ac_ext <<_ACEOF
35284 /* end confdefs.h.  */
35285 #include <sys/types.h>
35286 #include <sys/param.h>
35287
35288 int
35289 main ()
35290 {
35291 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35292  bogus endian macros
35293 #endif
35294
35295   ;
35296   return 0;
35297 }
35298 _ACEOF
35299 rm -f conftest.$ac_objext
35300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35301   (eval $ac_compile) 2>conftest.er1
35302   ac_status=$?
35303   grep -v '^ *+' conftest.er1 >conftest.err
35304   rm -f conftest.er1
35305   cat conftest.err >&5
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); } &&
35308          { ac_try='test -z "$ac_c_werror_flag"
35309                          || test ! -s conftest.err'
35310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311   (eval $ac_try) 2>&5
35312   ac_status=$?
35313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314   (exit $ac_status); }; } &&
35315          { ac_try='test -s conftest.$ac_objext'
35316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317   (eval $ac_try) 2>&5
35318   ac_status=$?
35319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320   (exit $ac_status); }; }; then
35321   # It does; now see whether it defined to BIG_ENDIAN or not.
35322 cat >conftest.$ac_ext <<_ACEOF
35323 /* confdefs.h.  */
35324 _ACEOF
35325 cat confdefs.h >>conftest.$ac_ext
35326 cat >>conftest.$ac_ext <<_ACEOF
35327 /* end confdefs.h.  */
35328 #include <sys/types.h>
35329 #include <sys/param.h>
35330
35331 int
35332 main ()
35333 {
35334 #if BYTE_ORDER != BIG_ENDIAN
35335  not big endian
35336 #endif
35337
35338   ;
35339   return 0;
35340 }
35341 _ACEOF
35342 rm -f conftest.$ac_objext
35343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35344   (eval $ac_compile) 2>conftest.er1
35345   ac_status=$?
35346   grep -v '^ *+' conftest.er1 >conftest.err
35347   rm -f conftest.er1
35348   cat conftest.err >&5
35349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350   (exit $ac_status); } &&
35351          { ac_try='test -z "$ac_c_werror_flag"
35352                          || test ! -s conftest.err'
35353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35354   (eval $ac_try) 2>&5
35355   ac_status=$?
35356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357   (exit $ac_status); }; } &&
35358          { ac_try='test -s conftest.$ac_objext'
35359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360   (eval $ac_try) 2>&5
35361   ac_status=$?
35362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363   (exit $ac_status); }; }; then
35364   ac_cv_c_bigendian=yes
35365 else
35366   echo "$as_me: failed program was:" >&5
35367 sed 's/^/| /' conftest.$ac_ext >&5
35368
35369 ac_cv_c_bigendian=no
35370 fi
35371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35372 else
35373   echo "$as_me: failed program was:" >&5
35374 sed 's/^/| /' conftest.$ac_ext >&5
35375
35376 # It does not; compile a test program.
35377 if test "$cross_compiling" = yes; then
35378   # try to guess the endianness by grepping values into an object file
35379   ac_cv_c_bigendian=unknown
35380   cat >conftest.$ac_ext <<_ACEOF
35381 /* confdefs.h.  */
35382 _ACEOF
35383 cat confdefs.h >>conftest.$ac_ext
35384 cat >>conftest.$ac_ext <<_ACEOF
35385 /* end confdefs.h.  */
35386 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35387 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35388 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35389 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35390 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35391 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35392 int
35393 main ()
35394 {
35395  _ascii (); _ebcdic ();
35396   ;
35397   return 0;
35398 }
35399 _ACEOF
35400 rm -f conftest.$ac_objext
35401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35402   (eval $ac_compile) 2>conftest.er1
35403   ac_status=$?
35404   grep -v '^ *+' conftest.er1 >conftest.err
35405   rm -f conftest.er1
35406   cat conftest.err >&5
35407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35408   (exit $ac_status); } &&
35409          { ac_try='test -z "$ac_c_werror_flag"
35410                          || test ! -s conftest.err'
35411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35412   (eval $ac_try) 2>&5
35413   ac_status=$?
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); }; } &&
35416          { ac_try='test -s conftest.$ac_objext'
35417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418   (eval $ac_try) 2>&5
35419   ac_status=$?
35420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421   (exit $ac_status); }; }; then
35422   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35423   ac_cv_c_bigendian=yes
35424 fi
35425 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35426   if test "$ac_cv_c_bigendian" = unknown; then
35427     ac_cv_c_bigendian=no
35428   else
35429     # finding both strings is unlikely to happen, but who knows?
35430     ac_cv_c_bigendian=unknown
35431   fi
35432 fi
35433 else
35434   echo "$as_me: failed program was:" >&5
35435 sed 's/^/| /' conftest.$ac_ext >&5
35436
35437 fi
35438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35439 else
35440   cat >conftest.$ac_ext <<_ACEOF
35441 /* confdefs.h.  */
35442 _ACEOF
35443 cat confdefs.h >>conftest.$ac_ext
35444 cat >>conftest.$ac_ext <<_ACEOF
35445 /* end confdefs.h.  */
35446 int
35447 main ()
35448 {
35449   /* Are we little or big endian?  From Harbison&Steele.  */
35450   union
35451   {
35452     long l;
35453     char c[sizeof (long)];
35454   } u;
35455   u.l = 1;
35456   exit (u.c[sizeof (long) - 1] == 1);
35457 }
35458 _ACEOF
35459 rm -f conftest$ac_exeext
35460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35461   (eval $ac_link) 2>&5
35462   ac_status=$?
35463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35464   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466   (eval $ac_try) 2>&5
35467   ac_status=$?
35468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469   (exit $ac_status); }; }; then
35470   ac_cv_c_bigendian=no
35471 else
35472   echo "$as_me: program exited with status $ac_status" >&5
35473 echo "$as_me: failed program was:" >&5
35474 sed 's/^/| /' conftest.$ac_ext >&5
35475
35476 ( exit $ac_status )
35477 ac_cv_c_bigendian=yes
35478 fi
35479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35480 fi
35481 fi
35482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35483 fi
35484 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35485 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35486 case $ac_cv_c_bigendian in
35487   yes)
35488
35489 cat >>confdefs.h <<\_ACEOF
35490 #define WORDS_BIGENDIAN 1
35491 _ACEOF
35492  ;;
35493   no)
35494      ;;
35495   *)
35496     { { echo "$as_me:$LINENO: error: unknown endianness
35497 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35498 echo "$as_me: error: unknown endianness
35499 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35500    { (exit 1); exit 1; }; } ;;
35501 esac
35502
35503 fi
35504
35505 echo "$as_me:$LINENO: checking for short" >&5
35506 echo $ECHO_N "checking for short... $ECHO_C" >&6
35507 if test "${ac_cv_type_short+set}" = set; then
35508   echo $ECHO_N "(cached) $ECHO_C" >&6
35509 else
35510   cat >conftest.$ac_ext <<_ACEOF
35511 /* confdefs.h.  */
35512 _ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h.  */
35516 $ac_includes_default
35517 int
35518 main ()
35519 {
35520 if ((short *) 0)
35521   return 0;
35522 if (sizeof (short))
35523   return 0;
35524   ;
35525   return 0;
35526 }
35527 _ACEOF
35528 rm -f conftest.$ac_objext
35529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35530   (eval $ac_compile) 2>conftest.er1
35531   ac_status=$?
35532   grep -v '^ *+' conftest.er1 >conftest.err
35533   rm -f conftest.er1
35534   cat conftest.err >&5
35535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35536   (exit $ac_status); } &&
35537          { ac_try='test -z "$ac_c_werror_flag"
35538                          || test ! -s conftest.err'
35539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35540   (eval $ac_try) 2>&5
35541   ac_status=$?
35542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543   (exit $ac_status); }; } &&
35544          { ac_try='test -s conftest.$ac_objext'
35545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546   (eval $ac_try) 2>&5
35547   ac_status=$?
35548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549   (exit $ac_status); }; }; then
35550   ac_cv_type_short=yes
35551 else
35552   echo "$as_me: failed program was:" >&5
35553 sed 's/^/| /' conftest.$ac_ext >&5
35554
35555 ac_cv_type_short=no
35556 fi
35557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35558 fi
35559 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35560 echo "${ECHO_T}$ac_cv_type_short" >&6
35561
35562 echo "$as_me:$LINENO: checking size of short" >&5
35563 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35564 if test "${ac_cv_sizeof_short+set}" = set; then
35565   echo $ECHO_N "(cached) $ECHO_C" >&6
35566 else
35567   if test "$ac_cv_type_short" = yes; then
35568   # The cast to unsigned long works around a bug in the HP C Compiler
35569   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35570   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35571   # This bug is HP SR number 8606223364.
35572   if test "$cross_compiling" = yes; then
35573   # Depending upon the size, compute the lo and hi bounds.
35574 cat >conftest.$ac_ext <<_ACEOF
35575 /* confdefs.h.  */
35576 _ACEOF
35577 cat confdefs.h >>conftest.$ac_ext
35578 cat >>conftest.$ac_ext <<_ACEOF
35579 /* end confdefs.h.  */
35580 $ac_includes_default
35581 int
35582 main ()
35583 {
35584 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35585 test_array [0] = 0
35586
35587   ;
35588   return 0;
35589 }
35590 _ACEOF
35591 rm -f conftest.$ac_objext
35592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35593   (eval $ac_compile) 2>conftest.er1
35594   ac_status=$?
35595   grep -v '^ *+' conftest.er1 >conftest.err
35596   rm -f conftest.er1
35597   cat conftest.err >&5
35598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599   (exit $ac_status); } &&
35600          { ac_try='test -z "$ac_c_werror_flag"
35601                          || test ! -s conftest.err'
35602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35603   (eval $ac_try) 2>&5
35604   ac_status=$?
35605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606   (exit $ac_status); }; } &&
35607          { ac_try='test -s conftest.$ac_objext'
35608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35609   (eval $ac_try) 2>&5
35610   ac_status=$?
35611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35612   (exit $ac_status); }; }; then
35613   ac_lo=0 ac_mid=0
35614   while :; do
35615     cat >conftest.$ac_ext <<_ACEOF
35616 /* confdefs.h.  */
35617 _ACEOF
35618 cat confdefs.h >>conftest.$ac_ext
35619 cat >>conftest.$ac_ext <<_ACEOF
35620 /* end confdefs.h.  */
35621 $ac_includes_default
35622 int
35623 main ()
35624 {
35625 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35626 test_array [0] = 0
35627
35628   ;
35629   return 0;
35630 }
35631 _ACEOF
35632 rm -f conftest.$ac_objext
35633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35634   (eval $ac_compile) 2>conftest.er1
35635   ac_status=$?
35636   grep -v '^ *+' conftest.er1 >conftest.err
35637   rm -f conftest.er1
35638   cat conftest.err >&5
35639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640   (exit $ac_status); } &&
35641          { ac_try='test -z "$ac_c_werror_flag"
35642                          || test ! -s conftest.err'
35643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35644   (eval $ac_try) 2>&5
35645   ac_status=$?
35646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647   (exit $ac_status); }; } &&
35648          { ac_try='test -s conftest.$ac_objext'
35649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35650   (eval $ac_try) 2>&5
35651   ac_status=$?
35652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); }; }; then
35654   ac_hi=$ac_mid; break
35655 else
35656   echo "$as_me: failed program was:" >&5
35657 sed 's/^/| /' conftest.$ac_ext >&5
35658
35659 ac_lo=`expr $ac_mid + 1`
35660                     if test $ac_lo -le $ac_mid; then
35661                       ac_lo= ac_hi=
35662                       break
35663                     fi
35664                     ac_mid=`expr 2 '*' $ac_mid + 1`
35665 fi
35666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35667   done
35668 else
35669   echo "$as_me: failed program was:" >&5
35670 sed 's/^/| /' conftest.$ac_ext >&5
35671
35672 cat >conftest.$ac_ext <<_ACEOF
35673 /* confdefs.h.  */
35674 _ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h.  */
35678 $ac_includes_default
35679 int
35680 main ()
35681 {
35682 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35683 test_array [0] = 0
35684
35685   ;
35686   return 0;
35687 }
35688 _ACEOF
35689 rm -f conftest.$ac_objext
35690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35691   (eval $ac_compile) 2>conftest.er1
35692   ac_status=$?
35693   grep -v '^ *+' conftest.er1 >conftest.err
35694   rm -f conftest.er1
35695   cat conftest.err >&5
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); } &&
35698          { ac_try='test -z "$ac_c_werror_flag"
35699                          || test ! -s conftest.err'
35700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701   (eval $ac_try) 2>&5
35702   ac_status=$?
35703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704   (exit $ac_status); }; } &&
35705          { ac_try='test -s conftest.$ac_objext'
35706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35707   (eval $ac_try) 2>&5
35708   ac_status=$?
35709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35710   (exit $ac_status); }; }; then
35711   ac_hi=-1 ac_mid=-1
35712   while :; do
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 int
35721 main ()
35722 {
35723 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35724 test_array [0] = 0
35725
35726   ;
35727   return 0;
35728 }
35729 _ACEOF
35730 rm -f conftest.$ac_objext
35731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35732   (eval $ac_compile) 2>conftest.er1
35733   ac_status=$?
35734   grep -v '^ *+' conftest.er1 >conftest.err
35735   rm -f conftest.er1
35736   cat conftest.err >&5
35737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35738   (exit $ac_status); } &&
35739          { ac_try='test -z "$ac_c_werror_flag"
35740                          || test ! -s conftest.err'
35741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742   (eval $ac_try) 2>&5
35743   ac_status=$?
35744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745   (exit $ac_status); }; } &&
35746          { ac_try='test -s conftest.$ac_objext'
35747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35748   (eval $ac_try) 2>&5
35749   ac_status=$?
35750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751   (exit $ac_status); }; }; then
35752   ac_lo=$ac_mid; break
35753 else
35754   echo "$as_me: failed program was:" >&5
35755 sed 's/^/| /' conftest.$ac_ext >&5
35756
35757 ac_hi=`expr '(' $ac_mid ')' - 1`
35758                        if test $ac_mid -le $ac_hi; then
35759                          ac_lo= ac_hi=
35760                          break
35761                        fi
35762                        ac_mid=`expr 2 '*' $ac_mid`
35763 fi
35764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35765   done
35766 else
35767   echo "$as_me: failed program was:" >&5
35768 sed 's/^/| /' conftest.$ac_ext >&5
35769
35770 ac_lo= ac_hi=
35771 fi
35772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35773 fi
35774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35775 # Binary search between lo and hi bounds.
35776 while test "x$ac_lo" != "x$ac_hi"; do
35777   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35778   cat >conftest.$ac_ext <<_ACEOF
35779 /* confdefs.h.  */
35780 _ACEOF
35781 cat confdefs.h >>conftest.$ac_ext
35782 cat >>conftest.$ac_ext <<_ACEOF
35783 /* end confdefs.h.  */
35784 $ac_includes_default
35785 int
35786 main ()
35787 {
35788 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35789 test_array [0] = 0
35790
35791   ;
35792   return 0;
35793 }
35794 _ACEOF
35795 rm -f conftest.$ac_objext
35796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35797   (eval $ac_compile) 2>conftest.er1
35798   ac_status=$?
35799   grep -v '^ *+' conftest.er1 >conftest.err
35800   rm -f conftest.er1
35801   cat conftest.err >&5
35802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35803   (exit $ac_status); } &&
35804          { ac_try='test -z "$ac_c_werror_flag"
35805                          || test ! -s conftest.err'
35806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807   (eval $ac_try) 2>&5
35808   ac_status=$?
35809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810   (exit $ac_status); }; } &&
35811          { ac_try='test -s conftest.$ac_objext'
35812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813   (eval $ac_try) 2>&5
35814   ac_status=$?
35815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816   (exit $ac_status); }; }; then
35817   ac_hi=$ac_mid
35818 else
35819   echo "$as_me: failed program was:" >&5
35820 sed 's/^/| /' conftest.$ac_ext >&5
35821
35822 ac_lo=`expr '(' $ac_mid ')' + 1`
35823 fi
35824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35825 done
35826 case $ac_lo in
35827 ?*) ac_cv_sizeof_short=$ac_lo;;
35828 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35829 See \`config.log' for more details." >&5
35830 echo "$as_me: error: cannot compute sizeof (short), 77
35831 See \`config.log' for more details." >&2;}
35832    { (exit 1); exit 1; }; } ;;
35833 esac
35834 else
35835   if test "$cross_compiling" = yes; then
35836   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35837 See \`config.log' for more details." >&5
35838 echo "$as_me: error: cannot run test program while cross compiling
35839 See \`config.log' for more details." >&2;}
35840    { (exit 1); exit 1; }; }
35841 else
35842   cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848 $ac_includes_default
35849 long longval () { return (long) (sizeof (short)); }
35850 unsigned long ulongval () { return (long) (sizeof (short)); }
35851 #include <stdio.h>
35852 #include <stdlib.h>
35853 int
35854 main ()
35855 {
35856
35857   FILE *f = fopen ("conftest.val", "w");
35858   if (! f)
35859     exit (1);
35860   if (((long) (sizeof (short))) < 0)
35861     {
35862       long i = longval ();
35863       if (i != ((long) (sizeof (short))))
35864         exit (1);
35865       fprintf (f, "%ld\n", i);
35866     }
35867   else
35868     {
35869       unsigned long i = ulongval ();
35870       if (i != ((long) (sizeof (short))))
35871         exit (1);
35872       fprintf (f, "%lu\n", i);
35873     }
35874   exit (ferror (f) || fclose (f) != 0);
35875
35876   ;
35877   return 0;
35878 }
35879 _ACEOF
35880 rm -f conftest$ac_exeext
35881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35882   (eval $ac_link) 2>&5
35883   ac_status=$?
35884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887   (eval $ac_try) 2>&5
35888   ac_status=$?
35889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890   (exit $ac_status); }; }; then
35891   ac_cv_sizeof_short=`cat conftest.val`
35892 else
35893   echo "$as_me: program exited with status $ac_status" >&5
35894 echo "$as_me: failed program was:" >&5
35895 sed 's/^/| /' conftest.$ac_ext >&5
35896
35897 ( exit $ac_status )
35898 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35899 See \`config.log' for more details." >&5
35900 echo "$as_me: error: cannot compute sizeof (short), 77
35901 See \`config.log' for more details." >&2;}
35902    { (exit 1); exit 1; }; }
35903 fi
35904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35905 fi
35906 fi
35907 rm -f conftest.val
35908 else
35909   ac_cv_sizeof_short=0
35910 fi
35911 fi
35912 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35913 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35914 cat >>confdefs.h <<_ACEOF
35915 #define SIZEOF_SHORT $ac_cv_sizeof_short
35916 _ACEOF
35917
35918
35919 echo "$as_me:$LINENO: checking for int" >&5
35920 echo $ECHO_N "checking for int... $ECHO_C" >&6
35921 if test "${ac_cv_type_int+set}" = set; then
35922   echo $ECHO_N "(cached) $ECHO_C" >&6
35923 else
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 $ac_includes_default
35931 int
35932 main ()
35933 {
35934 if ((int *) 0)
35935   return 0;
35936 if (sizeof (int))
35937   return 0;
35938   ;
35939   return 0;
35940 }
35941 _ACEOF
35942 rm -f conftest.$ac_objext
35943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35944   (eval $ac_compile) 2>conftest.er1
35945   ac_status=$?
35946   grep -v '^ *+' conftest.er1 >conftest.err
35947   rm -f conftest.er1
35948   cat conftest.err >&5
35949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950   (exit $ac_status); } &&
35951          { ac_try='test -z "$ac_c_werror_flag"
35952                          || test ! -s conftest.err'
35953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35954   (eval $ac_try) 2>&5
35955   ac_status=$?
35956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957   (exit $ac_status); }; } &&
35958          { ac_try='test -s conftest.$ac_objext'
35959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35960   (eval $ac_try) 2>&5
35961   ac_status=$?
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); }; }; then
35964   ac_cv_type_int=yes
35965 else
35966   echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.$ac_ext >&5
35968
35969 ac_cv_type_int=no
35970 fi
35971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35972 fi
35973 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35974 echo "${ECHO_T}$ac_cv_type_int" >&6
35975
35976 echo "$as_me:$LINENO: checking size of int" >&5
35977 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35978 if test "${ac_cv_sizeof_int+set}" = set; then
35979   echo $ECHO_N "(cached) $ECHO_C" >&6
35980 else
35981   if test "$ac_cv_type_int" = yes; then
35982   # The cast to unsigned long works around a bug in the HP C Compiler
35983   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35984   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35985   # This bug is HP SR number 8606223364.
35986   if test "$cross_compiling" = yes; then
35987   # Depending upon the size, compute the lo and hi bounds.
35988 cat >conftest.$ac_ext <<_ACEOF
35989 /* confdefs.h.  */
35990 _ACEOF
35991 cat confdefs.h >>conftest.$ac_ext
35992 cat >>conftest.$ac_ext <<_ACEOF
35993 /* end confdefs.h.  */
35994 $ac_includes_default
35995 int
35996 main ()
35997 {
35998 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35999 test_array [0] = 0
36000
36001   ;
36002   return 0;
36003 }
36004 _ACEOF
36005 rm -f conftest.$ac_objext
36006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36007   (eval $ac_compile) 2>conftest.er1
36008   ac_status=$?
36009   grep -v '^ *+' conftest.er1 >conftest.err
36010   rm -f conftest.er1
36011   cat conftest.err >&5
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); } &&
36014          { ac_try='test -z "$ac_c_werror_flag"
36015                          || test ! -s conftest.err'
36016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017   (eval $ac_try) 2>&5
36018   ac_status=$?
36019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020   (exit $ac_status); }; } &&
36021          { ac_try='test -s conftest.$ac_objext'
36022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023   (eval $ac_try) 2>&5
36024   ac_status=$?
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); }; }; then
36027   ac_lo=0 ac_mid=0
36028   while :; do
36029     cat >conftest.$ac_ext <<_ACEOF
36030 /* confdefs.h.  */
36031 _ACEOF
36032 cat confdefs.h >>conftest.$ac_ext
36033 cat >>conftest.$ac_ext <<_ACEOF
36034 /* end confdefs.h.  */
36035 $ac_includes_default
36036 int
36037 main ()
36038 {
36039 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36040 test_array [0] = 0
36041
36042   ;
36043   return 0;
36044 }
36045 _ACEOF
36046 rm -f conftest.$ac_objext
36047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36048   (eval $ac_compile) 2>conftest.er1
36049   ac_status=$?
36050   grep -v '^ *+' conftest.er1 >conftest.err
36051   rm -f conftest.er1
36052   cat conftest.err >&5
36053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36054   (exit $ac_status); } &&
36055          { ac_try='test -z "$ac_c_werror_flag"
36056                          || test ! -s conftest.err'
36057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36058   (eval $ac_try) 2>&5
36059   ac_status=$?
36060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36061   (exit $ac_status); }; } &&
36062          { ac_try='test -s conftest.$ac_objext'
36063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36064   (eval $ac_try) 2>&5
36065   ac_status=$?
36066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067   (exit $ac_status); }; }; then
36068   ac_hi=$ac_mid; break
36069 else
36070   echo "$as_me: failed program was:" >&5
36071 sed 's/^/| /' conftest.$ac_ext >&5
36072
36073 ac_lo=`expr $ac_mid + 1`
36074                     if test $ac_lo -le $ac_mid; then
36075                       ac_lo= ac_hi=
36076                       break
36077                     fi
36078                     ac_mid=`expr 2 '*' $ac_mid + 1`
36079 fi
36080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36081   done
36082 else
36083   echo "$as_me: failed program was:" >&5
36084 sed 's/^/| /' conftest.$ac_ext >&5
36085
36086 cat >conftest.$ac_ext <<_ACEOF
36087 /* confdefs.h.  */
36088 _ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h.  */
36092 $ac_includes_default
36093 int
36094 main ()
36095 {
36096 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
36097 test_array [0] = 0
36098
36099   ;
36100   return 0;
36101 }
36102 _ACEOF
36103 rm -f conftest.$ac_objext
36104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36105   (eval $ac_compile) 2>conftest.er1
36106   ac_status=$?
36107   grep -v '^ *+' conftest.er1 >conftest.err
36108   rm -f conftest.er1
36109   cat conftest.err >&5
36110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111   (exit $ac_status); } &&
36112          { ac_try='test -z "$ac_c_werror_flag"
36113                          || test ! -s conftest.err'
36114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36115   (eval $ac_try) 2>&5
36116   ac_status=$?
36117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118   (exit $ac_status); }; } &&
36119          { ac_try='test -s conftest.$ac_objext'
36120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36121   (eval $ac_try) 2>&5
36122   ac_status=$?
36123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36124   (exit $ac_status); }; }; then
36125   ac_hi=-1 ac_mid=-1
36126   while :; do
36127     cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133 $ac_includes_default
36134 int
36135 main ()
36136 {
36137 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36138 test_array [0] = 0
36139
36140   ;
36141   return 0;
36142 }
36143 _ACEOF
36144 rm -f conftest.$ac_objext
36145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36146   (eval $ac_compile) 2>conftest.er1
36147   ac_status=$?
36148   grep -v '^ *+' conftest.er1 >conftest.err
36149   rm -f conftest.er1
36150   cat conftest.err >&5
36151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36152   (exit $ac_status); } &&
36153          { ac_try='test -z "$ac_c_werror_flag"
36154                          || test ! -s conftest.err'
36155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36156   (eval $ac_try) 2>&5
36157   ac_status=$?
36158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36159   (exit $ac_status); }; } &&
36160          { ac_try='test -s conftest.$ac_objext'
36161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36162   (eval $ac_try) 2>&5
36163   ac_status=$?
36164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36165   (exit $ac_status); }; }; then
36166   ac_lo=$ac_mid; break
36167 else
36168   echo "$as_me: failed program was:" >&5
36169 sed 's/^/| /' conftest.$ac_ext >&5
36170
36171 ac_hi=`expr '(' $ac_mid ')' - 1`
36172                        if test $ac_mid -le $ac_hi; then
36173                          ac_lo= ac_hi=
36174                          break
36175                        fi
36176                        ac_mid=`expr 2 '*' $ac_mid`
36177 fi
36178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36179   done
36180 else
36181   echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36183
36184 ac_lo= ac_hi=
36185 fi
36186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36187 fi
36188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36189 # Binary search between lo and hi bounds.
36190 while test "x$ac_lo" != "x$ac_hi"; do
36191   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36192   cat >conftest.$ac_ext <<_ACEOF
36193 /* confdefs.h.  */
36194 _ACEOF
36195 cat confdefs.h >>conftest.$ac_ext
36196 cat >>conftest.$ac_ext <<_ACEOF
36197 /* end confdefs.h.  */
36198 $ac_includes_default
36199 int
36200 main ()
36201 {
36202 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36203 test_array [0] = 0
36204
36205   ;
36206   return 0;
36207 }
36208 _ACEOF
36209 rm -f conftest.$ac_objext
36210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36211   (eval $ac_compile) 2>conftest.er1
36212   ac_status=$?
36213   grep -v '^ *+' conftest.er1 >conftest.err
36214   rm -f conftest.er1
36215   cat conftest.err >&5
36216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217   (exit $ac_status); } &&
36218          { ac_try='test -z "$ac_c_werror_flag"
36219                          || test ! -s conftest.err'
36220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36221   (eval $ac_try) 2>&5
36222   ac_status=$?
36223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36224   (exit $ac_status); }; } &&
36225          { ac_try='test -s conftest.$ac_objext'
36226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227   (eval $ac_try) 2>&5
36228   ac_status=$?
36229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230   (exit $ac_status); }; }; then
36231   ac_hi=$ac_mid
36232 else
36233   echo "$as_me: failed program was:" >&5
36234 sed 's/^/| /' conftest.$ac_ext >&5
36235
36236 ac_lo=`expr '(' $ac_mid ')' + 1`
36237 fi
36238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36239 done
36240 case $ac_lo in
36241 ?*) ac_cv_sizeof_int=$ac_lo;;
36242 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36243 See \`config.log' for more details." >&5
36244 echo "$as_me: error: cannot compute sizeof (int), 77
36245 See \`config.log' for more details." >&2;}
36246    { (exit 1); exit 1; }; } ;;
36247 esac
36248 else
36249   if test "$cross_compiling" = yes; then
36250   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36251 See \`config.log' for more details." >&5
36252 echo "$as_me: error: cannot run test program while cross compiling
36253 See \`config.log' for more details." >&2;}
36254    { (exit 1); exit 1; }; }
36255 else
36256   cat >conftest.$ac_ext <<_ACEOF
36257 /* confdefs.h.  */
36258 _ACEOF
36259 cat confdefs.h >>conftest.$ac_ext
36260 cat >>conftest.$ac_ext <<_ACEOF
36261 /* end confdefs.h.  */
36262 $ac_includes_default
36263 long longval () { return (long) (sizeof (int)); }
36264 unsigned long ulongval () { return (long) (sizeof (int)); }
36265 #include <stdio.h>
36266 #include <stdlib.h>
36267 int
36268 main ()
36269 {
36270
36271   FILE *f = fopen ("conftest.val", "w");
36272   if (! f)
36273     exit (1);
36274   if (((long) (sizeof (int))) < 0)
36275     {
36276       long i = longval ();
36277       if (i != ((long) (sizeof (int))))
36278         exit (1);
36279       fprintf (f, "%ld\n", i);
36280     }
36281   else
36282     {
36283       unsigned long i = ulongval ();
36284       if (i != ((long) (sizeof (int))))
36285         exit (1);
36286       fprintf (f, "%lu\n", i);
36287     }
36288   exit (ferror (f) || fclose (f) != 0);
36289
36290   ;
36291   return 0;
36292 }
36293 _ACEOF
36294 rm -f conftest$ac_exeext
36295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36296   (eval $ac_link) 2>&5
36297   ac_status=$?
36298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301   (eval $ac_try) 2>&5
36302   ac_status=$?
36303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304   (exit $ac_status); }; }; then
36305   ac_cv_sizeof_int=`cat conftest.val`
36306 else
36307   echo "$as_me: program exited with status $ac_status" >&5
36308 echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36310
36311 ( exit $ac_status )
36312 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36313 See \`config.log' for more details." >&5
36314 echo "$as_me: error: cannot compute sizeof (int), 77
36315 See \`config.log' for more details." >&2;}
36316    { (exit 1); exit 1; }; }
36317 fi
36318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36319 fi
36320 fi
36321 rm -f conftest.val
36322 else
36323   ac_cv_sizeof_int=0
36324 fi
36325 fi
36326 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36327 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36328 cat >>confdefs.h <<_ACEOF
36329 #define SIZEOF_INT $ac_cv_sizeof_int
36330 _ACEOF
36331
36332
36333 echo "$as_me:$LINENO: checking for long" >&5
36334 echo $ECHO_N "checking for long... $ECHO_C" >&6
36335 if test "${ac_cv_type_long+set}" = set; then
36336   echo $ECHO_N "(cached) $ECHO_C" >&6
36337 else
36338   cat >conftest.$ac_ext <<_ACEOF
36339 /* confdefs.h.  */
36340 _ACEOF
36341 cat confdefs.h >>conftest.$ac_ext
36342 cat >>conftest.$ac_ext <<_ACEOF
36343 /* end confdefs.h.  */
36344 $ac_includes_default
36345 int
36346 main ()
36347 {
36348 if ((long *) 0)
36349   return 0;
36350 if (sizeof (long))
36351   return 0;
36352   ;
36353   return 0;
36354 }
36355 _ACEOF
36356 rm -f conftest.$ac_objext
36357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36358   (eval $ac_compile) 2>conftest.er1
36359   ac_status=$?
36360   grep -v '^ *+' conftest.er1 >conftest.err
36361   rm -f conftest.er1
36362   cat conftest.err >&5
36363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36364   (exit $ac_status); } &&
36365          { ac_try='test -z "$ac_c_werror_flag"
36366                          || test ! -s conftest.err'
36367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36368   (eval $ac_try) 2>&5
36369   ac_status=$?
36370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36371   (exit $ac_status); }; } &&
36372          { ac_try='test -s conftest.$ac_objext'
36373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374   (eval $ac_try) 2>&5
36375   ac_status=$?
36376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377   (exit $ac_status); }; }; then
36378   ac_cv_type_long=yes
36379 else
36380   echo "$as_me: failed program was:" >&5
36381 sed 's/^/| /' conftest.$ac_ext >&5
36382
36383 ac_cv_type_long=no
36384 fi
36385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36386 fi
36387 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36388 echo "${ECHO_T}$ac_cv_type_long" >&6
36389
36390 echo "$as_me:$LINENO: checking size of long" >&5
36391 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36392 if test "${ac_cv_sizeof_long+set}" = set; then
36393   echo $ECHO_N "(cached) $ECHO_C" >&6
36394 else
36395   if test "$ac_cv_type_long" = yes; then
36396   # The cast to unsigned long works around a bug in the HP C Compiler
36397   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36398   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36399   # This bug is HP SR number 8606223364.
36400   if test "$cross_compiling" = yes; then
36401   # Depending upon the size, compute the lo and hi bounds.
36402 cat >conftest.$ac_ext <<_ACEOF
36403 /* confdefs.h.  */
36404 _ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h.  */
36408 $ac_includes_default
36409 int
36410 main ()
36411 {
36412 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36413 test_array [0] = 0
36414
36415   ;
36416   return 0;
36417 }
36418 _ACEOF
36419 rm -f conftest.$ac_objext
36420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36421   (eval $ac_compile) 2>conftest.er1
36422   ac_status=$?
36423   grep -v '^ *+' conftest.er1 >conftest.err
36424   rm -f conftest.er1
36425   cat conftest.err >&5
36426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427   (exit $ac_status); } &&
36428          { ac_try='test -z "$ac_c_werror_flag"
36429                          || test ! -s conftest.err'
36430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36431   (eval $ac_try) 2>&5
36432   ac_status=$?
36433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36434   (exit $ac_status); }; } &&
36435          { ac_try='test -s conftest.$ac_objext'
36436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437   (eval $ac_try) 2>&5
36438   ac_status=$?
36439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440   (exit $ac_status); }; }; then
36441   ac_lo=0 ac_mid=0
36442   while :; do
36443     cat >conftest.$ac_ext <<_ACEOF
36444 /* confdefs.h.  */
36445 _ACEOF
36446 cat confdefs.h >>conftest.$ac_ext
36447 cat >>conftest.$ac_ext <<_ACEOF
36448 /* end confdefs.h.  */
36449 $ac_includes_default
36450 int
36451 main ()
36452 {
36453 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36454 test_array [0] = 0
36455
36456   ;
36457   return 0;
36458 }
36459 _ACEOF
36460 rm -f conftest.$ac_objext
36461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36462   (eval $ac_compile) 2>conftest.er1
36463   ac_status=$?
36464   grep -v '^ *+' conftest.er1 >conftest.err
36465   rm -f conftest.er1
36466   cat conftest.err >&5
36467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468   (exit $ac_status); } &&
36469          { ac_try='test -z "$ac_c_werror_flag"
36470                          || test ! -s conftest.err'
36471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36472   (eval $ac_try) 2>&5
36473   ac_status=$?
36474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475   (exit $ac_status); }; } &&
36476          { ac_try='test -s conftest.$ac_objext'
36477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36478   (eval $ac_try) 2>&5
36479   ac_status=$?
36480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36481   (exit $ac_status); }; }; then
36482   ac_hi=$ac_mid; break
36483 else
36484   echo "$as_me: failed program was:" >&5
36485 sed 's/^/| /' conftest.$ac_ext >&5
36486
36487 ac_lo=`expr $ac_mid + 1`
36488                     if test $ac_lo -le $ac_mid; then
36489                       ac_lo= ac_hi=
36490                       break
36491                     fi
36492                     ac_mid=`expr 2 '*' $ac_mid + 1`
36493 fi
36494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36495   done
36496 else
36497   echo "$as_me: failed program was:" >&5
36498 sed 's/^/| /' conftest.$ac_ext >&5
36499
36500 cat >conftest.$ac_ext <<_ACEOF
36501 /* confdefs.h.  */
36502 _ACEOF
36503 cat confdefs.h >>conftest.$ac_ext
36504 cat >>conftest.$ac_ext <<_ACEOF
36505 /* end confdefs.h.  */
36506 $ac_includes_default
36507 int
36508 main ()
36509 {
36510 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36511 test_array [0] = 0
36512
36513   ;
36514   return 0;
36515 }
36516 _ACEOF
36517 rm -f conftest.$ac_objext
36518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36519   (eval $ac_compile) 2>conftest.er1
36520   ac_status=$?
36521   grep -v '^ *+' conftest.er1 >conftest.err
36522   rm -f conftest.er1
36523   cat conftest.err >&5
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); } &&
36526          { ac_try='test -z "$ac_c_werror_flag"
36527                          || test ! -s conftest.err'
36528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529   (eval $ac_try) 2>&5
36530   ac_status=$?
36531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532   (exit $ac_status); }; } &&
36533          { ac_try='test -s conftest.$ac_objext'
36534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36535   (eval $ac_try) 2>&5
36536   ac_status=$?
36537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36538   (exit $ac_status); }; }; then
36539   ac_hi=-1 ac_mid=-1
36540   while :; do
36541     cat >conftest.$ac_ext <<_ACEOF
36542 /* confdefs.h.  */
36543 _ACEOF
36544 cat confdefs.h >>conftest.$ac_ext
36545 cat >>conftest.$ac_ext <<_ACEOF
36546 /* end confdefs.h.  */
36547 $ac_includes_default
36548 int
36549 main ()
36550 {
36551 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36552 test_array [0] = 0
36553
36554   ;
36555   return 0;
36556 }
36557 _ACEOF
36558 rm -f conftest.$ac_objext
36559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36560   (eval $ac_compile) 2>conftest.er1
36561   ac_status=$?
36562   grep -v '^ *+' conftest.er1 >conftest.err
36563   rm -f conftest.er1
36564   cat conftest.err >&5
36565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36566   (exit $ac_status); } &&
36567          { ac_try='test -z "$ac_c_werror_flag"
36568                          || test ! -s conftest.err'
36569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36570   (eval $ac_try) 2>&5
36571   ac_status=$?
36572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36573   (exit $ac_status); }; } &&
36574          { ac_try='test -s conftest.$ac_objext'
36575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36576   (eval $ac_try) 2>&5
36577   ac_status=$?
36578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579   (exit $ac_status); }; }; then
36580   ac_lo=$ac_mid; break
36581 else
36582   echo "$as_me: failed program was:" >&5
36583 sed 's/^/| /' conftest.$ac_ext >&5
36584
36585 ac_hi=`expr '(' $ac_mid ')' - 1`
36586                        if test $ac_mid -le $ac_hi; then
36587                          ac_lo= ac_hi=
36588                          break
36589                        fi
36590                        ac_mid=`expr 2 '*' $ac_mid`
36591 fi
36592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36593   done
36594 else
36595   echo "$as_me: failed program was:" >&5
36596 sed 's/^/| /' conftest.$ac_ext >&5
36597
36598 ac_lo= ac_hi=
36599 fi
36600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36601 fi
36602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36603 # Binary search between lo and hi bounds.
36604 while test "x$ac_lo" != "x$ac_hi"; do
36605   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36606   cat >conftest.$ac_ext <<_ACEOF
36607 /* confdefs.h.  */
36608 _ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h.  */
36612 $ac_includes_default
36613 int
36614 main ()
36615 {
36616 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36617 test_array [0] = 0
36618
36619   ;
36620   return 0;
36621 }
36622 _ACEOF
36623 rm -f conftest.$ac_objext
36624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36625   (eval $ac_compile) 2>conftest.er1
36626   ac_status=$?
36627   grep -v '^ *+' conftest.er1 >conftest.err
36628   rm -f conftest.er1
36629   cat conftest.err >&5
36630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631   (exit $ac_status); } &&
36632          { ac_try='test -z "$ac_c_werror_flag"
36633                          || test ! -s conftest.err'
36634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36635   (eval $ac_try) 2>&5
36636   ac_status=$?
36637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638   (exit $ac_status); }; } &&
36639          { ac_try='test -s conftest.$ac_objext'
36640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36641   (eval $ac_try) 2>&5
36642   ac_status=$?
36643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36644   (exit $ac_status); }; }; then
36645   ac_hi=$ac_mid
36646 else
36647   echo "$as_me: failed program was:" >&5
36648 sed 's/^/| /' conftest.$ac_ext >&5
36649
36650 ac_lo=`expr '(' $ac_mid ')' + 1`
36651 fi
36652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36653 done
36654 case $ac_lo in
36655 ?*) ac_cv_sizeof_long=$ac_lo;;
36656 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36657 See \`config.log' for more details." >&5
36658 echo "$as_me: error: cannot compute sizeof (long), 77
36659 See \`config.log' for more details." >&2;}
36660    { (exit 1); exit 1; }; } ;;
36661 esac
36662 else
36663   if test "$cross_compiling" = yes; then
36664   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36665 See \`config.log' for more details." >&5
36666 echo "$as_me: error: cannot run test program while cross compiling
36667 See \`config.log' for more details." >&2;}
36668    { (exit 1); exit 1; }; }
36669 else
36670   cat >conftest.$ac_ext <<_ACEOF
36671 /* confdefs.h.  */
36672 _ACEOF
36673 cat confdefs.h >>conftest.$ac_ext
36674 cat >>conftest.$ac_ext <<_ACEOF
36675 /* end confdefs.h.  */
36676 $ac_includes_default
36677 long longval () { return (long) (sizeof (long)); }
36678 unsigned long ulongval () { return (long) (sizeof (long)); }
36679 #include <stdio.h>
36680 #include <stdlib.h>
36681 int
36682 main ()
36683 {
36684
36685   FILE *f = fopen ("conftest.val", "w");
36686   if (! f)
36687     exit (1);
36688   if (((long) (sizeof (long))) < 0)
36689     {
36690       long i = longval ();
36691       if (i != ((long) (sizeof (long))))
36692         exit (1);
36693       fprintf (f, "%ld\n", i);
36694     }
36695   else
36696     {
36697       unsigned long i = ulongval ();
36698       if (i != ((long) (sizeof (long))))
36699         exit (1);
36700       fprintf (f, "%lu\n", i);
36701     }
36702   exit (ferror (f) || fclose (f) != 0);
36703
36704   ;
36705   return 0;
36706 }
36707 _ACEOF
36708 rm -f conftest$ac_exeext
36709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36710   (eval $ac_link) 2>&5
36711   ac_status=$?
36712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36715   (eval $ac_try) 2>&5
36716   ac_status=$?
36717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718   (exit $ac_status); }; }; then
36719   ac_cv_sizeof_long=`cat conftest.val`
36720 else
36721   echo "$as_me: program exited with status $ac_status" >&5
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36724
36725 ( exit $ac_status )
36726 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36727 See \`config.log' for more details." >&5
36728 echo "$as_me: error: cannot compute sizeof (long), 77
36729 See \`config.log' for more details." >&2;}
36730    { (exit 1); exit 1; }; }
36731 fi
36732 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36733 fi
36734 fi
36735 rm -f conftest.val
36736 else
36737   ac_cv_sizeof_long=0
36738 fi
36739 fi
36740 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36741 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36742 cat >>confdefs.h <<_ACEOF
36743 #define SIZEOF_LONG $ac_cv_sizeof_long
36744 _ACEOF
36745
36746
36747 echo "$as_me:$LINENO: checking for long long" >&5
36748 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36749 if test "${ac_cv_type_long_long+set}" = set; then
36750   echo $ECHO_N "(cached) $ECHO_C" >&6
36751 else
36752   cat >conftest.$ac_ext <<_ACEOF
36753 /* confdefs.h.  */
36754 _ACEOF
36755 cat confdefs.h >>conftest.$ac_ext
36756 cat >>conftest.$ac_ext <<_ACEOF
36757 /* end confdefs.h.  */
36758 $ac_includes_default
36759 int
36760 main ()
36761 {
36762 if ((long long *) 0)
36763   return 0;
36764 if (sizeof (long long))
36765   return 0;
36766   ;
36767   return 0;
36768 }
36769 _ACEOF
36770 rm -f conftest.$ac_objext
36771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36772   (eval $ac_compile) 2>conftest.er1
36773   ac_status=$?
36774   grep -v '^ *+' conftest.er1 >conftest.err
36775   rm -f conftest.er1
36776   cat conftest.err >&5
36777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778   (exit $ac_status); } &&
36779          { ac_try='test -z "$ac_c_werror_flag"
36780                          || test ! -s conftest.err'
36781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36782   (eval $ac_try) 2>&5
36783   ac_status=$?
36784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36785   (exit $ac_status); }; } &&
36786          { ac_try='test -s conftest.$ac_objext'
36787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788   (eval $ac_try) 2>&5
36789   ac_status=$?
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); }; }; then
36792   ac_cv_type_long_long=yes
36793 else
36794   echo "$as_me: failed program was:" >&5
36795 sed 's/^/| /' conftest.$ac_ext >&5
36796
36797 ac_cv_type_long_long=no
36798 fi
36799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36800 fi
36801 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36802 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36803
36804 echo "$as_me:$LINENO: checking size of long long" >&5
36805 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36806 if test "${ac_cv_sizeof_long_long+set}" = set; then
36807   echo $ECHO_N "(cached) $ECHO_C" >&6
36808 else
36809   if test "$ac_cv_type_long_long" = yes; then
36810   # The cast to unsigned long works around a bug in the HP C Compiler
36811   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36812   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36813   # This bug is HP SR number 8606223364.
36814   if test "$cross_compiling" = yes; then
36815   # Depending upon the size, compute the lo and hi bounds.
36816 cat >conftest.$ac_ext <<_ACEOF
36817 /* confdefs.h.  */
36818 _ACEOF
36819 cat confdefs.h >>conftest.$ac_ext
36820 cat >>conftest.$ac_ext <<_ACEOF
36821 /* end confdefs.h.  */
36822 $ac_includes_default
36823 int
36824 main ()
36825 {
36826 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36827 test_array [0] = 0
36828
36829   ;
36830   return 0;
36831 }
36832 _ACEOF
36833 rm -f conftest.$ac_objext
36834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36835   (eval $ac_compile) 2>conftest.er1
36836   ac_status=$?
36837   grep -v '^ *+' conftest.er1 >conftest.err
36838   rm -f conftest.er1
36839   cat conftest.err >&5
36840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36841   (exit $ac_status); } &&
36842          { ac_try='test -z "$ac_c_werror_flag"
36843                          || test ! -s conftest.err'
36844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845   (eval $ac_try) 2>&5
36846   ac_status=$?
36847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848   (exit $ac_status); }; } &&
36849          { ac_try='test -s conftest.$ac_objext'
36850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36851   (eval $ac_try) 2>&5
36852   ac_status=$?
36853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36854   (exit $ac_status); }; }; then
36855   ac_lo=0 ac_mid=0
36856   while :; do
36857     cat >conftest.$ac_ext <<_ACEOF
36858 /* confdefs.h.  */
36859 _ACEOF
36860 cat confdefs.h >>conftest.$ac_ext
36861 cat >>conftest.$ac_ext <<_ACEOF
36862 /* end confdefs.h.  */
36863 $ac_includes_default
36864 int
36865 main ()
36866 {
36867 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36868 test_array [0] = 0
36869
36870   ;
36871   return 0;
36872 }
36873 _ACEOF
36874 rm -f conftest.$ac_objext
36875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36876   (eval $ac_compile) 2>conftest.er1
36877   ac_status=$?
36878   grep -v '^ *+' conftest.er1 >conftest.err
36879   rm -f conftest.er1
36880   cat conftest.err >&5
36881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882   (exit $ac_status); } &&
36883          { ac_try='test -z "$ac_c_werror_flag"
36884                          || test ! -s conftest.err'
36885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36886   (eval $ac_try) 2>&5
36887   ac_status=$?
36888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36889   (exit $ac_status); }; } &&
36890          { ac_try='test -s conftest.$ac_objext'
36891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36892   (eval $ac_try) 2>&5
36893   ac_status=$?
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); }; }; then
36896   ac_hi=$ac_mid; break
36897 else
36898   echo "$as_me: failed program was:" >&5
36899 sed 's/^/| /' conftest.$ac_ext >&5
36900
36901 ac_lo=`expr $ac_mid + 1`
36902                     if test $ac_lo -le $ac_mid; then
36903                       ac_lo= ac_hi=
36904                       break
36905                     fi
36906                     ac_mid=`expr 2 '*' $ac_mid + 1`
36907 fi
36908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36909   done
36910 else
36911   echo "$as_me: failed program was:" >&5
36912 sed 's/^/| /' conftest.$ac_ext >&5
36913
36914 cat >conftest.$ac_ext <<_ACEOF
36915 /* confdefs.h.  */
36916 _ACEOF
36917 cat confdefs.h >>conftest.$ac_ext
36918 cat >>conftest.$ac_ext <<_ACEOF
36919 /* end confdefs.h.  */
36920 $ac_includes_default
36921 int
36922 main ()
36923 {
36924 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36925 test_array [0] = 0
36926
36927   ;
36928   return 0;
36929 }
36930 _ACEOF
36931 rm -f conftest.$ac_objext
36932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36933   (eval $ac_compile) 2>conftest.er1
36934   ac_status=$?
36935   grep -v '^ *+' conftest.er1 >conftest.err
36936   rm -f conftest.er1
36937   cat conftest.err >&5
36938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939   (exit $ac_status); } &&
36940          { ac_try='test -z "$ac_c_werror_flag"
36941                          || test ! -s conftest.err'
36942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36943   (eval $ac_try) 2>&5
36944   ac_status=$?
36945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36946   (exit $ac_status); }; } &&
36947          { ac_try='test -s conftest.$ac_objext'
36948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36949   (eval $ac_try) 2>&5
36950   ac_status=$?
36951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952   (exit $ac_status); }; }; then
36953   ac_hi=-1 ac_mid=-1
36954   while :; do
36955     cat >conftest.$ac_ext <<_ACEOF
36956 /* confdefs.h.  */
36957 _ACEOF
36958 cat confdefs.h >>conftest.$ac_ext
36959 cat >>conftest.$ac_ext <<_ACEOF
36960 /* end confdefs.h.  */
36961 $ac_includes_default
36962 int
36963 main ()
36964 {
36965 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36966 test_array [0] = 0
36967
36968   ;
36969   return 0;
36970 }
36971 _ACEOF
36972 rm -f conftest.$ac_objext
36973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36974   (eval $ac_compile) 2>conftest.er1
36975   ac_status=$?
36976   grep -v '^ *+' conftest.er1 >conftest.err
36977   rm -f conftest.er1
36978   cat conftest.err >&5
36979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980   (exit $ac_status); } &&
36981          { ac_try='test -z "$ac_c_werror_flag"
36982                          || test ! -s conftest.err'
36983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36984   (eval $ac_try) 2>&5
36985   ac_status=$?
36986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36987   (exit $ac_status); }; } &&
36988          { ac_try='test -s conftest.$ac_objext'
36989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36990   (eval $ac_try) 2>&5
36991   ac_status=$?
36992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36993   (exit $ac_status); }; }; then
36994   ac_lo=$ac_mid; break
36995 else
36996   echo "$as_me: failed program was:" >&5
36997 sed 's/^/| /' conftest.$ac_ext >&5
36998
36999 ac_hi=`expr '(' $ac_mid ')' - 1`
37000                        if test $ac_mid -le $ac_hi; then
37001                          ac_lo= ac_hi=
37002                          break
37003                        fi
37004                        ac_mid=`expr 2 '*' $ac_mid`
37005 fi
37006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37007   done
37008 else
37009   echo "$as_me: failed program was:" >&5
37010 sed 's/^/| /' conftest.$ac_ext >&5
37011
37012 ac_lo= ac_hi=
37013 fi
37014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37015 fi
37016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37017 # Binary search between lo and hi bounds.
37018 while test "x$ac_lo" != "x$ac_hi"; do
37019   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37020   cat >conftest.$ac_ext <<_ACEOF
37021 /* confdefs.h.  */
37022 _ACEOF
37023 cat confdefs.h >>conftest.$ac_ext
37024 cat >>conftest.$ac_ext <<_ACEOF
37025 /* end confdefs.h.  */
37026 $ac_includes_default
37027 int
37028 main ()
37029 {
37030 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
37031 test_array [0] = 0
37032
37033   ;
37034   return 0;
37035 }
37036 _ACEOF
37037 rm -f conftest.$ac_objext
37038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37039   (eval $ac_compile) 2>conftest.er1
37040   ac_status=$?
37041   grep -v '^ *+' conftest.er1 >conftest.err
37042   rm -f conftest.er1
37043   cat conftest.err >&5
37044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045   (exit $ac_status); } &&
37046          { ac_try='test -z "$ac_c_werror_flag"
37047                          || test ! -s conftest.err'
37048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37049   (eval $ac_try) 2>&5
37050   ac_status=$?
37051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052   (exit $ac_status); }; } &&
37053          { ac_try='test -s conftest.$ac_objext'
37054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37055   (eval $ac_try) 2>&5
37056   ac_status=$?
37057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37058   (exit $ac_status); }; }; then
37059   ac_hi=$ac_mid
37060 else
37061   echo "$as_me: failed program was:" >&5
37062 sed 's/^/| /' conftest.$ac_ext >&5
37063
37064 ac_lo=`expr '(' $ac_mid ')' + 1`
37065 fi
37066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37067 done
37068 case $ac_lo in
37069 ?*) ac_cv_sizeof_long_long=$ac_lo;;
37070 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37071 See \`config.log' for more details." >&5
37072 echo "$as_me: error: cannot compute sizeof (long long), 77
37073 See \`config.log' for more details." >&2;}
37074    { (exit 1); exit 1; }; } ;;
37075 esac
37076 else
37077   if test "$cross_compiling" = yes; then
37078   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37079 See \`config.log' for more details." >&5
37080 echo "$as_me: error: cannot run test program while cross compiling
37081 See \`config.log' for more details." >&2;}
37082    { (exit 1); exit 1; }; }
37083 else
37084   cat >conftest.$ac_ext <<_ACEOF
37085 /* confdefs.h.  */
37086 _ACEOF
37087 cat confdefs.h >>conftest.$ac_ext
37088 cat >>conftest.$ac_ext <<_ACEOF
37089 /* end confdefs.h.  */
37090 $ac_includes_default
37091 long longval () { return (long) (sizeof (long long)); }
37092 unsigned long ulongval () { return (long) (sizeof (long long)); }
37093 #include <stdio.h>
37094 #include <stdlib.h>
37095 int
37096 main ()
37097 {
37098
37099   FILE *f = fopen ("conftest.val", "w");
37100   if (! f)
37101     exit (1);
37102   if (((long) (sizeof (long long))) < 0)
37103     {
37104       long i = longval ();
37105       if (i != ((long) (sizeof (long long))))
37106         exit (1);
37107       fprintf (f, "%ld\n", i);
37108     }
37109   else
37110     {
37111       unsigned long i = ulongval ();
37112       if (i != ((long) (sizeof (long long))))
37113         exit (1);
37114       fprintf (f, "%lu\n", i);
37115     }
37116   exit (ferror (f) || fclose (f) != 0);
37117
37118   ;
37119   return 0;
37120 }
37121 _ACEOF
37122 rm -f conftest$ac_exeext
37123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37124   (eval $ac_link) 2>&5
37125   ac_status=$?
37126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129   (eval $ac_try) 2>&5
37130   ac_status=$?
37131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132   (exit $ac_status); }; }; then
37133   ac_cv_sizeof_long_long=`cat conftest.val`
37134 else
37135   echo "$as_me: program exited with status $ac_status" >&5
37136 echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37138
37139 ( exit $ac_status )
37140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37141 See \`config.log' for more details." >&5
37142 echo "$as_me: error: cannot compute sizeof (long long), 77
37143 See \`config.log' for more details." >&2;}
37144    { (exit 1); exit 1; }; }
37145 fi
37146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37147 fi
37148 fi
37149 rm -f conftest.val
37150 else
37151   ac_cv_sizeof_long_long=0
37152 fi
37153 fi
37154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37155 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37156 cat >>confdefs.h <<_ACEOF
37157 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37158 _ACEOF
37159
37160
37161 echo "$as_me:$LINENO: checking for wchar_t" >&5
37162 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37163 if test "${ac_cv_type_wchar_t+set}" = set; then
37164   echo $ECHO_N "(cached) $ECHO_C" >&6
37165 else
37166   cat >conftest.$ac_ext <<_ACEOF
37167 /* confdefs.h.  */
37168 _ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h.  */
37172 $ac_includes_default
37173 int
37174 main ()
37175 {
37176 if ((wchar_t *) 0)
37177   return 0;
37178 if (sizeof (wchar_t))
37179   return 0;
37180   ;
37181   return 0;
37182 }
37183 _ACEOF
37184 rm -f conftest.$ac_objext
37185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37186   (eval $ac_compile) 2>conftest.er1
37187   ac_status=$?
37188   grep -v '^ *+' conftest.er1 >conftest.err
37189   rm -f conftest.er1
37190   cat conftest.err >&5
37191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192   (exit $ac_status); } &&
37193          { ac_try='test -z "$ac_c_werror_flag"
37194                          || test ! -s conftest.err'
37195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37196   (eval $ac_try) 2>&5
37197   ac_status=$?
37198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199   (exit $ac_status); }; } &&
37200          { ac_try='test -s conftest.$ac_objext'
37201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202   (eval $ac_try) 2>&5
37203   ac_status=$?
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); }; }; then
37206   ac_cv_type_wchar_t=yes
37207 else
37208   echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211 ac_cv_type_wchar_t=no
37212 fi
37213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37214 fi
37215 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37216 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37217
37218 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37219 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37220 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37221   echo $ECHO_N "(cached) $ECHO_C" >&6
37222 else
37223   if test "$ac_cv_type_wchar_t" = yes; then
37224   # The cast to unsigned long works around a bug in the HP C Compiler
37225   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37226   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37227   # This bug is HP SR number 8606223364.
37228   if test "$cross_compiling" = yes; then
37229   # Depending upon the size, compute the lo and hi bounds.
37230 cat >conftest.$ac_ext <<_ACEOF
37231 /* confdefs.h.  */
37232 _ACEOF
37233 cat confdefs.h >>conftest.$ac_ext
37234 cat >>conftest.$ac_ext <<_ACEOF
37235 /* end confdefs.h.  */
37236 $ac_includes_default
37237 int
37238 main ()
37239 {
37240 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37241 test_array [0] = 0
37242
37243   ;
37244   return 0;
37245 }
37246 _ACEOF
37247 rm -f conftest.$ac_objext
37248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37249   (eval $ac_compile) 2>conftest.er1
37250   ac_status=$?
37251   grep -v '^ *+' conftest.er1 >conftest.err
37252   rm -f conftest.er1
37253   cat conftest.err >&5
37254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37255   (exit $ac_status); } &&
37256          { ac_try='test -z "$ac_c_werror_flag"
37257                          || test ! -s conftest.err'
37258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37259   (eval $ac_try) 2>&5
37260   ac_status=$?
37261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37262   (exit $ac_status); }; } &&
37263          { ac_try='test -s conftest.$ac_objext'
37264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37265   (eval $ac_try) 2>&5
37266   ac_status=$?
37267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268   (exit $ac_status); }; }; then
37269   ac_lo=0 ac_mid=0
37270   while :; do
37271     cat >conftest.$ac_ext <<_ACEOF
37272 /* confdefs.h.  */
37273 _ACEOF
37274 cat confdefs.h >>conftest.$ac_ext
37275 cat >>conftest.$ac_ext <<_ACEOF
37276 /* end confdefs.h.  */
37277 $ac_includes_default
37278 int
37279 main ()
37280 {
37281 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37282 test_array [0] = 0
37283
37284   ;
37285   return 0;
37286 }
37287 _ACEOF
37288 rm -f conftest.$ac_objext
37289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37290   (eval $ac_compile) 2>conftest.er1
37291   ac_status=$?
37292   grep -v '^ *+' conftest.er1 >conftest.err
37293   rm -f conftest.er1
37294   cat conftest.err >&5
37295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37296   (exit $ac_status); } &&
37297          { ac_try='test -z "$ac_c_werror_flag"
37298                          || test ! -s conftest.err'
37299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37300   (eval $ac_try) 2>&5
37301   ac_status=$?
37302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37303   (exit $ac_status); }; } &&
37304          { ac_try='test -s conftest.$ac_objext'
37305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306   (eval $ac_try) 2>&5
37307   ac_status=$?
37308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309   (exit $ac_status); }; }; then
37310   ac_hi=$ac_mid; break
37311 else
37312   echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37314
37315 ac_lo=`expr $ac_mid + 1`
37316                     if test $ac_lo -le $ac_mid; then
37317                       ac_lo= ac_hi=
37318                       break
37319                     fi
37320                     ac_mid=`expr 2 '*' $ac_mid + 1`
37321 fi
37322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37323   done
37324 else
37325   echo "$as_me: failed program was:" >&5
37326 sed 's/^/| /' conftest.$ac_ext >&5
37327
37328 cat >conftest.$ac_ext <<_ACEOF
37329 /* confdefs.h.  */
37330 _ACEOF
37331 cat confdefs.h >>conftest.$ac_ext
37332 cat >>conftest.$ac_ext <<_ACEOF
37333 /* end confdefs.h.  */
37334 $ac_includes_default
37335 int
37336 main ()
37337 {
37338 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37339 test_array [0] = 0
37340
37341   ;
37342   return 0;
37343 }
37344 _ACEOF
37345 rm -f conftest.$ac_objext
37346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37347   (eval $ac_compile) 2>conftest.er1
37348   ac_status=$?
37349   grep -v '^ *+' conftest.er1 >conftest.err
37350   rm -f conftest.er1
37351   cat conftest.err >&5
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); } &&
37354          { ac_try='test -z "$ac_c_werror_flag"
37355                          || test ! -s conftest.err'
37356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37357   (eval $ac_try) 2>&5
37358   ac_status=$?
37359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37360   (exit $ac_status); }; } &&
37361          { ac_try='test -s conftest.$ac_objext'
37362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37363   (eval $ac_try) 2>&5
37364   ac_status=$?
37365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37366   (exit $ac_status); }; }; then
37367   ac_hi=-1 ac_mid=-1
37368   while :; do
37369     cat >conftest.$ac_ext <<_ACEOF
37370 /* confdefs.h.  */
37371 _ACEOF
37372 cat confdefs.h >>conftest.$ac_ext
37373 cat >>conftest.$ac_ext <<_ACEOF
37374 /* end confdefs.h.  */
37375 $ac_includes_default
37376 int
37377 main ()
37378 {
37379 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37380 test_array [0] = 0
37381
37382   ;
37383   return 0;
37384 }
37385 _ACEOF
37386 rm -f conftest.$ac_objext
37387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37388   (eval $ac_compile) 2>conftest.er1
37389   ac_status=$?
37390   grep -v '^ *+' conftest.er1 >conftest.err
37391   rm -f conftest.er1
37392   cat conftest.err >&5
37393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394   (exit $ac_status); } &&
37395          { ac_try='test -z "$ac_c_werror_flag"
37396                          || test ! -s conftest.err'
37397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398   (eval $ac_try) 2>&5
37399   ac_status=$?
37400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401   (exit $ac_status); }; } &&
37402          { ac_try='test -s conftest.$ac_objext'
37403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37404   (eval $ac_try) 2>&5
37405   ac_status=$?
37406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37407   (exit $ac_status); }; }; then
37408   ac_lo=$ac_mid; break
37409 else
37410   echo "$as_me: failed program was:" >&5
37411 sed 's/^/| /' conftest.$ac_ext >&5
37412
37413 ac_hi=`expr '(' $ac_mid ')' - 1`
37414                        if test $ac_mid -le $ac_hi; then
37415                          ac_lo= ac_hi=
37416                          break
37417                        fi
37418                        ac_mid=`expr 2 '*' $ac_mid`
37419 fi
37420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37421   done
37422 else
37423   echo "$as_me: failed program was:" >&5
37424 sed 's/^/| /' conftest.$ac_ext >&5
37425
37426 ac_lo= ac_hi=
37427 fi
37428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37429 fi
37430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37431 # Binary search between lo and hi bounds.
37432 while test "x$ac_lo" != "x$ac_hi"; do
37433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37434   cat >conftest.$ac_ext <<_ACEOF
37435 /* confdefs.h.  */
37436 _ACEOF
37437 cat confdefs.h >>conftest.$ac_ext
37438 cat >>conftest.$ac_ext <<_ACEOF
37439 /* end confdefs.h.  */
37440 $ac_includes_default
37441 int
37442 main ()
37443 {
37444 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37445 test_array [0] = 0
37446
37447   ;
37448   return 0;
37449 }
37450 _ACEOF
37451 rm -f conftest.$ac_objext
37452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37453   (eval $ac_compile) 2>conftest.er1
37454   ac_status=$?
37455   grep -v '^ *+' conftest.er1 >conftest.err
37456   rm -f conftest.er1
37457   cat conftest.err >&5
37458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37459   (exit $ac_status); } &&
37460          { ac_try='test -z "$ac_c_werror_flag"
37461                          || test ! -s conftest.err'
37462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37463   (eval $ac_try) 2>&5
37464   ac_status=$?
37465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37466   (exit $ac_status); }; } &&
37467          { ac_try='test -s conftest.$ac_objext'
37468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37469   (eval $ac_try) 2>&5
37470   ac_status=$?
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); }; }; then
37473   ac_hi=$ac_mid
37474 else
37475   echo "$as_me: failed program was:" >&5
37476 sed 's/^/| /' conftest.$ac_ext >&5
37477
37478 ac_lo=`expr '(' $ac_mid ')' + 1`
37479 fi
37480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37481 done
37482 case $ac_lo in
37483 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37484 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37485 See \`config.log' for more details." >&5
37486 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37487 See \`config.log' for more details." >&2;}
37488    { (exit 1); exit 1; }; } ;;
37489 esac
37490 else
37491   if test "$cross_compiling" = yes; then
37492   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37493 See \`config.log' for more details." >&5
37494 echo "$as_me: error: cannot run test program while cross compiling
37495 See \`config.log' for more details." >&2;}
37496    { (exit 1); exit 1; }; }
37497 else
37498   cat >conftest.$ac_ext <<_ACEOF
37499 /* confdefs.h.  */
37500 _ACEOF
37501 cat confdefs.h >>conftest.$ac_ext
37502 cat >>conftest.$ac_ext <<_ACEOF
37503 /* end confdefs.h.  */
37504 $ac_includes_default
37505 long longval () { return (long) (sizeof (wchar_t)); }
37506 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37507 #include <stdio.h>
37508 #include <stdlib.h>
37509 int
37510 main ()
37511 {
37512
37513   FILE *f = fopen ("conftest.val", "w");
37514   if (! f)
37515     exit (1);
37516   if (((long) (sizeof (wchar_t))) < 0)
37517     {
37518       long i = longval ();
37519       if (i != ((long) (sizeof (wchar_t))))
37520         exit (1);
37521       fprintf (f, "%ld\n", i);
37522     }
37523   else
37524     {
37525       unsigned long i = ulongval ();
37526       if (i != ((long) (sizeof (wchar_t))))
37527         exit (1);
37528       fprintf (f, "%lu\n", i);
37529     }
37530   exit (ferror (f) || fclose (f) != 0);
37531
37532   ;
37533   return 0;
37534 }
37535 _ACEOF
37536 rm -f conftest$ac_exeext
37537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37538   (eval $ac_link) 2>&5
37539   ac_status=$?
37540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37543   (eval $ac_try) 2>&5
37544   ac_status=$?
37545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37546   (exit $ac_status); }; }; then
37547   ac_cv_sizeof_wchar_t=`cat conftest.val`
37548 else
37549   echo "$as_me: program exited with status $ac_status" >&5
37550 echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37552
37553 ( exit $ac_status )
37554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37555 See \`config.log' for more details." >&5
37556 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37557 See \`config.log' for more details." >&2;}
37558    { (exit 1); exit 1; }; }
37559 fi
37560 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37561 fi
37562 fi
37563 rm -f conftest.val
37564 else
37565   ac_cv_sizeof_wchar_t=0
37566 fi
37567 fi
37568 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37569 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37570 cat >>confdefs.h <<_ACEOF
37571 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37572 _ACEOF
37573
37574
37575
37576 if test "$ac_cv_sizeof_int" -lt 4 ; then
37577         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37578 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37579
37580
37581 cat >>confdefs.h <<\_ACEOF
37582 #define LBER_INT_T long
37583 _ACEOF
37584
37585 else
37586
37587 cat >>confdefs.h <<\_ACEOF
37588 #define LBER_INT_T int
37589 _ACEOF
37590
37591 fi
37592
37593
37594 cat >>confdefs.h <<\_ACEOF
37595 #define LBER_LEN_T long
37596 _ACEOF
37597
37598
37599 cat >>confdefs.h <<\_ACEOF
37600 #define LBER_SOCKET_T int
37601 _ACEOF
37602
37603
37604 cat >>confdefs.h <<\_ACEOF
37605 #define LBER_TAG_T long
37606 _ACEOF
37607
37608
37609 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37610         if test $ac_cv_sizeof_long_long -gt 4 ; then
37611                 ol_with_mp=longlong
37612
37613 cat >>confdefs.h <<\_ACEOF
37614 #define USE_MP_LONG_LONG 1
37615 _ACEOF
37616
37617         elif test $ol_with_mp = longlong ; then
37618                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37619 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37620    { (exit 1); exit 1; }; }
37621         fi
37622 fi
37623 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37624         if test $ac_cv_sizeof_long -gt 4 ; then
37625                 ol_with_mp=long
37626
37627 cat >>confdefs.h <<\_ACEOF
37628 #define USE_MP_LONG 1
37629 _ACEOF
37630
37631         elif test $ol_with_mp = long ; then
37632                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37633 echo "$as_me: error: long unusable for multiple precision" >&2;}
37634    { (exit 1); exit 1; }; }
37635         fi
37636 fi
37637 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37638
37639 for ac_header in openssl/bn.h
37640 do
37641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37643   echo "$as_me:$LINENO: checking for $ac_header" >&5
37644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37646   echo $ECHO_N "(cached) $ECHO_C" >&6
37647 fi
37648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37650 else
37651   # Is the header compilable?
37652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37654 cat >conftest.$ac_ext <<_ACEOF
37655 /* confdefs.h.  */
37656 _ACEOF
37657 cat confdefs.h >>conftest.$ac_ext
37658 cat >>conftest.$ac_ext <<_ACEOF
37659 /* end confdefs.h.  */
37660 $ac_includes_default
37661 #include <$ac_header>
37662 _ACEOF
37663 rm -f conftest.$ac_objext
37664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37665   (eval $ac_compile) 2>conftest.er1
37666   ac_status=$?
37667   grep -v '^ *+' conftest.er1 >conftest.err
37668   rm -f conftest.er1
37669   cat conftest.err >&5
37670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671   (exit $ac_status); } &&
37672          { ac_try='test -z "$ac_c_werror_flag"
37673                          || test ! -s conftest.err'
37674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37675   (eval $ac_try) 2>&5
37676   ac_status=$?
37677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); }; } &&
37679          { ac_try='test -s conftest.$ac_objext'
37680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37681   (eval $ac_try) 2>&5
37682   ac_status=$?
37683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37684   (exit $ac_status); }; }; then
37685   ac_header_compiler=yes
37686 else
37687   echo "$as_me: failed program was:" >&5
37688 sed 's/^/| /' conftest.$ac_ext >&5
37689
37690 ac_header_compiler=no
37691 fi
37692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37693 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37694 echo "${ECHO_T}$ac_header_compiler" >&6
37695
37696 # Is the header present?
37697 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37699 cat >conftest.$ac_ext <<_ACEOF
37700 /* confdefs.h.  */
37701 _ACEOF
37702 cat confdefs.h >>conftest.$ac_ext
37703 cat >>conftest.$ac_ext <<_ACEOF
37704 /* end confdefs.h.  */
37705 #include <$ac_header>
37706 _ACEOF
37707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37708   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37709   ac_status=$?
37710   grep -v '^ *+' conftest.er1 >conftest.err
37711   rm -f conftest.er1
37712   cat conftest.err >&5
37713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37714   (exit $ac_status); } >/dev/null; then
37715   if test -s conftest.err; then
37716     ac_cpp_err=$ac_c_preproc_warn_flag
37717     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37718   else
37719     ac_cpp_err=
37720   fi
37721 else
37722   ac_cpp_err=yes
37723 fi
37724 if test -z "$ac_cpp_err"; then
37725   ac_header_preproc=yes
37726 else
37727   echo "$as_me: failed program was:" >&5
37728 sed 's/^/| /' conftest.$ac_ext >&5
37729
37730   ac_header_preproc=no
37731 fi
37732 rm -f conftest.err conftest.$ac_ext
37733 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37734 echo "${ECHO_T}$ac_header_preproc" >&6
37735
37736 # So?  What about this header?
37737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37738   yes:no: )
37739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37743     ac_header_preproc=yes
37744     ;;
37745   no:yes:* )
37746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37758     (
37759       cat <<\_ASBOX
37760 ## --------------------------------------------- ##
37761 ## Report this to <http://www.openldap.org/its/> ##
37762 ## --------------------------------------------- ##
37763 _ASBOX
37764     ) |
37765       sed "s/^/$as_me: WARNING:     /" >&2
37766     ;;
37767 esac
37768 echo "$as_me:$LINENO: checking for $ac_header" >&5
37769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37771   echo $ECHO_N "(cached) $ECHO_C" >&6
37772 else
37773   eval "$as_ac_Header=\$ac_header_preproc"
37774 fi
37775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37777
37778 fi
37779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37780   cat >>confdefs.h <<_ACEOF
37781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37782 _ACEOF
37783
37784 fi
37785
37786 done
37787
37788
37789 for ac_header in openssl/crypto.h
37790 do
37791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37793   echo "$as_me:$LINENO: checking for $ac_header" >&5
37794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37796   echo $ECHO_N "(cached) $ECHO_C" >&6
37797 fi
37798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37800 else
37801   # Is the header compilable?
37802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37804 cat >conftest.$ac_ext <<_ACEOF
37805 /* confdefs.h.  */
37806 _ACEOF
37807 cat confdefs.h >>conftest.$ac_ext
37808 cat >>conftest.$ac_ext <<_ACEOF
37809 /* end confdefs.h.  */
37810 $ac_includes_default
37811 #include <$ac_header>
37812 _ACEOF
37813 rm -f conftest.$ac_objext
37814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37815   (eval $ac_compile) 2>conftest.er1
37816   ac_status=$?
37817   grep -v '^ *+' conftest.er1 >conftest.err
37818   rm -f conftest.er1
37819   cat conftest.err >&5
37820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821   (exit $ac_status); } &&
37822          { ac_try='test -z "$ac_c_werror_flag"
37823                          || test ! -s conftest.err'
37824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37825   (eval $ac_try) 2>&5
37826   ac_status=$?
37827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828   (exit $ac_status); }; } &&
37829          { ac_try='test -s conftest.$ac_objext'
37830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37831   (eval $ac_try) 2>&5
37832   ac_status=$?
37833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834   (exit $ac_status); }; }; then
37835   ac_header_compiler=yes
37836 else
37837   echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37839
37840 ac_header_compiler=no
37841 fi
37842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37844 echo "${ECHO_T}$ac_header_compiler" >&6
37845
37846 # Is the header present?
37847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37849 cat >conftest.$ac_ext <<_ACEOF
37850 /* confdefs.h.  */
37851 _ACEOF
37852 cat confdefs.h >>conftest.$ac_ext
37853 cat >>conftest.$ac_ext <<_ACEOF
37854 /* end confdefs.h.  */
37855 #include <$ac_header>
37856 _ACEOF
37857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37858   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37859   ac_status=$?
37860   grep -v '^ *+' conftest.er1 >conftest.err
37861   rm -f conftest.er1
37862   cat conftest.err >&5
37863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37864   (exit $ac_status); } >/dev/null; then
37865   if test -s conftest.err; then
37866     ac_cpp_err=$ac_c_preproc_warn_flag
37867     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37868   else
37869     ac_cpp_err=
37870   fi
37871 else
37872   ac_cpp_err=yes
37873 fi
37874 if test -z "$ac_cpp_err"; then
37875   ac_header_preproc=yes
37876 else
37877   echo "$as_me: failed program was:" >&5
37878 sed 's/^/| /' conftest.$ac_ext >&5
37879
37880   ac_header_preproc=no
37881 fi
37882 rm -f conftest.err conftest.$ac_ext
37883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37884 echo "${ECHO_T}$ac_header_preproc" >&6
37885
37886 # So?  What about this header?
37887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37888   yes:no: )
37889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37893     ac_header_preproc=yes
37894     ;;
37895   no:yes:* )
37896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37908     (
37909       cat <<\_ASBOX
37910 ## --------------------------------------------- ##
37911 ## Report this to <http://www.openldap.org/its/> ##
37912 ## --------------------------------------------- ##
37913 _ASBOX
37914     ) |
37915       sed "s/^/$as_me: WARNING:     /" >&2
37916     ;;
37917 esac
37918 echo "$as_me:$LINENO: checking for $ac_header" >&5
37919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37921   echo $ECHO_N "(cached) $ECHO_C" >&6
37922 else
37923   eval "$as_ac_Header=\$ac_header_preproc"
37924 fi
37925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37927
37928 fi
37929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37930   cat >>confdefs.h <<_ACEOF
37931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37932 _ACEOF
37933
37934 fi
37935
37936 done
37937
37938         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37939                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37940                 test "$ol_with_tls" = "found" ; then
37941                 ol_with_mp=bignum
37942
37943 cat >>confdefs.h <<\_ACEOF
37944 #define USE_MP_BIGNUM 1
37945 _ACEOF
37946
37947         elif test $ol_with_mp = bignum ; then
37948                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37949 echo "$as_me: error: bignum not available" >&2;}
37950    { (exit 1); exit 1; }; }
37951         fi
37952 fi
37953 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37954
37955 for ac_header in gmp.h
37956 do
37957 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37959   echo "$as_me:$LINENO: checking for $ac_header" >&5
37960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37962   echo $ECHO_N "(cached) $ECHO_C" >&6
37963 fi
37964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37966 else
37967   # Is the header compilable?
37968 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37969 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37970 cat >conftest.$ac_ext <<_ACEOF
37971 /* confdefs.h.  */
37972 _ACEOF
37973 cat confdefs.h >>conftest.$ac_ext
37974 cat >>conftest.$ac_ext <<_ACEOF
37975 /* end confdefs.h.  */
37976 $ac_includes_default
37977 #include <$ac_header>
37978 _ACEOF
37979 rm -f conftest.$ac_objext
37980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37981   (eval $ac_compile) 2>conftest.er1
37982   ac_status=$?
37983   grep -v '^ *+' conftest.er1 >conftest.err
37984   rm -f conftest.er1
37985   cat conftest.err >&5
37986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987   (exit $ac_status); } &&
37988          { ac_try='test -z "$ac_c_werror_flag"
37989                          || test ! -s conftest.err'
37990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37991   (eval $ac_try) 2>&5
37992   ac_status=$?
37993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994   (exit $ac_status); }; } &&
37995          { ac_try='test -s conftest.$ac_objext'
37996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997   (eval $ac_try) 2>&5
37998   ac_status=$?
37999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000   (exit $ac_status); }; }; then
38001   ac_header_compiler=yes
38002 else
38003   echo "$as_me: failed program was:" >&5
38004 sed 's/^/| /' conftest.$ac_ext >&5
38005
38006 ac_header_compiler=no
38007 fi
38008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38009 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38010 echo "${ECHO_T}$ac_header_compiler" >&6
38011
38012 # Is the header present?
38013 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38015 cat >conftest.$ac_ext <<_ACEOF
38016 /* confdefs.h.  */
38017 _ACEOF
38018 cat confdefs.h >>conftest.$ac_ext
38019 cat >>conftest.$ac_ext <<_ACEOF
38020 /* end confdefs.h.  */
38021 #include <$ac_header>
38022 _ACEOF
38023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38025   ac_status=$?
38026   grep -v '^ *+' conftest.er1 >conftest.err
38027   rm -f conftest.er1
38028   cat conftest.err >&5
38029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38030   (exit $ac_status); } >/dev/null; then
38031   if test -s conftest.err; then
38032     ac_cpp_err=$ac_c_preproc_warn_flag
38033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38034   else
38035     ac_cpp_err=
38036   fi
38037 else
38038   ac_cpp_err=yes
38039 fi
38040 if test -z "$ac_cpp_err"; then
38041   ac_header_preproc=yes
38042 else
38043   echo "$as_me: failed program was:" >&5
38044 sed 's/^/| /' conftest.$ac_ext >&5
38045
38046   ac_header_preproc=no
38047 fi
38048 rm -f conftest.err conftest.$ac_ext
38049 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38050 echo "${ECHO_T}$ac_header_preproc" >&6
38051
38052 # So?  What about this header?
38053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38054   yes:no: )
38055     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38057     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38059     ac_header_preproc=yes
38060     ;;
38061   no:yes:* )
38062     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38064     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38065 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38066     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38068     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38069 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38072     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38074     (
38075       cat <<\_ASBOX
38076 ## --------------------------------------------- ##
38077 ## Report this to <http://www.openldap.org/its/> ##
38078 ## --------------------------------------------- ##
38079 _ASBOX
38080     ) |
38081       sed "s/^/$as_me: WARNING:     /" >&2
38082     ;;
38083 esac
38084 echo "$as_me:$LINENO: checking for $ac_header" >&5
38085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38087   echo $ECHO_N "(cached) $ECHO_C" >&6
38088 else
38089   eval "$as_ac_Header=\$ac_header_preproc"
38090 fi
38091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38093
38094 fi
38095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38096   cat >>confdefs.h <<_ACEOF
38097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38098 _ACEOF
38099
38100 fi
38101
38102 done
38103
38104
38105 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
38106 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
38107 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
38108   echo $ECHO_N "(cached) $ECHO_C" >&6
38109 else
38110   ac_check_lib_save_LIBS=$LIBS
38111 LIBS="-lgmp  $LIBS"
38112 cat >conftest.$ac_ext <<_ACEOF
38113 /* confdefs.h.  */
38114 _ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h.  */
38118
38119 /* Override any gcc2 internal prototype to avoid an error.  */
38120 #ifdef __cplusplus
38121 extern "C"
38122 #endif
38123 /* We use char because int might match the return type of a gcc2
38124    builtin and then its argument prototype would still apply.  */
38125 char __gmpz_add_ui ();
38126 int
38127 main ()
38128 {
38129 __gmpz_add_ui ();
38130   ;
38131   return 0;
38132 }
38133 _ACEOF
38134 rm -f conftest.$ac_objext conftest$ac_exeext
38135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38136   (eval $ac_link) 2>conftest.er1
38137   ac_status=$?
38138   grep -v '^ *+' conftest.er1 >conftest.err
38139   rm -f conftest.er1
38140   cat conftest.err >&5
38141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142   (exit $ac_status); } &&
38143          { ac_try='test -z "$ac_c_werror_flag"
38144                          || test ! -s conftest.err'
38145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38146   (eval $ac_try) 2>&5
38147   ac_status=$?
38148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38149   (exit $ac_status); }; } &&
38150          { ac_try='test -s conftest$ac_exeext'
38151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38152   (eval $ac_try) 2>&5
38153   ac_status=$?
38154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38155   (exit $ac_status); }; }; then
38156   ac_cv_lib_gmp___gmpz_add_ui=yes
38157 else
38158   echo "$as_me: failed program was:" >&5
38159 sed 's/^/| /' conftest.$ac_ext >&5
38160
38161 ac_cv_lib_gmp___gmpz_add_ui=no
38162 fi
38163 rm -f conftest.err conftest.$ac_objext \
38164       conftest$ac_exeext conftest.$ac_ext
38165 LIBS=$ac_check_lib_save_LIBS
38166 fi
38167 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38168 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38169 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38170   cat >>confdefs.h <<_ACEOF
38171 #define HAVE_LIBGMP 1
38172 _ACEOF
38173
38174   LIBS="-lgmp $LIBS"
38175
38176 fi
38177
38178         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38179
38180 cat >>confdefs.h <<\_ACEOF
38181 #define USE_MP_GMP 1
38182 _ACEOF
38183
38184                 ol_with_mp=gmp
38185         elif test $ol_with_mp = gmp ; then
38186                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38187 echo "$as_me: error: gmp not available" >&2;}
38188    { (exit 1); exit 1; }; }
38189         fi
38190 fi
38191 if test $ol_with_mp = auto ; then
38192         ol_with_mp=no
38193 fi
38194
38195 echo "$as_me:$LINENO: checking for working memcmp" >&5
38196 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38197 if test "${ac_cv_func_memcmp_working+set}" = set; then
38198   echo $ECHO_N "(cached) $ECHO_C" >&6
38199 else
38200   if test "$cross_compiling" = yes; then
38201   ac_cv_func_memcmp_working=no
38202 else
38203   cat >conftest.$ac_ext <<_ACEOF
38204 /* confdefs.h.  */
38205 _ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h.  */
38209 $ac_includes_default
38210 int
38211 main ()
38212 {
38213
38214   /* Some versions of memcmp are not 8-bit clean.  */
38215   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38216   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38217     exit (1);
38218
38219   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38220      or more and with at least one buffer not starting on a 4-byte boundary.
38221      William Lewis provided this test program.   */
38222   {
38223     char foo[21];
38224     char bar[21];
38225     int i;
38226     for (i = 0; i < 4; i++)
38227       {
38228         char *a = foo + i;
38229         char *b = bar + i;
38230         strcpy (a, "--------01111111");
38231         strcpy (b, "--------10000000");
38232         if (memcmp (a, b, 16) >= 0)
38233           exit (1);
38234       }
38235     exit (0);
38236   }
38237
38238   ;
38239   return 0;
38240 }
38241 _ACEOF
38242 rm -f conftest$ac_exeext
38243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38244   (eval $ac_link) 2>&5
38245   ac_status=$?
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38249   (eval $ac_try) 2>&5
38250   ac_status=$?
38251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38252   (exit $ac_status); }; }; then
38253   ac_cv_func_memcmp_working=yes
38254 else
38255   echo "$as_me: program exited with status $ac_status" >&5
38256 echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38258
38259 ( exit $ac_status )
38260 ac_cv_func_memcmp_working=no
38261 fi
38262 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38263 fi
38264 fi
38265 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38266 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38267 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38268     "memcmp.$ac_objext"   | \
38269   *" memcmp.$ac_objext"   | \
38270     "memcmp.$ac_objext "* | \
38271   *" memcmp.$ac_objext "* ) ;;
38272   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38273 esac
38274
38275
38276
38277 if test $ac_cv_func_memcmp_working = no ; then
38278
38279 cat >>confdefs.h <<\_ACEOF
38280 #define NEED_MEMCMP_REPLACEMENT 1
38281 _ACEOF
38282
38283 fi
38284
38285
38286 for ac_func in strftime
38287 do
38288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38289 echo "$as_me:$LINENO: checking for $ac_func" >&5
38290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38291 if eval "test \"\${$as_ac_var+set}\" = set"; then
38292   echo $ECHO_N "(cached) $ECHO_C" >&6
38293 else
38294   cat >conftest.$ac_ext <<_ACEOF
38295 /* confdefs.h.  */
38296 _ACEOF
38297 cat confdefs.h >>conftest.$ac_ext
38298 cat >>conftest.$ac_ext <<_ACEOF
38299 /* end confdefs.h.  */
38300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38302 #define $ac_func innocuous_$ac_func
38303
38304 /* System header to define __stub macros and hopefully few prototypes,
38305     which can conflict with char $ac_func (); below.
38306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38307     <limits.h> exists even on freestanding compilers.  */
38308
38309 #ifdef __STDC__
38310 # include <limits.h>
38311 #else
38312 # include <assert.h>
38313 #endif
38314
38315 #undef $ac_func
38316
38317 /* Override any gcc2 internal prototype to avoid an error.  */
38318 #ifdef __cplusplus
38319 extern "C"
38320 {
38321 #endif
38322 /* We use char because int might match the return type of a gcc2
38323    builtin and then its argument prototype would still apply.  */
38324 char $ac_func ();
38325 /* The GNU C library defines this for functions which it implements
38326     to always fail with ENOSYS.  Some functions are actually named
38327     something starting with __ and the normal name is an alias.  */
38328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38329 choke me
38330 #else
38331 char (*f) () = $ac_func;
38332 #endif
38333 #ifdef __cplusplus
38334 }
38335 #endif
38336
38337 int
38338 main ()
38339 {
38340 return f != $ac_func;
38341   ;
38342   return 0;
38343 }
38344 _ACEOF
38345 rm -f conftest.$ac_objext conftest$ac_exeext
38346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38347   (eval $ac_link) 2>conftest.er1
38348   ac_status=$?
38349   grep -v '^ *+' conftest.er1 >conftest.err
38350   rm -f conftest.er1
38351   cat conftest.err >&5
38352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38353   (exit $ac_status); } &&
38354          { ac_try='test -z "$ac_c_werror_flag"
38355                          || test ! -s conftest.err'
38356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38357   (eval $ac_try) 2>&5
38358   ac_status=$?
38359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38360   (exit $ac_status); }; } &&
38361          { ac_try='test -s conftest$ac_exeext'
38362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363   (eval $ac_try) 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); }; }; then
38367   eval "$as_ac_var=yes"
38368 else
38369   echo "$as_me: failed program was:" >&5
38370 sed 's/^/| /' conftest.$ac_ext >&5
38371
38372 eval "$as_ac_var=no"
38373 fi
38374 rm -f conftest.err conftest.$ac_objext \
38375       conftest$ac_exeext conftest.$ac_ext
38376 fi
38377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38379 if test `eval echo '${'$as_ac_var'}'` = yes; then
38380   cat >>confdefs.h <<_ACEOF
38381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38382 _ACEOF
38383
38384 else
38385   # strftime is in -lintl on SCO UNIX.
38386 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38387 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38389   echo $ECHO_N "(cached) $ECHO_C" >&6
38390 else
38391   ac_check_lib_save_LIBS=$LIBS
38392 LIBS="-lintl  $LIBS"
38393 cat >conftest.$ac_ext <<_ACEOF
38394 /* confdefs.h.  */
38395 _ACEOF
38396 cat confdefs.h >>conftest.$ac_ext
38397 cat >>conftest.$ac_ext <<_ACEOF
38398 /* end confdefs.h.  */
38399
38400 /* Override any gcc2 internal prototype to avoid an error.  */
38401 #ifdef __cplusplus
38402 extern "C"
38403 #endif
38404 /* We use char because int might match the return type of a gcc2
38405    builtin and then its argument prototype would still apply.  */
38406 char strftime ();
38407 int
38408 main ()
38409 {
38410 strftime ();
38411   ;
38412   return 0;
38413 }
38414 _ACEOF
38415 rm -f conftest.$ac_objext conftest$ac_exeext
38416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38417   (eval $ac_link) 2>conftest.er1
38418   ac_status=$?
38419   grep -v '^ *+' conftest.er1 >conftest.err
38420   rm -f conftest.er1
38421   cat conftest.err >&5
38422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423   (exit $ac_status); } &&
38424          { ac_try='test -z "$ac_c_werror_flag"
38425                          || test ! -s conftest.err'
38426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38427   (eval $ac_try) 2>&5
38428   ac_status=$?
38429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430   (exit $ac_status); }; } &&
38431          { ac_try='test -s conftest$ac_exeext'
38432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38433   (eval $ac_try) 2>&5
38434   ac_status=$?
38435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38436   (exit $ac_status); }; }; then
38437   ac_cv_lib_intl_strftime=yes
38438 else
38439   echo "$as_me: failed program was:" >&5
38440 sed 's/^/| /' conftest.$ac_ext >&5
38441
38442 ac_cv_lib_intl_strftime=no
38443 fi
38444 rm -f conftest.err conftest.$ac_objext \
38445       conftest$ac_exeext conftest.$ac_ext
38446 LIBS=$ac_check_lib_save_LIBS
38447 fi
38448 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38449 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38450 if test $ac_cv_lib_intl_strftime = yes; then
38451   cat >>confdefs.h <<\_ACEOF
38452 #define HAVE_STRFTIME 1
38453 _ACEOF
38454
38455 LIBS="-lintl $LIBS"
38456 fi
38457
38458 fi
38459 done
38460
38461
38462 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38463 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38464 if test "${ol_cv_func_inet_aton+set}" = set; then
38465   echo $ECHO_N "(cached) $ECHO_C" >&6
38466 else
38467   cat >conftest.$ac_ext <<_ACEOF
38468 /* confdefs.h.  */
38469 _ACEOF
38470 cat confdefs.h >>conftest.$ac_ext
38471 cat >>conftest.$ac_ext <<_ACEOF
38472 /* end confdefs.h.  */
38473
38474 #ifdef HAVE_SYS_TYPES_H
38475 #       include <sys/types.h>
38476 #endif
38477 #ifdef HAVE_SYS_SOCKET_H
38478 #       include <sys/socket.h>
38479 #       ifdef HAVE_SYS_SELECT_H
38480 #               include <sys/select.h>
38481 #       endif
38482 #       include <netinet/in.h>
38483 #       ifdef HAVE_ARPA_INET_H
38484 #               include <arpa/inet.h>
38485 #       endif
38486 #endif
38487
38488 int
38489 main ()
38490 {
38491 struct in_addr in;
38492 int rc = inet_aton( "255.255.255.255", &in );
38493   ;
38494   return 0;
38495 }
38496 _ACEOF
38497 rm -f conftest.$ac_objext conftest$ac_exeext
38498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38499   (eval $ac_link) 2>conftest.er1
38500   ac_status=$?
38501   grep -v '^ *+' conftest.er1 >conftest.err
38502   rm -f conftest.er1
38503   cat conftest.err >&5
38504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505   (exit $ac_status); } &&
38506          { ac_try='test -z "$ac_c_werror_flag"
38507                          || test ! -s conftest.err'
38508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509   (eval $ac_try) 2>&5
38510   ac_status=$?
38511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512   (exit $ac_status); }; } &&
38513          { ac_try='test -s conftest$ac_exeext'
38514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515   (eval $ac_try) 2>&5
38516   ac_status=$?
38517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518   (exit $ac_status); }; }; then
38519   ol_cv_func_inet_aton=yes
38520 else
38521   echo "$as_me: failed program was:" >&5
38522 sed 's/^/| /' conftest.$ac_ext >&5
38523
38524 ol_cv_func_inet_aton=no
38525 fi
38526 rm -f conftest.err conftest.$ac_objext \
38527       conftest$ac_exeext conftest.$ac_ext
38528 fi
38529 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38530 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38531   if test $ol_cv_func_inet_aton != no; then
38532
38533 cat >>confdefs.h <<\_ACEOF
38534 #define HAVE_INET_ATON 1
38535 _ACEOF
38536
38537   fi
38538
38539
38540 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38541 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38542 if test "${ac_cv_func__spawnlp+set}" = set; then
38543   echo $ECHO_N "(cached) $ECHO_C" >&6
38544 else
38545   cat >conftest.$ac_ext <<_ACEOF
38546 /* confdefs.h.  */
38547 _ACEOF
38548 cat confdefs.h >>conftest.$ac_ext
38549 cat >>conftest.$ac_ext <<_ACEOF
38550 /* end confdefs.h.  */
38551 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38553 #define _spawnlp innocuous__spawnlp
38554
38555 /* System header to define __stub macros and hopefully few prototypes,
38556     which can conflict with char _spawnlp (); below.
38557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38558     <limits.h> exists even on freestanding compilers.  */
38559
38560 #ifdef __STDC__
38561 # include <limits.h>
38562 #else
38563 # include <assert.h>
38564 #endif
38565
38566 #undef _spawnlp
38567
38568 /* Override any gcc2 internal prototype to avoid an error.  */
38569 #ifdef __cplusplus
38570 extern "C"
38571 {
38572 #endif
38573 /* We use char because int might match the return type of a gcc2
38574    builtin and then its argument prototype would still apply.  */
38575 char _spawnlp ();
38576 /* The GNU C library defines this for functions which it implements
38577     to always fail with ENOSYS.  Some functions are actually named
38578     something starting with __ and the normal name is an alias.  */
38579 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38580 choke me
38581 #else
38582 char (*f) () = _spawnlp;
38583 #endif
38584 #ifdef __cplusplus
38585 }
38586 #endif
38587
38588 int
38589 main ()
38590 {
38591 return f != _spawnlp;
38592   ;
38593   return 0;
38594 }
38595 _ACEOF
38596 rm -f conftest.$ac_objext conftest$ac_exeext
38597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38598   (eval $ac_link) 2>conftest.er1
38599   ac_status=$?
38600   grep -v '^ *+' conftest.er1 >conftest.err
38601   rm -f conftest.er1
38602   cat conftest.err >&5
38603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38604   (exit $ac_status); } &&
38605          { ac_try='test -z "$ac_c_werror_flag"
38606                          || test ! -s conftest.err'
38607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38608   (eval $ac_try) 2>&5
38609   ac_status=$?
38610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38611   (exit $ac_status); }; } &&
38612          { ac_try='test -s conftest$ac_exeext'
38613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38614   (eval $ac_try) 2>&5
38615   ac_status=$?
38616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617   (exit $ac_status); }; }; then
38618   ac_cv_func__spawnlp=yes
38619 else
38620   echo "$as_me: failed program was:" >&5
38621 sed 's/^/| /' conftest.$ac_ext >&5
38622
38623 ac_cv_func__spawnlp=no
38624 fi
38625 rm -f conftest.err conftest.$ac_objext \
38626       conftest$ac_exeext conftest.$ac_ext
38627 fi
38628 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38629 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38630 if test $ac_cv_func__spawnlp = yes; then
38631
38632 cat >>confdefs.h <<\_ACEOF
38633 #define HAVE_SPAWNLP 1
38634 _ACEOF
38635
38636 fi
38637
38638
38639 echo "$as_me:$LINENO: checking for _snprintf" >&5
38640 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38641 if test "${ac_cv_func__snprintf+set}" = set; then
38642   echo $ECHO_N "(cached) $ECHO_C" >&6
38643 else
38644   cat >conftest.$ac_ext <<_ACEOF
38645 /* confdefs.h.  */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h.  */
38650 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38652 #define _snprintf innocuous__snprintf
38653
38654 /* System header to define __stub macros and hopefully few prototypes,
38655     which can conflict with char _snprintf (); below.
38656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38657     <limits.h> exists even on freestanding compilers.  */
38658
38659 #ifdef __STDC__
38660 # include <limits.h>
38661 #else
38662 # include <assert.h>
38663 #endif
38664
38665 #undef _snprintf
38666
38667 /* Override any gcc2 internal prototype to avoid an error.  */
38668 #ifdef __cplusplus
38669 extern "C"
38670 {
38671 #endif
38672 /* We use char because int might match the return type of a gcc2
38673    builtin and then its argument prototype would still apply.  */
38674 char _snprintf ();
38675 /* The GNU C library defines this for functions which it implements
38676     to always fail with ENOSYS.  Some functions are actually named
38677     something starting with __ and the normal name is an alias.  */
38678 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38679 choke me
38680 #else
38681 char (*f) () = _snprintf;
38682 #endif
38683 #ifdef __cplusplus
38684 }
38685 #endif
38686
38687 int
38688 main ()
38689 {
38690 return f != _snprintf;
38691   ;
38692   return 0;
38693 }
38694 _ACEOF
38695 rm -f conftest.$ac_objext conftest$ac_exeext
38696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38697   (eval $ac_link) 2>conftest.er1
38698   ac_status=$?
38699   grep -v '^ *+' conftest.er1 >conftest.err
38700   rm -f conftest.er1
38701   cat conftest.err >&5
38702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38703   (exit $ac_status); } &&
38704          { ac_try='test -z "$ac_c_werror_flag"
38705                          || test ! -s conftest.err'
38706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38707   (eval $ac_try) 2>&5
38708   ac_status=$?
38709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38710   (exit $ac_status); }; } &&
38711          { ac_try='test -s conftest$ac_exeext'
38712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38713   (eval $ac_try) 2>&5
38714   ac_status=$?
38715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38716   (exit $ac_status); }; }; then
38717   ac_cv_func__snprintf=yes
38718 else
38719   echo "$as_me: failed program was:" >&5
38720 sed 's/^/| /' conftest.$ac_ext >&5
38721
38722 ac_cv_func__snprintf=no
38723 fi
38724 rm -f conftest.err conftest.$ac_objext \
38725       conftest$ac_exeext conftest.$ac_ext
38726 fi
38727 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38728 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38729 if test $ac_cv_func__snprintf = yes; then
38730   ac_cv_func_snprintf=yes
38731
38732 cat >>confdefs.h <<\_ACEOF
38733 #define snprintf _snprintf
38734 _ACEOF
38735
38736
38737 fi
38738
38739
38740 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38741 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38742 if test "${ac_cv_func__vsnprintf+set}" = set; then
38743   echo $ECHO_N "(cached) $ECHO_C" >&6
38744 else
38745   cat >conftest.$ac_ext <<_ACEOF
38746 /* confdefs.h.  */
38747 _ACEOF
38748 cat confdefs.h >>conftest.$ac_ext
38749 cat >>conftest.$ac_ext <<_ACEOF
38750 /* end confdefs.h.  */
38751 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38753 #define _vsnprintf innocuous__vsnprintf
38754
38755 /* System header to define __stub macros and hopefully few prototypes,
38756     which can conflict with char _vsnprintf (); below.
38757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38758     <limits.h> exists even on freestanding compilers.  */
38759
38760 #ifdef __STDC__
38761 # include <limits.h>
38762 #else
38763 # include <assert.h>
38764 #endif
38765
38766 #undef _vsnprintf
38767
38768 /* Override any gcc2 internal prototype to avoid an error.  */
38769 #ifdef __cplusplus
38770 extern "C"
38771 {
38772 #endif
38773 /* We use char because int might match the return type of a gcc2
38774    builtin and then its argument prototype would still apply.  */
38775 char _vsnprintf ();
38776 /* The GNU C library defines this for functions which it implements
38777     to always fail with ENOSYS.  Some functions are actually named
38778     something starting with __ and the normal name is an alias.  */
38779 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38780 choke me
38781 #else
38782 char (*f) () = _vsnprintf;
38783 #endif
38784 #ifdef __cplusplus
38785 }
38786 #endif
38787
38788 int
38789 main ()
38790 {
38791 return f != _vsnprintf;
38792   ;
38793   return 0;
38794 }
38795 _ACEOF
38796 rm -f conftest.$ac_objext conftest$ac_exeext
38797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38798   (eval $ac_link) 2>conftest.er1
38799   ac_status=$?
38800   grep -v '^ *+' conftest.er1 >conftest.err
38801   rm -f conftest.er1
38802   cat conftest.err >&5
38803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38804   (exit $ac_status); } &&
38805          { ac_try='test -z "$ac_c_werror_flag"
38806                          || test ! -s conftest.err'
38807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808   (eval $ac_try) 2>&5
38809   ac_status=$?
38810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811   (exit $ac_status); }; } &&
38812          { ac_try='test -s conftest$ac_exeext'
38813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38814   (eval $ac_try) 2>&5
38815   ac_status=$?
38816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38817   (exit $ac_status); }; }; then
38818   ac_cv_func__vsnprintf=yes
38819 else
38820   echo "$as_me: failed program was:" >&5
38821 sed 's/^/| /' conftest.$ac_ext >&5
38822
38823 ac_cv_func__vsnprintf=no
38824 fi
38825 rm -f conftest.err conftest.$ac_objext \
38826       conftest$ac_exeext conftest.$ac_ext
38827 fi
38828 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38829 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38830 if test $ac_cv_func__vsnprintf = yes; then
38831   ac_cv_func_vsnprintf=yes
38832
38833 cat >>confdefs.h <<\_ACEOF
38834 #define vsnprintf _vsnprintf
38835 _ACEOF
38836
38837
38838 fi
38839
38840
38841
38842 for ac_func in vprintf
38843 do
38844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38845 echo "$as_me:$LINENO: checking for $ac_func" >&5
38846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38847 if eval "test \"\${$as_ac_var+set}\" = set"; then
38848   echo $ECHO_N "(cached) $ECHO_C" >&6
38849 else
38850   cat >conftest.$ac_ext <<_ACEOF
38851 /* confdefs.h.  */
38852 _ACEOF
38853 cat confdefs.h >>conftest.$ac_ext
38854 cat >>conftest.$ac_ext <<_ACEOF
38855 /* end confdefs.h.  */
38856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38858 #define $ac_func innocuous_$ac_func
38859
38860 /* System header to define __stub macros and hopefully few prototypes,
38861     which can conflict with char $ac_func (); below.
38862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38863     <limits.h> exists even on freestanding compilers.  */
38864
38865 #ifdef __STDC__
38866 # include <limits.h>
38867 #else
38868 # include <assert.h>
38869 #endif
38870
38871 #undef $ac_func
38872
38873 /* Override any gcc2 internal prototype to avoid an error.  */
38874 #ifdef __cplusplus
38875 extern "C"
38876 {
38877 #endif
38878 /* We use char because int might match the return type of a gcc2
38879    builtin and then its argument prototype would still apply.  */
38880 char $ac_func ();
38881 /* The GNU C library defines this for functions which it implements
38882     to always fail with ENOSYS.  Some functions are actually named
38883     something starting with __ and the normal name is an alias.  */
38884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38885 choke me
38886 #else
38887 char (*f) () = $ac_func;
38888 #endif
38889 #ifdef __cplusplus
38890 }
38891 #endif
38892
38893 int
38894 main ()
38895 {
38896 return f != $ac_func;
38897   ;
38898   return 0;
38899 }
38900 _ACEOF
38901 rm -f conftest.$ac_objext conftest$ac_exeext
38902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38903   (eval $ac_link) 2>conftest.er1
38904   ac_status=$?
38905   grep -v '^ *+' conftest.er1 >conftest.err
38906   rm -f conftest.er1
38907   cat conftest.err >&5
38908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909   (exit $ac_status); } &&
38910          { ac_try='test -z "$ac_c_werror_flag"
38911                          || test ! -s conftest.err'
38912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38913   (eval $ac_try) 2>&5
38914   ac_status=$?
38915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38916   (exit $ac_status); }; } &&
38917          { ac_try='test -s conftest$ac_exeext'
38918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38919   (eval $ac_try) 2>&5
38920   ac_status=$?
38921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38922   (exit $ac_status); }; }; then
38923   eval "$as_ac_var=yes"
38924 else
38925   echo "$as_me: failed program was:" >&5
38926 sed 's/^/| /' conftest.$ac_ext >&5
38927
38928 eval "$as_ac_var=no"
38929 fi
38930 rm -f conftest.err conftest.$ac_objext \
38931       conftest$ac_exeext conftest.$ac_ext
38932 fi
38933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38935 if test `eval echo '${'$as_ac_var'}'` = yes; then
38936   cat >>confdefs.h <<_ACEOF
38937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38938 _ACEOF
38939
38940 echo "$as_me:$LINENO: checking for _doprnt" >&5
38941 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38942 if test "${ac_cv_func__doprnt+set}" = set; then
38943   echo $ECHO_N "(cached) $ECHO_C" >&6
38944 else
38945   cat >conftest.$ac_ext <<_ACEOF
38946 /* confdefs.h.  */
38947 _ACEOF
38948 cat confdefs.h >>conftest.$ac_ext
38949 cat >>conftest.$ac_ext <<_ACEOF
38950 /* end confdefs.h.  */
38951 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38953 #define _doprnt innocuous__doprnt
38954
38955 /* System header to define __stub macros and hopefully few prototypes,
38956     which can conflict with char _doprnt (); below.
38957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38958     <limits.h> exists even on freestanding compilers.  */
38959
38960 #ifdef __STDC__
38961 # include <limits.h>
38962 #else
38963 # include <assert.h>
38964 #endif
38965
38966 #undef _doprnt
38967
38968 /* Override any gcc2 internal prototype to avoid an error.  */
38969 #ifdef __cplusplus
38970 extern "C"
38971 {
38972 #endif
38973 /* We use char because int might match the return type of a gcc2
38974    builtin and then its argument prototype would still apply.  */
38975 char _doprnt ();
38976 /* The GNU C library defines this for functions which it implements
38977     to always fail with ENOSYS.  Some functions are actually named
38978     something starting with __ and the normal name is an alias.  */
38979 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38980 choke me
38981 #else
38982 char (*f) () = _doprnt;
38983 #endif
38984 #ifdef __cplusplus
38985 }
38986 #endif
38987
38988 int
38989 main ()
38990 {
38991 return f != _doprnt;
38992   ;
38993   return 0;
38994 }
38995 _ACEOF
38996 rm -f conftest.$ac_objext conftest$ac_exeext
38997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38998   (eval $ac_link) 2>conftest.er1
38999   ac_status=$?
39000   grep -v '^ *+' conftest.er1 >conftest.err
39001   rm -f conftest.er1
39002   cat conftest.err >&5
39003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004   (exit $ac_status); } &&
39005          { ac_try='test -z "$ac_c_werror_flag"
39006                          || test ! -s conftest.err'
39007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39008   (eval $ac_try) 2>&5
39009   ac_status=$?
39010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39011   (exit $ac_status); }; } &&
39012          { ac_try='test -s conftest$ac_exeext'
39013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39014   (eval $ac_try) 2>&5
39015   ac_status=$?
39016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39017   (exit $ac_status); }; }; then
39018   ac_cv_func__doprnt=yes
39019 else
39020   echo "$as_me: failed program was:" >&5
39021 sed 's/^/| /' conftest.$ac_ext >&5
39022
39023 ac_cv_func__doprnt=no
39024 fi
39025 rm -f conftest.err conftest.$ac_objext \
39026       conftest$ac_exeext conftest.$ac_ext
39027 fi
39028 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39029 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
39030 if test $ac_cv_func__doprnt = yes; then
39031
39032 cat >>confdefs.h <<\_ACEOF
39033 #define HAVE_DOPRNT 1
39034 _ACEOF
39035
39036 fi
39037
39038 fi
39039 done
39040
39041
39042
39043 if test $ac_cv_func_vprintf = yes ; then
39044
39045
39046 for ac_func in snprintf vsnprintf
39047 do
39048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39049 echo "$as_me:$LINENO: checking for $ac_func" >&5
39050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39051 if eval "test \"\${$as_ac_var+set}\" = set"; then
39052   echo $ECHO_N "(cached) $ECHO_C" >&6
39053 else
39054   cat >conftest.$ac_ext <<_ACEOF
39055 /* confdefs.h.  */
39056 _ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h.  */
39060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39062 #define $ac_func innocuous_$ac_func
39063
39064 /* System header to define __stub macros and hopefully few prototypes,
39065     which can conflict with char $ac_func (); below.
39066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39067     <limits.h> exists even on freestanding compilers.  */
39068
39069 #ifdef __STDC__
39070 # include <limits.h>
39071 #else
39072 # include <assert.h>
39073 #endif
39074
39075 #undef $ac_func
39076
39077 /* Override any gcc2 internal prototype to avoid an error.  */
39078 #ifdef __cplusplus
39079 extern "C"
39080 {
39081 #endif
39082 /* We use char because int might match the return type of a gcc2
39083    builtin and then its argument prototype would still apply.  */
39084 char $ac_func ();
39085 /* The GNU C library defines this for functions which it implements
39086     to always fail with ENOSYS.  Some functions are actually named
39087     something starting with __ and the normal name is an alias.  */
39088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39089 choke me
39090 #else
39091 char (*f) () = $ac_func;
39092 #endif
39093 #ifdef __cplusplus
39094 }
39095 #endif
39096
39097 int
39098 main ()
39099 {
39100 return f != $ac_func;
39101   ;
39102   return 0;
39103 }
39104 _ACEOF
39105 rm -f conftest.$ac_objext conftest$ac_exeext
39106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39107   (eval $ac_link) 2>conftest.er1
39108   ac_status=$?
39109   grep -v '^ *+' conftest.er1 >conftest.err
39110   rm -f conftest.er1
39111   cat conftest.err >&5
39112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113   (exit $ac_status); } &&
39114          { ac_try='test -z "$ac_c_werror_flag"
39115                          || test ! -s conftest.err'
39116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39117   (eval $ac_try) 2>&5
39118   ac_status=$?
39119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120   (exit $ac_status); }; } &&
39121          { ac_try='test -s conftest$ac_exeext'
39122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39123   (eval $ac_try) 2>&5
39124   ac_status=$?
39125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39126   (exit $ac_status); }; }; then
39127   eval "$as_ac_var=yes"
39128 else
39129   echo "$as_me: failed program was:" >&5
39130 sed 's/^/| /' conftest.$ac_ext >&5
39131
39132 eval "$as_ac_var=no"
39133 fi
39134 rm -f conftest.err conftest.$ac_objext \
39135       conftest$ac_exeext conftest.$ac_ext
39136 fi
39137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39139 if test `eval echo '${'$as_ac_var'}'` = yes; then
39140   cat >>confdefs.h <<_ACEOF
39141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39142 _ACEOF
39143
39144 fi
39145 done
39146
39147 fi
39148
39149
39150
39151
39152
39153
39154
39155
39156
39157
39158
39159
39160
39161
39162
39163
39164
39165
39166
39167
39168
39169
39170
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 for ac_func in \
39205         bcopy                   \
39206         closesocket             \
39207         chroot                  \
39208         endgrent                \
39209         endpwent                \
39210         fcntl                   \
39211         flock                   \
39212         fstat                   \
39213         getdtablesize           \
39214         getgrgid                \
39215         gethostname             \
39216         getpass                 \
39217         getpassphrase           \
39218         getpwuid                \
39219         getpwnam                \
39220         getspnam                \
39221         gettimeofday            \
39222         initgroups              \
39223         inet_ntoa_b             \
39224         ioctl                   \
39225         lockf                   \
39226         memcpy                  \
39227         memmove                 \
39228         memrchr                 \
39229         mkstemp                 \
39230         mktemp                  \
39231         pipe                    \
39232         read                    \
39233         recv                    \
39234         recvfrom                \
39235         setpwfile               \
39236         setgid                  \
39237         setegid                 \
39238         setsid                  \
39239         setuid                  \
39240         seteuid                 \
39241         signal                  \
39242         strdup                  \
39243         strpbrk                 \
39244         strrchr                 \
39245         strsep                  \
39246         strstr                  \
39247         strtol                  \
39248         strtoul                 \
39249         strtoq                  \
39250         strtouq                 \
39251         strtoll                 \
39252         strspn                  \
39253         sysconf                 \
39254         waitpid                 \
39255         wait4                   \
39256         write                   \
39257         send                    \
39258         sendmsg                 \
39259         sendto                  \
39260
39261 do
39262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39263 echo "$as_me:$LINENO: checking for $ac_func" >&5
39264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39265 if eval "test \"\${$as_ac_var+set}\" = set"; then
39266   echo $ECHO_N "(cached) $ECHO_C" >&6
39267 else
39268   cat >conftest.$ac_ext <<_ACEOF
39269 /* confdefs.h.  */
39270 _ACEOF
39271 cat confdefs.h >>conftest.$ac_ext
39272 cat >>conftest.$ac_ext <<_ACEOF
39273 /* end confdefs.h.  */
39274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39276 #define $ac_func innocuous_$ac_func
39277
39278 /* System header to define __stub macros and hopefully few prototypes,
39279     which can conflict with char $ac_func (); below.
39280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39281     <limits.h> exists even on freestanding compilers.  */
39282
39283 #ifdef __STDC__
39284 # include <limits.h>
39285 #else
39286 # include <assert.h>
39287 #endif
39288
39289 #undef $ac_func
39290
39291 /* Override any gcc2 internal prototype to avoid an error.  */
39292 #ifdef __cplusplus
39293 extern "C"
39294 {
39295 #endif
39296 /* We use char because int might match the return type of a gcc2
39297    builtin and then its argument prototype would still apply.  */
39298 char $ac_func ();
39299 /* The GNU C library defines this for functions which it implements
39300     to always fail with ENOSYS.  Some functions are actually named
39301     something starting with __ and the normal name is an alias.  */
39302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39303 choke me
39304 #else
39305 char (*f) () = $ac_func;
39306 #endif
39307 #ifdef __cplusplus
39308 }
39309 #endif
39310
39311 int
39312 main ()
39313 {
39314 return f != $ac_func;
39315   ;
39316   return 0;
39317 }
39318 _ACEOF
39319 rm -f conftest.$ac_objext conftest$ac_exeext
39320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39321   (eval $ac_link) 2>conftest.er1
39322   ac_status=$?
39323   grep -v '^ *+' conftest.er1 >conftest.err
39324   rm -f conftest.er1
39325   cat conftest.err >&5
39326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39327   (exit $ac_status); } &&
39328          { ac_try='test -z "$ac_c_werror_flag"
39329                          || test ! -s conftest.err'
39330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39331   (eval $ac_try) 2>&5
39332   ac_status=$?
39333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39334   (exit $ac_status); }; } &&
39335          { ac_try='test -s conftest$ac_exeext'
39336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39337   (eval $ac_try) 2>&5
39338   ac_status=$?
39339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39340   (exit $ac_status); }; }; then
39341   eval "$as_ac_var=yes"
39342 else
39343   echo "$as_me: failed program was:" >&5
39344 sed 's/^/| /' conftest.$ac_ext >&5
39345
39346 eval "$as_ac_var=no"
39347 fi
39348 rm -f conftest.err conftest.$ac_objext \
39349       conftest$ac_exeext conftest.$ac_ext
39350 fi
39351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39353 if test `eval echo '${'$as_ac_var'}'` = yes; then
39354   cat >>confdefs.h <<_ACEOF
39355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39356 _ACEOF
39357
39358 fi
39359 done
39360
39361
39362
39363
39364 for ac_func in getopt getpeereid
39365 do
39366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39367 echo "$as_me:$LINENO: checking for $ac_func" >&5
39368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39369 if eval "test \"\${$as_ac_var+set}\" = set"; then
39370   echo $ECHO_N "(cached) $ECHO_C" >&6
39371 else
39372   cat >conftest.$ac_ext <<_ACEOF
39373 /* confdefs.h.  */
39374 _ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h.  */
39378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39380 #define $ac_func innocuous_$ac_func
39381
39382 /* System header to define __stub macros and hopefully few prototypes,
39383     which can conflict with char $ac_func (); below.
39384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39385     <limits.h> exists even on freestanding compilers.  */
39386
39387 #ifdef __STDC__
39388 # include <limits.h>
39389 #else
39390 # include <assert.h>
39391 #endif
39392
39393 #undef $ac_func
39394
39395 /* Override any gcc2 internal prototype to avoid an error.  */
39396 #ifdef __cplusplus
39397 extern "C"
39398 {
39399 #endif
39400 /* We use char because int might match the return type of a gcc2
39401    builtin and then its argument prototype would still apply.  */
39402 char $ac_func ();
39403 /* The GNU C library defines this for functions which it implements
39404     to always fail with ENOSYS.  Some functions are actually named
39405     something starting with __ and the normal name is an alias.  */
39406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39407 choke me
39408 #else
39409 char (*f) () = $ac_func;
39410 #endif
39411 #ifdef __cplusplus
39412 }
39413 #endif
39414
39415 int
39416 main ()
39417 {
39418 return f != $ac_func;
39419   ;
39420   return 0;
39421 }
39422 _ACEOF
39423 rm -f conftest.$ac_objext conftest$ac_exeext
39424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39425   (eval $ac_link) 2>conftest.er1
39426   ac_status=$?
39427   grep -v '^ *+' conftest.er1 >conftest.err
39428   rm -f conftest.er1
39429   cat conftest.err >&5
39430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39431   (exit $ac_status); } &&
39432          { ac_try='test -z "$ac_c_werror_flag"
39433                          || test ! -s conftest.err'
39434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39435   (eval $ac_try) 2>&5
39436   ac_status=$?
39437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39438   (exit $ac_status); }; } &&
39439          { ac_try='test -s conftest$ac_exeext'
39440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39441   (eval $ac_try) 2>&5
39442   ac_status=$?
39443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444   (exit $ac_status); }; }; then
39445   eval "$as_ac_var=yes"
39446 else
39447   echo "$as_me: failed program was:" >&5
39448 sed 's/^/| /' conftest.$ac_ext >&5
39449
39450 eval "$as_ac_var=no"
39451 fi
39452 rm -f conftest.err conftest.$ac_objext \
39453       conftest$ac_exeext conftest.$ac_ext
39454 fi
39455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39457 if test `eval echo '${'$as_ac_var'}'` = yes; then
39458   cat >>confdefs.h <<_ACEOF
39459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39460 _ACEOF
39461
39462 else
39463   case $LIBOBJS in
39464     "$ac_func.$ac_objext"   | \
39465   *" $ac_func.$ac_objext"   | \
39466     "$ac_func.$ac_objext "* | \
39467   *" $ac_func.$ac_objext "* ) ;;
39468   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39469 esac
39470
39471 fi
39472 done
39473
39474
39475
39476 if test "$ac_cv_func_getopt" != yes; then
39477         LIBSRCS="$LIBSRCS getopt.c"
39478 fi
39479
39480 if test "$ac_cv_func_getpeereid" != yes; then
39481
39482 for ac_func in getpeerucred
39483 do
39484 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39485 echo "$as_me:$LINENO: checking for $ac_func" >&5
39486 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39487 if eval "test \"\${$as_ac_var+set}\" = set"; then
39488   echo $ECHO_N "(cached) $ECHO_C" >&6
39489 else
39490   cat >conftest.$ac_ext <<_ACEOF
39491 /* confdefs.h.  */
39492 _ACEOF
39493 cat confdefs.h >>conftest.$ac_ext
39494 cat >>conftest.$ac_ext <<_ACEOF
39495 /* end confdefs.h.  */
39496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39497    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39498 #define $ac_func innocuous_$ac_func
39499
39500 /* System header to define __stub macros and hopefully few prototypes,
39501     which can conflict with char $ac_func (); below.
39502     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39503     <limits.h> exists even on freestanding compilers.  */
39504
39505 #ifdef __STDC__
39506 # include <limits.h>
39507 #else
39508 # include <assert.h>
39509 #endif
39510
39511 #undef $ac_func
39512
39513 /* Override any gcc2 internal prototype to avoid an error.  */
39514 #ifdef __cplusplus
39515 extern "C"
39516 {
39517 #endif
39518 /* We use char because int might match the return type of a gcc2
39519    builtin and then its argument prototype would still apply.  */
39520 char $ac_func ();
39521 /* The GNU C library defines this for functions which it implements
39522     to always fail with ENOSYS.  Some functions are actually named
39523     something starting with __ and the normal name is an alias.  */
39524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39525 choke me
39526 #else
39527 char (*f) () = $ac_func;
39528 #endif
39529 #ifdef __cplusplus
39530 }
39531 #endif
39532
39533 int
39534 main ()
39535 {
39536 return f != $ac_func;
39537   ;
39538   return 0;
39539 }
39540 _ACEOF
39541 rm -f conftest.$ac_objext conftest$ac_exeext
39542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39543   (eval $ac_link) 2>conftest.er1
39544   ac_status=$?
39545   grep -v '^ *+' conftest.er1 >conftest.err
39546   rm -f conftest.er1
39547   cat conftest.err >&5
39548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39549   (exit $ac_status); } &&
39550          { ac_try='test -z "$ac_c_werror_flag"
39551                          || test ! -s conftest.err'
39552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39553   (eval $ac_try) 2>&5
39554   ac_status=$?
39555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39556   (exit $ac_status); }; } &&
39557          { ac_try='test -s conftest$ac_exeext'
39558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39559   (eval $ac_try) 2>&5
39560   ac_status=$?
39561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562   (exit $ac_status); }; }; then
39563   eval "$as_ac_var=yes"
39564 else
39565   echo "$as_me: failed program was:" >&5
39566 sed 's/^/| /' conftest.$ac_ext >&5
39567
39568 eval "$as_ac_var=no"
39569 fi
39570 rm -f conftest.err conftest.$ac_objext \
39571       conftest$ac_exeext conftest.$ac_ext
39572 fi
39573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39574 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39575 if test `eval echo '${'$as_ac_var'}'` = yes; then
39576   cat >>confdefs.h <<_ACEOF
39577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39578 _ACEOF
39579
39580 fi
39581 done
39582
39583         if test "$ac_cv_func_getpeerucred" != yes ; then
39584                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39585 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39586 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39587   echo $ECHO_N "(cached) $ECHO_C" >&6
39588 else
39589   cat >conftest.$ac_ext <<_ACEOF
39590 /* confdefs.h.  */
39591 _ACEOF
39592 cat confdefs.h >>conftest.$ac_ext
39593 cat >>conftest.$ac_ext <<_ACEOF
39594 /* end confdefs.h.  */
39595 $ac_includes_default
39596 #ifdef HAVE_SYS_SOCKET_H
39597 #include <sys/socket.h>
39598 #endif
39599
39600 int
39601 main ()
39602 {
39603 static struct msghdr ac_aggr;
39604 if (ac_aggr.msg_accrightslen)
39605 return 0;
39606   ;
39607   return 0;
39608 }
39609 _ACEOF
39610 rm -f conftest.$ac_objext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39612   (eval $ac_compile) 2>conftest.er1
39613   ac_status=$?
39614   grep -v '^ *+' conftest.er1 >conftest.err
39615   rm -f conftest.er1
39616   cat conftest.err >&5
39617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618   (exit $ac_status); } &&
39619          { ac_try='test -z "$ac_c_werror_flag"
39620                          || test ! -s conftest.err'
39621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622   (eval $ac_try) 2>&5
39623   ac_status=$?
39624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625   (exit $ac_status); }; } &&
39626          { ac_try='test -s conftest.$ac_objext'
39627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628   (eval $ac_try) 2>&5
39629   ac_status=$?
39630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631   (exit $ac_status); }; }; then
39632   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39633 else
39634   echo "$as_me: failed program was:" >&5
39635 sed 's/^/| /' conftest.$ac_ext >&5
39636
39637 cat >conftest.$ac_ext <<_ACEOF
39638 /* confdefs.h.  */
39639 _ACEOF
39640 cat confdefs.h >>conftest.$ac_ext
39641 cat >>conftest.$ac_ext <<_ACEOF
39642 /* end confdefs.h.  */
39643 $ac_includes_default
39644 #ifdef HAVE_SYS_SOCKET_H
39645 #include <sys/socket.h>
39646 #endif
39647
39648 int
39649 main ()
39650 {
39651 static struct msghdr ac_aggr;
39652 if (sizeof ac_aggr.msg_accrightslen)
39653 return 0;
39654   ;
39655   return 0;
39656 }
39657 _ACEOF
39658 rm -f conftest.$ac_objext
39659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39660   (eval $ac_compile) 2>conftest.er1
39661   ac_status=$?
39662   grep -v '^ *+' conftest.er1 >conftest.err
39663   rm -f conftest.er1
39664   cat conftest.err >&5
39665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666   (exit $ac_status); } &&
39667          { ac_try='test -z "$ac_c_werror_flag"
39668                          || test ! -s conftest.err'
39669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670   (eval $ac_try) 2>&5
39671   ac_status=$?
39672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673   (exit $ac_status); }; } &&
39674          { ac_try='test -s conftest.$ac_objext'
39675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39676   (eval $ac_try) 2>&5
39677   ac_status=$?
39678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39679   (exit $ac_status); }; }; then
39680   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39681 else
39682   echo "$as_me: failed program was:" >&5
39683 sed 's/^/| /' conftest.$ac_ext >&5
39684
39685 ac_cv_member_struct_msghdr_msg_accrightslen=no
39686 fi
39687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39688 fi
39689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39690 fi
39691 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39692 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39693 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39694
39695 cat >>confdefs.h <<_ACEOF
39696 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39697 _ACEOF
39698
39699
39700 fi
39701
39702                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39703                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39704 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39705 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39706   echo $ECHO_N "(cached) $ECHO_C" >&6
39707 else
39708   cat >conftest.$ac_ext <<_ACEOF
39709 /* confdefs.h.  */
39710 _ACEOF
39711 cat confdefs.h >>conftest.$ac_ext
39712 cat >>conftest.$ac_ext <<_ACEOF
39713 /* end confdefs.h.  */
39714 $ac_includes_default
39715 #ifdef HAVE_SYS_SOCKET_H
39716 #include <sys/socket.h>
39717 #endif
39718
39719 int
39720 main ()
39721 {
39722 static struct msghdr ac_aggr;
39723 if (ac_aggr.msg_control)
39724 return 0;
39725   ;
39726   return 0;
39727 }
39728 _ACEOF
39729 rm -f conftest.$ac_objext
39730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39731   (eval $ac_compile) 2>conftest.er1
39732   ac_status=$?
39733   grep -v '^ *+' conftest.er1 >conftest.err
39734   rm -f conftest.er1
39735   cat conftest.err >&5
39736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39737   (exit $ac_status); } &&
39738          { ac_try='test -z "$ac_c_werror_flag"
39739                          || test ! -s conftest.err'
39740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39741   (eval $ac_try) 2>&5
39742   ac_status=$?
39743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744   (exit $ac_status); }; } &&
39745          { ac_try='test -s conftest.$ac_objext'
39746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747   (eval $ac_try) 2>&5
39748   ac_status=$?
39749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750   (exit $ac_status); }; }; then
39751   ac_cv_member_struct_msghdr_msg_control=yes
39752 else
39753   echo "$as_me: failed program was:" >&5
39754 sed 's/^/| /' conftest.$ac_ext >&5
39755
39756 cat >conftest.$ac_ext <<_ACEOF
39757 /* confdefs.h.  */
39758 _ACEOF
39759 cat confdefs.h >>conftest.$ac_ext
39760 cat >>conftest.$ac_ext <<_ACEOF
39761 /* end confdefs.h.  */
39762 $ac_includes_default
39763 #ifdef HAVE_SYS_SOCKET_H
39764 #include <sys/socket.h>
39765 #endif
39766
39767 int
39768 main ()
39769 {
39770 static struct msghdr ac_aggr;
39771 if (sizeof ac_aggr.msg_control)
39772 return 0;
39773   ;
39774   return 0;
39775 }
39776 _ACEOF
39777 rm -f conftest.$ac_objext
39778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39779   (eval $ac_compile) 2>conftest.er1
39780   ac_status=$?
39781   grep -v '^ *+' conftest.er1 >conftest.err
39782   rm -f conftest.er1
39783   cat conftest.err >&5
39784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39785   (exit $ac_status); } &&
39786          { ac_try='test -z "$ac_c_werror_flag"
39787                          || test ! -s conftest.err'
39788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39789   (eval $ac_try) 2>&5
39790   ac_status=$?
39791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39792   (exit $ac_status); }; } &&
39793          { ac_try='test -s conftest.$ac_objext'
39794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39795   (eval $ac_try) 2>&5
39796   ac_status=$?
39797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39798   (exit $ac_status); }; }; then
39799   ac_cv_member_struct_msghdr_msg_control=yes
39800 else
39801   echo "$as_me: failed program was:" >&5
39802 sed 's/^/| /' conftest.$ac_ext >&5
39803
39804 ac_cv_member_struct_msghdr_msg_control=no
39805 fi
39806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39807 fi
39808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39809 fi
39810 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39811 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39812 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39813
39814 cat >>confdefs.h <<_ACEOF
39815 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39816 _ACEOF
39817
39818
39819 fi
39820
39821                 fi
39822         fi
39823         LIBSRCS="$LIBSRCS getpeereid.c"
39824 fi
39825
39826 if test "$ac_cv_func_snprintf" != yes ||
39827    test "$ac_cv_func_vsnprintf" != yes; then
39828         if test "$ac_cv_func_snprintf" != yes; then
39829
39830 cat >>confdefs.h <<\_ACEOF
39831 #define snprintf ber_pvt_snprintf
39832 _ACEOF
39833
39834         fi
39835         if test "$ac_cv_func_vsnprintf" != yes; then
39836
39837 cat >>confdefs.h <<\_ACEOF
39838 #define vsnprintf ber_pvt_vsnprintf
39839 _ACEOF
39840
39841         fi
39842 fi
39843
39844
39845 if test "$ol_enable_slapi" != no ; then
39846
39847 for ac_header in ltdl.h
39848 do
39849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39851   echo "$as_me:$LINENO: checking for $ac_header" >&5
39852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39854   echo $ECHO_N "(cached) $ECHO_C" >&6
39855 fi
39856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39858 else
39859   # Is the header compilable?
39860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39862 cat >conftest.$ac_ext <<_ACEOF
39863 /* confdefs.h.  */
39864 _ACEOF
39865 cat confdefs.h >>conftest.$ac_ext
39866 cat >>conftest.$ac_ext <<_ACEOF
39867 /* end confdefs.h.  */
39868 $ac_includes_default
39869 #include <$ac_header>
39870 _ACEOF
39871 rm -f conftest.$ac_objext
39872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39873   (eval $ac_compile) 2>conftest.er1
39874   ac_status=$?
39875   grep -v '^ *+' conftest.er1 >conftest.err
39876   rm -f conftest.er1
39877   cat conftest.err >&5
39878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39879   (exit $ac_status); } &&
39880          { ac_try='test -z "$ac_c_werror_flag"
39881                          || test ! -s conftest.err'
39882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39883   (eval $ac_try) 2>&5
39884   ac_status=$?
39885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39886   (exit $ac_status); }; } &&
39887          { ac_try='test -s conftest.$ac_objext'
39888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39889   (eval $ac_try) 2>&5
39890   ac_status=$?
39891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892   (exit $ac_status); }; }; then
39893   ac_header_compiler=yes
39894 else
39895   echo "$as_me: failed program was:" >&5
39896 sed 's/^/| /' conftest.$ac_ext >&5
39897
39898 ac_header_compiler=no
39899 fi
39900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39902 echo "${ECHO_T}$ac_header_compiler" >&6
39903
39904 # Is the header present?
39905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39907 cat >conftest.$ac_ext <<_ACEOF
39908 /* confdefs.h.  */
39909 _ACEOF
39910 cat confdefs.h >>conftest.$ac_ext
39911 cat >>conftest.$ac_ext <<_ACEOF
39912 /* end confdefs.h.  */
39913 #include <$ac_header>
39914 _ACEOF
39915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39917   ac_status=$?
39918   grep -v '^ *+' conftest.er1 >conftest.err
39919   rm -f conftest.er1
39920   cat conftest.err >&5
39921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39922   (exit $ac_status); } >/dev/null; then
39923   if test -s conftest.err; then
39924     ac_cpp_err=$ac_c_preproc_warn_flag
39925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39926   else
39927     ac_cpp_err=
39928   fi
39929 else
39930   ac_cpp_err=yes
39931 fi
39932 if test -z "$ac_cpp_err"; then
39933   ac_header_preproc=yes
39934 else
39935   echo "$as_me: failed program was:" >&5
39936 sed 's/^/| /' conftest.$ac_ext >&5
39937
39938   ac_header_preproc=no
39939 fi
39940 rm -f conftest.err conftest.$ac_ext
39941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39942 echo "${ECHO_T}$ac_header_preproc" >&6
39943
39944 # So?  What about this header?
39945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39946   yes:no: )
39947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39951     ac_header_preproc=yes
39952     ;;
39953   no:yes:* )
39954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39966     (
39967       cat <<\_ASBOX
39968 ## --------------------------------------------- ##
39969 ## Report this to <http://www.openldap.org/its/> ##
39970 ## --------------------------------------------- ##
39971 _ASBOX
39972     ) |
39973       sed "s/^/$as_me: WARNING:     /" >&2
39974     ;;
39975 esac
39976 echo "$as_me:$LINENO: checking for $ac_header" >&5
39977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39979   echo $ECHO_N "(cached) $ECHO_C" >&6
39980 else
39981   eval "$as_ac_Header=\$ac_header_preproc"
39982 fi
39983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39985
39986 fi
39987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39988   cat >>confdefs.h <<_ACEOF
39989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39990 _ACEOF
39991
39992 fi
39993
39994 done
39995
39996
39997         if test $ac_cv_header_ltdl_h != yes ; then
39998                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39999 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
40000    { (exit 1); exit 1; }; }
40001         fi
40002         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
40003 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
40004 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
40005   echo $ECHO_N "(cached) $ECHO_C" >&6
40006 else
40007   ac_check_lib_save_LIBS=$LIBS
40008 LIBS="-lltdl  $LIBS"
40009 cat >conftest.$ac_ext <<_ACEOF
40010 /* confdefs.h.  */
40011 _ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h.  */
40015
40016 /* Override any gcc2 internal prototype to avoid an error.  */
40017 #ifdef __cplusplus
40018 extern "C"
40019 #endif
40020 /* We use char because int might match the return type of a gcc2
40021    builtin and then its argument prototype would still apply.  */
40022 char lt_dlinit ();
40023 int
40024 main ()
40025 {
40026 lt_dlinit ();
40027   ;
40028   return 0;
40029 }
40030 _ACEOF
40031 rm -f conftest.$ac_objext conftest$ac_exeext
40032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40033   (eval $ac_link) 2>conftest.er1
40034   ac_status=$?
40035   grep -v '^ *+' conftest.er1 >conftest.err
40036   rm -f conftest.er1
40037   cat conftest.err >&5
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); } &&
40040          { ac_try='test -z "$ac_c_werror_flag"
40041                          || test ! -s conftest.err'
40042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40043   (eval $ac_try) 2>&5
40044   ac_status=$?
40045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40046   (exit $ac_status); }; } &&
40047          { ac_try='test -s conftest$ac_exeext'
40048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40049   (eval $ac_try) 2>&5
40050   ac_status=$?
40051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40052   (exit $ac_status); }; }; then
40053   ac_cv_lib_ltdl_lt_dlinit=yes
40054 else
40055   echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40057
40058 ac_cv_lib_ltdl_lt_dlinit=no
40059 fi
40060 rm -f conftest.err conftest.$ac_objext \
40061       conftest$ac_exeext conftest.$ac_ext
40062 LIBS=$ac_check_lib_save_LIBS
40063 fi
40064 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
40065 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
40066 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
40067
40068                 SLAPI_LIBS=-lltdl
40069                 LIBSLAPI=libslapi.a
40070                 LIBSLAPITOOLS=../libslapi.a
40071
40072 cat >>confdefs.h <<\_ACEOF
40073 #define HAVE_LIBLTDL 1
40074 _ACEOF
40075
40076
40077 else
40078   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
40079 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
40080    { (exit 1); exit 1; }; }
40081 fi
40082
40083
40084
40085 cat >>confdefs.h <<\_ACEOF
40086 #define LDAP_SLAPI 1
40087 _ACEOF
40088
40089 fi
40090
40091 if test "$ol_enable_debug" != no ; then
40092         if test "$ol_enable_debug" = traditional; then
40093
40094 cat >>confdefs.h <<\_ACEOF
40095 #define OLD_DEBUG 1
40096 _ACEOF
40097
40098         fi
40099
40100 cat >>confdefs.h <<\_ACEOF
40101 #define LDAP_DEBUG 1
40102 _ACEOF
40103
40104 fi
40105 if test "$ol_enable_syslog" = yes ; then
40106
40107 cat >>confdefs.h <<\_ACEOF
40108 #define LDAP_SYSLOG 1
40109 _ACEOF
40110
40111 fi
40112 if test "$ol_link_kbind" != no ; then
40113
40114 cat >>confdefs.h <<\_ACEOF
40115 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40116 _ACEOF
40117
40118 fi
40119 if test "$ol_enable_proctitle" != no ; then
40120
40121 cat >>confdefs.h <<\_ACEOF
40122 #define LDAP_PROCTITLE 1
40123 _ACEOF
40124
40125 fi
40126 if test "$ol_enable_referrals" != no ; then
40127
40128 cat >>confdefs.h <<\_ACEOF
40129 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40130 _ACEOF
40131
40132 fi
40133 if test "$ol_enable_local" != no; then
40134
40135 cat >>confdefs.h <<\_ACEOF
40136 #define LDAP_PF_LOCAL 1
40137 _ACEOF
40138
40139 fi
40140 if test "$ol_link_ipv6" != no; then
40141
40142 cat >>confdefs.h <<\_ACEOF
40143 #define LDAP_PF_INET6 1
40144 _ACEOF
40145
40146 fi
40147 if test "$ol_enable_cleartext" != no ; then
40148
40149 cat >>confdefs.h <<\_ACEOF
40150 #define SLAPD_CLEARTEXT 1
40151 _ACEOF
40152
40153 fi
40154 if test "$ol_enable_crypt" != no ; then
40155
40156 cat >>confdefs.h <<\_ACEOF
40157 #define SLAPD_CRYPT 1
40158 _ACEOF
40159
40160 fi
40161 if test "$ol_link_spasswd" != no ; then
40162
40163 cat >>confdefs.h <<\_ACEOF
40164 #define SLAPD_SPASSWD 1
40165 _ACEOF
40166
40167 fi
40168 if test "$ol_enable_rlookups" != no ; then
40169
40170 cat >>confdefs.h <<\_ACEOF
40171 #define SLAPD_RLOOKUPS 1
40172 _ACEOF
40173
40174 fi
40175 if test "$ol_enable_aci" != no ; then
40176         if test $ol_enable_dynacl = no ; then
40177                 ol_enable_dynacl=yes
40178                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40179 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40180         fi
40181         if test "$ol_enable_aci" = mod ; then
40182                 MFLAG=SLAPD_MOD_DYNAMIC
40183                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40184 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40185    { (exit 1); exit 1; }; }
40186         else
40187                 MFLAG=SLAPD_MOD_STATIC
40188         fi
40189         WITH_ACI_ENABLED=$ol_enable_aci
40190
40191 cat >>confdefs.h <<_ACEOF
40192 #define SLAPD_ACI_ENABLED $MFLAG
40193 _ACEOF
40194
40195 else
40196         WITH_ACI_ENABLED=no
40197 fi
40198 if test "$ol_enable_dynacl" != no ; then
40199
40200 cat >>confdefs.h <<\_ACEOF
40201 #define SLAP_DYNACL 1
40202 _ACEOF
40203
40204 fi
40205
40206 if test "$ol_link_modules" != no ; then
40207
40208 cat >>confdefs.h <<\_ACEOF
40209 #define SLAPD_MODULES 1
40210 _ACEOF
40211
40212         BUILD_SLAPD=yes
40213         SLAPD_MODULES_LDFLAGS="-dlopen self"
40214 fi
40215
40216
40217 cat >>confdefs.h <<\_ACEOF
40218 #define SLAPD_MOD_STATIC 1
40219 _ACEOF
40220
40221
40222 cat >>confdefs.h <<\_ACEOF
40223 #define SLAPD_MOD_DYNAMIC 2
40224 _ACEOF
40225
40226
40227 if test "$ol_enable_monitor" != no ; then
40228         BUILD_SLAPD=yes
40229         BUILD_MONITOR=$ol_enable_monitor
40230         if test "$ol_enable_monitor" = mod ; then
40231                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40232                 MFLAG=SLAPD_MOD_DYNAMIC
40233         else
40234                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40235                 MFLAG=SLAPD_MOD_STATIC
40236         fi
40237
40238 cat >>confdefs.h <<_ACEOF
40239 #define SLAPD_MONITOR $MFLAG
40240 _ACEOF
40241
40242 fi
40243
40244 if test "$ol_enable_bdb" != no ; then
40245         BUILD_SLAPD=yes
40246         BUILD_BDB=$ol_enable_bdb
40247         if test "$ol_enable_bdb" = mod ; then
40248                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40249                 MFLAG=SLAPD_MOD_DYNAMIC
40250         else
40251                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40252                 MFLAG=SLAPD_MOD_STATIC
40253         fi
40254
40255 cat >>confdefs.h <<_ACEOF
40256 #define SLAPD_BDB $MFLAG
40257 _ACEOF
40258
40259 fi
40260
40261 if test "$ol_enable_dnssrv" != no ; then
40262         BUILD_SLAPD=yes
40263         BUILD_DNSSRV=$ol_enable_dnssrv
40264         if test "$ol_enable_dnssrv" = mod ; then
40265                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40266                 MFLAG=SLAPD_MOD_DYNAMIC
40267         else
40268                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40269                 MFLAG=SLAPD_MOD_STATIC
40270         fi
40271
40272 cat >>confdefs.h <<_ACEOF
40273 #define SLAPD_DNSSRV $MFLAG
40274 _ACEOF
40275
40276 fi
40277
40278 if test "$ol_enable_hdb" != no ; then
40279         BUILD_SLAPD=yes
40280         BUILD_HDB=$ol_enable_hdb
40281         if test "$ol_enable_hdb" = mod ; then
40282                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40283                 MFLAG=SLAPD_MOD_DYNAMIC
40284         else
40285                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40286                 MFLAG=SLAPD_MOD_STATIC
40287         fi
40288
40289 cat >>confdefs.h <<_ACEOF
40290 #define SLAPD_HDB $MFLAG
40291 _ACEOF
40292
40293 fi
40294
40295 if test "$ol_enable_ldap" != no ; then
40296         BUILD_SLAPD=yes
40297         BUILD_LDAP=$ol_enable_ldap
40298         if test "$ol_enable_ldap" = mod ; then
40299                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40300                 MFLAG=SLAPD_MOD_DYNAMIC
40301         else
40302                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40303                 MFLAG=SLAPD_MOD_STATIC
40304         fi
40305
40306 cat >>confdefs.h <<_ACEOF
40307 #define SLAPD_LDAP $MFLAG
40308 _ACEOF
40309
40310 fi
40311
40312 if test "$ol_enable_meta" != no ; then
40313         BUILD_SLAPD=yes
40314         BUILD_META=$ol_enable_meta
40315         BUILD_REWRITE=yes
40316         if test "$ol_enable_meta" = mod ; then
40317                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40318                 MFLAG=SLAPD_MOD_DYNAMIC
40319         else
40320                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40321                 MFLAG=SLAPD_MOD_STATIC
40322         fi
40323
40324 cat >>confdefs.h <<_ACEOF
40325 #define SLAPD_META $MFLAG
40326 _ACEOF
40327
40328 fi
40329
40330 if test "$ol_enable_null" != no ; then
40331         BUILD_SLAPD=yes
40332         BUILD_NULL=$ol_enable_null
40333         if test "$ol_enable_null" = mod ; then
40334                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40335                 MFLAG=SLAPD_MOD_DYNAMIC
40336         else
40337                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40338                 MFLAG=SLAPD_MOD_STATIC
40339         fi
40340
40341 cat >>confdefs.h <<_ACEOF
40342 #define SLAPD_NULL $MFLAG
40343 _ACEOF
40344
40345 fi
40346
40347 if test "$ol_enable_passwd" != no ; then
40348         BUILD_SLAPD=yes
40349         BUILD_PASSWD=$ol_enable_passwd
40350         if test "$ol_enable_passwd" = mod ; then
40351                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40352                 MFLAG=SLAPD_MOD_DYNAMIC
40353         else
40354                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40355                 MFLAG=SLAPD_MOD_STATIC
40356         fi
40357
40358 cat >>confdefs.h <<_ACEOF
40359 #define SLAPD_PASSWD $MFLAG
40360 _ACEOF
40361
40362 fi
40363
40364 if test "$ol_link_perl" != no ; then
40365         BUILD_SLAPD=yes
40366         BUILD_PERL=$ol_enable_perl
40367         if test "$ol_enable_perl" = mod ; then
40368                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40369                 MFLAG=SLAPD_MOD_DYNAMIC
40370         else
40371                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40372                 MFLAG=SLAPD_MOD_STATIC
40373         fi
40374
40375 cat >>confdefs.h <<_ACEOF
40376 #define SLAPD_PERL $MFLAG
40377 _ACEOF
40378
40379 fi
40380
40381 if test "$ol_enable_relay" != no ; then
40382         BUILD_SLAPD=yes
40383         BUILD_RELAY=$ol_enable_relay
40384         if test "$ol_enable_relay" = mod ; then
40385                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40386                 MFLAG=SLAPD_MOD_DYNAMIC
40387         else
40388                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40389                 MFLAG=SLAPD_MOD_STATIC
40390         fi
40391
40392 cat >>confdefs.h <<_ACEOF
40393 #define SLAPD_RELAY $MFLAG
40394 _ACEOF
40395
40396 fi
40397
40398 if test "$ol_enable_shell" != no ; then
40399         if test "$ol_link_threads" != no ; then
40400                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40401 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40402         fi
40403         BUILD_SLAPD=yes
40404         BUILD_SHELL=$ol_enable_shell
40405         if test "$ol_enable_shell" = mod ; then
40406                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40407                 MFLAG=SLAPD_MOD_DYNAMIC
40408         else
40409                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40410                 MFLAG=SLAPD_MOD_STATIC
40411         fi
40412
40413 cat >>confdefs.h <<_ACEOF
40414 #define SLAPD_SHELL $MFLAG
40415 _ACEOF
40416
40417 fi
40418
40419 if test "$ol_link_sql" != no ; then
40420         BUILD_SLAPD=yes
40421         BUILD_SQL=$ol_enable_sql
40422         if test "$ol_enable_sql" = mod; then
40423                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40424                 MFLAG=SLAPD_MOD_DYNAMIC
40425         else
40426                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40427                 MFLAG=SLAPD_MOD_STATIC
40428         fi
40429
40430 cat >>confdefs.h <<_ACEOF
40431 #define SLAPD_SQL $MFLAG
40432 _ACEOF
40433
40434 fi
40435
40436 if test "$ol_enable_accesslog" != no ; then
40437         BUILD_ACCESSLOG=$ol_enable_accesslog
40438         if test "$ol_enable_accesslog" = mod ; then
40439                 MFLAG=SLAPD_MOD_DYNAMIC
40440                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40441         else
40442                 MFLAG=SLAPD_MOD_STATIC
40443                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40444         fi
40445
40446 cat >>confdefs.h <<_ACEOF
40447 #define SLAPD_OVER_ACCESSLOG $MFLAG
40448 _ACEOF
40449
40450 fi
40451
40452 if test "$ol_enable_auditlog" != no ; then
40453         BUILD_AUDITLOG=$ol_enable_auditlog
40454         if test "$ol_enable_auditlog" = mod ; then
40455                 MFLAG=SLAPD_MOD_DYNAMIC
40456                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40457         else
40458                 MFLAG=SLAPD_MOD_STATIC
40459                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40460         fi
40461
40462 cat >>confdefs.h <<_ACEOF
40463 #define SLAPD_OVER_AUDITLOG $MFLAG
40464 _ACEOF
40465
40466 fi
40467
40468 if test "$ol_enable_constraint" != no ; then
40469         BUILD_CONSTRAINT=$ol_enable_constraint
40470         if test "$ol_enable_constraint" = mod ; then
40471                 MFLAG=SLAPD_MOD_DYNAMIC
40472                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40473         else
40474                 MFLAG=SLAPD_MOD_STATIC
40475                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40476         fi
40477
40478 cat >>confdefs.h <<_ACEOF
40479 #define SLAPD_OVER_CONSTRAINT $MFLAG
40480 _ACEOF
40481
40482 fi
40483
40484 if test "$ol_enable_dds" != no ; then
40485         BUILD_DDS=$ol_enable_dds
40486         if test "$ol_enable_dds" = mod ; then
40487                 MFLAG=SLAPD_MOD_DYNAMIC
40488                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40489         else
40490                 MFLAG=SLAPD_MOD_STATIC
40491                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40492         fi
40493
40494 cat >>confdefs.h <<_ACEOF
40495 #define SLAPD_OVER_DDS $MFLAG
40496 _ACEOF
40497
40498 fi
40499
40500 if test "$ol_enable_dyngroup" != no ; then
40501         BUILD_DYNGROUP=$ol_enable_dyngroup
40502         if test "$ol_enable_dyngroup" = mod ; then
40503                 MFLAG=SLAPD_MOD_DYNAMIC
40504                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40505         else
40506                 MFLAG=SLAPD_MOD_STATIC
40507                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40508         fi
40509
40510 cat >>confdefs.h <<_ACEOF
40511 #define SLAPD_OVER_DYNGROUP $MFLAG
40512 _ACEOF
40513
40514 fi
40515
40516 if test "$ol_enable_dynlist" != no ; then
40517         BUILD_DYNLIST=$ol_enable_dynlist
40518         if test "$ol_enable_dynlist" = mod ; then
40519                 MFLAG=SLAPD_MOD_DYNAMIC
40520                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40521         else
40522                 MFLAG=SLAPD_MOD_STATIC
40523                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40524         fi
40525
40526 cat >>confdefs.h <<_ACEOF
40527 #define SLAPD_OVER_DYNLIST $MFLAG
40528 _ACEOF
40529
40530 fi
40531
40532 if test "$ol_enable_ppolicy" != no ; then
40533         BUILD_PPOLICY=$ol_enable_ppolicy
40534         if test "$ol_enable_ppolicy" = mod ; then
40535                 MFLAG=SLAPD_MOD_DYNAMIC
40536                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40537         else
40538                 MFLAG=SLAPD_MOD_STATIC
40539                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40540         fi
40541
40542 cat >>confdefs.h <<_ACEOF
40543 #define SLAPD_OVER_PPOLICY $MFLAG
40544 _ACEOF
40545
40546 fi
40547
40548 if test "$ol_enable_proxycache" != no ; then
40549         BUILD_PROXYCACHE=$ol_enable_proxycache
40550         if test "$ol_enable_proxycache" = mod ; then
40551                 MFLAG=SLAPD_MOD_DYNAMIC
40552                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40553         else
40554                 MFLAG=SLAPD_MOD_STATIC
40555                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40556         fi
40557
40558 cat >>confdefs.h <<_ACEOF
40559 #define SLAPD_OVER_PROXYCACHE $MFLAG
40560 _ACEOF
40561
40562 fi
40563
40564 if test "$ol_enable_refint" != no ; then
40565         BUILD_REFINT=$ol_enable_refint
40566         if test "$ol_enable_refint" = mod ; then
40567                 MFLAG=SLAPD_MOD_DYNAMIC
40568                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40569         else
40570                 MFLAG=SLAPD_MOD_STATIC
40571                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40572         fi
40573
40574 cat >>confdefs.h <<_ACEOF
40575 #define SLAPD_OVER_REFINT $MFLAG
40576 _ACEOF
40577
40578 fi
40579
40580 if test "$ol_enable_retcode" != no ; then
40581         BUILD_RETCODE=$ol_enable_retcode
40582         if test "$ol_enable_retcode" = mod ; then
40583                 MFLAG=SLAPD_MOD_DYNAMIC
40584                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40585         else
40586                 MFLAG=SLAPD_MOD_STATIC
40587                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40588         fi
40589
40590 cat >>confdefs.h <<_ACEOF
40591 #define SLAPD_OVER_RETCODE $MFLAG
40592 _ACEOF
40593
40594 fi
40595
40596 if test "$ol_enable_rwm" != no ; then
40597         BUILD_REWRITE=yes
40598         BUILD_RWM=$ol_enable_rwm
40599         if test "$ol_enable_rwm" = mod ; then
40600                 MFLAG=SLAPD_MOD_DYNAMIC
40601                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40602         else
40603                 MFLAG=SLAPD_MOD_STATIC
40604                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40605         fi
40606
40607 cat >>confdefs.h <<_ACEOF
40608 #define SLAPD_OVER_RWM $MFLAG
40609 _ACEOF
40610
40611 fi
40612
40613 if test "$ol_enable_seqmod" != no ; then
40614         BUILD_SEQMOD=$ol_enable_seqmod
40615         if test "$ol_enable_seqmod" = mod ; then
40616                 MFLAG=SLAPD_MOD_DYNAMIC
40617                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40618         else
40619                 MFLAG=SLAPD_MOD_STATIC
40620                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40621         fi
40622
40623 cat >>confdefs.h <<_ACEOF
40624 #define SLAPD_OVER_SEQMOD $MFLAG
40625 _ACEOF
40626
40627 fi
40628
40629 if test "$ol_enable_syncprov" != no ; then
40630         BUILD_SYNCPROV=$ol_enable_syncprov
40631         if test "$ol_enable_syncprov" = mod ; then
40632                 MFLAG=SLAPD_MOD_DYNAMIC
40633                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40634         else
40635                 MFLAG=SLAPD_MOD_STATIC
40636                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40637         fi
40638
40639 cat >>confdefs.h <<_ACEOF
40640 #define SLAPD_OVER_SYNCPROV $MFLAG
40641 _ACEOF
40642
40643 fi
40644
40645 if test "$ol_enable_translucent" != no ; then
40646         BUILD_TRANSLUCENT=$ol_enable_translucent
40647         if test "$ol_enable_translucent" = mod ; then
40648                 MFLAG=SLAPD_MOD_DYNAMIC
40649                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40650         else
40651                 MFLAG=SLAPD_MOD_STATIC
40652                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40653         fi
40654
40655 cat >>confdefs.h <<_ACEOF
40656 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40657 _ACEOF
40658
40659 fi
40660
40661 if test "$ol_enable_unique" != no ; then
40662         BUILD_UNIQUE=$ol_enable_unique
40663         if test "$ol_enable_unique" = mod ; then
40664                 MFLAG=SLAPD_MOD_DYNAMIC
40665                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40666         else
40667                 MFLAG=SLAPD_MOD_STATIC
40668                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40669         fi
40670
40671 cat >>confdefs.h <<_ACEOF
40672 #define SLAPD_OVER_UNIQUE $MFLAG
40673 _ACEOF
40674
40675 fi
40676
40677 if test "$ol_enable_valsort" != no ; then
40678         BUILD_VALSORT=$ol_enable_valsort
40679         if test "$ol_enable_valsort" = mod ; then
40680                 MFLAG=SLAPD_MOD_DYNAMIC
40681                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40682         else
40683                 MFLAG=SLAPD_MOD_STATIC
40684                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40685         fi
40686
40687 cat >>confdefs.h <<_ACEOF
40688 #define SLAPD_OVER_VALSORT $MFLAG
40689 _ACEOF
40690
40691 fi
40692
40693 if test "$ol_enable_slurpd" != no &&
40694    test "$ol_link_threads" != no &&
40695    test $BUILD_SLAPD = yes ; then
40696         BUILD_SLURPD=yes
40697 fi
40698
40699 if test "$ol_enable_rewrite" != no ; then
40700
40701 cat >>confdefs.h <<\_ACEOF
40702 #define ENABLE_REWRITE 1
40703 _ACEOF
40704
40705         BUILD_REWRITE=yes
40706 fi
40707
40708 if test "$ol_enable_slapi" != no ; then
40709
40710 cat >>confdefs.h <<\_ACEOF
40711 #define ENABLE_SLAPI 1
40712 _ACEOF
40713
40714         BUILD_SLAPI=yes
40715         SLAPD_SLAPI_DEPEND=libslapi.a
40716 fi
40717
40718
40719
40720 if test "$ac_cv_mingw32" = yes ; then
40721         PLAT=NT
40722         SLAPD_MODULES_LDFLAGS=
40723 else
40724         PLAT=UNIX
40725 fi
40726
40727
40728
40729
40730
40731
40732
40733
40734
40735
40736
40737
40738
40739
40740
40741
40742
40743
40744
40745
40746
40747
40748
40749
40750
40751
40752
40753
40754
40755
40756
40757
40758
40759
40760
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771
40772
40773
40774
40775
40776
40777
40778
40779
40780
40781
40782
40783
40784
40785
40786
40787
40788
40789
40790
40791
40792
40793
40794
40795
40796
40797
40798
40799
40800
40801
40802
40803
40804
40805
40806
40807
40808
40809
40810
40811 # Check whether --with-xxinstall or --without-xxinstall was given.
40812 if test "${with_xxinstall+set}" = set; then
40813   withval="$with_xxinstall"
40814
40815 fi;
40816
40817
40818                                                                                                                                                                                                                                                                                                                                                                                                       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-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-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 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.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"
40819
40820
40821           ac_config_commands="$ac_config_commands default"
40822
40823
40824
40825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40826 # Let make expand exec_prefix.
40827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40828
40829 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40830 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40831 # trailing colons and then remove the whole line if VPATH becomes empty
40832 # (actually we leave an empty line to preserve line numbers).
40833 if test "x$srcdir" = x.; then
40834   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40835 s/:*\$(srcdir):*/:/;
40836 s/:*\${srcdir}:*/:/;
40837 s/:*@srcdir@:*/:/;
40838 s/^\([^=]*=[     ]*\):*/\1/;
40839 s/:*$//;
40840 s/^[^=]*=[       ]*$//;
40841 }'
40842 fi
40843
40844 DEFS=-DHAVE_CONFIG_H
40845
40846 ac_libobjs=
40847 ac_ltlibobjs=
40848 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40849   # 1. Remove the extension, and $U if already installed.
40850   ac_i=`echo "$ac_i" |
40851          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40852   # 2. Add them.
40853   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40854   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40855 done
40856 LIBOBJS=$ac_libobjs
40857
40858 LTLIBOBJS=$ac_ltlibobjs
40859
40860
40861 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40862   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40863 Usually this means the macro was only invoked conditionally." >&5
40864 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40865 Usually this means the macro was only invoked conditionally." >&2;}
40866    { (exit 1); exit 1; }; }
40867 fi
40868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40869   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40870 Usually this means the macro was only invoked conditionally." >&5
40871 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40872 Usually this means the macro was only invoked conditionally." >&2;}
40873    { (exit 1); exit 1; }; }
40874 fi
40875 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40876   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40877 Usually this means the macro was only invoked conditionally." >&5
40878 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40879 Usually this means the macro was only invoked conditionally." >&2;}
40880    { (exit 1); exit 1; }; }
40881 fi
40882
40883 : ${CONFIG_STATUS=./config.status}
40884 ac_clean_files_save=$ac_clean_files
40885 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40886 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40887 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40888 cat >$CONFIG_STATUS <<_ACEOF
40889 #! $SHELL
40890 # Generated by $as_me.
40891 # Run this file to recreate the current configuration.
40892 # Compiler output produced by configure, useful for debugging
40893 # configure, is in config.log if it exists.
40894
40895 debug=false
40896 ac_cs_recheck=false
40897 ac_cs_silent=false
40898 SHELL=\${CONFIG_SHELL-$SHELL}
40899 _ACEOF
40900
40901 cat >>$CONFIG_STATUS <<\_ACEOF
40902 ## --------------------- ##
40903 ## M4sh Initialization.  ##
40904 ## --------------------- ##
40905
40906 # Be Bourne compatible
40907 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40908   emulate sh
40909   NULLCMD=:
40910   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40911   # is contrary to our usage.  Disable this feature.
40912   alias -g '${1+"$@"}'='"$@"'
40913 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40914   set -o posix
40915 fi
40916 DUALCASE=1; export DUALCASE # for MKS sh
40917
40918 # Support unset when possible.
40919 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40920   as_unset=unset
40921 else
40922   as_unset=false
40923 fi
40924
40925
40926 # Work around bugs in pre-3.0 UWIN ksh.
40927 $as_unset ENV MAIL MAILPATH
40928 PS1='$ '
40929 PS2='> '
40930 PS4='+ '
40931
40932 # NLS nuisances.
40933 for as_var in \
40934   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40935   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40936   LC_TELEPHONE LC_TIME
40937 do
40938   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40939     eval $as_var=C; export $as_var
40940   else
40941     $as_unset $as_var
40942   fi
40943 done
40944
40945 # Required to use basename.
40946 if expr a : '\(a\)' >/dev/null 2>&1; then
40947   as_expr=expr
40948 else
40949   as_expr=false
40950 fi
40951
40952 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40953   as_basename=basename
40954 else
40955   as_basename=false
40956 fi
40957
40958
40959 # Name of the executable.
40960 as_me=`$as_basename "$0" ||
40961 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40962          X"$0" : 'X\(//\)$' \| \
40963          X"$0" : 'X\(/\)$' \| \
40964          .     : '\(.\)' 2>/dev/null ||
40965 echo X/"$0" |
40966     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40967           /^X\/\(\/\/\)$/{ s//\1/; q; }
40968           /^X\/\(\/\).*/{ s//\1/; q; }
40969           s/.*/./; q'`
40970
40971
40972 # PATH needs CR, and LINENO needs CR and PATH.
40973 # Avoid depending upon Character Ranges.
40974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40977 as_cr_digits='0123456789'
40978 as_cr_alnum=$as_cr_Letters$as_cr_digits
40979
40980 # The user is always right.
40981 if test "${PATH_SEPARATOR+set}" != set; then
40982   echo "#! /bin/sh" >conf$$.sh
40983   echo  "exit 0"   >>conf$$.sh
40984   chmod +x conf$$.sh
40985   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40986     PATH_SEPARATOR=';'
40987   else
40988     PATH_SEPARATOR=:
40989   fi
40990   rm -f conf$$.sh
40991 fi
40992
40993
40994   as_lineno_1=$LINENO
40995   as_lineno_2=$LINENO
40996   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40997   test "x$as_lineno_1" != "x$as_lineno_2" &&
40998   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40999   # Find who we are.  Look in the path if we contain no path at all
41000   # relative or not.
41001   case $0 in
41002     *[\\/]* ) as_myself=$0 ;;
41003     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41004 for as_dir in $PATH
41005 do
41006   IFS=$as_save_IFS
41007   test -z "$as_dir" && as_dir=.
41008   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41009 done
41010
41011        ;;
41012   esac
41013   # We did not find ourselves, most probably we were run as `sh COMMAND'
41014   # in which case we are not to be found in the path.
41015   if test "x$as_myself" = x; then
41016     as_myself=$0
41017   fi
41018   if test ! -f "$as_myself"; then
41019     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41020 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41021    { (exit 1); exit 1; }; }
41022   fi
41023   case $CONFIG_SHELL in
41024   '')
41025     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41026 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41027 do
41028   IFS=$as_save_IFS
41029   test -z "$as_dir" && as_dir=.
41030   for as_base in sh bash ksh sh5; do
41031          case $as_dir in
41032          /*)
41033            if ("$as_dir/$as_base" -c '
41034   as_lineno_1=$LINENO
41035   as_lineno_2=$LINENO
41036   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41037   test "x$as_lineno_1" != "x$as_lineno_2" &&
41038   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41039              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41040              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41041              CONFIG_SHELL=$as_dir/$as_base
41042              export CONFIG_SHELL
41043              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41044            fi;;
41045          esac
41046        done
41047 done
41048 ;;
41049   esac
41050
41051   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41052   # uniformly replaced by the line number.  The first 'sed' inserts a
41053   # line-number line before each line; the second 'sed' does the real
41054   # work.  The second script uses 'N' to pair each line-number line
41055   # with the numbered line, and appends trailing '-' during
41056   # substitution so that $LINENO is not a special case at line end.
41057   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41058   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41059   sed '=' <$as_myself |
41060     sed '
41061       N
41062       s,$,-,
41063       : loop
41064       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41065       t loop
41066       s,-$,,
41067       s,^['$as_cr_digits']*\n,,
41068     ' >$as_me.lineno &&
41069   chmod +x $as_me.lineno ||
41070     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41071 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41072    { (exit 1); exit 1; }; }
41073
41074   # Don't try to exec as it changes $[0], causing all sort of problems
41075   # (the dirname of $[0] is not the place where we might find the
41076   # original and so on.  Autoconf is especially sensible to this).
41077   . ./$as_me.lineno
41078   # Exit status is that of the last command.
41079   exit
41080 }
41081
41082
41083 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41084   *c*,-n*) ECHO_N= ECHO_C='
41085 ' ECHO_T='      ' ;;
41086   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41087   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41088 esac
41089
41090 if expr a : '\(a\)' >/dev/null 2>&1; then
41091   as_expr=expr
41092 else
41093   as_expr=false
41094 fi
41095
41096 rm -f conf$$ conf$$.exe conf$$.file
41097 echo >conf$$.file
41098 if ln -s conf$$.file conf$$ 2>/dev/null; then
41099   # We could just check for DJGPP; but this test a) works b) is more generic
41100   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41101   if test -f conf$$.exe; then
41102     # Don't use ln at all; we don't have any links
41103     as_ln_s='cp -p'
41104   else
41105     as_ln_s='ln -s'
41106   fi
41107 elif ln conf$$.file conf$$ 2>/dev/null; then
41108   as_ln_s=ln
41109 else
41110   as_ln_s='cp -p'
41111 fi
41112 rm -f conf$$ conf$$.exe conf$$.file
41113
41114 if mkdir -p . 2>/dev/null; then
41115   as_mkdir_p=:
41116 else
41117   test -d ./-p && rmdir ./-p
41118   as_mkdir_p=false
41119 fi
41120
41121 as_executable_p="test -f"
41122
41123 # Sed expression to map a string onto a valid CPP name.
41124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41125
41126 # Sed expression to map a string onto a valid variable name.
41127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41128
41129
41130 # IFS
41131 # We need space, tab and new line, in precisely that order.
41132 as_nl='
41133 '
41134 IFS="   $as_nl"
41135
41136 # CDPATH.
41137 $as_unset CDPATH
41138
41139 exec 6>&1
41140
41141 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41142 # report actual input values of CONFIG_FILES etc. instead of their
41143 # values after options handling.  Logging --version etc. is OK.
41144 exec 5>>config.log
41145 {
41146   echo
41147   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41148 ## Running $as_me. ##
41149 _ASBOX
41150 } >&5
41151 cat >&5 <<_CSEOF
41152
41153 This file was extended by $as_me, which was
41154 generated by GNU Autoconf 2.59.  Invocation command line was
41155
41156   CONFIG_FILES    = $CONFIG_FILES
41157   CONFIG_HEADERS  = $CONFIG_HEADERS
41158   CONFIG_LINKS    = $CONFIG_LINKS
41159   CONFIG_COMMANDS = $CONFIG_COMMANDS
41160   $ $0 $@
41161
41162 _CSEOF
41163 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41164 echo >&5
41165 _ACEOF
41166
41167 # Files that config.status was made for.
41168 if test -n "$ac_config_files"; then
41169   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41170 fi
41171
41172 if test -n "$ac_config_headers"; then
41173   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41174 fi
41175
41176 if test -n "$ac_config_links"; then
41177   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41178 fi
41179
41180 if test -n "$ac_config_commands"; then
41181   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41182 fi
41183
41184 cat >>$CONFIG_STATUS <<\_ACEOF
41185
41186 ac_cs_usage="\
41187 \`$as_me' instantiates files from templates according to the
41188 current configuration.
41189
41190 Usage: $0 [OPTIONS] [FILE]...
41191
41192   -h, --help       print this help, then exit
41193   -V, --version    print version number, then exit
41194   -q, --quiet      do not print progress messages
41195   -d, --debug      don't remove temporary files
41196       --recheck    update $as_me by reconfiguring in the same conditions
41197   --file=FILE[:TEMPLATE]
41198                    instantiate the configuration file FILE
41199   --header=FILE[:TEMPLATE]
41200                    instantiate the configuration header FILE
41201
41202 Configuration files:
41203 $config_files
41204
41205 Configuration headers:
41206 $config_headers
41207
41208 Configuration commands:
41209 $config_commands
41210
41211 Report bugs to <bug-autoconf@gnu.org>."
41212 _ACEOF
41213
41214 cat >>$CONFIG_STATUS <<_ACEOF
41215 ac_cs_version="\\
41216 config.status
41217 configured by $0, generated by GNU Autoconf 2.59,
41218   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41219
41220 Copyright (C) 2003 Free Software Foundation, Inc.
41221 This config.status script is free software; the Free Software Foundation
41222 gives unlimited permission to copy, distribute and modify it."
41223 srcdir=$srcdir
41224 INSTALL="$INSTALL"
41225 _ACEOF
41226
41227 cat >>$CONFIG_STATUS <<\_ACEOF
41228 # If no file are specified by the user, then we need to provide default
41229 # value.  By we need to know if files were specified by the user.
41230 ac_need_defaults=:
41231 while test $# != 0
41232 do
41233   case $1 in
41234   --*=*)
41235     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41236     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41237     ac_shift=:
41238     ;;
41239   -*)
41240     ac_option=$1
41241     ac_optarg=$2
41242     ac_shift=shift
41243     ;;
41244   *) # This is not an option, so the user has probably given explicit
41245      # arguments.
41246      ac_option=$1
41247      ac_need_defaults=false;;
41248   esac
41249
41250   case $ac_option in
41251   # Handling of the options.
41252 _ACEOF
41253 cat >>$CONFIG_STATUS <<\_ACEOF
41254   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41255     ac_cs_recheck=: ;;
41256   --version | --vers* | -V )
41257     echo "$ac_cs_version"; exit 0 ;;
41258   --he | --h)
41259     # Conflict between --help and --header
41260     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41261 Try \`$0 --help' for more information." >&5
41262 echo "$as_me: error: ambiguous option: $1
41263 Try \`$0 --help' for more information." >&2;}
41264    { (exit 1); exit 1; }; };;
41265   --help | --hel | -h )
41266     echo "$ac_cs_usage"; exit 0 ;;
41267   --debug | --d* | -d )
41268     debug=: ;;
41269   --file | --fil | --fi | --f )
41270     $ac_shift
41271     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41272     ac_need_defaults=false;;
41273   --header | --heade | --head | --hea )
41274     $ac_shift
41275     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41276     ac_need_defaults=false;;
41277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41278   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41279     ac_cs_silent=: ;;
41280
41281   # This is an error.
41282   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41283 Try \`$0 --help' for more information." >&5
41284 echo "$as_me: error: unrecognized option: $1
41285 Try \`$0 --help' for more information." >&2;}
41286    { (exit 1); exit 1; }; } ;;
41287
41288   *) ac_config_targets="$ac_config_targets $1" ;;
41289
41290   esac
41291   shift
41292 done
41293
41294 ac_configure_extra_args=
41295
41296 if $ac_cs_silent; then
41297   exec 6>/dev/null
41298   ac_configure_extra_args="$ac_configure_extra_args --silent"
41299 fi
41300
41301 _ACEOF
41302 cat >>$CONFIG_STATUS <<_ACEOF
41303 if \$ac_cs_recheck; then
41304   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41305   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41306 fi
41307
41308 _ACEOF
41309
41310 cat >>$CONFIG_STATUS <<_ACEOF
41311 #
41312 # INIT-COMMANDS section.
41313 #
41314
41315 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41316
41317 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41318 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41319
41320
41321 _ACEOF
41322
41323
41324
41325 cat >>$CONFIG_STATUS <<\_ACEOF
41326 for ac_config_target in $ac_config_targets
41327 do
41328   case "$ac_config_target" in
41329   # Handling of arguments.
41330   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41331   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41332   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41333   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41334   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41335   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41336   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41337   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41338   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41339   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41340   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41341   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41342   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41343   "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" ;;
41344   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41345   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41346   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41347   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41348   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41349   "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" ;;
41350   "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" ;;
41351   "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" ;;
41352   "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" ;;
41353   "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" ;;
41354   "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" ;;
41355   "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" ;;
41356   "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" ;;
41357   "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" ;;
41358   "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" ;;
41359   "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" ;;
41360   "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" ;;
41361   "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" ;;
41362   "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" ;;
41363   "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" ;;
41364   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41365   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41366   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41367   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41368   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41369   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41370   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41371   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41372   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41373   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41374   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41375 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41376    { (exit 1); exit 1; }; };;
41377   esac
41378 done
41379
41380 # If the user did not use the arguments to specify the items to instantiate,
41381 # then the envvar interface is used.  Set only those that are not.
41382 # We use the long form for the default assignment because of an extremely
41383 # bizarre bug on SunOS 4.1.3.
41384 if $ac_need_defaults; then
41385   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41386   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41387   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41388 fi
41389
41390 # Have a temporary directory for convenience.  Make it in the build tree
41391 # simply because there is no reason to put it here, and in addition,
41392 # creating and moving files from /tmp can sometimes cause problems.
41393 # Create a temporary directory, and hook for its removal unless debugging.
41394 $debug ||
41395 {
41396   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41397   trap '{ (exit 1); exit 1; }' 1 2 13 15
41398 }
41399
41400 # Create a (secure) tmp directory for tmp files.
41401
41402 {
41403   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41404   test -n "$tmp" && test -d "$tmp"
41405 }  ||
41406 {
41407   tmp=./confstat$$-$RANDOM
41408   (umask 077 && mkdir $tmp)
41409 } ||
41410 {
41411    echo "$me: cannot create a temporary directory in ." >&2
41412    { (exit 1); exit 1; }
41413 }
41414
41415 _ACEOF
41416
41417 cat >>$CONFIG_STATUS <<_ACEOF
41418
41419 #
41420 # CONFIG_FILES section.
41421 #
41422
41423 # No need to generate the scripts if there are no CONFIG_FILES.
41424 # This happens for instance when ./config.status config.h
41425 if test -n "\$CONFIG_FILES"; then
41426   # Protect against being on the right side of a sed subst in config.status.
41427   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41428    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41429 s,@SHELL@,$SHELL,;t t
41430 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41431 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41432 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41433 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41434 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41435 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41436 s,@exec_prefix@,$exec_prefix,;t t
41437 s,@prefix@,$prefix,;t t
41438 s,@program_transform_name@,$program_transform_name,;t t
41439 s,@bindir@,$bindir,;t t
41440 s,@sbindir@,$sbindir,;t t
41441 s,@libexecdir@,$libexecdir,;t t
41442 s,@datadir@,$datadir,;t t
41443 s,@sysconfdir@,$sysconfdir,;t t
41444 s,@sharedstatedir@,$sharedstatedir,;t t
41445 s,@localstatedir@,$localstatedir,;t t
41446 s,@libdir@,$libdir,;t t
41447 s,@includedir@,$includedir,;t t
41448 s,@oldincludedir@,$oldincludedir,;t t
41449 s,@infodir@,$infodir,;t t
41450 s,@mandir@,$mandir,;t t
41451 s,@build_alias@,$build_alias,;t t
41452 s,@host_alias@,$host_alias,;t t
41453 s,@target_alias@,$target_alias,;t t
41454 s,@DEFS@,$DEFS,;t t
41455 s,@ECHO_C@,$ECHO_C,;t t
41456 s,@ECHO_N@,$ECHO_N,;t t
41457 s,@ECHO_T@,$ECHO_T,;t t
41458 s,@LIBS@,$LIBS,;t t
41459 s,@build@,$build,;t t
41460 s,@build_cpu@,$build_cpu,;t t
41461 s,@build_vendor@,$build_vendor,;t t
41462 s,@build_os@,$build_os,;t t
41463 s,@host@,$host,;t t
41464 s,@host_cpu@,$host_cpu,;t t
41465 s,@host_vendor@,$host_vendor,;t t
41466 s,@host_os@,$host_os,;t t
41467 s,@target@,$target,;t t
41468 s,@target_cpu@,$target_cpu,;t t
41469 s,@target_vendor@,$target_vendor,;t t
41470 s,@target_os@,$target_os,;t t
41471 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41472 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41473 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41474 s,@CYGPATH_W@,$CYGPATH_W,;t t
41475 s,@PACKAGE@,$PACKAGE,;t t
41476 s,@VERSION@,$VERSION,;t t
41477 s,@ACLOCAL@,$ACLOCAL,;t t
41478 s,@AUTOCONF@,$AUTOCONF,;t t
41479 s,@AUTOMAKE@,$AUTOMAKE,;t t
41480 s,@AUTOHEADER@,$AUTOHEADER,;t t
41481 s,@MAKEINFO@,$MAKEINFO,;t t
41482 s,@install_sh@,$install_sh,;t t
41483 s,@STRIP@,$STRIP,;t t
41484 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41485 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41486 s,@mkdir_p@,$mkdir_p,;t t
41487 s,@AWK@,$AWK,;t t
41488 s,@SET_MAKE@,$SET_MAKE,;t t
41489 s,@am__leading_dot@,$am__leading_dot,;t t
41490 s,@AMTAR@,$AMTAR,;t t
41491 s,@am__tar@,$am__tar,;t t
41492 s,@am__untar@,$am__untar,;t t
41493 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41494 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41495 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41496 s,@top_builddir@,$top_builddir,;t t
41497 s,@ldap_subdir@,$ldap_subdir,;t t
41498 s,@CC@,$CC,;t t
41499 s,@AR@,$AR,;t t
41500 s,@CFLAGS@,$CFLAGS,;t t
41501 s,@LDFLAGS@,$LDFLAGS,;t t
41502 s,@CPPFLAGS@,$CPPFLAGS,;t t
41503 s,@ac_ct_CC@,$ac_ct_CC,;t t
41504 s,@EXEEXT@,$EXEEXT,;t t
41505 s,@OBJEXT@,$OBJEXT,;t t
41506 s,@DEPDIR@,$DEPDIR,;t t
41507 s,@am__include@,$am__include,;t t
41508 s,@am__quote@,$am__quote,;t t
41509 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41510 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41511 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41512 s,@CCDEPMODE@,$CCDEPMODE,;t t
41513 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41514 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41515 s,@EGREP@,$EGREP,;t t
41516 s,@LN_S@,$LN_S,;t t
41517 s,@ECHO@,$ECHO,;t t
41518 s,@ac_ct_AR@,$ac_ct_AR,;t t
41519 s,@RANLIB@,$RANLIB,;t t
41520 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41521 s,@DLLTOOL@,$DLLTOOL,;t t
41522 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41523 s,@AS@,$AS,;t t
41524 s,@ac_ct_AS@,$ac_ct_AS,;t t
41525 s,@OBJDUMP@,$OBJDUMP,;t t
41526 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41527 s,@CPP@,$CPP,;t t
41528 s,@LIBTOOL@,$LIBTOOL,;t t
41529 s,@PERLBIN@,$PERLBIN,;t t
41530 s,@OL_MKDEP@,$OL_MKDEP,;t t
41531 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41532 s,@LTSTATIC@,$LTSTATIC,;t t
41533 s,@LIBOBJS@,$LIBOBJS,;t t
41534 s,@LIBSRCS@,$LIBSRCS,;t t
41535 s,@PLAT@,$PLAT,;t t
41536 s,@WITH_SASL@,$WITH_SASL,;t t
41537 s,@WITH_TLS@,$WITH_TLS,;t t
41538 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41539 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41540 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41541 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41542 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41543 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41544 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41545 s,@BUILD_BDB@,$BUILD_BDB,;t t
41546 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41547 s,@BUILD_HDB@,$BUILD_HDB,;t t
41548 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41549 s,@BUILD_META@,$BUILD_META,;t t
41550 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41551 s,@BUILD_NULL@,$BUILD_NULL,;t t
41552 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41553 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41554 s,@BUILD_PERL@,$BUILD_PERL,;t t
41555 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41556 s,@BUILD_SQL@,$BUILD_SQL,;t t
41557 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41558 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41559 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41560 s,@BUILD_DDS@,$BUILD_DDS,;t t
41561 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41562 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41563 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41564 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41565 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41566 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41567 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41568 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41569 s,@BUILD_RWM@,$BUILD_RWM,;t t
41570 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41571 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41572 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41573 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41574 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41575 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41576 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41577 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41578 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41579 s,@BDB_LIBS@,$BDB_LIBS,;t t
41580 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41581 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41582 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41583 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41584 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41585 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41586 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41587 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41588 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41589 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41590 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41591 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41592 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41593 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41594 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41595 s,@SASL_LIBS@,$SASL_LIBS,;t t
41596 s,@TLS_LIBS@,$TLS_LIBS,;t t
41597 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41598 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41599 s,@LIBSLAPI@,$LIBSLAPI,;t t
41600 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41601 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41602 s,@ICU_LIBS@,$ICU_LIBS,;t t
41603 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41604 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41605 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41606 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41607 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41608 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41609 CEOF
41610
41611 _ACEOF
41612
41613   cat >>$CONFIG_STATUS <<\_ACEOF
41614   # Split the substitutions into bite-sized pieces for seds with
41615   # small command number limits, like on Digital OSF/1 and HP-UX.
41616   ac_max_sed_lines=48
41617   ac_sed_frag=1 # Number of current file.
41618   ac_beg=1 # First line for current file.
41619   ac_end=$ac_max_sed_lines # Line after last line for current file.
41620   ac_more_lines=:
41621   ac_sed_cmds=
41622   while $ac_more_lines; do
41623     if test $ac_beg -gt 1; then
41624       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41625     else
41626       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41627     fi
41628     if test ! -s $tmp/subs.frag; then
41629       ac_more_lines=false
41630     else
41631       # The purpose of the label and of the branching condition is to
41632       # speed up the sed processing (if there are no `@' at all, there
41633       # is no need to browse any of the substitutions).
41634       # These are the two extra sed commands mentioned above.
41635       (echo ':t
41636   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41637       if test -z "$ac_sed_cmds"; then
41638         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41639       else
41640         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41641       fi
41642       ac_sed_frag=`expr $ac_sed_frag + 1`
41643       ac_beg=$ac_end
41644       ac_end=`expr $ac_end + $ac_max_sed_lines`
41645     fi
41646   done
41647   if test -z "$ac_sed_cmds"; then
41648     ac_sed_cmds=cat
41649   fi
41650 fi # test -n "$CONFIG_FILES"
41651
41652 _ACEOF
41653 cat >>$CONFIG_STATUS <<\_ACEOF
41654 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41655   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41656   case $ac_file in
41657   - | *:- | *:-:* ) # input from stdin
41658         cat >$tmp/stdin
41659         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41660         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41661   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41662         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41663   * )   ac_file_in=$ac_file.in ;;
41664   esac
41665
41666   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41667   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41668 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41669          X"$ac_file" : 'X\(//\)[^/]' \| \
41670          X"$ac_file" : 'X\(//\)$' \| \
41671          X"$ac_file" : 'X\(/\)' \| \
41672          .     : '\(.\)' 2>/dev/null ||
41673 echo X"$ac_file" |
41674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41675           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41676           /^X\(\/\/\)$/{ s//\1/; q; }
41677           /^X\(\/\).*/{ s//\1/; q; }
41678           s/.*/./; q'`
41679   { if $as_mkdir_p; then
41680     mkdir -p "$ac_dir"
41681   else
41682     as_dir="$ac_dir"
41683     as_dirs=
41684     while test ! -d "$as_dir"; do
41685       as_dirs="$as_dir $as_dirs"
41686       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41687 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41688          X"$as_dir" : 'X\(//\)[^/]' \| \
41689          X"$as_dir" : 'X\(//\)$' \| \
41690          X"$as_dir" : 'X\(/\)' \| \
41691          .     : '\(.\)' 2>/dev/null ||
41692 echo X"$as_dir" |
41693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41694           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41695           /^X\(\/\/\)$/{ s//\1/; q; }
41696           /^X\(\/\).*/{ s//\1/; q; }
41697           s/.*/./; q'`
41698     done
41699     test ! -n "$as_dirs" || mkdir $as_dirs
41700   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41701 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41702    { (exit 1); exit 1; }; }; }
41703
41704   ac_builddir=.
41705
41706 if test "$ac_dir" != .; then
41707   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41708   # A "../" for each directory in $ac_dir_suffix.
41709   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41710 else
41711   ac_dir_suffix= ac_top_builddir=
41712 fi
41713
41714 case $srcdir in
41715   .)  # No --srcdir option.  We are building in place.
41716     ac_srcdir=.
41717     if test -z "$ac_top_builddir"; then
41718        ac_top_srcdir=.
41719     else
41720        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41721     fi ;;
41722   [\\/]* | ?:[\\/]* )  # Absolute path.
41723     ac_srcdir=$srcdir$ac_dir_suffix;
41724     ac_top_srcdir=$srcdir ;;
41725   *) # Relative path.
41726     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41727     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41728 esac
41729
41730 # Do not use `cd foo && pwd` to compute absolute paths, because
41731 # the directories may not exist.
41732 case `pwd` in
41733 .) ac_abs_builddir="$ac_dir";;
41734 *)
41735   case "$ac_dir" in
41736   .) ac_abs_builddir=`pwd`;;
41737   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41738   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41739   esac;;
41740 esac
41741 case $ac_abs_builddir in
41742 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41743 *)
41744   case ${ac_top_builddir}. in
41745   .) ac_abs_top_builddir=$ac_abs_builddir;;
41746   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41747   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41748   esac;;
41749 esac
41750 case $ac_abs_builddir in
41751 .) ac_abs_srcdir=$ac_srcdir;;
41752 *)
41753   case $ac_srcdir in
41754   .) ac_abs_srcdir=$ac_abs_builddir;;
41755   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41756   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41757   esac;;
41758 esac
41759 case $ac_abs_builddir in
41760 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41761 *)
41762   case $ac_top_srcdir in
41763   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41764   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41765   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41766   esac;;
41767 esac
41768
41769
41770   case $INSTALL in
41771   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41772   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41773   esac
41774
41775   if test x"$ac_file" != x-; then
41776     { echo "$as_me:$LINENO: creating $ac_file" >&5
41777 echo "$as_me: creating $ac_file" >&6;}
41778     rm -f "$ac_file"
41779   fi
41780   # Let's still pretend it is `configure' which instantiates (i.e., don't
41781   # use $as_me), people would be surprised to read:
41782   #    /* config.h.  Generated by config.status.  */
41783   if test x"$ac_file" = x-; then
41784     configure_input=
41785   else
41786     configure_input="$ac_file.  "
41787   fi
41788   configure_input=$configure_input"Generated from `echo $ac_file_in |
41789                                      sed 's,.*/,,'` by configure."
41790
41791   # First look for the input files in the build tree, otherwise in the
41792   # src tree.
41793   ac_file_inputs=`IFS=:
41794     for f in $ac_file_in; do
41795       case $f in
41796       -) echo $tmp/stdin ;;
41797       [\\/$]*)
41798          # Absolute (can't be DOS-style, as IFS=:)
41799          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41800 echo "$as_me: error: cannot find input file: $f" >&2;}
41801    { (exit 1); exit 1; }; }
41802          echo "$f";;
41803       *) # Relative
41804          if test -f "$f"; then
41805            # Build tree
41806            echo "$f"
41807          elif test -f "$srcdir/$f"; then
41808            # Source tree
41809            echo "$srcdir/$f"
41810          else
41811            # /dev/null tree
41812            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41813 echo "$as_me: error: cannot find input file: $f" >&2;}
41814    { (exit 1); exit 1; }; }
41815          fi;;
41816       esac
41817     done` || { (exit 1); exit 1; }
41818 _ACEOF
41819 cat >>$CONFIG_STATUS <<_ACEOF
41820   sed "$ac_vpsub
41821 $extrasub
41822 _ACEOF
41823 cat >>$CONFIG_STATUS <<\_ACEOF
41824 :t
41825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41826 s,@configure_input@,$configure_input,;t t
41827 s,@srcdir@,$ac_srcdir,;t t
41828 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41829 s,@top_srcdir@,$ac_top_srcdir,;t t
41830 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41831 s,@builddir@,$ac_builddir,;t t
41832 s,@abs_builddir@,$ac_abs_builddir,;t t
41833 s,@top_builddir@,$ac_top_builddir,;t t
41834 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41835 s,@INSTALL@,$ac_INSTALL,;t t
41836 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41837   rm -f $tmp/stdin
41838   if test x"$ac_file" != x-; then
41839     mv $tmp/out $ac_file
41840   else
41841     cat $tmp/out
41842     rm -f $tmp/out
41843   fi
41844
41845 done
41846 _ACEOF
41847 cat >>$CONFIG_STATUS <<\_ACEOF
41848
41849 #
41850 # CONFIG_HEADER section.
41851 #
41852
41853 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41854 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41855 #
41856 # ac_d sets the value in "#define NAME VALUE" lines.
41857 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41858 ac_dB='[         ].*$,\1#\2'
41859 ac_dC=' '
41860 ac_dD=',;t'
41861 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41862 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41863 ac_uB='$,\1#\2define\3'
41864 ac_uC=' '
41865 ac_uD=',;t'
41866
41867 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41868   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41869   case $ac_file in
41870   - | *:- | *:-:* ) # input from stdin
41871         cat >$tmp/stdin
41872         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41873         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41874   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41875         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41876   * )   ac_file_in=$ac_file.in ;;
41877   esac
41878
41879   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41880 echo "$as_me: creating $ac_file" >&6;}
41881
41882   # First look for the input files in the build tree, otherwise in the
41883   # src tree.
41884   ac_file_inputs=`IFS=:
41885     for f in $ac_file_in; do
41886       case $f in
41887       -) echo $tmp/stdin ;;
41888       [\\/$]*)
41889          # Absolute (can't be DOS-style, as IFS=:)
41890          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41891 echo "$as_me: error: cannot find input file: $f" >&2;}
41892    { (exit 1); exit 1; }; }
41893          # Do quote $f, to prevent DOS paths from being IFS'd.
41894          echo "$f";;
41895       *) # Relative
41896          if test -f "$f"; then
41897            # Build tree
41898            echo "$f"
41899          elif test -f "$srcdir/$f"; then
41900            # Source tree
41901            echo "$srcdir/$f"
41902          else
41903            # /dev/null tree
41904            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41905 echo "$as_me: error: cannot find input file: $f" >&2;}
41906    { (exit 1); exit 1; }; }
41907          fi;;
41908       esac
41909     done` || { (exit 1); exit 1; }
41910   # Remove the trailing spaces.
41911   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41912
41913 _ACEOF
41914
41915 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41916 # `conftest.undefs', that substitutes the proper values into
41917 # config.h.in to produce config.h.  The first handles `#define'
41918 # templates, and the second `#undef' templates.
41919 # And first: Protect against being on the right side of a sed subst in
41920 # config.status.  Protect against being in an unquoted here document
41921 # in config.status.
41922 rm -f conftest.defines conftest.undefs
41923 # Using a here document instead of a string reduces the quoting nightmare.
41924 # Putting comments in sed scripts is not portable.
41925 #
41926 # `end' is used to avoid that the second main sed command (meant for
41927 # 0-ary CPP macros) applies to n-ary macro definitions.
41928 # See the Autoconf documentation for `clear'.
41929 cat >confdef2sed.sed <<\_ACEOF
41930 s/[\\&,]/\\&/g
41931 s,[\\$`],\\&,g
41932 t clear
41933 : clear
41934 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41935 t end
41936 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41937 : end
41938 _ACEOF
41939 # If some macros were called several times there might be several times
41940 # the same #defines, which is useless.  Nevertheless, we may not want to
41941 # sort them, since we want the *last* AC-DEFINE to be honored.
41942 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41943 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41944 rm -f confdef2sed.sed
41945
41946 # This sed command replaces #undef with comments.  This is necessary, for
41947 # example, in the case of _POSIX_SOURCE, which is predefined and required
41948 # on some systems where configure will not decide to define it.
41949 cat >>conftest.undefs <<\_ACEOF
41950 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41951 _ACEOF
41952
41953 # Break up conftest.defines because some shells have a limit on the size
41954 # of here documents, and old seds have small limits too (100 cmds).
41955 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41956 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41957 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41958 echo '  :' >>$CONFIG_STATUS
41959 rm -f conftest.tail
41960 while grep . conftest.defines >/dev/null
41961 do
41962   # Write a limited-size here document to $tmp/defines.sed.
41963   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41964   # Speed up: don't consider the non `#define' lines.
41965   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41966   # Work around the forget-to-reset-the-flag bug.
41967   echo 't clr' >>$CONFIG_STATUS
41968   echo ': clr' >>$CONFIG_STATUS
41969   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41970   echo 'CEOF
41971   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41972   rm -f $tmp/in
41973   mv $tmp/out $tmp/in
41974 ' >>$CONFIG_STATUS
41975   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41976   rm -f conftest.defines
41977   mv conftest.tail conftest.defines
41978 done
41979 rm -f conftest.defines
41980 echo '  fi # grep' >>$CONFIG_STATUS
41981 echo >>$CONFIG_STATUS
41982
41983 # Break up conftest.undefs because some shells have a limit on the size
41984 # of here documents, and old seds have small limits too (100 cmds).
41985 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41986 rm -f conftest.tail
41987 while grep . conftest.undefs >/dev/null
41988 do
41989   # Write a limited-size here document to $tmp/undefs.sed.
41990   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41991   # Speed up: don't consider the non `#undef'
41992   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41993   # Work around the forget-to-reset-the-flag bug.
41994   echo 't clr' >>$CONFIG_STATUS
41995   echo ': clr' >>$CONFIG_STATUS
41996   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41997   echo 'CEOF
41998   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41999   rm -f $tmp/in
42000   mv $tmp/out $tmp/in
42001 ' >>$CONFIG_STATUS
42002   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42003   rm -f conftest.undefs
42004   mv conftest.tail conftest.undefs
42005 done
42006 rm -f conftest.undefs
42007
42008 cat >>$CONFIG_STATUS <<\_ACEOF
42009   # Let's still pretend it is `configure' which instantiates (i.e., don't
42010   # use $as_me), people would be surprised to read:
42011   #    /* config.h.  Generated by config.status.  */
42012   if test x"$ac_file" = x-; then
42013     echo "/* Generated by configure.  */" >$tmp/config.h
42014   else
42015     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42016   fi
42017   cat $tmp/in >>$tmp/config.h
42018   rm -f $tmp/in
42019   if test x"$ac_file" != x-; then
42020     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42021       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42022 echo "$as_me: $ac_file is unchanged" >&6;}
42023     else
42024       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42025 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42026          X"$ac_file" : 'X\(//\)[^/]' \| \
42027          X"$ac_file" : 'X\(//\)$' \| \
42028          X"$ac_file" : 'X\(/\)' \| \
42029          .     : '\(.\)' 2>/dev/null ||
42030 echo X"$ac_file" |
42031     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42032           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42033           /^X\(\/\/\)$/{ s//\1/; q; }
42034           /^X\(\/\).*/{ s//\1/; q; }
42035           s/.*/./; q'`
42036       { if $as_mkdir_p; then
42037     mkdir -p "$ac_dir"
42038   else
42039     as_dir="$ac_dir"
42040     as_dirs=
42041     while test ! -d "$as_dir"; do
42042       as_dirs="$as_dir $as_dirs"
42043       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42044 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42045          X"$as_dir" : 'X\(//\)[^/]' \| \
42046          X"$as_dir" : 'X\(//\)$' \| \
42047          X"$as_dir" : 'X\(/\)' \| \
42048          .     : '\(.\)' 2>/dev/null ||
42049 echo X"$as_dir" |
42050     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42051           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42052           /^X\(\/\/\)$/{ s//\1/; q; }
42053           /^X\(\/\).*/{ s//\1/; q; }
42054           s/.*/./; q'`
42055     done
42056     test ! -n "$as_dirs" || mkdir $as_dirs
42057   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42058 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42059    { (exit 1); exit 1; }; }; }
42060
42061       rm -f $ac_file
42062       mv $tmp/config.h $ac_file
42063     fi
42064   else
42065     cat $tmp/config.h
42066     rm -f $tmp/config.h
42067   fi
42068 # Compute $ac_file's index in $config_headers.
42069 _am_stamp_count=1
42070 for _am_header in $config_headers :; do
42071   case $_am_header in
42072     $ac_file | $ac_file:* )
42073       break ;;
42074     * )
42075       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
42076   esac
42077 done
42078 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
42079 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42080          X$ac_file : 'X\(//\)[^/]' \| \
42081          X$ac_file : 'X\(//\)$' \| \
42082          X$ac_file : 'X\(/\)' \| \
42083          .     : '\(.\)' 2>/dev/null ||
42084 echo X$ac_file |
42085     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42086           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42087           /^X\(\/\/\)$/{ s//\1/; q; }
42088           /^X\(\/\).*/{ s//\1/; q; }
42089           s/.*/./; q'`/stamp-h$_am_stamp_count
42090 done
42091 _ACEOF
42092 cat >>$CONFIG_STATUS <<\_ACEOF
42093
42094 #
42095 # CONFIG_COMMANDS section.
42096 #
42097 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42098   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42099   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42100   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42101 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42102          X"$ac_dest" : 'X\(//\)[^/]' \| \
42103          X"$ac_dest" : 'X\(//\)$' \| \
42104          X"$ac_dest" : 'X\(/\)' \| \
42105          .     : '\(.\)' 2>/dev/null ||
42106 echo X"$ac_dest" |
42107     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42108           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42109           /^X\(\/\/\)$/{ s//\1/; q; }
42110           /^X\(\/\).*/{ s//\1/; q; }
42111           s/.*/./; q'`
42112   { if $as_mkdir_p; then
42113     mkdir -p "$ac_dir"
42114   else
42115     as_dir="$ac_dir"
42116     as_dirs=
42117     while test ! -d "$as_dir"; do
42118       as_dirs="$as_dir $as_dirs"
42119       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42120 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42121          X"$as_dir" : 'X\(//\)[^/]' \| \
42122          X"$as_dir" : 'X\(//\)$' \| \
42123          X"$as_dir" : 'X\(/\)' \| \
42124          .     : '\(.\)' 2>/dev/null ||
42125 echo X"$as_dir" |
42126     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42127           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42128           /^X\(\/\/\)$/{ s//\1/; q; }
42129           /^X\(\/\).*/{ s//\1/; q; }
42130           s/.*/./; q'`
42131     done
42132     test ! -n "$as_dirs" || mkdir $as_dirs
42133   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42134 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42135    { (exit 1); exit 1; }; }; }
42136
42137   ac_builddir=.
42138
42139 if test "$ac_dir" != .; then
42140   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42141   # A "../" for each directory in $ac_dir_suffix.
42142   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42143 else
42144   ac_dir_suffix= ac_top_builddir=
42145 fi
42146
42147 case $srcdir in
42148   .)  # No --srcdir option.  We are building in place.
42149     ac_srcdir=.
42150     if test -z "$ac_top_builddir"; then
42151        ac_top_srcdir=.
42152     else
42153        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42154     fi ;;
42155   [\\/]* | ?:[\\/]* )  # Absolute path.
42156     ac_srcdir=$srcdir$ac_dir_suffix;
42157     ac_top_srcdir=$srcdir ;;
42158   *) # Relative path.
42159     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42160     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42161 esac
42162
42163 # Do not use `cd foo && pwd` to compute absolute paths, because
42164 # the directories may not exist.
42165 case `pwd` in
42166 .) ac_abs_builddir="$ac_dir";;
42167 *)
42168   case "$ac_dir" in
42169   .) ac_abs_builddir=`pwd`;;
42170   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42171   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42172   esac;;
42173 esac
42174 case $ac_abs_builddir in
42175 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42176 *)
42177   case ${ac_top_builddir}. in
42178   .) ac_abs_top_builddir=$ac_abs_builddir;;
42179   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42180   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42181   esac;;
42182 esac
42183 case $ac_abs_builddir in
42184 .) ac_abs_srcdir=$ac_srcdir;;
42185 *)
42186   case $ac_srcdir in
42187   .) ac_abs_srcdir=$ac_abs_builddir;;
42188   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42189   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42190   esac;;
42191 esac
42192 case $ac_abs_builddir in
42193 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42194 *)
42195   case $ac_top_srcdir in
42196   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42197   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42198   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42199   esac;;
42200 esac
42201
42202
42203   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42204 echo "$as_me: executing $ac_dest commands" >&6;}
42205   case $ac_dest in
42206     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42207   # Strip MF so we end up with the name of the file.
42208   mf=`echo "$mf" | sed -e 's/:.*$//'`
42209   # Check whether this is an Automake generated Makefile or not.
42210   # We used to match only the files named `Makefile.in', but
42211   # some people rename them; so instead we look at the file content.
42212   # Grep'ing the first line is not enough: some people post-process
42213   # each Makefile.in and add a new line on top of each file to say so.
42214   # So let's grep whole file.
42215   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42216     dirpart=`(dirname "$mf") 2>/dev/null ||
42217 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42218          X"$mf" : 'X\(//\)[^/]' \| \
42219          X"$mf" : 'X\(//\)$' \| \
42220          X"$mf" : 'X\(/\)' \| \
42221          .     : '\(.\)' 2>/dev/null ||
42222 echo X"$mf" |
42223     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42224           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42225           /^X\(\/\/\)$/{ s//\1/; q; }
42226           /^X\(\/\).*/{ s//\1/; q; }
42227           s/.*/./; q'`
42228   else
42229     continue
42230   fi
42231   # Extract the definition of DEPDIR, am__include, and am__quote
42232   # from the Makefile without running `make'.
42233   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42234   test -z "$DEPDIR" && continue
42235   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42236   test -z "am__include" && continue
42237   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42238   # When using ansi2knr, U may be empty or an underscore; expand it
42239   U=`sed -n 's/^U = //p' < "$mf"`
42240   # Find all dependency output files, they are included files with
42241   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42242   # simplest approach to changing $(DEPDIR) to its actual value in the
42243   # expansion.
42244   for file in `sed -n "
42245     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42246        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42247     # Make sure the directory exists.
42248     test -f "$dirpart/$file" && continue
42249     fdir=`(dirname "$file") 2>/dev/null ||
42250 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42251          X"$file" : 'X\(//\)[^/]' \| \
42252          X"$file" : 'X\(//\)$' \| \
42253          X"$file" : 'X\(/\)' \| \
42254          .     : '\(.\)' 2>/dev/null ||
42255 echo X"$file" |
42256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42257           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42258           /^X\(\/\/\)$/{ s//\1/; q; }
42259           /^X\(\/\).*/{ s//\1/; q; }
42260           s/.*/./; q'`
42261     { if $as_mkdir_p; then
42262     mkdir -p $dirpart/$fdir
42263   else
42264     as_dir=$dirpart/$fdir
42265     as_dirs=
42266     while test ! -d "$as_dir"; do
42267       as_dirs="$as_dir $as_dirs"
42268       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42270          X"$as_dir" : 'X\(//\)[^/]' \| \
42271          X"$as_dir" : 'X\(//\)$' \| \
42272          X"$as_dir" : 'X\(/\)' \| \
42273          .     : '\(.\)' 2>/dev/null ||
42274 echo X"$as_dir" |
42275     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42276           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42277           /^X\(\/\/\)$/{ s//\1/; q; }
42278           /^X\(\/\).*/{ s//\1/; q; }
42279           s/.*/./; q'`
42280     done
42281     test ! -n "$as_dirs" || mkdir $as_dirs
42282   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42283 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42284    { (exit 1); exit 1; }; }; }
42285
42286     # echo "creating $dirpart/$file"
42287     echo '# dummy' > "$dirpart/$file"
42288   done
42289 done
42290  ;;
42291     default )
42292 chmod +x tests/run
42293 date > stamp-h
42294 BACKENDSC="servers/slapd/backends.c"
42295 echo "Making $BACKENDSC"
42296 rm -f $BACKENDSC
42297 cat > $BACKENDSC << ENDX
42298 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42299  *
42300  * Copyright 1998-2007 The OpenLDAP Foundation.
42301  * All rights reserved.
42302  *
42303  * Redistribution and use in source and binary forms, with or without
42304  * modification, are permitted only as authorized by the OpenLDAP
42305  * Public License.
42306  *
42307  * A copy of this license is available in the file LICENSE in the
42308  * top-level directory of the distribution or, alternatively, at
42309  * <http://www.OpenLDAP.org/license.html>.
42310  */
42311 /* This file is automatically generated by configure; please do not edit. */
42312
42313 #include "portable.h"
42314 #include "slap.h"
42315
42316 ENDX
42317 if test "${STATIC_BACKENDS}"; then
42318         for b in config ${STATIC_BACKENDS}; do
42319                 bb=`echo "${b}" | sed -e 's/back-//'`
42320                 cat >> $BACKENDSC << ENDX
42321 extern BI_init ${bb}_back_initialize;
42322 ENDX
42323         done
42324
42325         cat >> $BACKENDSC << ENDX
42326
42327 BackendInfo slap_binfo[] = {
42328 ENDX
42329
42330         for b in config ${STATIC_BACKENDS}; do
42331                 bb=`echo "${b}" | sed -e 's/back-//'`
42332                 echo "    Add ${bb} ..."
42333                 cat >> $BACKENDSC << ENDX
42334         { "${bb}", ${bb}_back_initialize },
42335 ENDX
42336         done
42337
42338         cat >> $BACKENDSC << ENDX
42339         { NULL, NULL },
42340 };
42341
42342 /* end of generated file */
42343 ENDX
42344 fi
42345 OVERLAYSC="servers/slapd/overlays/statover.c"
42346 echo "Making $OVERLAYSC"
42347 rm -f $OVERLAYSC
42348 cat > $OVERLAYSC << ENDX
42349 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42350  *
42351  * Copyright 1998-2007 The OpenLDAP Foundation.
42352  * All rights reserved.
42353  *
42354  * Redistribution and use in source and binary forms, with or without
42355  * modification, are permitted only as authorized by the OpenLDAP
42356  * Public License.
42357  *
42358  * A copy of this license is available in the file LICENSE in the
42359  * top-level directory of the distribution or, alternatively, at
42360  * <http://www.OpenLDAP.org/license.html>.
42361  */
42362 /* This file is automatically generated by configure; please do not edit. */
42363
42364 #include "portable.h"
42365 #include "slap.h"
42366
42367 ENDX
42368 if test "${STATIC_OVERLAYS}"; then
42369         for o in ${STATIC_OVERLAYS}; do
42370                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42371                 cat >> $OVERLAYSC << ENDX
42372 extern OV_init ${oo}_initialize;
42373 ENDX
42374         done
42375 fi
42376
42377 cat >> $OVERLAYSC << ENDX
42378
42379 OverlayInit slap_oinfo[] = {
42380 ENDX
42381
42382 if test "${STATIC_OVERLAYS}"; then
42383         for o in ${STATIC_OVERLAYS}; do
42384                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42385                 echo "    Add ${oo} ..."
42386                 cat >> $OVERLAYSC << ENDX
42387         { "${oo}", ${oo}_initialize },
42388 ENDX
42389         done
42390 fi
42391
42392         cat >> $OVERLAYSC << ENDX
42393         { NULL, NULL },
42394 };
42395
42396 /* end of generated file */
42397 ENDX
42398
42399 echo Please run \"make depend\" to build dependencies
42400  ;;
42401   esac
42402 done
42403 _ACEOF
42404
42405 cat >>$CONFIG_STATUS <<\_ACEOF
42406
42407 { (exit 0); exit 0; }
42408 _ACEOF
42409 chmod +x $CONFIG_STATUS
42410 ac_clean_files=$ac_clean_files_save
42411
42412
42413 # configure is writing to config.log, and then calls config.status.
42414 # config.status does its own redirection, appending to config.log.
42415 # Unfortunately, on DOS this fails, as config.log is still kept open
42416 # by configure, so config.status won't be able to write to it; its
42417 # output is simply discarded.  So we exec the FD to /dev/null,
42418 # effectively closing config.log, so it can be properly (re)opened and
42419 # appended to by config.status.  When coming back to configure, we
42420 # need to make the FD available again.
42421 if test "$no_create" != yes; then
42422   ac_cs_success=:
42423   ac_config_status_args=
42424   test "$silent" = yes &&
42425     ac_config_status_args="$ac_config_status_args --quiet"
42426   exec 5>/dev/null
42427   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42428   exec 5>>config.log
42429   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42430   # would make configure fail if this is the last instruction.
42431   $ac_cs_success || { (exit 1); exit 1; }
42432 fi
42433