]> git.sur5r.net Git - openldap/blob - configure
- setup framework for monitoring of back-bdb/back-hdb stuff in their
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.635 2006/07/26 00:55:07 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2006 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-denyop       Deny Operation overlay no|yes|mod [no]
1053     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1054     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1055     --enable-lastmod      Last Modification overlay no|yes|mod [no]
1056     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1057     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1058     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1059     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1060     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1061     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1062     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1063     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1064     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1065     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1066
1067 SLURPD (Replication Daemon) Options:
1068   --enable-slurpd         enable building slurpd [auto]
1069
1070 Library Generation & Linking Options
1071   --enable-static[=PKGS]
1072                           build static libraries [default=yes]
1073   --enable-shared[=PKGS]
1074                           build shared libraries [default=yes]
1075   --enable-fast-install[=PKGS]
1076                           optimize for fast installation [default=yes]
1077   --disable-dependency-tracking  speeds up one-time build
1078   --enable-dependency-tracking   do not reject slow dependency extractors
1079   --disable-libtool-lock  avoid locking (might break parallel builds)
1080
1081 Optional Packages:
1082   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1083   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1084   --with-subdir=DIR       change default subdirectory used for installs
1085   --with-cyrus-sasl       with Cyrus SASL support [auto]
1086   --with-fetch            with fetch(3) URL support [auto]
1087   --with-threads          with threads [auto]
1088   --with-tls              with TLS/SSL support [auto]
1089   --with-yielding-select  with implicitly yielding select [auto]
1090   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1091   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1092   --with-pic              try to use only PIC/non-PIC objects [default=use
1093                           both]
1094   --with-tags[=TAGS]
1095                           include additional configurations [automatic]
1096
1097 See INSTALL file for further details.
1098
1099 Some influential environment variables:
1100   CC          C compiler command
1101   CFLAGS      C compiler flags
1102   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1103               nonstandard directory <lib dir>
1104   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1105               headers in a nonstandard directory <include dir>
1106   CPP         C preprocessor
1107
1108 Use these variables to override the choices made by `configure' or to help
1109 it to find libraries and programs with nonstandard names/locations.
1110
1111 _ACEOF
1112 fi
1113
1114 if test "$ac_init_help" = "recursive"; then
1115   # If there are subdirs, report their specific --help.
1116   ac_popdir=`pwd`
1117   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118     test -d $ac_dir || continue
1119     ac_builddir=.
1120
1121 if test "$ac_dir" != .; then
1122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123   # A "../" for each directory in $ac_dir_suffix.
1124   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125 else
1126   ac_dir_suffix= ac_top_builddir=
1127 fi
1128
1129 case $srcdir in
1130   .)  # No --srcdir option.  We are building in place.
1131     ac_srcdir=.
1132     if test -z "$ac_top_builddir"; then
1133        ac_top_srcdir=.
1134     else
1135        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136     fi ;;
1137   [\\/]* | ?:[\\/]* )  # Absolute path.
1138     ac_srcdir=$srcdir$ac_dir_suffix;
1139     ac_top_srcdir=$srcdir ;;
1140   *) # Relative path.
1141     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143 esac
1144
1145 # Do not use `cd foo && pwd` to compute absolute paths, because
1146 # the directories may not exist.
1147 case `pwd` in
1148 .) ac_abs_builddir="$ac_dir";;
1149 *)
1150   case "$ac_dir" in
1151   .) ac_abs_builddir=`pwd`;;
1152   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154   esac;;
1155 esac
1156 case $ac_abs_builddir in
1157 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *)
1159   case ${ac_top_builddir}. in
1160   .) ac_abs_top_builddir=$ac_abs_builddir;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_srcdir=$ac_srcdir;;
1167 *)
1168   case $ac_srcdir in
1169   .) ac_abs_srcdir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *)
1177   case $ac_top_srcdir in
1178   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181   esac;;
1182 esac
1183
1184     cd $ac_dir
1185     # Check for guested configure; otherwise get Cygnus style configure.
1186     if test -f $ac_srcdir/configure.gnu; then
1187       echo
1188       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1189     elif test -f $ac_srcdir/configure; then
1190       echo
1191       $SHELL $ac_srcdir/configure  --help=recursive
1192     elif test -f $ac_srcdir/configure.ac ||
1193            test -f $ac_srcdir/configure.in; then
1194       echo
1195       $ac_configure --help
1196     else
1197       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198     fi
1199     cd $ac_popdir
1200   done
1201 fi
1202
1203 test -n "$ac_init_help" && exit 0
1204 if $ac_init_version; then
1205   cat <<\_ACEOF
1206
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210
1211 Copyright 1998-2006 The OpenLDAP Foundation. All rights reserved.
1212 Restrictions apply, see COPYRIGHT and LICENSE files.
1213 _ACEOF
1214   exit 0
1215 fi
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1220
1221 It was created by $as_me, which was
1222 generated by GNU Autoconf 2.59.  Invocation command line was
1223
1224   $ $0 $@
1225
1226 _ACEOF
1227 {
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1232
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1238
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1241
1242 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1243 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1246 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1247 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1248 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1249
1250 _ASUNAME
1251
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1254 do
1255   IFS=$as_save_IFS
1256   test -z "$as_dir" && as_dir=.
1257   echo "PATH: $as_dir"
1258 done
1259
1260 } >&5
1261
1262 cat >&5 <<_ACEOF
1263
1264
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1268
1269 _ACEOF
1270
1271
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1283 do
1284   for ac_arg
1285   do
1286     case $ac_arg in
1287     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289     | -silent | --silent | --silen | --sile | --sil)
1290       continue ;;
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     esac
1294     case $ac_pass in
1295     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1296     2)
1297       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298       if test $ac_must_keep_next = true; then
1299         ac_must_keep_next=false # Got value, back to normal.
1300       else
1301         case $ac_arg in
1302           *=* | --config-cache | -C | -disable-* | --disable-* \
1303           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305           | -with-* | --with-* | -without-* | --without-* | --x)
1306             case "$ac_configure_args0 " in
1307               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308             esac
1309             ;;
1310           -* ) ac_must_keep_next=true ;;
1311         esac
1312       fi
1313       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314       # Get rid of the leading space.
1315       ac_sep=" "
1316       ;;
1317     esac
1318   done
1319 done
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1322
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log.  We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329   # Save into config.log some information that might help in debugging.
1330   {
1331     echo
1332
1333     cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338     echo
1339     # The following way of writing the cache mishandles newlines in values,
1340 {
1341   (set) 2>&1 |
1342     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343     *ac_space=\ *)
1344       sed -n \
1345         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1347       ;;
1348     *)
1349       sed -n \
1350         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1351       ;;
1352     esac;
1353 }
1354     echo
1355
1356     cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361     echo
1362     for ac_var in $ac_subst_vars
1363     do
1364       eval ac_val=$`echo $ac_var`
1365       echo "$ac_var='"'"'$ac_val'"'"'"
1366     done | sort
1367     echo
1368
1369     if test -n "$ac_subst_files"; then
1370       cat <<\_ASBOX
1371 ## ------------- ##
1372 ## Output files. ##
1373 ## ------------- ##
1374 _ASBOX
1375       echo
1376       for ac_var in $ac_subst_files
1377       do
1378         eval ac_val=$`echo $ac_var`
1379         echo "$ac_var='"'"'$ac_val'"'"'"
1380       done | sort
1381       echo
1382     fi
1383
1384     if test -s confdefs.h; then
1385       cat <<\_ASBOX
1386 ## ----------- ##
1387 ## confdefs.h. ##
1388 ## ----------- ##
1389 _ASBOX
1390       echo
1391       sed "/^$/d" confdefs.h | sort
1392       echo
1393     fi
1394     test "$ac_signal" != 0 &&
1395       echo "$as_me: caught signal $ac_signal"
1396     echo "$as_me: exit $exit_status"
1397   } >&5
1398   rm -f core *.core &&
1399   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400     exit $exit_status
1401      ' 0
1402 for ac_signal in 1 2 13 15; do
1403   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1406
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1411
1412 # Predefined preprocessor variables.
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1417
1418
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1422
1423
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1427
1428
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1432
1433
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1437
1438
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442   if test "x$prefix" != xNONE; then
1443     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444   else
1445     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1446   fi
1447 fi
1448 for ac_site_file in $CONFIG_SITE; do
1449   if test -r "$ac_site_file"; then
1450     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452     sed 's/^/| /' "$ac_site_file" >&5
1453     . "$ac_site_file"
1454   fi
1455 done
1456
1457
1458 # Check that the precious variables saved in the cache have kept the same
1459 # value.
1460 ac_cache_corrupted=false
1461 for ac_var in `(set) 2>&1 |
1462                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1463   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464   eval ac_new_set=\$ac_env_${ac_var}_set
1465   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466   eval ac_new_val="\$ac_env_${ac_var}_value"
1467   case $ac_old_set,$ac_new_set in
1468     set,)
1469       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471       ac_cache_corrupted=: ;;
1472     ,set)
1473       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475       ac_cache_corrupted=: ;;
1476     ,);;
1477     *)
1478       if test "x$ac_old_val" != "x$ac_new_val"; then
1479         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1480 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1481         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1482 echo "$as_me:   former value:  $ac_old_val" >&2;}
1483         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1484 echo "$as_me:   current value: $ac_new_val" >&2;}
1485         ac_cache_corrupted=:
1486       fi;;
1487   esac
1488   # Pass precious variables to config.status.
1489   if test "$ac_new_set" = set; then
1490     case $ac_new_val in
1491     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493     *) ac_arg=$ac_var=$ac_new_val ;;
1494     esac
1495     case " $ac_configure_args " in
1496       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1497       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498     esac
1499   fi
1500 done
1501 if $ac_cache_corrupted; then
1502   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508
1509 ac_ext=c
1510 ac_cpp='$CPP $CPPFLAGS'
1511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1557 ac_aux_dir=
1558 for ac_dir in build $srcdir/build; do
1559   if test -f $ac_dir/install-sh; then
1560     ac_aux_dir=$ac_dir
1561     ac_install_sh="$ac_aux_dir/install-sh -c"
1562     break
1563   elif test -f $ac_dir/install.sh; then
1564     ac_aux_dir=$ac_dir
1565     ac_install_sh="$ac_aux_dir/install.sh -c"
1566     break
1567   elif test -f $ac_dir/shtool; then
1568     ac_aux_dir=$ac_dir
1569     ac_install_sh="$ac_aux_dir/shtool install -c"
1570     break
1571   fi
1572 done
1573 if test -z "$ac_aux_dir"; then
1574   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1575 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1576    { (exit 1); exit 1; }; }
1577 fi
1578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582 eval `$ac_aux_dir/version.sh`
1583 if test -z "$OL_STRING"; then
1584         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1585 echo "$as_me: error: could not determine version" >&2;}
1586    { (exit 1); exit 1; }; }
1587 fi
1588
1589 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1590         ac_cv_shtool="$ac_aux_dir/shtool"
1591 else
1592         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1593 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1594    { (exit 1); exit 1; }; }
1595 fi
1596
1597 SHTOOL="$ac_cv_shtool"
1598
1599 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1600 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1601
1602 OPENLDAP_CVS=""
1603 if test -d $ac_aux_dir/CVS; then
1604         OPENLDAP_CVS="(from CVS sources) "
1605 fi
1606
1607 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1608
1609 # Make sure we can run config.sub.
1610 $ac_config_sub sun4 >/dev/null 2>&1 ||
1611   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1612 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1613    { (exit 1); exit 1; }; }
1614
1615 echo "$as_me:$LINENO: checking build system type" >&5
1616 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1617 if test "${ac_cv_build+set}" = set; then
1618   echo $ECHO_N "(cached) $ECHO_C" >&6
1619 else
1620   ac_cv_build_alias=$build_alias
1621 test -z "$ac_cv_build_alias" &&
1622   ac_cv_build_alias=`$ac_config_guess`
1623 test -z "$ac_cv_build_alias" &&
1624   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1625 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1626    { (exit 1); exit 1; }; }
1627 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1628   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1634 echo "${ECHO_T}$ac_cv_build" >&6
1635 build=$ac_cv_build
1636 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 echo "$as_me:$LINENO: checking host system type" >&5
1642 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1643 if test "${ac_cv_host+set}" = set; then
1644   echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646   ac_cv_host_alias=$host_alias
1647 test -z "$ac_cv_host_alias" &&
1648   ac_cv_host_alias=$ac_cv_build_alias
1649 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1650   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1651 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1652    { (exit 1); exit 1; }; }
1653
1654 fi
1655 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1656 echo "${ECHO_T}$ac_cv_host" >&6
1657 host=$ac_cv_host
1658 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1659 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1660 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1661
1662
1663 echo "$as_me:$LINENO: checking target system type" >&5
1664 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1665 if test "${ac_cv_target+set}" = set; then
1666   echo $ECHO_N "(cached) $ECHO_C" >&6
1667 else
1668   ac_cv_target_alias=$target_alias
1669 test "x$ac_cv_target_alias" = "x" &&
1670   ac_cv_target_alias=$ac_cv_host_alias
1671 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1672   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1674    { (exit 1); exit 1; }; }
1675
1676 fi
1677 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1678 echo "${ECHO_T}$ac_cv_target" >&6
1679 target=$ac_cv_target
1680 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683
1684
1685 # The aliases save the names the user supplied, while $host etc.
1686 # will get canonicalized.
1687 test -n "$target_alias" &&
1688   test "$program_prefix$program_suffix$program_transform_name" = \
1689     NONENONEs,x,x, &&
1690   program_prefix=${target_alias}-
1691
1692 am__api_version="1.9"
1693 # Find a good install program.  We prefer a C program (faster),
1694 # so one script is as good as another.  But avoid the broken or
1695 # incompatible versions:
1696 # SysV /etc/install, /usr/sbin/install
1697 # SunOS /usr/etc/install
1698 # IRIX /sbin/install
1699 # AIX /bin/install
1700 # AmigaOS /C/install, which installs bootblocks on floppy discs
1701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1704 # OS/2's system install, which has a completely different semantic
1705 # ./install, which can be erroneously created by make from ./install.sh.
1706 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1707 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1708 if test -z "$INSTALL"; then
1709 if test "${ac_cv_path_install+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   # Account for people who put trailing slashes in PATH elements.
1718 case $as_dir/ in
1719   ./ | .// | /cC/* | \
1720   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1721   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1722   /usr/ucb/* ) ;;
1723   *)
1724     # OSF1 and SCO ODT 3.0 have their own names for install.
1725     # Don't use installbsd from OSF since it installs stuff as root
1726     # by default.
1727     for ac_prog in ginstall scoinst install; do
1728       for ac_exec_ext in '' $ac_executable_extensions; do
1729         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1730           if test $ac_prog = install &&
1731             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # AIX install.  It has an incompatible calling convention.
1733             :
1734           elif test $ac_prog = install &&
1735             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1736             # program-specific install script used by HP pwplus--don't use.
1737             :
1738           else
1739             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1740             break 3
1741           fi
1742         fi
1743       done
1744     done
1745     ;;
1746 esac
1747 done
1748
1749
1750 fi
1751   if test "${ac_cv_path_install+set}" = set; then
1752     INSTALL=$ac_cv_path_install
1753   else
1754     # As a last resort, use the slow shell script.  We don't cache a
1755     # path for INSTALL within a source directory, because that will
1756     # break other packages using the cache if that directory is
1757     # removed, or if the path is relative.
1758     INSTALL=$ac_install_sh
1759   fi
1760 fi
1761 echo "$as_me:$LINENO: result: $INSTALL" >&5
1762 echo "${ECHO_T}$INSTALL" >&6
1763
1764 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1765 # It thinks the first close brace ends the variable substitution.
1766 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1767
1768 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1769
1770 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1771
1772 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1773 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1774 # Just in case
1775 sleep 1
1776 echo timestamp > conftest.file
1777 # Do `set' in a subshell so we don't clobber the current shell's
1778 # arguments.  Must try -L first in case configure is actually a
1779 # symlink; some systems play weird games with the mod time of symlinks
1780 # (eg FreeBSD returns the mod time of the symlink's containing
1781 # directory).
1782 if (
1783    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1784    if test "$*" = "X"; then
1785       # -L didn't work.
1786       set X `ls -t $srcdir/configure conftest.file`
1787    fi
1788    rm -f conftest.file
1789    if test "$*" != "X $srcdir/configure conftest.file" \
1790       && test "$*" != "X conftest.file $srcdir/configure"; then
1791
1792       # If neither matched, then we have a broken ls.  This can happen
1793       # if, for instance, CONFIG_SHELL is bash and it inherits a
1794       # broken ls alias from the environment.  This has actually
1795       # happened.  Such a system could not be considered "sane".
1796       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1797 alias in your environment" >&5
1798 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1799 alias in your environment" >&2;}
1800    { (exit 1); exit 1; }; }
1801    fi
1802
1803    test "$2" = conftest.file
1804    )
1805 then
1806    # Ok.
1807    :
1808 else
1809    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1810 Check your system clock" >&5
1811 echo "$as_me: error: newly created file is older than distributed files!
1812 Check your system clock" >&2;}
1813    { (exit 1); exit 1; }; }
1814 fi
1815 echo "$as_me:$LINENO: result: yes" >&5
1816 echo "${ECHO_T}yes" >&6
1817 test "$program_prefix" != NONE &&
1818   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1819 # Use a double $ so make ignores it.
1820 test "$program_suffix" != NONE &&
1821   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1822 # Double any \ or $.  echo might interpret backslashes.
1823 # By default was `s,x,x', remove it if useless.
1824 cat <<\_ACEOF >conftest.sed
1825 s/[\\$]/&&/g;s/;s,x,x,$//
1826 _ACEOF
1827 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1828 rm conftest.sed
1829
1830 # expand $ac_aux_dir to an absolute path
1831 am_aux_dir=`cd $ac_aux_dir && pwd`
1832
1833 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1834 # Use eval to expand $SHELL
1835 if eval "$MISSING --run true"; then
1836   am_missing_run="$MISSING --run "
1837 else
1838   am_missing_run=
1839   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1840 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1841 fi
1842
1843 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1844   # We used to keeping the `.' as first argument, in order to
1845   # allow $(mkdir_p) to be used without argument.  As in
1846   #   $(mkdir_p) $(somedir)
1847   # where $(somedir) is conditionally defined.  However this is wrong
1848   # for two reasons:
1849   #  1. if the package is installed by a user who cannot write `.'
1850   #     make install will fail,
1851   #  2. the above comment should most certainly read
1852   #     $(mkdir_p) $(DESTDIR)$(somedir)
1853   #     so it does not work when $(somedir) is undefined and
1854   #     $(DESTDIR) is not.
1855   #  To support the latter case, we have to write
1856   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1857   #  so the `.' trick is pointless.
1858   mkdir_p='mkdir -p --'
1859 else
1860   # On NextStep and OpenStep, the `mkdir' command does not
1861   # recognize any option.  It will interpret all options as
1862   # directories to create, and then abort because `.' already
1863   # exists.
1864   for d in ./-p ./--version;
1865   do
1866     test -d $d && rmdir $d
1867   done
1868   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1869   if test -f "$ac_aux_dir/mkinstalldirs"; then
1870     mkdir_p='$(mkinstalldirs)'
1871   else
1872     mkdir_p='$(install_sh) -d'
1873   fi
1874 fi
1875
1876 for ac_prog in gawk mawk nawk awk
1877 do
1878   # Extract the first word of "$ac_prog", so it can be a program name with args.
1879 set dummy $ac_prog; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_AWK+set}" = set; then
1883   echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885   if test -n "$AWK"; then
1886   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1887 else
1888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 for as_dir in $PATH
1890 do
1891   IFS=$as_save_IFS
1892   test -z "$as_dir" && as_dir=.
1893   for ac_exec_ext in '' $ac_executable_extensions; do
1894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1895     ac_cv_prog_AWK="$ac_prog"
1896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897     break 2
1898   fi
1899 done
1900 done
1901
1902 fi
1903 fi
1904 AWK=$ac_cv_prog_AWK
1905 if test -n "$AWK"; then
1906   echo "$as_me:$LINENO: result: $AWK" >&5
1907 echo "${ECHO_T}$AWK" >&6
1908 else
1909   echo "$as_me:$LINENO: result: no" >&5
1910 echo "${ECHO_T}no" >&6
1911 fi
1912
1913   test -n "$AWK" && break
1914 done
1915
1916 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1917 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1918 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1919 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1920   echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922   cat >conftest.make <<\_ACEOF
1923 all:
1924         @echo 'ac_maketemp="$(MAKE)"'
1925 _ACEOF
1926 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1927 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1928 if test -n "$ac_maketemp"; then
1929   eval ac_cv_prog_make_${ac_make}_set=yes
1930 else
1931   eval ac_cv_prog_make_${ac_make}_set=no
1932 fi
1933 rm -f conftest.make
1934 fi
1935 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1936   echo "$as_me:$LINENO: result: yes" >&5
1937 echo "${ECHO_T}yes" >&6
1938   SET_MAKE=
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942   SET_MAKE="MAKE=${MAKE-make}"
1943 fi
1944
1945 rm -rf .tst 2>/dev/null
1946 mkdir .tst 2>/dev/null
1947 if test -d .tst; then
1948   am__leading_dot=.
1949 else
1950   am__leading_dot=_
1951 fi
1952 rmdir .tst 2>/dev/null
1953
1954 # test to see if srcdir already configured
1955 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1956    test -f $srcdir/config.status; then
1957   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1958 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # test whether we have cygpath
1963 if test -z "$CYGPATH_W"; then
1964   if (cygpath --version) >/dev/null 2>/dev/null; then
1965     CYGPATH_W='cygpath -w'
1966   else
1967     CYGPATH_W=echo
1968   fi
1969 fi
1970
1971
1972 # Define the identity of the package.
1973  PACKAGE=$OL_PACKAGE
1974  VERSION=$OL_VERSION
1975
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define OPENLDAP_PACKAGE "$PACKAGE"
2097 _ACEOF
2098
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define OPENLDAP_VERSION "$VERSION"
2102 _ACEOF
2103
2104
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define LDAP_VENDOR_VERSION $OL_API_INC
2108 _ACEOF
2109
2110
2111 cat >>confdefs.h <<_ACEOF
2112 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2113 _ACEOF
2114
2115
2116 cat >>confdefs.h <<_ACEOF
2117 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2118 _ACEOF
2119
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2123 _ACEOF
2124
2125
2126 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2127
2128 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2129
2130 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2131
2132
2133
2134
2135
2136
2137
2138           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2139
2140           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2141
2142           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2143
2144
2145 echo "$as_me:$LINENO: checking configure arguments" >&5
2146 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2147
2148
2149 top_builddir=`pwd`
2150
2151 ldap_subdir="/openldap"
2152
2153
2154 # Check whether --with-subdir or --without-subdir was given.
2155 if test "${with_subdir+set}" = set; then
2156   withval="$with_subdir"
2157   case "$withval" in
2158         no) ldap_subdir=""
2159                 ;;
2160         yes)
2161                 ;;
2162         /*|\\*)
2163                 ldap_subdir="$withval"
2164                 ;;
2165         *)
2166                 ldap_subdir="/$withval"
2167                 ;;
2168 esac
2169
2170 fi;
2171
2172 # OpenLDAP --enable-debug
2173
2174         # Check whether --enable-debug or --disable-debug was given.
2175 if test "${enable_debug+set}" = set; then
2176   enableval="$enable_debug"
2177
2178         ol_arg=invalid
2179         for ol_val in no yes traditional ; do
2180                 if test "$enableval" = "$ol_val" ; then
2181                         ol_arg="$ol_val"
2182                 fi
2183         done
2184         if test "$ol_arg" = "invalid" ; then
2185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2186 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2187    { (exit 1); exit 1; }; }
2188         fi
2189         ol_enable_debug="$ol_arg"
2190
2191 else
2192         ol_enable_debug=yes
2193 fi;
2194 # end --enable-debug
2195 # OpenLDAP --enable-dynamic
2196
2197         # Check whether --enable-dynamic or --disable-dynamic was given.
2198 if test "${enable_dynamic+set}" = set; then
2199   enableval="$enable_dynamic"
2200
2201         ol_arg=invalid
2202         for ol_val in auto yes no ; do
2203                 if test "$enableval" = "$ol_val" ; then
2204                         ol_arg="$ol_val"
2205                 fi
2206         done
2207         if test "$ol_arg" = "invalid" ; then
2208                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2209 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2210    { (exit 1); exit 1; }; }
2211         fi
2212         ol_enable_dynamic="$ol_arg"
2213
2214 else
2215         ol_enable_dynamic=no
2216 fi;
2217 # end --enable-dynamic
2218 # OpenLDAP --enable-syslog
2219
2220         # Check whether --enable-syslog or --disable-syslog was given.
2221 if test "${enable_syslog+set}" = set; then
2222   enableval="$enable_syslog"
2223
2224         ol_arg=invalid
2225         for ol_val in auto yes no ; do
2226                 if test "$enableval" = "$ol_val" ; then
2227                         ol_arg="$ol_val"
2228                 fi
2229         done
2230         if test "$ol_arg" = "invalid" ; then
2231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2232 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2233    { (exit 1); exit 1; }; }
2234         fi
2235         ol_enable_syslog="$ol_arg"
2236
2237 else
2238         ol_enable_syslog=auto
2239 fi;
2240 # end --enable-syslog
2241 # OpenLDAP --enable-proctitle
2242
2243         # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245   enableval="$enable_proctitle"
2246
2247         ol_arg=invalid
2248         for ol_val in auto yes no ; do
2249                 if test "$enableval" = "$ol_val" ; then
2250                         ol_arg="$ol_val"
2251                 fi
2252         done
2253         if test "$ol_arg" = "invalid" ; then
2254                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256    { (exit 1); exit 1; }; }
2257         fi
2258         ol_enable_proctitle="$ol_arg"
2259
2260 else
2261         ol_enable_proctitle=yes
2262 fi;
2263 # end --enable-proctitle
2264 ol_enable_referrals=${ol_enable_referrals-no}
2265 ol_enable_kbind=${ol_enable_kbind-no}
2266 # OpenLDAP --enable-ipv6
2267
2268         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2269 if test "${enable_ipv6+set}" = set; then
2270   enableval="$enable_ipv6"
2271
2272         ol_arg=invalid
2273         for ol_val in auto yes no ; do
2274                 if test "$enableval" = "$ol_val" ; then
2275                         ol_arg="$ol_val"
2276                 fi
2277         done
2278         if test "$ol_arg" = "invalid" ; then
2279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2280 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2281    { (exit 1); exit 1; }; }
2282         fi
2283         ol_enable_ipv6="$ol_arg"
2284
2285 else
2286         ol_enable_ipv6=auto
2287 fi;
2288 # end --enable-ipv6
2289 # OpenLDAP --enable-local
2290
2291         # Check whether --enable-local or --disable-local was given.
2292 if test "${enable_local+set}" = set; then
2293   enableval="$enable_local"
2294
2295         ol_arg=invalid
2296         for ol_val in auto yes no ; do
2297                 if test "$enableval" = "$ol_val" ; then
2298                         ol_arg="$ol_val"
2299                 fi
2300         done
2301         if test "$ol_arg" = "invalid" ; then
2302                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2303 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2304    { (exit 1); exit 1; }; }
2305         fi
2306         ol_enable_local="$ol_arg"
2307
2308 else
2309         ol_enable_local=auto
2310 fi;
2311 # end --enable-local
2312
2313 # OpenLDAP --with-cyrus_sasl
2314
2315 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2316 if test "${with_cyrus_sasl+set}" = set; then
2317   withval="$with_cyrus_sasl"
2318
2319         ol_arg=invalid
2320         for ol_val in auto yes no  ; do
2321                 if test "$withval" = "$ol_val" ; then
2322                         ol_arg="$ol_val"
2323                 fi
2324         done
2325         if test "$ol_arg" = "invalid" ; then
2326                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2327 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2328    { (exit 1); exit 1; }; }
2329         fi
2330         ol_with_cyrus_sasl="$ol_arg"
2331
2332 else
2333         ol_with_cyrus_sasl="auto"
2334 fi; # end --with-cyrus_sasl
2335
2336 # OpenLDAP --with-fetch
2337
2338 # Check whether --with-fetch or --without-fetch was given.
2339 if test "${with_fetch+set}" = set; then
2340   withval="$with_fetch"
2341
2342         ol_arg=invalid
2343         for ol_val in auto yes no  ; do
2344                 if test "$withval" = "$ol_val" ; then
2345                         ol_arg="$ol_val"
2346                 fi
2347         done
2348         if test "$ol_arg" = "invalid" ; then
2349                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2350 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2351    { (exit 1); exit 1; }; }
2352         fi
2353         ol_with_fetch="$ol_arg"
2354
2355 else
2356         ol_with_fetch="auto"
2357 fi; # end --with-fetch
2358
2359 ol_with_kerberos=${ol_with_kerberos-auto}
2360 # OpenLDAP --with-threads
2361
2362 # Check whether --with-threads or --without-threads was given.
2363 if test "${with_threads+set}" = set; then
2364   withval="$with_threads"
2365
2366         ol_arg=invalid
2367         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2368                 if test "$withval" = "$ol_val" ; then
2369                         ol_arg="$ol_val"
2370                 fi
2371         done
2372         if test "$ol_arg" = "invalid" ; then
2373                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2374 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2375    { (exit 1); exit 1; }; }
2376         fi
2377         ol_with_threads="$ol_arg"
2378
2379 else
2380         ol_with_threads="auto"
2381 fi; # end --with-threads
2382
2383 # OpenLDAP --with-tls
2384
2385 # Check whether --with-tls or --without-tls was given.
2386 if test "${with_tls+set}" = set; then
2387   withval="$with_tls"
2388
2389         ol_arg=invalid
2390         for ol_val in auto openssl yes no  ; do
2391                 if test "$withval" = "$ol_val" ; then
2392                         ol_arg="$ol_val"
2393                 fi
2394         done
2395         if test "$ol_arg" = "invalid" ; then
2396                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2397 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2398    { (exit 1); exit 1; }; }
2399         fi
2400         ol_with_tls="$ol_arg"
2401
2402 else
2403         ol_with_tls="auto"
2404 fi; # end --with-tls
2405
2406 # OpenLDAP --with-yielding_select
2407
2408 # Check whether --with-yielding_select or --without-yielding_select was given.
2409 if test "${with_yielding_select+set}" = set; then
2410   withval="$with_yielding_select"
2411
2412         ol_arg=invalid
2413         for ol_val in auto yes no manual  ; do
2414                 if test "$withval" = "$ol_val" ; then
2415                         ol_arg="$ol_val"
2416                 fi
2417         done
2418         if test "$ol_arg" = "invalid" ; then
2419                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2420 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2421    { (exit 1); exit 1; }; }
2422         fi
2423         ol_with_yielding_select="$ol_arg"
2424
2425 else
2426         ol_with_yielding_select="auto"
2427 fi; # end --with-yielding_select
2428
2429 # OpenLDAP --with-mp
2430
2431 # Check whether --with-mp or --without-mp was given.
2432 if test "${with_mp+set}" = set; then
2433   withval="$with_mp"
2434
2435         ol_arg=invalid
2436         for ol_val in auto longlong long bignum gmp yes no ; do
2437                 if test "$withval" = "$ol_val" ; then
2438                         ol_arg="$ol_val"
2439                 fi
2440         done
2441         if test "$ol_arg" = "invalid" ; then
2442                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2443 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2444    { (exit 1); exit 1; }; }
2445         fi
2446         ol_with_mp="$ol_arg"
2447
2448 else
2449         ol_with_mp="auto"
2450 fi; # end --with-mp
2451
2452
2453
2454 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2455 if test "${enable_xxslapdoptions+set}" = set; then
2456   enableval="$enable_xxslapdoptions"
2457
2458 fi;
2459 # OpenLDAP --enable-slapd
2460
2461         # Check whether --enable-slapd or --disable-slapd was given.
2462 if test "${enable_slapd+set}" = set; then
2463   enableval="$enable_slapd"
2464
2465         ol_arg=invalid
2466         for ol_val in auto yes no ; do
2467                 if test "$enableval" = "$ol_val" ; then
2468                         ol_arg="$ol_val"
2469                 fi
2470         done
2471         if test "$ol_arg" = "invalid" ; then
2472                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2473 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2474    { (exit 1); exit 1; }; }
2475         fi
2476         ol_enable_slapd="$ol_arg"
2477
2478 else
2479         ol_enable_slapd=yes
2480 fi;
2481 # end --enable-slapd
2482 # OpenLDAP --enable-dynacl
2483
2484         # Check whether --enable-dynacl or --disable-dynacl was given.
2485 if test "${enable_dynacl+set}" = set; then
2486   enableval="$enable_dynacl"
2487
2488         ol_arg=invalid
2489         for ol_val in auto yes no ; do
2490                 if test "$enableval" = "$ol_val" ; then
2491                         ol_arg="$ol_val"
2492                 fi
2493         done
2494         if test "$ol_arg" = "invalid" ; then
2495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2496 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2497    { (exit 1); exit 1; }; }
2498         fi
2499         ol_enable_dynacl="$ol_arg"
2500
2501 else
2502         ol_enable_dynacl=no
2503 fi;
2504 # end --enable-dynacl
2505 # OpenLDAP --enable-aci
2506
2507         # Check whether --enable-aci or --disable-aci was given.
2508 if test "${enable_aci+set}" = set; then
2509   enableval="$enable_aci"
2510
2511         ol_arg=invalid
2512         for ol_val in no yes mod ; do
2513                 if test "$enableval" = "$ol_val" ; then
2514                         ol_arg="$ol_val"
2515                 fi
2516         done
2517         if test "$ol_arg" = "invalid" ; then
2518                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2519 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2520    { (exit 1); exit 1; }; }
2521         fi
2522         ol_enable_aci="$ol_arg"
2523
2524 else
2525         ol_enable_aci=no
2526 fi;
2527 # end --enable-aci
2528 # OpenLDAP --enable-cleartext
2529
2530         # Check whether --enable-cleartext or --disable-cleartext was given.
2531 if test "${enable_cleartext+set}" = set; then
2532   enableval="$enable_cleartext"
2533
2534         ol_arg=invalid
2535         for ol_val in auto yes no ; do
2536                 if test "$enableval" = "$ol_val" ; then
2537                         ol_arg="$ol_val"
2538                 fi
2539         done
2540         if test "$ol_arg" = "invalid" ; then
2541                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2542 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2543    { (exit 1); exit 1; }; }
2544         fi
2545         ol_enable_cleartext="$ol_arg"
2546
2547 else
2548         ol_enable_cleartext=yes
2549 fi;
2550 # end --enable-cleartext
2551 # OpenLDAP --enable-crypt
2552
2553         # Check whether --enable-crypt or --disable-crypt was given.
2554 if test "${enable_crypt+set}" = set; then
2555   enableval="$enable_crypt"
2556
2557         ol_arg=invalid
2558         for ol_val in auto yes no ; do
2559                 if test "$enableval" = "$ol_val" ; then
2560                         ol_arg="$ol_val"
2561                 fi
2562         done
2563         if test "$ol_arg" = "invalid" ; then
2564                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2565 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2566    { (exit 1); exit 1; }; }
2567         fi
2568         ol_enable_crypt="$ol_arg"
2569
2570 else
2571         ol_enable_crypt=no
2572 fi;
2573 # end --enable-crypt
2574 # OpenLDAP --enable-lmpasswd
2575
2576         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2577 if test "${enable_lmpasswd+set}" = set; then
2578   enableval="$enable_lmpasswd"
2579
2580         ol_arg=invalid
2581         for ol_val in auto yes no ; do
2582                 if test "$enableval" = "$ol_val" ; then
2583                         ol_arg="$ol_val"
2584                 fi
2585         done
2586         if test "$ol_arg" = "invalid" ; then
2587                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2588 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2589    { (exit 1); exit 1; }; }
2590         fi
2591         ol_enable_lmpasswd="$ol_arg"
2592
2593 else
2594         ol_enable_lmpasswd=no
2595 fi;
2596 # end --enable-lmpasswd
2597 # OpenLDAP --enable-spasswd
2598
2599         # Check whether --enable-spasswd or --disable-spasswd was given.
2600 if test "${enable_spasswd+set}" = set; then
2601   enableval="$enable_spasswd"
2602
2603         ol_arg=invalid
2604         for ol_val in auto yes no ; do
2605                 if test "$enableval" = "$ol_val" ; then
2606                         ol_arg="$ol_val"
2607                 fi
2608         done
2609         if test "$ol_arg" = "invalid" ; then
2610                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2611 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2612    { (exit 1); exit 1; }; }
2613         fi
2614         ol_enable_spasswd="$ol_arg"
2615
2616 else
2617         ol_enable_spasswd=no
2618 fi;
2619 # end --enable-spasswd
2620 # OpenLDAP --enable-modules
2621
2622         # Check whether --enable-modules or --disable-modules was given.
2623 if test "${enable_modules+set}" = set; then
2624   enableval="$enable_modules"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_modules="$ol_arg"
2638
2639 else
2640         ol_enable_modules=no
2641 fi;
2642 # end --enable-modules
2643 # OpenLDAP --enable-rewrite
2644
2645         # Check whether --enable-rewrite or --disable-rewrite was given.
2646 if test "${enable_rewrite+set}" = set; then
2647   enableval="$enable_rewrite"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rewrite="$ol_arg"
2661
2662 else
2663         ol_enable_rewrite=auto
2664 fi;
2665 # end --enable-rewrite
2666 # OpenLDAP --enable-rlookups
2667
2668         # Check whether --enable-rlookups or --disable-rlookups was given.
2669 if test "${enable_rlookups+set}" = set; then
2670   enableval="$enable_rlookups"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_rlookups="$ol_arg"
2684
2685 else
2686         ol_enable_rlookups=no
2687 fi;
2688 # end --enable-rlookups
2689 # OpenLDAP --enable-slapi
2690
2691         # Check whether --enable-slapi or --disable-slapi was given.
2692 if test "${enable_slapi+set}" = set; then
2693   enableval="$enable_slapi"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_slapi="$ol_arg"
2707
2708 else
2709         ol_enable_slapi=no
2710 fi;
2711 # end --enable-slapi
2712 # OpenLDAP --enable-slp
2713
2714         # Check whether --enable-slp or --disable-slp was given.
2715 if test "${enable_slp+set}" = set; then
2716   enableval="$enable_slp"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_slp="$ol_arg"
2730
2731 else
2732         ol_enable_slp=no
2733 fi;
2734 # end --enable-slp
2735 # OpenLDAP --enable-wrappers
2736
2737         # Check whether --enable-wrappers or --disable-wrappers was given.
2738 if test "${enable_wrappers+set}" = set; then
2739   enableval="$enable_wrappers"
2740
2741         ol_arg=invalid
2742         for ol_val in auto yes no ; do
2743                 if test "$enableval" = "$ol_val" ; then
2744                         ol_arg="$ol_val"
2745                 fi
2746         done
2747         if test "$ol_arg" = "invalid" ; then
2748                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2749 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2750    { (exit 1); exit 1; }; }
2751         fi
2752         ol_enable_wrappers="$ol_arg"
2753
2754 else
2755         ol_enable_wrappers=no
2756 fi;
2757 # end --enable-wrappers
2758
2759 Backends="bdb \
2760         dnssrv \
2761         hdb \
2762         ldap \
2763         meta \
2764         monitor \
2765         null \
2766         passwd \
2767         perl \
2768         relay \
2769         shell \
2770         sql"
2771
2772 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2773 if test "${enable_xxslapbackends+set}" = set; then
2774   enableval="$enable_xxslapbackends"
2775
2776 fi;
2777
2778 # OpenLDAP --enable-backends
2779
2780         # Check whether --enable-backends or --disable-backends was given.
2781 if test "${enable_backends+set}" = set; then
2782   enableval="$enable_backends"
2783
2784         ol_arg=invalid
2785         for ol_val in no yes mod ; do
2786                 if test "$enableval" = "$ol_val" ; then
2787                         ol_arg="$ol_val"
2788                 fi
2789         done
2790         if test "$ol_arg" = "invalid" ; then
2791                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2792 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2793    { (exit 1); exit 1; }; }
2794         fi
2795         ol_enable_backends="$ol_arg"
2796
2797 fi;
2798 # end --enable-backends
2799 # OpenLDAP --enable-bdb
2800
2801         # Check whether --enable-bdb or --disable-bdb was given.
2802 if test "${enable_bdb+set}" = set; then
2803   enableval="$enable_bdb"
2804
2805         ol_arg=invalid
2806         for ol_val in no yes mod ; do
2807                 if test "$enableval" = "$ol_val" ; then
2808                         ol_arg="$ol_val"
2809                 fi
2810         done
2811         if test "$ol_arg" = "invalid" ; then
2812                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2813 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2814    { (exit 1); exit 1; }; }
2815         fi
2816         ol_enable_bdb="$ol_arg"
2817
2818 else
2819         ol_enable_bdb=${ol_enable_backends:-yes}
2820 fi;
2821 # end --enable-bdb
2822 # OpenLDAP --enable-dnssrv
2823
2824         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2825 if test "${enable_dnssrv+set}" = set; then
2826   enableval="$enable_dnssrv"
2827
2828         ol_arg=invalid
2829         for ol_val in no yes mod ; do
2830                 if test "$enableval" = "$ol_val" ; then
2831                         ol_arg="$ol_val"
2832                 fi
2833         done
2834         if test "$ol_arg" = "invalid" ; then
2835                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2836 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2837    { (exit 1); exit 1; }; }
2838         fi
2839         ol_enable_dnssrv="$ol_arg"
2840
2841 else
2842         ol_enable_dnssrv=${ol_enable_backends:-no}
2843 fi;
2844 # end --enable-dnssrv
2845 # OpenLDAP --enable-hdb
2846
2847         # Check whether --enable-hdb or --disable-hdb was given.
2848 if test "${enable_hdb+set}" = set; then
2849   enableval="$enable_hdb"
2850
2851         ol_arg=invalid
2852         for ol_val in no yes mod ; do
2853                 if test "$enableval" = "$ol_val" ; then
2854                         ol_arg="$ol_val"
2855                 fi
2856         done
2857         if test "$ol_arg" = "invalid" ; then
2858                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2859 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2860    { (exit 1); exit 1; }; }
2861         fi
2862         ol_enable_hdb="$ol_arg"
2863
2864 else
2865         ol_enable_hdb=${ol_enable_backends:-yes}
2866 fi;
2867 # end --enable-hdb
2868 # OpenLDAP --enable-ldap
2869
2870         # Check whether --enable-ldap or --disable-ldap was given.
2871 if test "${enable_ldap+set}" = set; then
2872   enableval="$enable_ldap"
2873
2874         ol_arg=invalid
2875         for ol_val in no yes mod ; do
2876                 if test "$enableval" = "$ol_val" ; then
2877                         ol_arg="$ol_val"
2878                 fi
2879         done
2880         if test "$ol_arg" = "invalid" ; then
2881                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2882 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2883    { (exit 1); exit 1; }; }
2884         fi
2885         ol_enable_ldap="$ol_arg"
2886
2887 else
2888         ol_enable_ldap=${ol_enable_backends:-no}
2889 fi;
2890 # end --enable-ldap
2891 # OpenLDAP --enable-meta
2892
2893         # Check whether --enable-meta or --disable-meta was given.
2894 if test "${enable_meta+set}" = set; then
2895   enableval="$enable_meta"
2896
2897         ol_arg=invalid
2898         for ol_val in no yes mod ; do
2899                 if test "$enableval" = "$ol_val" ; then
2900                         ol_arg="$ol_val"
2901                 fi
2902         done
2903         if test "$ol_arg" = "invalid" ; then
2904                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2905 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2906    { (exit 1); exit 1; }; }
2907         fi
2908         ol_enable_meta="$ol_arg"
2909
2910 else
2911         ol_enable_meta=${ol_enable_backends:-no}
2912 fi;
2913 # end --enable-meta
2914 # OpenLDAP --enable-monitor
2915
2916         # Check whether --enable-monitor or --disable-monitor was given.
2917 if test "${enable_monitor+set}" = set; then
2918   enableval="$enable_monitor"
2919
2920         ol_arg=invalid
2921         for ol_val in no yes mod ; do
2922                 if test "$enableval" = "$ol_val" ; then
2923                         ol_arg="$ol_val"
2924                 fi
2925         done
2926         if test "$ol_arg" = "invalid" ; then
2927                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2928 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2929    { (exit 1); exit 1; }; }
2930         fi
2931         ol_enable_monitor="$ol_arg"
2932
2933 else
2934         ol_enable_monitor=${ol_enable_backends:-yes}
2935 fi;
2936 # end --enable-monitor
2937 # OpenLDAP --enable-null
2938
2939         # Check whether --enable-null or --disable-null was given.
2940 if test "${enable_null+set}" = set; then
2941   enableval="$enable_null"
2942
2943         ol_arg=invalid
2944         for ol_val in no yes mod ; do
2945                 if test "$enableval" = "$ol_val" ; then
2946                         ol_arg="$ol_val"
2947                 fi
2948         done
2949         if test "$ol_arg" = "invalid" ; then
2950                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2951 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2952    { (exit 1); exit 1; }; }
2953         fi
2954         ol_enable_null="$ol_arg"
2955
2956 else
2957         ol_enable_null=${ol_enable_backends:-no}
2958 fi;
2959 # end --enable-null
2960 # OpenLDAP --enable-passwd
2961
2962         # Check whether --enable-passwd or --disable-passwd was given.
2963 if test "${enable_passwd+set}" = set; then
2964   enableval="$enable_passwd"
2965
2966         ol_arg=invalid
2967         for ol_val in no yes mod ; do
2968                 if test "$enableval" = "$ol_val" ; then
2969                         ol_arg="$ol_val"
2970                 fi
2971         done
2972         if test "$ol_arg" = "invalid" ; then
2973                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2974 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2975    { (exit 1); exit 1; }; }
2976         fi
2977         ol_enable_passwd="$ol_arg"
2978
2979 else
2980         ol_enable_passwd=${ol_enable_backends:-no}
2981 fi;
2982 # end --enable-passwd
2983 # OpenLDAP --enable-perl
2984
2985         # Check whether --enable-perl or --disable-perl was given.
2986 if test "${enable_perl+set}" = set; then
2987   enableval="$enable_perl"
2988
2989         ol_arg=invalid
2990         for ol_val in no yes mod ; do
2991                 if test "$enableval" = "$ol_val" ; then
2992                         ol_arg="$ol_val"
2993                 fi
2994         done
2995         if test "$ol_arg" = "invalid" ; then
2996                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2997 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2998    { (exit 1); exit 1; }; }
2999         fi
3000         ol_enable_perl="$ol_arg"
3001
3002 else
3003         ol_enable_perl=${ol_enable_backends:-no}
3004 fi;
3005 # end --enable-perl
3006 # OpenLDAP --enable-relay
3007
3008         # Check whether --enable-relay or --disable-relay was given.
3009 if test "${enable_relay+set}" = set; then
3010   enableval="$enable_relay"
3011
3012         ol_arg=invalid
3013         for ol_val in no yes mod ; do
3014                 if test "$enableval" = "$ol_val" ; then
3015                         ol_arg="$ol_val"
3016                 fi
3017         done
3018         if test "$ol_arg" = "invalid" ; then
3019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3020 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3021    { (exit 1); exit 1; }; }
3022         fi
3023         ol_enable_relay="$ol_arg"
3024
3025 else
3026         ol_enable_relay=${ol_enable_backends:-yes}
3027 fi;
3028 # end --enable-relay
3029 # OpenLDAP --enable-shell
3030
3031         # Check whether --enable-shell or --disable-shell was given.
3032 if test "${enable_shell+set}" = set; then
3033   enableval="$enable_shell"
3034
3035         ol_arg=invalid
3036         for ol_val in no yes mod ; do
3037                 if test "$enableval" = "$ol_val" ; then
3038                         ol_arg="$ol_val"
3039                 fi
3040         done
3041         if test "$ol_arg" = "invalid" ; then
3042                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3043 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3044    { (exit 1); exit 1; }; }
3045         fi
3046         ol_enable_shell="$ol_arg"
3047
3048 else
3049         ol_enable_shell=${ol_enable_backends:-no}
3050 fi;
3051 # end --enable-shell
3052 # OpenLDAP --enable-sql
3053
3054         # Check whether --enable-sql or --disable-sql was given.
3055 if test "${enable_sql+set}" = set; then
3056   enableval="$enable_sql"
3057
3058         ol_arg=invalid
3059         for ol_val in no yes mod ; do
3060                 if test "$enableval" = "$ol_val" ; then
3061                         ol_arg="$ol_val"
3062                 fi
3063         done
3064         if test "$ol_arg" = "invalid" ; then
3065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3066 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3067    { (exit 1); exit 1; }; }
3068         fi
3069         ol_enable_sql="$ol_arg"
3070
3071 else
3072         ol_enable_sql=${ol_enable_backends:-no}
3073 fi;
3074 # end --enable-sql
3075
3076 Overlays="accesslog \
3077         auditlog \
3078         constraint \
3079         dds \
3080         denyop \
3081         dyngroup \
3082         dynlist \
3083         lastmod \
3084         ppolicy \
3085         proxycache \
3086         refint \
3087         retcode \
3088         rwm \
3089         seqmod \
3090         syncprov \
3091         translucent \
3092         unique \
3093         valsort"
3094
3095 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3096 if test "${enable_xxslapoverlays+set}" = set; then
3097   enableval="$enable_xxslapoverlays"
3098
3099 fi;
3100
3101 # OpenLDAP --enable-overlays
3102
3103         # Check whether --enable-overlays or --disable-overlays was given.
3104 if test "${enable_overlays+set}" = set; then
3105   enableval="$enable_overlays"
3106
3107         ol_arg=invalid
3108         for ol_val in no yes mod ; do
3109                 if test "$enableval" = "$ol_val" ; then
3110                         ol_arg="$ol_val"
3111                 fi
3112         done
3113         if test "$ol_arg" = "invalid" ; then
3114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3116    { (exit 1); exit 1; }; }
3117         fi
3118         ol_enable_overlays="$ol_arg"
3119
3120 fi;
3121 # end --enable-overlays
3122 # OpenLDAP --enable-accesslog
3123
3124         # Check whether --enable-accesslog or --disable-accesslog was given.
3125 if test "${enable_accesslog+set}" = set; then
3126   enableval="$enable_accesslog"
3127
3128         ol_arg=invalid
3129         for ol_val in no yes mod ; do
3130                 if test "$enableval" = "$ol_val" ; then
3131                         ol_arg="$ol_val"
3132                 fi
3133         done
3134         if test "$ol_arg" = "invalid" ; then
3135                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3136 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3137    { (exit 1); exit 1; }; }
3138         fi
3139         ol_enable_accesslog="$ol_arg"
3140
3141 else
3142         ol_enable_accesslog=${ol_enable_overlays:-no}
3143 fi;
3144 # end --enable-accesslog
3145
3146 # OpenLDAP --enable-auditlog
3147
3148         # Check whether --enable-auditlog or --disable-auditlog was given.
3149 if test "${enable_auditlog+set}" = set; then
3150   enableval="$enable_auditlog"
3151
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_auditlog="$ol_arg"
3164
3165 else
3166         ol_enable_auditlog=${ol_enable_overlays:-no}
3167 fi;
3168 # end --enable-auditlog
3169
3170 # OpenLDAP --enable-constraint
3171
3172         # Check whether --enable-constraint or --disable-constraint was given.
3173 if test "${enable_constraint+set}" = set; then
3174   enableval="$enable_constraint"
3175
3176         ol_arg=invalid
3177         for ol_val in no yes mod ; do
3178                 if test "$enableval" = "$ol_val" ; then
3179                         ol_arg="$ol_val"
3180                 fi
3181         done
3182         if test "$ol_arg" = "invalid" ; then
3183                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3185    { (exit 1); exit 1; }; }
3186         fi
3187         ol_enable_constraint="$ol_arg"
3188
3189 else
3190         ol_enable_constraint=${ol_enable_overlays:-no}
3191 fi;
3192 # end --enable-constraint
3193
3194 # OpenLDAP --enable-dds
3195
3196         # Check whether --enable-dds or --disable-dds was given.
3197 if test "${enable_dds+set}" = set; then
3198   enableval="$enable_dds"
3199
3200         ol_arg=invalid
3201         for ol_val in no yes mod ; do
3202                 if test "$enableval" = "$ol_val" ; then
3203                         ol_arg="$ol_val"
3204                 fi
3205         done
3206         if test "$ol_arg" = "invalid" ; then
3207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3208 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3209    { (exit 1); exit 1; }; }
3210         fi
3211         ol_enable_dds="$ol_arg"
3212
3213 else
3214         ol_enable_dds=${ol_enable_overlays:-no}
3215 fi;
3216 # end --enable-dds
3217
3218 # OpenLDAP --enable-denyop
3219
3220         # Check whether --enable-denyop or --disable-denyop was given.
3221 if test "${enable_denyop+set}" = set; then
3222   enableval="$enable_denyop"
3223
3224         ol_arg=invalid
3225         for ol_val in no yes mod ; do
3226                 if test "$enableval" = "$ol_val" ; then
3227                         ol_arg="$ol_val"
3228                 fi
3229         done
3230         if test "$ol_arg" = "invalid" ; then
3231                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3232 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3233    { (exit 1); exit 1; }; }
3234         fi
3235         ol_enable_denyop="$ol_arg"
3236
3237 else
3238         ol_enable_denyop=${ol_enable_overlays:-no}
3239 fi;
3240 # end --enable-denyop
3241
3242 # OpenLDAP --enable-dyngroup
3243
3244         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3245 if test "${enable_dyngroup+set}" = set; then
3246   enableval="$enable_dyngroup"
3247
3248         ol_arg=invalid
3249         for ol_val in no yes mod ; do
3250                 if test "$enableval" = "$ol_val" ; then
3251                         ol_arg="$ol_val"
3252                 fi
3253         done
3254         if test "$ol_arg" = "invalid" ; then
3255                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3256 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3257    { (exit 1); exit 1; }; }
3258         fi
3259         ol_enable_dyngroup="$ol_arg"
3260
3261 else
3262         ol_enable_dyngroup=${ol_enable_overlays:-no}
3263 fi;
3264 # end --enable-dyngroup
3265
3266 # OpenLDAP --enable-dynlist
3267
3268         # Check whether --enable-dynlist or --disable-dynlist was given.
3269 if test "${enable_dynlist+set}" = set; then
3270   enableval="$enable_dynlist"
3271
3272         ol_arg=invalid
3273         for ol_val in no yes mod ; do
3274                 if test "$enableval" = "$ol_val" ; then
3275                         ol_arg="$ol_val"
3276                 fi
3277         done
3278         if test "$ol_arg" = "invalid" ; then
3279                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3280 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3281    { (exit 1); exit 1; }; }
3282         fi
3283         ol_enable_dynlist="$ol_arg"
3284
3285 else
3286         ol_enable_dynlist=${ol_enable_overlays:-no}
3287 fi;
3288 # end --enable-dynlist
3289
3290 # OpenLDAP --enable-lastmod
3291
3292         # Check whether --enable-lastmod or --disable-lastmod was given.
3293 if test "${enable_lastmod+set}" = set; then
3294   enableval="$enable_lastmod"
3295
3296         ol_arg=invalid
3297         for ol_val in no yes mod ; do
3298                 if test "$enableval" = "$ol_val" ; then
3299                         ol_arg="$ol_val"
3300                 fi
3301         done
3302         if test "$ol_arg" = "invalid" ; then
3303                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3304 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3305    { (exit 1); exit 1; }; }
3306         fi
3307         ol_enable_lastmod="$ol_arg"
3308
3309 else
3310         ol_enable_lastmod=${ol_enable_overlays:-no}
3311 fi;
3312 # end --enable-lastmod
3313
3314 # OpenLDAP --enable-ppolicy
3315
3316         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3317 if test "${enable_ppolicy+set}" = set; then
3318   enableval="$enable_ppolicy"
3319
3320         ol_arg=invalid
3321         for ol_val in no yes mod ; do
3322                 if test "$enableval" = "$ol_val" ; then
3323                         ol_arg="$ol_val"
3324                 fi
3325         done
3326         if test "$ol_arg" = "invalid" ; then
3327                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3328 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3329    { (exit 1); exit 1; }; }
3330         fi
3331         ol_enable_ppolicy="$ol_arg"
3332
3333 else
3334         ol_enable_ppolicy=${ol_enable_overlays:-no}
3335 fi;
3336 # end --enable-ppolicy
3337
3338 # OpenLDAP --enable-proxycache
3339
3340         # Check whether --enable-proxycache or --disable-proxycache was given.
3341 if test "${enable_proxycache+set}" = set; then
3342   enableval="$enable_proxycache"
3343
3344         ol_arg=invalid
3345         for ol_val in no yes mod ; do
3346                 if test "$enableval" = "$ol_val" ; then
3347                         ol_arg="$ol_val"
3348                 fi
3349         done
3350         if test "$ol_arg" = "invalid" ; then
3351                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3352 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3353    { (exit 1); exit 1; }; }
3354         fi
3355         ol_enable_proxycache="$ol_arg"
3356
3357 else
3358         ol_enable_proxycache=${ol_enable_overlays:-no}
3359 fi;
3360 # end --enable-proxycache
3361
3362 # OpenLDAP --enable-refint
3363
3364         # Check whether --enable-refint or --disable-refint was given.
3365 if test "${enable_refint+set}" = set; then
3366   enableval="$enable_refint"
3367
3368         ol_arg=invalid
3369         for ol_val in no yes mod ; do
3370                 if test "$enableval" = "$ol_val" ; then
3371                         ol_arg="$ol_val"
3372                 fi
3373         done
3374         if test "$ol_arg" = "invalid" ; then
3375                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3376 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3377    { (exit 1); exit 1; }; }
3378         fi
3379         ol_enable_refint="$ol_arg"
3380
3381 else
3382         ol_enable_refint=${ol_enable_overlays:-no}
3383 fi;
3384 # end --enable-refint
3385
3386 # OpenLDAP --enable-retcode
3387
3388         # Check whether --enable-retcode or --disable-retcode was given.
3389 if test "${enable_retcode+set}" = set; then
3390   enableval="$enable_retcode"
3391
3392         ol_arg=invalid
3393         for ol_val in no yes mod ; do
3394                 if test "$enableval" = "$ol_val" ; then
3395                         ol_arg="$ol_val"
3396                 fi
3397         done
3398         if test "$ol_arg" = "invalid" ; then
3399                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3400 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3401    { (exit 1); exit 1; }; }
3402         fi
3403         ol_enable_retcode="$ol_arg"
3404
3405 else
3406         ol_enable_retcode=${ol_enable_overlays:-no}
3407 fi;
3408 # end --enable-retcode
3409
3410 # OpenLDAP --enable-rwm
3411
3412         # Check whether --enable-rwm or --disable-rwm was given.
3413 if test "${enable_rwm+set}" = set; then
3414   enableval="$enable_rwm"
3415
3416         ol_arg=invalid
3417         for ol_val in no yes mod ; do
3418                 if test "$enableval" = "$ol_val" ; then
3419                         ol_arg="$ol_val"
3420                 fi
3421         done
3422         if test "$ol_arg" = "invalid" ; then
3423                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3424 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3425    { (exit 1); exit 1; }; }
3426         fi
3427         ol_enable_rwm="$ol_arg"
3428
3429 else
3430         ol_enable_rwm=${ol_enable_overlays:-no}
3431 fi;
3432 # end --enable-rwm
3433
3434 # OpenLDAP --enable-seqmod
3435
3436         # Check whether --enable-seqmod or --disable-seqmod was given.
3437 if test "${enable_seqmod+set}" = set; then
3438   enableval="$enable_seqmod"
3439
3440         ol_arg=invalid
3441         for ol_val in no yes mod ; do
3442                 if test "$enableval" = "$ol_val" ; then
3443                         ol_arg="$ol_val"
3444                 fi
3445         done
3446         if test "$ol_arg" = "invalid" ; then
3447                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3448 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3449    { (exit 1); exit 1; }; }
3450         fi
3451         ol_enable_seqmod="$ol_arg"
3452
3453 else
3454         ol_enable_seqmod=${ol_enable_overlays:-yes}
3455 fi;
3456 # end --enable-seqmod
3457
3458 # OpenLDAP --enable-syncprov
3459
3460         # Check whether --enable-syncprov or --disable-syncprov was given.
3461 if test "${enable_syncprov+set}" = set; then
3462   enableval="$enable_syncprov"
3463
3464         ol_arg=invalid
3465         for ol_val in no yes mod ; do
3466                 if test "$enableval" = "$ol_val" ; then
3467                         ol_arg="$ol_val"
3468                 fi
3469         done
3470         if test "$ol_arg" = "invalid" ; then
3471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3472 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3473    { (exit 1); exit 1; }; }
3474         fi
3475         ol_enable_syncprov="$ol_arg"
3476
3477 else
3478         ol_enable_syncprov=${ol_enable_overlays:-yes}
3479 fi;
3480 # end --enable-syncprov
3481
3482 # OpenLDAP --enable-translucent
3483
3484         # Check whether --enable-translucent or --disable-translucent was given.
3485 if test "${enable_translucent+set}" = set; then
3486   enableval="$enable_translucent"
3487
3488         ol_arg=invalid
3489         for ol_val in no yes mod ; do
3490                 if test "$enableval" = "$ol_val" ; then
3491                         ol_arg="$ol_val"
3492                 fi
3493         done
3494         if test "$ol_arg" = "invalid" ; then
3495                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3496 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3497    { (exit 1); exit 1; }; }
3498         fi
3499         ol_enable_translucent="$ol_arg"
3500
3501 else
3502         ol_enable_translucent=${ol_enable_overlays:-no}
3503 fi;
3504 # end --enable-translucent
3505
3506 # OpenLDAP --enable-unique
3507
3508         # Check whether --enable-unique or --disable-unique was given.
3509 if test "${enable_unique+set}" = set; then
3510   enableval="$enable_unique"
3511
3512         ol_arg=invalid
3513         for ol_val in no yes mod ; do
3514                 if test "$enableval" = "$ol_val" ; then
3515                         ol_arg="$ol_val"
3516                 fi
3517         done
3518         if test "$ol_arg" = "invalid" ; then
3519                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3520 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3521    { (exit 1); exit 1; }; }
3522         fi
3523         ol_enable_unique="$ol_arg"
3524
3525 else
3526         ol_enable_unique=${ol_enable_overlays:-no}
3527 fi;
3528 # end --enable-unique
3529
3530 # OpenLDAP --enable-valsort
3531
3532         # Check whether --enable-valsort or --disable-valsort was given.
3533 if test "${enable_valsort+set}" = set; then
3534   enableval="$enable_valsort"
3535
3536         ol_arg=invalid
3537         for ol_val in no yes mod ; do
3538                 if test "$enableval" = "$ol_val" ; then
3539                         ol_arg="$ol_val"
3540                 fi
3541         done
3542         if test "$ol_arg" = "invalid" ; then
3543                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_valsort="$ol_arg"
3548
3549 else
3550         ol_enable_valsort=${ol_enable_overlays:-no}
3551 fi;
3552 # end --enable-valsort
3553
3554
3555 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3556 if test "${enable_xxslurpdoptions+set}" = set; then
3557   enableval="$enable_xxslurpdoptions"
3558
3559 fi;
3560 # OpenLDAP --enable-slurpd
3561
3562         # Check whether --enable-slurpd or --disable-slurpd was given.
3563 if test "${enable_slurpd+set}" = set; then
3564   enableval="$enable_slurpd"
3565
3566         ol_arg=invalid
3567         for ol_val in auto yes no ; do
3568                 if test "$enableval" = "$ol_val" ; then
3569                         ol_arg="$ol_val"
3570                 fi
3571         done
3572         if test "$ol_arg" = "invalid" ; then
3573                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3574 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3575    { (exit 1); exit 1; }; }
3576         fi
3577         ol_enable_slurpd="$ol_arg"
3578
3579 else
3580         ol_enable_slurpd=auto
3581 fi;
3582 # end --enable-slurpd
3583
3584 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3585 if test "${enable_xxliboptions+set}" = set; then
3586   enableval="$enable_xxliboptions"
3587
3588 fi;
3589 # Check whether --enable-static or --disable-static was given.
3590 if test "${enable_static+set}" = set; then
3591   enableval="$enable_static"
3592   p=${PACKAGE-default}
3593     case $enableval in
3594     yes) enable_static=yes ;;
3595     no) enable_static=no ;;
3596     *)
3597      enable_static=no
3598       # Look at the argument we got.  We use all the common list separators.
3599       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3600       for pkg in $enableval; do
3601         IFS="$lt_save_ifs"
3602         if test "X$pkg" = "X$p"; then
3603           enable_static=yes
3604         fi
3605       done
3606       IFS="$lt_save_ifs"
3607       ;;
3608     esac
3609 else
3610   enable_static=yes
3611 fi;
3612
3613 # Check whether --enable-shared or --disable-shared was given.
3614 if test "${enable_shared+set}" = set; then
3615   enableval="$enable_shared"
3616   p=${PACKAGE-default}
3617     case $enableval in
3618     yes) enable_shared=yes ;;
3619     no) enable_shared=no ;;
3620     *)
3621       enable_shared=no
3622       # Look at the argument we got.  We use all the common list separators.
3623       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3624       for pkg in $enableval; do
3625         IFS="$lt_save_ifs"
3626         if test "X$pkg" = "X$p"; then
3627           enable_shared=yes
3628         fi
3629       done
3630       IFS="$lt_save_ifs"
3631       ;;
3632     esac
3633 else
3634   enable_shared=yes
3635 fi;
3636
3637
3638
3639 # validate options
3640 if test $ol_enable_slapd = no ; then
3641                 if test $ol_enable_slapi = yes ; then
3642                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3643 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3644         fi
3645         case "$ol_enable_backends" in yes | mod)
3646                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3647 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3648         esac
3649         for i in $Backends; do
3650                 eval "ol_tmp=\$ol_enable_$i"
3651                 if test $ol_tmp != no ; then
3652                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3653 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3654                         eval "ol_enable_$i=no"
3655                 fi
3656         done
3657         if test $ol_enable_modules = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3660         fi
3661         if test $ol_enable_wrappers = yes ; then
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3664         fi
3665         if test $ol_enable_rlookups = yes ; then
3666                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3667 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3668         fi
3669         if test $ol_enable_dynacl = yes ; then
3670                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3671 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3672         fi
3673         if test $ol_enable_aci != no ; then
3674                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3675 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3676         fi
3677         if test $ol_enable_slurpd = yes ; then
3678                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3679 echo "$as_me: error: slurpd requires slapd" >&2;}
3680    { (exit 1); exit 1; }; }
3681         fi
3682         if test $ol_enable_rewrite = yes ; then
3683                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3684 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3685         fi
3686                 case "$ol_enable_overlays" in yes | mod)
3687                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3688 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3689         esac
3690         for i in $Overlays; do
3691                 eval "ol_tmp=\$ol_enable_$i"
3692                 if test $ol_tmp != no ; then
3693                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3694 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3695                         eval "ol_enable_$i=no"
3696                 fi
3697         done
3698
3699         # force settings to no
3700         ol_enable_slapi=no
3701
3702         ol_enable_backends=
3703         ol_enable_overlays=
3704         ol_enable_modules=no
3705         ol_enable_rlookups=no
3706         ol_enable_dynacl=no
3707         ol_enable_aci=no
3708         ol_enable_wrappers=no
3709
3710         ol_enable_slurpd=no
3711
3712         ol_enable_rewrite=no
3713
3714 elif test $ol_enable_modules != yes &&
3715         test $ol_enable_bdb = no &&
3716         test $ol_enable_dnssrv = no &&
3717         test $ol_enable_hdb = no &&
3718         test $ol_enable_ldap = no &&
3719         test $ol_enable_meta = no &&
3720         test $ol_enable_monitor = no &&
3721         test $ol_enable_null = no &&
3722         test $ol_enable_passwd = no &&
3723         test $ol_enable_perl = no &&
3724         test $ol_enable_relay = no &&
3725         test $ol_enable_shell = no &&
3726         test $ol_enable_sql = no ; then
3727
3728         if test $ol_enable_slapd = yes ; then
3729                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3730 echo "$as_me: error: slapd requires a backend" >&2;}
3731    { (exit 1); exit 1; }; }
3732         else
3733                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3734 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3735                 ol_enable_slapd=no
3736         fi
3737 fi
3738
3739 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3740         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3741 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3742    { (exit 1); exit 1; }; }
3743 fi
3744
3745 if test $ol_enable_slurpd = yes ; then
3746                 if test $ol_with_threads = no ; then
3747                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3748 echo "$as_me: error: slurpd requires threads" >&2;}
3749    { (exit 1); exit 1; }; }
3750         fi
3751 fi
3752
3753 if test $ol_enable_lmpasswd = yes ; then
3754         if test $ol_with_tls = no ; then
3755                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3756 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3757    { (exit 1); exit 1; }; }
3758         fi
3759 fi
3760
3761 if test $ol_enable_kbind = yes ; then
3762         if test $ol_with_kerberos = no ; then
3763                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3764 echo "$as_me: error: options require --with-kerberos" >&2;}
3765    { (exit 1); exit 1; }; }
3766         elif test $ol_with_kerberos = auto ; then
3767                 ol_with_kerberos=yes
3768         fi
3769
3770 elif test $ol_enable_kbind = no ; then
3771         if test $ol_with_kerberos = auto ; then
3772                 ol_with_kerberos=no
3773         elif test $ol_with_kerberos != no ; then
3774                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3775 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3776                 ol_with_kerberos=no
3777         fi
3778 fi
3779
3780 if test $ol_enable_spasswd = yes ; then
3781         if test $ol_with_cyrus_sasl = no ; then
3782                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3783 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3784    { (exit 1); exit 1; }; }
3785         fi
3786         ol_with_cyrus_sasl=yes
3787 fi
3788
3789 echo "$as_me:$LINENO: result: done" >&5
3790 echo "${ECHO_T}done" >&6
3791
3792 LDAP_LIBS=
3793 BDB_LIBS=
3794 LTHREAD_LIBS=
3795 LUTIL_LIBS=
3796
3797 SLAPD_LIBS=
3798 SLURPD_LIBS=
3799
3800 BUILD_SLAPD=no
3801 BUILD_SLURPD=no
3802
3803 BUILD_THREAD=no
3804
3805 BUILD_SLAPI=no
3806 SLAPD_SLAPI_DEPEND=
3807
3808 BUILD_BDB=no
3809 BUILD_DNSSRV=no
3810 BUILD_HDB=no
3811 BUILD_LDAP=no
3812 BUILD_META=no
3813 BUILD_MONITOR=no
3814 BUILD_NULL=no
3815 BUILD_PASSWD=no
3816 BUILD_PERL=no
3817 BUILD_RELAY=no
3818 BUILD_SHELL=no
3819 BUILD_SQL=no
3820
3821 BUILD_ACCESSLOG=no
3822 BUILD_AUDITLOG=no
3823 BUILD_CONSTRAINT=no
3824 BUILD_DDS=no
3825 BUILD_DENYOP=no
3826 BUILD_DYNGROUP=no
3827 BUILD_DYNLIST=no
3828 BUILD_LASTMOD=no
3829 BUILD_PPOLICY=no
3830 BUILD_PROXYCACHE=no
3831 BUILD_REFINT=no
3832 BUILD_RETCODE=no
3833 BUILD_RWM=no
3834 BUILD_SEQMOD=no
3835 BUILD_SYNCPROV=no
3836 BUILD_TRANSLUCENT=no
3837 BUILD_UNIQUE=no
3838 BUILD_VALSORT=no
3839
3840 SLAPD_STATIC_OVERLAYS=
3841 SLAPD_DYNAMIC_OVERLAYS=
3842
3843 SLAPD_MODULES_LDFLAGS=
3844 SLAPD_MODULES_CPPFLAGS=
3845
3846 SLAPD_STATIC_BACKENDS=back-ldif
3847 SLAPD_DYNAMIC_BACKENDS=
3848
3849 SLAPD_PERL_LDFLAGS=
3850 MOD_PERL_LDFLAGS=
3851 PERL_CPPFLAGS=
3852
3853 SLAPD_SQL_LDFLAGS=
3854 SLAPD_SQL_LIBS=
3855 SLAPD_SQL_INCLUDES=
3856
3857 KRB4_LIBS=
3858 KRB5_LIBS=
3859 SASL_LIBS=
3860 TLS_LIBS=
3861 MODULES_LIBS=
3862 SLAPI_LIBS=
3863 LIBSLAPI=
3864 LIBSLAPITOOLS=
3865 AUTH_LIBS=
3866 ICU_LIBS=
3867
3868 SLAPD_SLP_LIBS=
3869 SLAPD_GMP_LIBS=
3870
3871
3872
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_MKVERSION 1
3875 _ACEOF
3876
3877
3878
3879
3880 ol_aix_threads=no
3881 case "$target" in
3882 *-*-aix*)       if test -z "$CC" ; then
3883                 case "$ol_with_threads" in
3884                 auto | yes |  posix) ol_aix_threads=yes ;;
3885                 esac
3886         fi
3887 ;;
3888 esac
3889
3890 if test $ol_aix_threads = yes ; then
3891         if test -z "${CC}" ; then
3892                 for ac_prog in cc_r xlc_r cc
3893 do
3894   # Extract the first word of "$ac_prog", so it can be a program name with args.
3895 set dummy $ac_prog; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_CC+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   if test -n "$CC"; then
3902   ac_cv_prog_CC="$CC" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909   for ac_exec_ext in '' $ac_executable_extensions; do
3910   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911     ac_cv_prog_CC="$ac_prog"
3912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913     break 2
3914   fi
3915 done
3916 done
3917
3918 fi
3919 fi
3920 CC=$ac_cv_prog_CC
3921 if test -n "$CC"; then
3922   echo "$as_me:$LINENO: result: $CC" >&5
3923 echo "${ECHO_T}$CC" >&6
3924 else
3925   echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927 fi
3928
3929   test -n "$CC" && break
3930 done
3931
3932
3933                 if test "$CC" = cc ; then
3934                                                 if test $ol_with_threads != auto ; then
3935                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3936 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3937    { (exit 1); exit 1; }; }
3938                         else
3939                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3940 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3941                         fi
3942                         ol_with_threads=no
3943                 fi
3944         fi
3945
3946         case ${CC} in cc_r | xlc_r)
3947                 ol_with_threads=posix
3948                 ol_cv_pthread_create=yes
3949                 ;;
3950         esac
3951 fi
3952
3953 if test -z "${CC}"; then
3954         for ac_prog in cc gcc
3955 do
3956   # Extract the first word of "$ac_prog", so it can be a program name with args.
3957 set dummy $ac_prog; ac_word=$2
3958 echo "$as_me:$LINENO: checking for $ac_word" >&5
3959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3960 if test "${ac_cv_prog_CC+set}" = set; then
3961   echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963   if test -n "$CC"; then
3964   ac_cv_prog_CC="$CC" # Let the user override the test.
3965 else
3966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 for as_dir in $PATH
3968 do
3969   IFS=$as_save_IFS
3970   test -z "$as_dir" && as_dir=.
3971   for ac_exec_ext in '' $ac_executable_extensions; do
3972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3973     ac_cv_prog_CC="$ac_prog"
3974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3975     break 2
3976   fi
3977 done
3978 done
3979
3980 fi
3981 fi
3982 CC=$ac_cv_prog_CC
3983 if test -n "$CC"; then
3984   echo "$as_me:$LINENO: result: $CC" >&5
3985 echo "${ECHO_T}$CC" >&6
3986 else
3987   echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3989 fi
3990
3991   test -n "$CC" && break
3992 done
3993 test -n "$CC" || CC="missing"
3994
3995
3996         if test "${CC}" = "missing" ; then
3997                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3998 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3999    { (exit 1); exit 1; }; }
4000         fi
4001 fi
4002
4003 if test -z "${AR}"; then
4004         for ac_prog in ar gar
4005 do
4006   # Extract the first word of "$ac_prog", so it can be a program name with args.
4007 set dummy $ac_prog; ac_word=$2
4008 echo "$as_me:$LINENO: checking for $ac_word" >&5
4009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4010 if test "${ac_cv_prog_AR+set}" = set; then
4011   echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013   if test -n "$AR"; then
4014   ac_cv_prog_AR="$AR" # Let the user override the test.
4015 else
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 for as_dir in $PATH
4018 do
4019   IFS=$as_save_IFS
4020   test -z "$as_dir" && as_dir=.
4021   for ac_exec_ext in '' $ac_executable_extensions; do
4022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023     ac_cv_prog_AR="$ac_prog"
4024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025     break 2
4026   fi
4027 done
4028 done
4029
4030 fi
4031 fi
4032 AR=$ac_cv_prog_AR
4033 if test -n "$AR"; then
4034   echo "$as_me:$LINENO: result: $AR" >&5
4035 echo "${ECHO_T}$AR" >&6
4036 else
4037   echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 fi
4040
4041   test -n "$AR" && break
4042 done
4043 test -n "$AR" || AR="missing"
4044
4045
4046         if test "${AR}" = "missing" ; then
4047                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4048 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4049    { (exit 1); exit 1; }; }
4050         fi
4051 fi
4052
4053
4054
4055
4056
4057 # Check whether --enable-fast-install or --disable-fast-install was given.
4058 if test "${enable_fast_install+set}" = set; then
4059   enableval="$enable_fast_install"
4060   p=${PACKAGE-default}
4061     case $enableval in
4062     yes) enable_fast_install=yes ;;
4063     no) enable_fast_install=no ;;
4064     *)
4065       enable_fast_install=no
4066       # Look at the argument we got.  We use all the common list separators.
4067       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4068       for pkg in $enableval; do
4069         IFS="$lt_save_ifs"
4070         if test "X$pkg" = "X$p"; then
4071           enable_fast_install=yes
4072         fi
4073       done
4074       IFS="$lt_save_ifs"
4075       ;;
4076     esac
4077 else
4078   enable_fast_install=yes
4079 fi;
4080
4081 DEPDIR="${am__leading_dot}deps"
4082
4083           ac_config_commands="$ac_config_commands depfiles"
4084
4085
4086 am_make=${MAKE-make}
4087 cat > confinc << 'END'
4088 am__doit:
4089         @echo done
4090 .PHONY: am__doit
4091 END
4092 # If we don't find an include directive, just comment out the code.
4093 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4094 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4095 am__include="#"
4096 am__quote=
4097 _am_result=none
4098 # First try GNU make style include.
4099 echo "include confinc" > confmf
4100 # We grep out `Entering directory' and `Leaving directory'
4101 # messages which can occur if `w' ends up in MAKEFLAGS.
4102 # In particular we don't look at `^make:' because GNU make might
4103 # be invoked under some other name (usually "gmake"), in which
4104 # case it prints its new name instead of `make'.
4105 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4106    am__include=include
4107    am__quote=
4108    _am_result=GNU
4109 fi
4110 # Now try BSD make style include.
4111 if test "$am__include" = "#"; then
4112    echo '.include "confinc"' > confmf
4113    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4114       am__include=.include
4115       am__quote="\""
4116       _am_result=BSD
4117    fi
4118 fi
4119
4120
4121 echo "$as_me:$LINENO: result: $_am_result" >&5
4122 echo "${ECHO_T}$_am_result" >&6
4123 rm -f confinc confmf
4124
4125 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4126 if test "${enable_dependency_tracking+set}" = set; then
4127   enableval="$enable_dependency_tracking"
4128
4129 fi;
4130 if test "x$enable_dependency_tracking" != xno; then
4131   am_depcomp="$ac_aux_dir/depcomp"
4132   AMDEPBACKSLASH='\'
4133 fi
4134
4135
4136 if test "x$enable_dependency_tracking" != xno; then
4137   AMDEP_TRUE=
4138   AMDEP_FALSE='#'
4139 else
4140   AMDEP_TRUE='#'
4141   AMDEP_FALSE=
4142 fi
4143
4144
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 if test -n "$ac_tool_prefix"; then
4152   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_CC+set}" = set; then
4157   echo $ECHO_N "(cached) $ECHO_C" >&6
4158 else
4159   if test -n "$CC"; then
4160   ac_cv_prog_CC="$CC" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180   echo "$as_me:$LINENO: result: $CC" >&5
4181 echo "${ECHO_T}$CC" >&6
4182 else
4183   echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4185 fi
4186
4187 fi
4188 if test -z "$ac_cv_prog_CC"; then
4189   ac_ct_CC=$CC
4190   # Extract the first word of "gcc", so it can be a program name with args.
4191 set dummy gcc; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   if test -n "$ac_ct_CC"; then
4198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4199 else
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_prog_ac_ct_CC="gcc"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214 fi
4215 fi
4216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217 if test -n "$ac_ct_CC"; then
4218   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4219 echo "${ECHO_T}$ac_ct_CC" >&6
4220 else
4221   echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4223 fi
4224
4225   CC=$ac_ct_CC
4226 else
4227   CC="$ac_cv_prog_CC"
4228 fi
4229
4230 if test -z "$CC"; then
4231   if test -n "$ac_tool_prefix"; then
4232   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4233 set dummy ${ac_tool_prefix}cc; ac_word=$2
4234 echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236 if test "${ac_cv_prog_CC+set}" = set; then
4237   echo $ECHO_N "(cached) $ECHO_C" >&6
4238 else
4239   if test -n "$CC"; then
4240   ac_cv_prog_CC="$CC" # Let the user override the test.
4241 else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249     ac_cv_prog_CC="${ac_tool_prefix}cc"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255
4256 fi
4257 fi
4258 CC=$ac_cv_prog_CC
4259 if test -n "$CC"; then
4260   echo "$as_me:$LINENO: result: $CC" >&5
4261 echo "${ECHO_T}$CC" >&6
4262 else
4263   echo "$as_me:$LINENO: result: no" >&5
4264 echo "${ECHO_T}no" >&6
4265 fi
4266
4267 fi
4268 if test -z "$ac_cv_prog_CC"; then
4269   ac_ct_CC=$CC
4270   # Extract the first word of "cc", so it can be a program name with args.
4271 set dummy cc; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   if test -n "$ac_ct_CC"; then
4278   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285   for ac_exec_ext in '' $ac_executable_extensions; do
4286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_ac_ct_CC="cc"
4288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292 done
4293
4294 fi
4295 fi
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4299 echo "${ECHO_T}$ac_ct_CC" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   CC=$ac_ct_CC
4306 else
4307   CC="$ac_cv_prog_CC"
4308 fi
4309
4310 fi
4311 if test -z "$CC"; then
4312   # Extract the first word of "cc", so it can be a program name with args.
4313 set dummy cc; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_CC+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$CC"; then
4320   ac_cv_prog_CC="$CC" # Let the user override the test.
4321 else
4322   ac_prog_rejected=no
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326   IFS=$as_save_IFS
4327   test -z "$as_dir" && as_dir=.
4328   for ac_exec_ext in '' $ac_executable_extensions; do
4329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4331        ac_prog_rejected=yes
4332        continue
4333      fi
4334     ac_cv_prog_CC="cc"
4335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339 done
4340
4341 if test $ac_prog_rejected = yes; then
4342   # We found a bogon in the path, so make sure we never use it.
4343   set dummy $ac_cv_prog_CC
4344   shift
4345   if test $# != 0; then
4346     # We chose a different compiler from the bogus one.
4347     # However, it has the same basename, so the bogon will be chosen
4348     # first if we set CC to just the basename; use the full file name.
4349     shift
4350     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4351   fi
4352 fi
4353 fi
4354 fi
4355 CC=$ac_cv_prog_CC
4356 if test -n "$CC"; then
4357   echo "$as_me:$LINENO: result: $CC" >&5
4358 echo "${ECHO_T}$CC" >&6
4359 else
4360   echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6
4362 fi
4363
4364 fi
4365 if test -z "$CC"; then
4366   if test -n "$ac_tool_prefix"; then
4367   for ac_prog in cl
4368   do
4369     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4371 echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4373 if test "${ac_cv_prog_CC+set}" = set; then
4374   echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376   if test -n "$CC"; then
4377   ac_cv_prog_CC="$CC" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4386     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392
4393 fi
4394 fi
4395 CC=$ac_cv_prog_CC
4396 if test -n "$CC"; then
4397   echo "$as_me:$LINENO: result: $CC" >&5
4398 echo "${ECHO_T}$CC" >&6
4399 else
4400   echo "$as_me:$LINENO: result: no" >&5
4401 echo "${ECHO_T}no" >&6
4402 fi
4403
4404     test -n "$CC" && break
4405   done
4406 fi
4407 if test -z "$CC"; then
4408   ac_ct_CC=$CC
4409   for ac_prog in cl
4410 do
4411   # Extract the first word of "$ac_prog", so it can be a program name with args.
4412 set dummy $ac_prog; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   if test -n "$ac_ct_CC"; then
4419   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426   for ac_exec_ext in '' $ac_executable_extensions; do
4427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_prog_ac_ct_CC="$ac_prog"
4429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433 done
4434
4435 fi
4436 fi
4437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4438 if test -n "$ac_ct_CC"; then
4439   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4440 echo "${ECHO_T}$ac_ct_CC" >&6
4441 else
4442   echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6
4444 fi
4445
4446   test -n "$ac_ct_CC" && break
4447 done
4448
4449   CC=$ac_ct_CC
4450 fi
4451
4452 fi
4453
4454
4455 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4456 See \`config.log' for more details." >&5
4457 echo "$as_me: error: no acceptable C compiler found in \$PATH
4458 See \`config.log' for more details." >&2;}
4459    { (exit 1); exit 1; }; }
4460
4461 # Provide some information about the compiler.
4462 echo "$as_me:$LINENO:" \
4463      "checking for C compiler version" >&5
4464 ac_compiler=`set X $ac_compile; echo $2`
4465 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4466   (eval $ac_compiler --version </dev/null >&5) 2>&5
4467   ac_status=$?
4468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469   (exit $ac_status); }
4470 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4471   (eval $ac_compiler -v </dev/null >&5) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }
4475 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4476   (eval $ac_compiler -V </dev/null >&5) 2>&5
4477   ac_status=$?
4478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479   (exit $ac_status); }
4480
4481 cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487
4488 int
4489 main ()
4490 {
4491
4492   ;
4493   return 0;
4494 }
4495 _ACEOF
4496 ac_clean_files_save=$ac_clean_files
4497 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4498 # Try to create an executable without -o first, disregard a.out.
4499 # It will help us diagnose broken compilers, and finding out an intuition
4500 # of exeext.
4501 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4502 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4503 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4504 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4505   (eval $ac_link_default) 2>&5
4506   ac_status=$?
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); }; then
4509   # Find the output, starting from the most likely.  This scheme is
4510 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4511 # resort.
4512
4513 # Be careful to initialize this variable, since it used to be cached.
4514 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4515 ac_cv_exeext=
4516 # b.out is created by i960 compilers.
4517 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4518 do
4519   test -f "$ac_file" || continue
4520   case $ac_file in
4521     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4522         ;;
4523     conftest.$ac_ext )
4524         # This is the source file.
4525         ;;
4526     [ab].out )
4527         # We found the default executable, but exeext='' is most
4528         # certainly right.
4529         break;;
4530     *.* )
4531         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4532         # FIXME: I believe we export ac_cv_exeext for Libtool,
4533         # but it would be cool to find out if it's true.  Does anybody
4534         # maintain Libtool? --akim.
4535         export ac_cv_exeext
4536         break;;
4537     * )
4538         break;;
4539   esac
4540 done
4541 else
4542   echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4546 See \`config.log' for more details." >&5
4547 echo "$as_me: error: C compiler cannot create executables
4548 See \`config.log' for more details." >&2;}
4549    { (exit 77); exit 77; }; }
4550 fi
4551
4552 ac_exeext=$ac_cv_exeext
4553 echo "$as_me:$LINENO: result: $ac_file" >&5
4554 echo "${ECHO_T}$ac_file" >&6
4555
4556 # Check the compiler produces executables we can run.  If not, either
4557 # the compiler is broken, or we cross compile.
4558 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4559 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4561 # If not cross compiling, check that we can run a simple program.
4562 if test "$cross_compiling" != yes; then
4563   if { ac_try='./$ac_file'
4564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565   (eval $ac_try) 2>&5
4566   ac_status=$?
4567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); }; }; then
4569     cross_compiling=no
4570   else
4571     if test "$cross_compiling" = maybe; then
4572         cross_compiling=yes
4573     else
4574         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4575 If you meant to cross compile, use \`--host'.
4576 See \`config.log' for more details." >&5
4577 echo "$as_me: error: cannot run C compiled programs.
4578 If you meant to cross compile, use \`--host'.
4579 See \`config.log' for more details." >&2;}
4580    { (exit 1); exit 1; }; }
4581     fi
4582   fi
4583 fi
4584 echo "$as_me:$LINENO: result: yes" >&5
4585 echo "${ECHO_T}yes" >&6
4586
4587 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4588 ac_clean_files=$ac_clean_files_save
4589 # Check the compiler produces executables we can run.  If not, either
4590 # the compiler is broken, or we cross compile.
4591 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4592 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4593 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4594 echo "${ECHO_T}$cross_compiling" >&6
4595
4596 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4597 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4599   (eval $ac_link) 2>&5
4600   ac_status=$?
4601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602   (exit $ac_status); }; then
4603   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4604 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4606 # `rm'.
4607 for ac_file in conftest.exe conftest conftest.*; do
4608   test -f "$ac_file" || continue
4609   case $ac_file in
4610     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4611     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4612           export ac_cv_exeext
4613           break;;
4614     * ) break;;
4615   esac
4616 done
4617 else
4618   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4619 See \`config.log' for more details." >&5
4620 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4621 See \`config.log' for more details." >&2;}
4622    { (exit 1); exit 1; }; }
4623 fi
4624
4625 rm -f conftest$ac_cv_exeext
4626 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4627 echo "${ECHO_T}$ac_cv_exeext" >&6
4628
4629 rm -f conftest.$ac_ext
4630 EXEEXT=$ac_cv_exeext
4631 ac_exeext=$EXEEXT
4632 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4633 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4634 if test "${ac_cv_objext+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4643
4644 int
4645 main ()
4646 {
4647
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.o conftest.obj
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; then
4658   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4659   case $ac_file in
4660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4661     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4662        break;;
4663   esac
4664 done
4665 else
4666   echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4668
4669 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4670 See \`config.log' for more details." >&5
4671 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4672 See \`config.log' for more details." >&2;}
4673    { (exit 1); exit 1; }; }
4674 fi
4675
4676 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4677 fi
4678 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4679 echo "${ECHO_T}$ac_cv_objext" >&6
4680 OBJEXT=$ac_cv_objext
4681 ac_objext=$OBJEXT
4682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 else
4687   cat >conftest.$ac_ext <<_ACEOF
4688 /* confdefs.h.  */
4689 _ACEOF
4690 cat confdefs.h >>conftest.$ac_ext
4691 cat >>conftest.$ac_ext <<_ACEOF
4692 /* end confdefs.h.  */
4693
4694 int
4695 main ()
4696 {
4697 #ifndef __GNUC__
4698        choke me
4699 #endif
4700
4701   ;
4702   return 0;
4703 }
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4707   (eval $ac_compile) 2>conftest.er1
4708   ac_status=$?
4709   grep -v '^ *+' conftest.er1 >conftest.err
4710   rm -f conftest.er1
4711   cat conftest.err >&5
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } &&
4714          { ac_try='test -z "$ac_c_werror_flag"
4715                          || test ! -s conftest.err'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest.$ac_objext'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727   ac_compiler_gnu=yes
4728 else
4729   echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 ac_compiler_gnu=no
4733 fi
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4736
4737 fi
4738 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4740 GCC=`test $ac_compiler_gnu = yes && echo yes`
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 CFLAGS="-g"
4744 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4746 if test "${ac_cv_prog_cc_g+set}" = set; then
4747   echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749   cat >conftest.$ac_ext <<_ACEOF
4750 /* confdefs.h.  */
4751 _ACEOF
4752 cat confdefs.h >>conftest.$ac_ext
4753 cat >>conftest.$ac_ext <<_ACEOF
4754 /* end confdefs.h.  */
4755
4756 int
4757 main ()
4758 {
4759
4760   ;
4761   return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4766   (eval $ac_compile) 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } &&
4773          { ac_try='test -z "$ac_c_werror_flag"
4774                          || test ! -s conftest.err'
4775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776   (eval $ac_try) 2>&5
4777   ac_status=$?
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); }; } &&
4780          { ac_try='test -s conftest.$ac_objext'
4781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782   (eval $ac_try) 2>&5
4783   ac_status=$?
4784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785   (exit $ac_status); }; }; then
4786   ac_cv_prog_cc_g=yes
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_cv_prog_cc_g=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794 fi
4795 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4796 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4797 if test "$ac_test_CFLAGS" = set; then
4798   CFLAGS=$ac_save_CFLAGS
4799 elif test $ac_cv_prog_cc_g = yes; then
4800   if test "$GCC" = yes; then
4801     CFLAGS="-g -O2"
4802   else
4803     CFLAGS="-g"
4804   fi
4805 else
4806   if test "$GCC" = yes; then
4807     CFLAGS="-O2"
4808   else
4809     CFLAGS=
4810   fi
4811 fi
4812 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4813 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4814 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   ac_cv_prog_cc_stdc=no
4818 ac_save_CC=$CC
4819 cat >conftest.$ac_ext <<_ACEOF
4820 /* confdefs.h.  */
4821 _ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h.  */
4825 #include <stdarg.h>
4826 #include <stdio.h>
4827 #include <sys/types.h>
4828 #include <sys/stat.h>
4829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4830 struct buf { int x; };
4831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4832 static char *e (p, i)
4833      char **p;
4834      int i;
4835 {
4836   return p[i];
4837 }
4838 static char *f (char * (*g) (char **, int), char **p, ...)
4839 {
4840   char *s;
4841   va_list v;
4842   va_start (v,p);
4843   s = g (p, va_arg (v,int));
4844   va_end (v);
4845   return s;
4846 }
4847
4848 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4849    function prototypes and stuff, but not '\xHH' hex character constants.
4850    These don't provoke an error unfortunately, instead are silently treated
4851    as 'x'.  The following induces an error, until -std1 is added to get
4852    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4853    array size at least.  It's necessary to write '\x00'==0 to get something
4854    that's true only with -std1.  */
4855 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856
4857 int test (int i, double x);
4858 struct s1 {int (*f) (int a);};
4859 struct s2 {int (*f) (double a);};
4860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4861 int argc;
4862 char **argv;
4863 int
4864 main ()
4865 {
4866 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 # Don't try gcc -ansi; that turns off useful extensions and
4872 # breaks some systems' header files.
4873 # AIX                   -qlanglvl=ansi
4874 # Ultrix and OSF/1      -std1
4875 # HP-UX 10.20 and later -Ae
4876 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4877 # SVR4                  -Xc -D__EXTENSIONS__
4878 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4879 do
4880   CC="$ac_save_CC $ac_arg"
4881   rm -f conftest.$ac_objext
4882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4883   (eval $ac_compile) 2>conftest.er1
4884   ac_status=$?
4885   grep -v '^ *+' conftest.er1 >conftest.err
4886   rm -f conftest.er1
4887   cat conftest.err >&5
4888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889   (exit $ac_status); } &&
4890          { ac_try='test -z "$ac_c_werror_flag"
4891                          || test ! -s conftest.err'
4892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893   (eval $ac_try) 2>&5
4894   ac_status=$?
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); }; } &&
4897          { ac_try='test -s conftest.$ac_objext'
4898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899   (eval $ac_try) 2>&5
4900   ac_status=$?
4901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902   (exit $ac_status); }; }; then
4903   ac_cv_prog_cc_stdc=$ac_arg
4904 break
4905 else
4906   echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4908
4909 fi
4910 rm -f conftest.err conftest.$ac_objext
4911 done
4912 rm -f conftest.$ac_ext conftest.$ac_objext
4913 CC=$ac_save_CC
4914
4915 fi
4916
4917 case "x$ac_cv_prog_cc_stdc" in
4918   x|xno)
4919     echo "$as_me:$LINENO: result: none needed" >&5
4920 echo "${ECHO_T}none needed" >&6 ;;
4921   *)
4922     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4923 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4924     CC="$CC $ac_cv_prog_cc_stdc" ;;
4925 esac
4926
4927 # Some people use a C++ compiler to compile C.  Since we use `exit',
4928 # in C++ we need to declare it.  In case someone uses the same compiler
4929 # for both compiling C and C++ we need to have the C++ compiler decide
4930 # the declaration of exit, since it's the most demanding environment.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 #ifndef __cplusplus
4933   choke me
4934 #endif
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>conftest.er1
4939   ac_status=$?
4940   grep -v '^ *+' conftest.er1 >conftest.err
4941   rm -f conftest.er1
4942   cat conftest.err >&5
4943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944   (exit $ac_status); } &&
4945          { ac_try='test -z "$ac_c_werror_flag"
4946                          || test ! -s conftest.err'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; } &&
4952          { ac_try='test -s conftest.$ac_objext'
4953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4954   (eval $ac_try) 2>&5
4955   ac_status=$?
4956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); }; }; then
4958   for ac_declaration in \
4959    '' \
4960    'extern "C" void std::exit (int) throw (); using std::exit;' \
4961    'extern "C" void std::exit (int); using std::exit;' \
4962    'extern "C" void exit (int) throw ();' \
4963    'extern "C" void exit (int);' \
4964    'void exit (int);'
4965 do
4966   cat >conftest.$ac_ext <<_ACEOF
4967 /* confdefs.h.  */
4968 _ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h.  */
4972 $ac_declaration
4973 #include <stdlib.h>
4974 int
4975 main ()
4976 {
4977 exit (42);
4978   ;
4979   return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984   (eval $ac_compile) 2>conftest.er1
4985   ac_status=$?
4986   grep -v '^ *+' conftest.er1 >conftest.err
4987   rm -f conftest.er1
4988   cat conftest.err >&5
4989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990   (exit $ac_status); } &&
4991          { ac_try='test -z "$ac_c_werror_flag"
4992                          || test ! -s conftest.err'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   :
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 continue
5010 fi
5011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5012   cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h.  */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h.  */
5018 $ac_declaration
5019 int
5020 main ()
5021 {
5022 exit (42);
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029   (eval $ac_compile) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -z "$ac_c_werror_flag"
5037                          || test ! -s conftest.err'
5038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039   (eval $ac_try) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); }; } &&
5043          { ac_try='test -s conftest.$ac_objext'
5044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045   (eval $ac_try) 2>&5
5046   ac_status=$?
5047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048   (exit $ac_status); }; }; then
5049   break
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 fi
5055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5056 done
5057 rm -f conftest*
5058 if test -n "$ac_declaration"; then
5059   echo '#ifdef __cplusplus' >>confdefs.h
5060   echo $ac_declaration      >>confdefs.h
5061   echo '#endif'             >>confdefs.h
5062 fi
5063
5064 else
5065   echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075
5076 depcc="$CC"   am_compiler_list=
5077
5078 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5079 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5080 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084   # We make a subdir and do the tests there.  Otherwise we can end up
5085   # making bogus files that we don't know about and never remove.  For
5086   # instance it was reported that on HP-UX the gcc test will end up
5087   # making a dummy file named `D' -- because `-MD' means `put the output
5088   # in D'.
5089   mkdir conftest.dir
5090   # Copy depcomp to subdir because otherwise we won't find it if we're
5091   # using a relative directory.
5092   cp "$am_depcomp" conftest.dir
5093   cd conftest.dir
5094   # We will build objects and dependencies in a subdirectory because
5095   # it helps to detect inapplicable dependency modes.  For instance
5096   # both Tru64's cc and ICC support -MD to output dependencies as a
5097   # side effect of compilation, but ICC will put the dependencies in
5098   # the current directory while Tru64 will put them in the object
5099   # directory.
5100   mkdir sub
5101
5102   am_cv_CC_dependencies_compiler_type=none
5103   if test "$am_compiler_list" = ""; then
5104      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105   fi
5106   for depmode in $am_compiler_list; do
5107     # Setup a source with many dependencies, because some compilers
5108     # like to wrap large dependency lists on column 80 (with \), and
5109     # we should not choose a depcomp mode which is confused by this.
5110     #
5111     # We need to recreate these files for each test, as the compiler may
5112     # overwrite some of them when testing with obscure command lines.
5113     # This happens at least with the AIX C compiler.
5114     : > sub/conftest.c
5115     for i in 1 2 3 4 5 6; do
5116       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5117       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5118       # Solaris 8's {/usr,}/bin/sh.
5119       touch sub/conftst$i.h
5120     done
5121     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5122
5123     case $depmode in
5124     nosideeffect)
5125       # after this tag, mechanisms are not by side-effect, so they'll
5126       # only be used when explicitly requested
5127       if test "x$enable_dependency_tracking" = xyes; then
5128         continue
5129       else
5130         break
5131       fi
5132       ;;
5133     none) break ;;
5134     esac
5135     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5136     # mode.  It turns out that the SunPro C++ compiler does not properly
5137     # handle `-M -o', and we need to detect this.
5138     if depmode=$depmode \
5139        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5140        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5141        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5142          >/dev/null 2>conftest.err &&
5143        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5144        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5145        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5146       # icc doesn't choke on unknown options, it will just issue warnings
5147       # or remarks (even with -Werror).  So we grep stderr for any message
5148       # that says an option was ignored or not supported.
5149       # When given -MP, icc 7.0 and 7.1 complain thusly:
5150       #   icc: Command line warning: ignoring option '-M'; no argument required
5151       # The diagnosis changed in icc 8.0:
5152       #   icc: Command line remark: option '-MP' not supported
5153       if (grep 'ignoring option' conftest.err ||
5154           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5155         am_cv_CC_dependencies_compiler_type=$depmode
5156         break
5157       fi
5158     fi
5159   done
5160
5161   cd ..
5162   rm -rf conftest.dir
5163 else
5164   am_cv_CC_dependencies_compiler_type=none
5165 fi
5166
5167 fi
5168 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5169 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5170 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5171
5172
5173
5174 if
5175   test "x$enable_dependency_tracking" != xno \
5176   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5177   am__fastdepCC_TRUE=
5178   am__fastdepCC_FALSE='#'
5179 else
5180   am__fastdepCC_TRUE='#'
5181   am__fastdepCC_FALSE=
5182 fi
5183
5184
5185 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5186 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5187 if test "${lt_cv_path_SED+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   # Loop through the user's path and test for sed and gsed.
5191 # Then use that list of sed's as ones to test for truncation.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197   for lt_ac_prog in sed gsed; do
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5200         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5201       fi
5202     done
5203   done
5204 done
5205 lt_ac_max=0
5206 lt_ac_count=0
5207 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5208 # along with /bin/sed that truncates output.
5209 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5210   test ! -f $lt_ac_sed && continue
5211   cat /dev/null > conftest.in
5212   lt_ac_count=0
5213   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5214   # Check for GNU sed and select it if it is found.
5215   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5216     lt_cv_path_SED=$lt_ac_sed
5217     break
5218   fi
5219   while true; do
5220     cat conftest.in conftest.in >conftest.tmp
5221     mv conftest.tmp conftest.in
5222     cp conftest.in conftest.nl
5223     echo >>conftest.nl
5224     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5225     cmp -s conftest.out conftest.nl || break
5226     # 10000 chars as input seems more than enough
5227     test $lt_ac_count -gt 10 && break
5228     lt_ac_count=`expr $lt_ac_count + 1`
5229     if test $lt_ac_count -gt $lt_ac_max; then
5230       lt_ac_max=$lt_ac_count
5231       lt_cv_path_SED=$lt_ac_sed
5232     fi
5233   done
5234 done
5235
5236 fi
5237
5238 SED=$lt_cv_path_SED
5239 echo "$as_me:$LINENO: result: $SED" >&5
5240 echo "${ECHO_T}$SED" >&6
5241
5242 echo "$as_me:$LINENO: checking for egrep" >&5
5243 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5244 if test "${ac_cv_prog_egrep+set}" = set; then
5245   echo $ECHO_N "(cached) $ECHO_C" >&6
5246 else
5247   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5248     then ac_cv_prog_egrep='grep -E'
5249     else ac_cv_prog_egrep='egrep'
5250     fi
5251 fi
5252 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5253 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5254  EGREP=$ac_cv_prog_egrep
5255
5256
5257
5258 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5259 if test "${with_gnu_ld+set}" = set; then
5260   withval="$with_gnu_ld"
5261   test "$withval" = no || with_gnu_ld=yes
5262 else
5263   with_gnu_ld=no
5264 fi;
5265 ac_prog=ld
5266 if test "$GCC" = yes; then
5267   # Check if gcc -print-prog-name=ld gives a path.
5268   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5269 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5270   case $host in
5271   *-*-mingw*)
5272     # gcc leaves a trailing carriage return which upsets mingw
5273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5274   *)
5275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5276   esac
5277   case $ac_prog in
5278     # Accept absolute paths.
5279     [\\/]* | ?:[\\/]*)
5280       re_direlt='/[^/][^/]*/\.\./'
5281       # Canonicalize the pathname of ld
5282       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5283       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5284         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5285       done
5286       test -z "$LD" && LD="$ac_prog"
5287       ;;
5288   "")
5289     # If it fails, then pretend we aren't using GCC.
5290     ac_prog=ld
5291     ;;
5292   *)
5293     # If it is relative, then search for the first ld in PATH.
5294     with_gnu_ld=unknown
5295     ;;
5296   esac
5297 elif test "$with_gnu_ld" = yes; then
5298   echo "$as_me:$LINENO: checking for GNU ld" >&5
5299 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5300 else
5301   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5302 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5303 fi
5304 if test "${lt_cv_path_LD+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -z "$LD"; then
5308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5309   for ac_dir in $PATH; do
5310     IFS="$lt_save_ifs"
5311     test -z "$ac_dir" && ac_dir=.
5312     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5313       lt_cv_path_LD="$ac_dir/$ac_prog"
5314       # Check to see if the program is GNU ld.  I'd rather use --version,
5315       # but apparently some variants of GNU ld only accept -v.
5316       # Break only if it was the GNU/non-GNU ld that we prefer.
5317       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5318       *GNU* | *'with BFD'*)
5319         test "$with_gnu_ld" != no && break
5320         ;;
5321       *)
5322         test "$with_gnu_ld" != yes && break
5323         ;;
5324       esac
5325     fi
5326   done
5327   IFS="$lt_save_ifs"
5328 else
5329   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5330 fi
5331 fi
5332
5333 LD="$lt_cv_path_LD"
5334 if test -n "$LD"; then
5335   echo "$as_me:$LINENO: result: $LD" >&5
5336 echo "${ECHO_T}$LD" >&6
5337 else
5338   echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5343    { (exit 1); exit 1; }; }
5344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5346 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352   lt_cv_prog_gnu_ld=yes
5353   ;;
5354 *)
5355   lt_cv_prog_gnu_ld=no
5356   ;;
5357 esac
5358 fi
5359 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5360 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5361 with_gnu_ld=$lt_cv_prog_gnu_ld
5362
5363
5364 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5365 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5366 if test "${lt_cv_ld_reload_flag+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369   lt_cv_ld_reload_flag='-r'
5370 fi
5371 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5372 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5373 reload_flag=$lt_cv_ld_reload_flag
5374 case $reload_flag in
5375 "" | " "*) ;;
5376 *) reload_flag=" $reload_flag" ;;
5377 esac
5378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5379 case $host_os in
5380   darwin*)
5381     if test "$GCC" = yes; then
5382       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5383     else
5384       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5385     fi
5386     ;;
5387 esac
5388
5389 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5390 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5391 if test "${lt_cv_path_NM+set}" = set; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   if test -n "$NM"; then
5395   # Let the user override the test.
5396   lt_cv_path_NM="$NM"
5397 else
5398   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5399   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5400     IFS="$lt_save_ifs"
5401     test -z "$ac_dir" && ac_dir=.
5402     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5403     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5404       # Check to see if the nm accepts a BSD-compat flag.
5405       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5406       #   nm: unknown option "B" ignored
5407       # Tru64's nm complains that /dev/null is an invalid object file
5408       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5409       */dev/null* | *'Invalid file or object type'*)
5410         lt_cv_path_NM="$tmp_nm -B"
5411         break
5412         ;;
5413       *)
5414         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5415         */dev/null*)
5416           lt_cv_path_NM="$tmp_nm -p"
5417           break
5418           ;;
5419         *)
5420           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5421           continue # so that we can try to find one that supports BSD flags
5422           ;;
5423         esac
5424       esac
5425     fi
5426   done
5427   IFS="$lt_save_ifs"
5428   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5429 fi
5430 fi
5431 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5432 echo "${ECHO_T}$lt_cv_path_NM" >&6
5433 NM="$lt_cv_path_NM"
5434
5435 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5436 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5437 LN_S=$as_ln_s
5438 if test "$LN_S" = "ln -s"; then
5439   echo "$as_me:$LINENO: result: yes" >&5
5440 echo "${ECHO_T}yes" >&6
5441 else
5442   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5443 echo "${ECHO_T}no, using $LN_S" >&6
5444 fi
5445
5446 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5447 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5448 if test "${lt_cv_deplibs_check_method+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451   lt_cv_file_magic_cmd='$MAGIC_CMD'
5452 lt_cv_file_magic_test_file=
5453 lt_cv_deplibs_check_method='unknown'
5454 # Need to set the preceding variable on all platforms that support
5455 # interlibrary dependencies.
5456 # 'none' -- dependencies not supported.
5457 # `unknown' -- same as none, but documents that we really don't know.
5458 # 'pass_all' -- all dependencies passed with no checks.
5459 # 'test_compile' -- check by making test program.
5460 # 'file_magic [[regex]]' -- check by looking for files in library path
5461 # which responds to the $file_magic_cmd with a given extended regex.
5462 # If you have `file' or equivalent on your system and you're not sure
5463 # whether `pass_all' will *always* work, you probably want this one.
5464
5465 case $host_os in
5466 aix4* | aix5*)
5467   lt_cv_deplibs_check_method=pass_all
5468   ;;
5469
5470 beos*)
5471   lt_cv_deplibs_check_method=pass_all
5472   ;;
5473
5474 bsdi[45]*)
5475   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5476   lt_cv_file_magic_cmd='/usr/bin/file -L'
5477   lt_cv_file_magic_test_file=/shlib/libc.so
5478   ;;
5479
5480 cygwin*)
5481   # func_win32_libid is a shell function defined in ltmain.sh
5482   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5483   lt_cv_file_magic_cmd='func_win32_libid'
5484   ;;
5485
5486 mingw* | pw32*)
5487   # Base MSYS/MinGW do not provide the 'file' command needed by
5488   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5489   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5490   lt_cv_file_magic_cmd='$OBJDUMP -f'
5491   ;;
5492
5493 darwin* | rhapsody*)
5494   lt_cv_deplibs_check_method=pass_all
5495   ;;
5496
5497 freebsd* | kfreebsd*-gnu | dragonfly*)
5498   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5499     case $host_cpu in
5500     i*86 )
5501       # Not sure whether the presence of OpenBSD here was a mistake.
5502       # Let's accept both of them until this is cleared up.
5503       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5504       lt_cv_file_magic_cmd=/usr/bin/file
5505       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5506       ;;
5507     esac
5508   else
5509     lt_cv_deplibs_check_method=pass_all
5510   fi
5511   ;;
5512
5513 gnu*)
5514   lt_cv_deplibs_check_method=pass_all
5515   ;;
5516
5517 hpux10.20* | hpux11*)
5518   lt_cv_file_magic_cmd=/usr/bin/file
5519   case $host_cpu in
5520   ia64*)
5521     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5522     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5523     ;;
5524   hppa*64*)
5525     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]'
5526     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5527     ;;
5528   *)
5529     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5531     ;;
5532   esac
5533   ;;
5534
5535 irix5* | irix6* | nonstopux*)
5536   case $LD in
5537   *-32|*"-32 ") libmagic=32-bit;;
5538   *-n32|*"-n32 ") libmagic=N32;;
5539   *-64|*"-64 ") libmagic=64-bit;;
5540   *) libmagic=never-match;;
5541   esac
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 # This must be Linux ELF.
5546 linux*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 netbsd*)
5551   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5552     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5553   else
5554     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5555   fi
5556   ;;
5557
5558 newos6*)
5559   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5560   lt_cv_file_magic_cmd=/usr/bin/file
5561   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5562   ;;
5563
5564 nto-qnx*)
5565   lt_cv_deplibs_check_method=unknown
5566   ;;
5567
5568 openbsd*)
5569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5570     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5571   else
5572     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5573   fi
5574   ;;
5575
5576 osf3* | osf4* | osf5*)
5577   lt_cv_deplibs_check_method=pass_all
5578   ;;
5579
5580 sco3.2v5*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583
5584 solaris*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5589   case $host_vendor in
5590   motorola)
5591     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]'
5592     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5593     ;;
5594   ncr)
5595     lt_cv_deplibs_check_method=pass_all
5596     ;;
5597   sequent)
5598     lt_cv_file_magic_cmd='/bin/file'
5599     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5600     ;;
5601   sni)
5602     lt_cv_file_magic_cmd='/bin/file'
5603     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5604     lt_cv_file_magic_test_file=/lib/libc.so
5605     ;;
5606   siemens)
5607     lt_cv_deplibs_check_method=pass_all
5608     ;;
5609   esac
5610   ;;
5611
5612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5613   lt_cv_deplibs_check_method=pass_all
5614   ;;
5615 esac
5616
5617 fi
5618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5623
5624
5625
5626
5627 # If no C compiler was specified, use CC.
5628 LTCC=${LTCC-"$CC"}
5629
5630 # Allow CC to be a program name with arguments.
5631 compiler=$CC
5632
5633
5634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5635 if test "${enable_libtool_lock+set}" = set; then
5636   enableval="$enable_libtool_lock"
5637
5638 fi;
5639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5640
5641 # Some flags need to be propagated to the compiler or linker for good
5642 # libtool support.
5643 case $host in
5644 ia64-*-hpux*)
5645   # Find out which ABI we are using.
5646   echo 'int i;' > conftest.$ac_ext
5647   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648   (eval $ac_compile) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; then
5652     case `/usr/bin/file conftest.$ac_objext` in
5653     *ELF-32*)
5654       HPUX_IA64_MODE="32"
5655       ;;
5656     *ELF-64*)
5657       HPUX_IA64_MODE="64"
5658       ;;
5659     esac
5660   fi
5661   rm -rf conftest*
5662   ;;
5663 *-*-irix6*)
5664   # Find out which ABI we are using.
5665   echo '#line 5665 "configure"' > conftest.$ac_ext
5666   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667   (eval $ac_compile) 2>&5
5668   ac_status=$?
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); }; then
5671    if test "$lt_cv_prog_gnu_ld" = yes; then
5672     case `/usr/bin/file conftest.$ac_objext` in
5673     *32-bit*)
5674       LD="${LD-ld} -melf32bsmip"
5675       ;;
5676     *N32*)
5677       LD="${LD-ld} -melf32bmipn32"
5678       ;;
5679     *64-bit*)
5680       LD="${LD-ld} -melf64bmip"
5681       ;;
5682     esac
5683    else
5684     case `/usr/bin/file conftest.$ac_objext` in
5685     *32-bit*)
5686       LD="${LD-ld} -32"
5687       ;;
5688     *N32*)
5689       LD="${LD-ld} -n32"
5690       ;;
5691     *64-bit*)
5692       LD="${LD-ld} -64"
5693       ;;
5694     esac
5695    fi
5696   fi
5697   rm -rf conftest*
5698   ;;
5699
5700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5701   # Find out which ABI we are using.
5702   echo 'int i;' > conftest.$ac_ext
5703   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5704   (eval $ac_compile) 2>&5
5705   ac_status=$?
5706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707   (exit $ac_status); }; then
5708     case `/usr/bin/file conftest.o` in
5709     *32-bit*)
5710       case $host in
5711         x86_64-*linux*)
5712           LD="${LD-ld} -m elf_i386"
5713           ;;
5714         ppc64-*linux*|powerpc64-*linux*)
5715           LD="${LD-ld} -m elf32ppclinux"
5716           ;;
5717         s390x-*linux*)
5718           LD="${LD-ld} -m elf_s390"
5719           ;;
5720         sparc64-*linux*)
5721           LD="${LD-ld} -m elf32_sparc"
5722           ;;
5723       esac
5724       ;;
5725     *64-bit*)
5726       case $host in
5727         x86_64-*linux*)
5728           LD="${LD-ld} -m elf_x86_64"
5729           ;;
5730         ppc*-*linux*|powerpc*-*linux*)
5731           LD="${LD-ld} -m elf64ppc"
5732           ;;
5733         s390*-*linux*)
5734           LD="${LD-ld} -m elf64_s390"
5735           ;;
5736         sparc*-*linux*)
5737           LD="${LD-ld} -m elf64_sparc"
5738           ;;
5739       esac
5740       ;;
5741     esac
5742   fi
5743   rm -rf conftest*
5744   ;;
5745
5746 *-*-sco3.2v5*)
5747   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5748   SAVE_CFLAGS="$CFLAGS"
5749   CFLAGS="$CFLAGS -belf"
5750   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5752 if test "${lt_cv_cc_needs_belf+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_ext=c
5756 ac_cpp='$CPP $CPPFLAGS'
5757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5760
5761      cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767
5768 int
5769 main ()
5770 {
5771
5772   ;
5773   return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext conftest$ac_exeext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5778   (eval $ac_link) 2>conftest.er1
5779   ac_status=$?
5780   grep -v '^ *+' conftest.er1 >conftest.err
5781   rm -f conftest.er1
5782   cat conftest.err >&5
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -z "$ac_c_werror_flag"
5786                          || test ! -s conftest.err'
5787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788   (eval $ac_try) 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; } &&
5792          { ac_try='test -s conftest$ac_exeext'
5793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794   (eval $ac_try) 2>&5
5795   ac_status=$?
5796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797   (exit $ac_status); }; }; then
5798   lt_cv_cc_needs_belf=yes
5799 else
5800   echo "$as_me: failed program was:" >&5
5801 sed 's/^/| /' conftest.$ac_ext >&5
5802
5803 lt_cv_cc_needs_belf=no
5804 fi
5805 rm -f conftest.err conftest.$ac_objext \
5806       conftest$ac_exeext conftest.$ac_ext
5807      ac_ext=c
5808 ac_cpp='$CPP $CPPFLAGS'
5809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812
5813 fi
5814 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5815 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5816   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5817     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5818     CFLAGS="$SAVE_CFLAGS"
5819   fi
5820   ;;
5821 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5822   if test -n "$ac_tool_prefix"; then
5823   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5824 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5825 echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5827 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   if test -n "$DLLTOOL"; then
5831   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5832 else
5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 for as_dir in $PATH
5835 do
5836   IFS=$as_save_IFS
5837   test -z "$as_dir" && as_dir=.
5838   for ac_exec_ext in '' $ac_executable_extensions; do
5839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5841     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5842     break 2
5843   fi
5844 done
5845 done
5846
5847 fi
5848 fi
5849 DLLTOOL=$ac_cv_prog_DLLTOOL
5850 if test -n "$DLLTOOL"; then
5851   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5852 echo "${ECHO_T}$DLLTOOL" >&6
5853 else
5854   echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6
5856 fi
5857
5858 fi
5859 if test -z "$ac_cv_prog_DLLTOOL"; then
5860   ac_ct_DLLTOOL=$DLLTOOL
5861   # Extract the first word of "dlltool", so it can be a program name with args.
5862 set dummy dlltool; ac_word=$2
5863 echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5865 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$ac_ct_DLLTOOL"; then
5869   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884
5885   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5886 fi
5887 fi
5888 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5889 if test -n "$ac_ct_DLLTOOL"; then
5890   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5891 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5892 else
5893   echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6
5895 fi
5896
5897   DLLTOOL=$ac_ct_DLLTOOL
5898 else
5899   DLLTOOL="$ac_cv_prog_DLLTOOL"
5900 fi
5901
5902   if test -n "$ac_tool_prefix"; then
5903   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}as; ac_word=$2
5905 echo "$as_me:$LINENO: checking for $ac_word" >&5
5906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5907 if test "${ac_cv_prog_AS+set}" = set; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   if test -n "$AS"; then
5911   ac_cv_prog_AS="$AS" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916   IFS=$as_save_IFS
5917   test -z "$as_dir" && as_dir=.
5918   for ac_exec_ext in '' $ac_executable_extensions; do
5919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920     ac_cv_prog_AS="${ac_tool_prefix}as"
5921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922     break 2
5923   fi
5924 done
5925 done
5926
5927 fi
5928 fi
5929 AS=$ac_cv_prog_AS
5930 if test -n "$AS"; then
5931   echo "$as_me:$LINENO: result: $AS" >&5
5932 echo "${ECHO_T}$AS" >&6
5933 else
5934   echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6
5936 fi
5937
5938 fi
5939 if test -z "$ac_cv_prog_AS"; then
5940   ac_ct_AS=$AS
5941   # Extract the first word of "as", so it can be a program name with args.
5942 set dummy as; ac_word=$2
5943 echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5945 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_AS"; then
5949   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5958     ac_cv_prog_ac_ct_AS="as"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964
5965   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5966 fi
5967 fi
5968 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5969 if test -n "$ac_ct_AS"; then
5970   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5971 echo "${ECHO_T}$ac_ct_AS" >&6
5972 else
5973   echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6
5975 fi
5976
5977   AS=$ac_ct_AS
5978 else
5979   AS="$ac_cv_prog_AS"
5980 fi
5981
5982   if test -n "$ac_tool_prefix"; then
5983   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5984 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5985 echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5987 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   if test -n "$OBJDUMP"; then
5991   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996   IFS=$as_save_IFS
5997   test -z "$as_dir" && as_dir=.
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002     break 2
6003   fi
6004 done
6005 done
6006
6007 fi
6008 fi
6009 OBJDUMP=$ac_cv_prog_OBJDUMP
6010 if test -n "$OBJDUMP"; then
6011   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6012 echo "${ECHO_T}$OBJDUMP" >&6
6013 else
6014   echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 fi
6017
6018 fi
6019 if test -z "$ac_cv_prog_OBJDUMP"; then
6020   ac_ct_OBJDUMP=$OBJDUMP
6021   # Extract the first word of "objdump", so it can be a program name with args.
6022 set dummy objdump; ac_word=$2
6023 echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6025 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6026   echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028   if test -n "$ac_ct_OBJDUMP"; then
6029   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034   IFS=$as_save_IFS
6035   test -z "$as_dir" && as_dir=.
6036   for ac_exec_ext in '' $ac_executable_extensions; do
6037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040     break 2
6041   fi
6042 done
6043 done
6044
6045   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6046 fi
6047 fi
6048 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6049 if test -n "$ac_ct_OBJDUMP"; then
6050   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6051 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6052 else
6053   echo "$as_me:$LINENO: result: no" >&5
6054 echo "${ECHO_T}no" >&6
6055 fi
6056
6057   OBJDUMP=$ac_ct_OBJDUMP
6058 else
6059   OBJDUMP="$ac_cv_prog_OBJDUMP"
6060 fi
6061
6062   ;;
6063
6064 esac
6065
6066 need_locks="$enable_libtool_lock"
6067
6068
6069 ac_ext=c
6070 ac_cpp='$CPP $CPPFLAGS'
6071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6074 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6075 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6076 # On Suns, sometimes $CPP names a directory.
6077 if test -n "$CPP" && test -d "$CPP"; then
6078   CPP=
6079 fi
6080 if test -z "$CPP"; then
6081   if test "${ac_cv_prog_CPP+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084       # Double quotes because CPP needs to be expanded
6085     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6086     do
6087       ac_preproc_ok=false
6088 for ac_c_preproc_warn_flag in '' yes
6089 do
6090   # Use a header file that comes with gcc, so configuring glibc
6091   # with a fresh cross-compiler works.
6092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6093   # <limits.h> exists even on freestanding compilers.
6094   # On the NeXT, cc -E runs the code through the compiler's parser,
6095   # not just through cpp. "Syntax error" is here to catch this case.
6096   cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 #ifdef __STDC__
6103 # include <limits.h>
6104 #else
6105 # include <assert.h>
6106 #endif
6107                      Syntax error
6108 _ACEOF
6109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6111   ac_status=$?
6112   grep -v '^ *+' conftest.er1 >conftest.err
6113   rm -f conftest.er1
6114   cat conftest.err >&5
6115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116   (exit $ac_status); } >/dev/null; then
6117   if test -s conftest.err; then
6118     ac_cpp_err=$ac_c_preproc_warn_flag
6119     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6120   else
6121     ac_cpp_err=
6122   fi
6123 else
6124   ac_cpp_err=yes
6125 fi
6126 if test -z "$ac_cpp_err"; then
6127   :
6128 else
6129   echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132   # Broken: fails on valid input.
6133 continue
6134 fi
6135 rm -f conftest.err conftest.$ac_ext
6136
6137   # OK, works on sane cases.  Now check whether non-existent headers
6138   # can be detected and how.
6139   cat >conftest.$ac_ext <<_ACEOF
6140 /* confdefs.h.  */
6141 _ACEOF
6142 cat confdefs.h >>conftest.$ac_ext
6143 cat >>conftest.$ac_ext <<_ACEOF
6144 /* end confdefs.h.  */
6145 #include <ac_nonexistent.h>
6146 _ACEOF
6147 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6148   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6149   ac_status=$?
6150   grep -v '^ *+' conftest.er1 >conftest.err
6151   rm -f conftest.er1
6152   cat conftest.err >&5
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); } >/dev/null; then
6155   if test -s conftest.err; then
6156     ac_cpp_err=$ac_c_preproc_warn_flag
6157     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6158   else
6159     ac_cpp_err=
6160   fi
6161 else
6162   ac_cpp_err=yes
6163 fi
6164 if test -z "$ac_cpp_err"; then
6165   # Broken: success on invalid input.
6166 continue
6167 else
6168   echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6170
6171   # Passes both tests.
6172 ac_preproc_ok=:
6173 break
6174 fi
6175 rm -f conftest.err conftest.$ac_ext
6176
6177 done
6178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6179 rm -f conftest.err conftest.$ac_ext
6180 if $ac_preproc_ok; then
6181   break
6182 fi
6183
6184     done
6185     ac_cv_prog_CPP=$CPP
6186
6187 fi
6188   CPP=$ac_cv_prog_CPP
6189 else
6190   ac_cv_prog_CPP=$CPP
6191 fi
6192 echo "$as_me:$LINENO: result: $CPP" >&5
6193 echo "${ECHO_T}$CPP" >&6
6194 ac_preproc_ok=false
6195 for ac_c_preproc_warn_flag in '' yes
6196 do
6197   # Use a header file that comes with gcc, so configuring glibc
6198   # with a fresh cross-compiler works.
6199   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6200   # <limits.h> exists even on freestanding compilers.
6201   # On the NeXT, cc -E runs the code through the compiler's parser,
6202   # not just through cpp. "Syntax error" is here to catch this case.
6203   cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h.  */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h.  */
6209 #ifdef __STDC__
6210 # include <limits.h>
6211 #else
6212 # include <assert.h>
6213 #endif
6214                      Syntax error
6215 _ACEOF
6216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6217   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6218   ac_status=$?
6219   grep -v '^ *+' conftest.er1 >conftest.err
6220   rm -f conftest.er1
6221   cat conftest.err >&5
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); } >/dev/null; then
6224   if test -s conftest.err; then
6225     ac_cpp_err=$ac_c_preproc_warn_flag
6226     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6227   else
6228     ac_cpp_err=
6229   fi
6230 else
6231   ac_cpp_err=yes
6232 fi
6233 if test -z "$ac_cpp_err"; then
6234   :
6235 else
6236   echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6238
6239   # Broken: fails on valid input.
6240 continue
6241 fi
6242 rm -f conftest.err conftest.$ac_ext
6243
6244   # OK, works on sane cases.  Now check whether non-existent headers
6245   # can be detected and how.
6246   cat >conftest.$ac_ext <<_ACEOF
6247 /* confdefs.h.  */
6248 _ACEOF
6249 cat confdefs.h >>conftest.$ac_ext
6250 cat >>conftest.$ac_ext <<_ACEOF
6251 /* end confdefs.h.  */
6252 #include <ac_nonexistent.h>
6253 _ACEOF
6254 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6255   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6256   ac_status=$?
6257   grep -v '^ *+' conftest.er1 >conftest.err
6258   rm -f conftest.er1
6259   cat conftest.err >&5
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); } >/dev/null; then
6262   if test -s conftest.err; then
6263     ac_cpp_err=$ac_c_preproc_warn_flag
6264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6265   else
6266     ac_cpp_err=
6267   fi
6268 else
6269   ac_cpp_err=yes
6270 fi
6271 if test -z "$ac_cpp_err"; then
6272   # Broken: success on invalid input.
6273 continue
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278   # Passes both tests.
6279 ac_preproc_ok=:
6280 break
6281 fi
6282 rm -f conftest.err conftest.$ac_ext
6283
6284 done
6285 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6286 rm -f conftest.err conftest.$ac_ext
6287 if $ac_preproc_ok; then
6288   :
6289 else
6290   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6291 See \`config.log' for more details." >&5
6292 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6293 See \`config.log' for more details." >&2;}
6294    { (exit 1); exit 1; }; }
6295 fi
6296
6297 ac_ext=c
6298 ac_cpp='$CPP $CPPFLAGS'
6299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6302
6303
6304 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6305 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6306 if test "${ac_cv_header_stdc+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 #include <stdlib.h>
6316 #include <stdarg.h>
6317 #include <string.h>
6318 #include <float.h>
6319
6320 int
6321 main ()
6322 {
6323
6324   ;
6325   return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6330   (eval $ac_compile) 2>conftest.er1
6331   ac_status=$?
6332   grep -v '^ *+' conftest.er1 >conftest.err
6333   rm -f conftest.er1
6334   cat conftest.err >&5
6335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336   (exit $ac_status); } &&
6337          { ac_try='test -z "$ac_c_werror_flag"
6338                          || test ! -s conftest.err'
6339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340   (eval $ac_try) 2>&5
6341   ac_status=$?
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); }; } &&
6344          { ac_try='test -s conftest.$ac_objext'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }; then
6350   ac_cv_header_stdc=yes
6351 else
6352   echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6354
6355 ac_cv_header_stdc=no
6356 fi
6357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6358
6359 if test $ac_cv_header_stdc = yes; then
6360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6361   cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 #include <string.h>
6368
6369 _ACEOF
6370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6371   $EGREP "memchr" >/dev/null 2>&1; then
6372   :
6373 else
6374   ac_cv_header_stdc=no
6375 fi
6376 rm -f conftest*
6377
6378 fi
6379
6380 if test $ac_cv_header_stdc = yes; then
6381   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6382   cat >conftest.$ac_ext <<_ACEOF
6383 /* confdefs.h.  */
6384 _ACEOF
6385 cat confdefs.h >>conftest.$ac_ext
6386 cat >>conftest.$ac_ext <<_ACEOF
6387 /* end confdefs.h.  */
6388 #include <stdlib.h>
6389
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392   $EGREP "free" >/dev/null 2>&1; then
6393   :
6394 else
6395   ac_cv_header_stdc=no
6396 fi
6397 rm -f conftest*
6398
6399 fi
6400
6401 if test $ac_cv_header_stdc = yes; then
6402   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6403   if test "$cross_compiling" = yes; then
6404   :
6405 else
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <ctype.h>
6413 #if ((' ' & 0x0FF) == 0x020)
6414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6416 #else
6417 # define ISLOWER(c) \
6418                    (('a' <= (c) && (c) <= 'i') \
6419                      || ('j' <= (c) && (c) <= 'r') \
6420                      || ('s' <= (c) && (c) <= 'z'))
6421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6422 #endif
6423
6424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6425 int
6426 main ()
6427 {
6428   int i;
6429   for (i = 0; i < 256; i++)
6430     if (XOR (islower (i), ISLOWER (i))
6431         || toupper (i) != TOUPPER (i))
6432       exit(2);
6433   exit (0);
6434 }
6435 _ACEOF
6436 rm -f conftest$ac_exeext
6437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6438   (eval $ac_link) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   :
6448 else
6449   echo "$as_me: program exited with status $ac_status" >&5
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ( exit $ac_status )
6454 ac_cv_header_stdc=no
6455 fi
6456 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6457 fi
6458 fi
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6461 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6462 if test $ac_cv_header_stdc = yes; then
6463
6464 cat >>confdefs.h <<\_ACEOF
6465 #define STDC_HEADERS 1
6466 _ACEOF
6467
6468 fi
6469
6470 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6481                   inttypes.h stdint.h unistd.h
6482 do
6483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6484 echo "$as_me:$LINENO: checking for $ac_header" >&5
6485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 $ac_includes_default
6496
6497 #include <$ac_header>
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501   (eval $ac_compile) 2>conftest.er1
6502   ac_status=$?
6503   grep -v '^ *+' conftest.er1 >conftest.err
6504   rm -f conftest.er1
6505   cat conftest.err >&5
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); } &&
6508          { ac_try='test -z "$ac_c_werror_flag"
6509                          || test ! -s conftest.err'
6510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511   (eval $ac_try) 2>&5
6512   ac_status=$?
6513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514   (exit $ac_status); }; } &&
6515          { ac_try='test -s conftest.$ac_objext'
6516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517   (eval $ac_try) 2>&5
6518   ac_status=$?
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); }; }; then
6521   eval "$as_ac_Header=yes"
6522 else
6523   echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 eval "$as_ac_Header=no"
6527 fi
6528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529 fi
6530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541
6542
6543 for ac_header in dlfcn.h
6544 do
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6547   echo "$as_me:$LINENO: checking for $ac_header" >&5
6548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6550   echo $ECHO_N "(cached) $ECHO_C" >&6
6551 fi
6552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6554 else
6555   # Is the header compilable?
6556 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6557 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564 $ac_includes_default
6565 #include <$ac_header>
6566 _ACEOF
6567 rm -f conftest.$ac_objext
6568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6569   (eval $ac_compile) 2>conftest.er1
6570   ac_status=$?
6571   grep -v '^ *+' conftest.er1 >conftest.err
6572   rm -f conftest.er1
6573   cat conftest.err >&5
6574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575   (exit $ac_status); } &&
6576          { ac_try='test -z "$ac_c_werror_flag"
6577                          || test ! -s conftest.err'
6578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579   (eval $ac_try) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); }; } &&
6583          { ac_try='test -s conftest.$ac_objext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   ac_header_compiler=yes
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_compiler=no
6595 fi
6596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6599
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h.  */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h.  */
6609 #include <$ac_header>
6610 _ACEOF
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } >/dev/null; then
6619   if test -s conftest.err; then
6620     ac_cpp_err=$ac_c_preproc_warn_flag
6621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6622   else
6623     ac_cpp_err=
6624   fi
6625 else
6626   ac_cpp_err=yes
6627 fi
6628 if test -z "$ac_cpp_err"; then
6629   ac_header_preproc=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634   ac_header_preproc=no
6635 fi
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6639
6640 # So?  What about this header?
6641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6642   yes:no: )
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6647     ac_header_preproc=yes
6648     ;;
6649   no:yes:* )
6650     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6651 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6652     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6653 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6654     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6655 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6656     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6657 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6658     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6660     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6661 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6662     (
6663       cat <<\_ASBOX
6664 ## --------------------------------------------- ##
6665 ## Report this to <http://www.openldap.org/its/> ##
6666 ## --------------------------------------------- ##
6667 _ASBOX
6668     ) |
6669       sed "s/^/$as_me: WARNING:     /" >&2
6670     ;;
6671 esac
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   eval "$as_ac_Header=\$ac_header_preproc"
6678 fi
6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6681
6682 fi
6683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684   cat >>confdefs.h <<_ACEOF
6685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6686 _ACEOF
6687
6688 fi
6689
6690 done
6691
6692
6693 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6694
6695 # find the maximum length of command line arguments
6696 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6697 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6698 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701     i=0
6702   teststring="ABCD"
6703
6704   case $build_os in
6705   msdosdjgpp*)
6706     # On DJGPP, this test can blow up pretty badly due to problems in libc
6707     # (any single argument exceeding 2000 bytes causes a buffer overrun
6708     # during glob expansion).  Even if it were fixed, the result of this
6709     # check would be larger than it should be.
6710     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6711     ;;
6712
6713   gnu*)
6714     # Under GNU Hurd, this test is not required because there is
6715     # no limit to the length of command line arguments.
6716     # Libtool will interpret -1 as no limit whatsoever
6717     lt_cv_sys_max_cmd_len=-1;
6718     ;;
6719
6720   cygwin* | mingw*)
6721     # On Win9x/ME, this test blows up -- it succeeds, but takes
6722     # about 5 minutes as the teststring grows exponentially.
6723     # Worse, since 9x/ME are not pre-emptively multitasking,
6724     # you end up with a "frozen" computer, even though with patience
6725     # the test eventually succeeds (with a max line length of 256k).
6726     # Instead, let's just punt: use the minimum linelength reported by
6727     # all of the supported platforms: 8192 (on NT/2K/XP).
6728     lt_cv_sys_max_cmd_len=8192;
6729     ;;
6730
6731   amigaos*)
6732     # On AmigaOS with pdksh, this test takes hours, literally.
6733     # So we just punt and use a minimum line length of 8192.
6734     lt_cv_sys_max_cmd_len=8192;
6735     ;;
6736
6737   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6738     # This has been around since 386BSD, at least.  Likely further.
6739     if test -x /sbin/sysctl; then
6740       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6741     elif test -x /usr/sbin/sysctl; then
6742       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6743     else
6744       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6745     fi
6746     # And add a safety zone
6747     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6748     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6749     ;;
6750   osf*)
6751     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6752     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6753     # nice to cause kernel panics so lets avoid the loop below.
6754     # First set a reasonable default.
6755     lt_cv_sys_max_cmd_len=16384
6756     #
6757     if test -x /sbin/sysconfig; then
6758       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6759         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6760       esac
6761     fi
6762     ;;
6763   *)
6764     # If test is not a shell built-in, we'll probably end up computing a
6765     # maximum length that is only half of the actual maximum length, but
6766     # we can't tell.
6767     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6768     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6769                = "XX$teststring") >/dev/null 2>&1 &&
6770             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6771             lt_cv_sys_max_cmd_len=$new_result &&
6772             test $i != 17 # 1/2 MB should be enough
6773     do
6774       i=`expr $i + 1`
6775       teststring=$teststring$teststring
6776     done
6777     teststring=
6778     # Add a significant safety factor because C++ compilers can tack on massive
6779     # amounts of additional arguments before passing them to the linker.
6780     # It appears as though 1/2 is a usable value.
6781     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6782     ;;
6783   esac
6784
6785 fi
6786
6787 if test -n $lt_cv_sys_max_cmd_len ; then
6788   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6789 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6790 else
6791   echo "$as_me:$LINENO: result: none" >&5
6792 echo "${ECHO_T}none" >&6
6793 fi
6794
6795
6796
6797
6798 # Check for command to grab the raw symbol name followed by C symbol from nm.
6799 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6800 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6801 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6802   echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804
6805 # These are sane defaults that work on at least a few old systems.
6806 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6807
6808 # Character class describing NM global symbol codes.
6809 symcode='[BCDEGRST]'
6810
6811 # Regexp to match symbols that can be accessed directly from C.
6812 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6813
6814 # Transform an extracted symbol line into a proper C declaration
6815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6816
6817 # Transform an extracted symbol line into symbol name and symbol address
6818 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'"
6819
6820 # Define system-specific variables.
6821 case $host_os in
6822 aix*)
6823   symcode='[BCDT]'
6824   ;;
6825 cygwin* | mingw* | pw32*)
6826   symcode='[ABCDGISTW]'
6827   ;;
6828 hpux*) # Its linker distinguishes data from code symbols
6829   if test "$host_cpu" = ia64; then
6830     symcode='[ABCDEGRST]'
6831   fi
6832   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833   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'"
6834   ;;
6835 linux*)
6836   if test "$host_cpu" = ia64; then
6837     symcode='[ABCDGIRSTW]'
6838     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6839     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'"
6840   fi
6841   ;;
6842 irix* | nonstopux*)
6843   symcode='[BCDEGRST]'
6844   ;;
6845 osf*)
6846   symcode='[BCDEGQRST]'
6847   ;;
6848 solaris* | sysv5*)
6849   symcode='[BDRT]'
6850   ;;
6851 sysv4)
6852   symcode='[DFNSTU]'
6853   ;;
6854 esac
6855
6856 # Handle CRLF in mingw tool chain
6857 opt_cr=
6858 case $build_os in
6859 mingw*)
6860   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6861   ;;
6862 esac
6863
6864 # If we're using GNU nm, then use its standard symbol codes.
6865 case `$NM -V 2>&1` in
6866 *GNU* | *'with BFD'*)
6867   symcode='[ABCDGIRSTW]' ;;
6868 esac
6869
6870 # Try without a prefix undercore, then with it.
6871 for ac_symprfx in "" "_"; do
6872
6873   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6874   symxfrm="\\1 $ac_symprfx\\2 \\2"
6875
6876   # Write the raw and C identifiers.
6877   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6878
6879   # Check to see that the pipe works correctly.
6880   pipe_works=no
6881
6882   rm -f conftest*
6883   cat > conftest.$ac_ext <<EOF
6884 #ifdef __cplusplus
6885 extern "C" {
6886 #endif
6887 char nm_test_var;
6888 void nm_test_func(){}
6889 #ifdef __cplusplus
6890 }
6891 #endif
6892 int main(){nm_test_var='a';nm_test_func();return(0);}
6893 EOF
6894
6895   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6896   (eval $ac_compile) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; then
6900     # Now try to grab the symbols.
6901     nlist=conftest.nm
6902     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6903   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && test -s "$nlist"; then
6907       # Try sorting and uniquifying the output.
6908       if sort "$nlist" | uniq > "$nlist"T; then
6909         mv -f "$nlist"T "$nlist"
6910       else
6911         rm -f "$nlist"T
6912       fi
6913
6914       # Make sure that we snagged all the symbols we need.
6915       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6916         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6917           cat <<EOF > conftest.$ac_ext
6918 #ifdef __cplusplus
6919 extern "C" {
6920 #endif
6921
6922 EOF
6923           # Now generate the symbol file.
6924           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6925
6926           cat <<EOF >> conftest.$ac_ext
6927 #if defined (__STDC__) && __STDC__
6928 # define lt_ptr_t void *
6929 #else
6930 # define lt_ptr_t char *
6931 # define const
6932 #endif
6933
6934 /* The mapping between symbol names and symbols. */
6935 const struct {
6936   const char *name;
6937   lt_ptr_t address;
6938 }
6939 lt_preloaded_symbols[] =
6940 {
6941 EOF
6942           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6943           cat <<\EOF >> conftest.$ac_ext
6944   {0, (lt_ptr_t) 0}
6945 };
6946
6947 #ifdef __cplusplus
6948 }
6949 #endif
6950 EOF
6951           # Now try linking the two files.
6952           mv conftest.$ac_objext conftstm.$ac_objext
6953           lt_save_LIBS="$LIBS"
6954           lt_save_CFLAGS="$CFLAGS"
6955           LIBS="conftstm.$ac_objext"
6956           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6958   (eval $ac_link) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6962             pipe_works=yes
6963           fi
6964           LIBS="$lt_save_LIBS"
6965           CFLAGS="$lt_save_CFLAGS"
6966         else
6967           echo "cannot find nm_test_func in $nlist" >&5
6968         fi
6969       else
6970         echo "cannot find nm_test_var in $nlist" >&5
6971       fi
6972     else
6973       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6974     fi
6975   else
6976     echo "$progname: failed program was:" >&5
6977     cat conftest.$ac_ext >&5
6978   fi
6979   rm -f conftest* conftst*
6980
6981   # Do not use the global_symbol_pipe unless it works.
6982   if test "$pipe_works" = yes; then
6983     break
6984   else
6985     lt_cv_sys_global_symbol_pipe=
6986   fi
6987 done
6988
6989 fi
6990
6991 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992   lt_cv_sys_global_symbol_to_cdecl=
6993 fi
6994 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995   echo "$as_me:$LINENO: result: failed" >&5
6996 echo "${ECHO_T}failed" >&6
6997 else
6998   echo "$as_me:$LINENO: result: ok" >&5
6999 echo "${ECHO_T}ok" >&6
7000 fi
7001
7002 echo "$as_me:$LINENO: checking for objdir" >&5
7003 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7004 if test "${lt_cv_objdir+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   rm -f .libs 2>/dev/null
7008 mkdir .libs 2>/dev/null
7009 if test -d .libs; then
7010   lt_cv_objdir=.libs
7011 else
7012   # MS-DOS does not allow filenames that begin with a dot.
7013   lt_cv_objdir=_libs
7014 fi
7015 rmdir .libs 2>/dev/null
7016 fi
7017 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7018 echo "${ECHO_T}$lt_cv_objdir" >&6
7019 objdir=$lt_cv_objdir
7020
7021
7022
7023
7024
7025 case $host_os in
7026 aix3*)
7027   # AIX sometimes has problems with the GCC collect2 program.  For some
7028   # reason, if we set the COLLECT_NAMES environment variable, the problems
7029   # vanish in a puff of smoke.
7030   if test "X${COLLECT_NAMES+set}" != Xset; then
7031     COLLECT_NAMES=
7032     export COLLECT_NAMES
7033   fi
7034   ;;
7035 esac
7036
7037 # Sed substitution that helps us do robust quoting.  It backslashifies
7038 # metacharacters that are still active within double-quoted strings.
7039 Xsed='sed -e 1s/^X//'
7040 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7041
7042 # Same as above, but do not quote variable references.
7043 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7044
7045 # Sed substitution to delay expansion of an escaped shell variable in a
7046 # double_quote_subst'ed string.
7047 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7048
7049 # Sed substitution to avoid accidental globbing in evaled expressions
7050 no_glob_subst='s/\*/\\\*/g'
7051
7052 # Constants:
7053 rm="rm -f"
7054
7055 # Global variables:
7056 default_ofile=libtool
7057 can_build_shared=yes
7058
7059 # All known linkers require a `.a' archive for static linking (except MSVC,
7060 # which needs '.lib').
7061 libext=a
7062 ltmain="$ac_aux_dir/ltmain.sh"
7063 ofile="$default_ofile"
7064 with_gnu_ld="$lt_cv_prog_gnu_ld"
7065
7066 if test -n "$ac_tool_prefix"; then
7067   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7068 set dummy ${ac_tool_prefix}ar; ac_word=$2
7069 echo "$as_me:$LINENO: checking for $ac_word" >&5
7070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7071 if test "${ac_cv_prog_AR+set}" = set; then
7072   echo $ECHO_N "(cached) $ECHO_C" >&6
7073 else
7074   if test -n "$AR"; then
7075   ac_cv_prog_AR="$AR" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082   for ac_exec_ext in '' $ac_executable_extensions; do
7083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084     ac_cv_prog_AR="${ac_tool_prefix}ar"
7085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089 done
7090
7091 fi
7092 fi
7093 AR=$ac_cv_prog_AR
7094 if test -n "$AR"; then
7095   echo "$as_me:$LINENO: result: $AR" >&5
7096 echo "${ECHO_T}$AR" >&6
7097 else
7098   echo "$as_me:$LINENO: result: no" >&5
7099 echo "${ECHO_T}no" >&6
7100 fi
7101
7102 fi
7103 if test -z "$ac_cv_prog_AR"; then
7104   ac_ct_AR=$AR
7105   # Extract the first word of "ar", so it can be a program name with args.
7106 set dummy ar; ac_word=$2
7107 echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7109 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   if test -n "$ac_ct_AR"; then
7113   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_ac_ct_AR="ar"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128
7129   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7130 fi
7131 fi
7132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7133 if test -n "$ac_ct_AR"; then
7134   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7135 echo "${ECHO_T}$ac_ct_AR" >&6
7136 else
7137   echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6
7139 fi
7140
7141   AR=$ac_ct_AR
7142 else
7143   AR="$ac_cv_prog_AR"
7144 fi
7145
7146 if test -n "$ac_tool_prefix"; then
7147   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7149 echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151 if test "${ac_cv_prog_RANLIB+set}" = set; then
7152   echo $ECHO_N "(cached) $ECHO_C" >&6
7153 else
7154   if test -n "$RANLIB"; then
7155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170
7171 fi
7172 fi
7173 RANLIB=$ac_cv_prog_RANLIB
7174 if test -n "$RANLIB"; then
7175   echo "$as_me:$LINENO: result: $RANLIB" >&5
7176 echo "${ECHO_T}$RANLIB" >&6
7177 else
7178   echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6
7180 fi
7181
7182 fi
7183 if test -z "$ac_cv_prog_RANLIB"; then
7184   ac_ct_RANLIB=$RANLIB
7185   # Extract the first word of "ranlib", so it can be a program name with args.
7186 set dummy ranlib; ac_word=$2
7187 echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   if test -n "$ac_ct_RANLIB"; then
7193   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202     ac_cv_prog_ac_ct_RANLIB="ranlib"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208
7209   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7210 fi
7211 fi
7212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7213 if test -n "$ac_ct_RANLIB"; then
7214   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7215 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7216 else
7217   echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7219 fi
7220
7221   RANLIB=$ac_ct_RANLIB
7222 else
7223   RANLIB="$ac_cv_prog_RANLIB"
7224 fi
7225
7226 if test -n "$ac_tool_prefix"; then
7227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}strip; ac_word=$2
7229 echo "$as_me:$LINENO: checking for $ac_word" >&5
7230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7231 if test "${ac_cv_prog_STRIP+set}" = set; then
7232   echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234   if test -n "$STRIP"; then
7235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250
7251 fi
7252 fi
7253 STRIP=$ac_cv_prog_STRIP
7254 if test -n "$STRIP"; then
7255   echo "$as_me:$LINENO: result: $STRIP" >&5
7256 echo "${ECHO_T}$STRIP" >&6
7257 else
7258   echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7260 fi
7261
7262 fi
7263 if test -z "$ac_cv_prog_STRIP"; then
7264   ac_ct_STRIP=$STRIP
7265   # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   if test -n "$ac_ct_STRIP"; then
7273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   for ac_exec_ext in '' $ac_executable_extensions; do
7281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7282     ac_cv_prog_ac_ct_STRIP="strip"
7283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287 done
7288
7289   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7290 fi
7291 fi
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7295 echo "${ECHO_T}$ac_ct_STRIP" >&6
7296 else
7297   echo "$as_me:$LINENO: result: no" >&5
7298 echo "${ECHO_T}no" >&6
7299 fi
7300
7301   STRIP=$ac_ct_STRIP
7302 else
7303   STRIP="$ac_cv_prog_STRIP"
7304 fi
7305
7306
7307 old_CC="$CC"
7308 old_CFLAGS="$CFLAGS"
7309
7310 # Set sane defaults for various variables
7311 test -z "$AR" && AR=ar
7312 test -z "$AR_FLAGS" && AR_FLAGS=cru
7313 test -z "$AS" && AS=as
7314 test -z "$CC" && CC=cc
7315 test -z "$LTCC" && LTCC=$CC
7316 test -z "$DLLTOOL" && DLLTOOL=dlltool
7317 test -z "$LD" && LD=ld
7318 test -z "$LN_S" && LN_S="ln -s"
7319 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7320 test -z "$NM" && NM=nm
7321 test -z "$SED" && SED=sed
7322 test -z "$OBJDUMP" && OBJDUMP=objdump
7323 test -z "$RANLIB" && RANLIB=:
7324 test -z "$STRIP" && STRIP=:
7325 test -z "$ac_objext" && ac_objext=o
7326
7327 # Determine commands to create old-style static archives.
7328 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7329 old_postinstall_cmds='chmod 644 $oldlib'
7330 old_postuninstall_cmds=
7331
7332 if test -n "$RANLIB"; then
7333   case $host_os in
7334   openbsd*)
7335     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7336     ;;
7337   *)
7338     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7339     ;;
7340   esac
7341   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7342 fi
7343
7344 for cc_temp in $compiler""; do
7345   case $cc_temp in
7346     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7347     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7348     \-*) ;;
7349     *) break;;
7350   esac
7351 done
7352 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7353
7354
7355 # Only perform the check for file, if the check method requires it
7356 case $deplibs_check_method in
7357 file_magic*)
7358   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7359     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7360 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7361 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7362   echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364   case $MAGIC_CMD in
7365 [\\/*] |  ?:[\\/]*)
7366   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7367   ;;
7368 *)
7369   lt_save_MAGIC_CMD="$MAGIC_CMD"
7370   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7371   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7372   for ac_dir in $ac_dummy; do
7373     IFS="$lt_save_ifs"
7374     test -z "$ac_dir" && ac_dir=.
7375     if test -f $ac_dir/${ac_tool_prefix}file; then
7376       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7377       if test -n "$file_magic_test_file"; then
7378         case $deplibs_check_method in
7379         "file_magic "*)
7380           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7381           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7382           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7383             $EGREP "$file_magic_regex" > /dev/null; then
7384             :
7385           else
7386             cat <<EOF 1>&2
7387
7388 *** Warning: the command libtool uses to detect shared libraries,
7389 *** $file_magic_cmd, produces output that libtool cannot recognize.
7390 *** The result is that libtool may fail to recognize shared libraries
7391 *** as such.  This will affect the creation of libtool libraries that
7392 *** depend on shared libraries, but programs linked with such libtool
7393 *** libraries will work regardless of this problem.  Nevertheless, you
7394 *** may want to report the problem to your system manager and/or to
7395 *** bug-libtool@gnu.org
7396
7397 EOF
7398           fi ;;
7399         esac
7400       fi
7401       break
7402     fi
7403   done
7404   IFS="$lt_save_ifs"
7405   MAGIC_CMD="$lt_save_MAGIC_CMD"
7406   ;;
7407 esac
7408 fi
7409
7410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7411 if test -n "$MAGIC_CMD"; then
7412   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7413 echo "${ECHO_T}$MAGIC_CMD" >&6
7414 else
7415   echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6
7417 fi
7418
7419 if test -z "$lt_cv_path_MAGIC_CMD"; then
7420   if test -n "$ac_tool_prefix"; then
7421     echo "$as_me:$LINENO: checking for file" >&5
7422 echo $ECHO_N "checking for file... $ECHO_C" >&6
7423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 else
7426   case $MAGIC_CMD in
7427 [\\/*] |  ?:[\\/]*)
7428   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7429   ;;
7430 *)
7431   lt_save_MAGIC_CMD="$MAGIC_CMD"
7432   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7433   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7434   for ac_dir in $ac_dummy; do
7435     IFS="$lt_save_ifs"
7436     test -z "$ac_dir" && ac_dir=.
7437     if test -f $ac_dir/file; then
7438       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7439       if test -n "$file_magic_test_file"; then
7440         case $deplibs_check_method in
7441         "file_magic "*)
7442           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7443           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7444           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7445             $EGREP "$file_magic_regex" > /dev/null; then
7446             :
7447           else
7448             cat <<EOF 1>&2
7449
7450 *** Warning: the command libtool uses to detect shared libraries,
7451 *** $file_magic_cmd, produces output that libtool cannot recognize.
7452 *** The result is that libtool may fail to recognize shared libraries
7453 *** as such.  This will affect the creation of libtool libraries that
7454 *** depend on shared libraries, but programs linked with such libtool
7455 *** libraries will work regardless of this problem.  Nevertheless, you
7456 *** may want to report the problem to your system manager and/or to
7457 *** bug-libtool@gnu.org
7458
7459 EOF
7460           fi ;;
7461         esac
7462       fi
7463       break
7464     fi
7465   done
7466   IFS="$lt_save_ifs"
7467   MAGIC_CMD="$lt_save_MAGIC_CMD"
7468   ;;
7469 esac
7470 fi
7471
7472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7473 if test -n "$MAGIC_CMD"; then
7474   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7475 echo "${ECHO_T}$MAGIC_CMD" >&6
7476 else
7477   echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6
7479 fi
7480
7481   else
7482     MAGIC_CMD=:
7483   fi
7484 fi
7485
7486   fi
7487   ;;
7488 esac
7489
7490 enable_dlopen=yes
7491 enable_win32_dll=yes
7492
7493 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7494 if test "${enable_libtool_lock+set}" = set; then
7495   enableval="$enable_libtool_lock"
7496
7497 fi;
7498 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7499
7500
7501 # Check whether --with-pic or --without-pic was given.
7502 if test "${with_pic+set}" = set; then
7503   withval="$with_pic"
7504   pic_mode="$withval"
7505 else
7506   pic_mode=default
7507 fi;
7508 test -z "$pic_mode" && pic_mode=default
7509
7510 # Use C for the default configuration in the libtool script
7511 tagname=
7512 lt_save_CC="$CC"
7513 ac_ext=c
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7518
7519
7520 # Source file extension for C test sources.
7521 ac_ext=c
7522
7523 # Object file extension for compiled C test sources.
7524 objext=o
7525 objext=$objext
7526
7527 # Code to be used in simple compile tests
7528 lt_simple_compile_test_code="int some_variable = 0;\n"
7529
7530 # Code to be used in simple link tests
7531 lt_simple_link_test_code='int main(){return(0);}\n'
7532
7533
7534 # If no C compiler was specified, use CC.
7535 LTCC=${LTCC-"$CC"}
7536
7537 # Allow CC to be a program name with arguments.
7538 compiler=$CC
7539
7540
7541 # save warnings/boilerplate of simple test code
7542 ac_outfile=conftest.$ac_objext
7543 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7544 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7545 _lt_compiler_boilerplate=`cat conftest.err`
7546 $rm conftest*
7547
7548 ac_outfile=conftest.$ac_objext
7549 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7550 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7551 _lt_linker_boilerplate=`cat conftest.err`
7552 $rm conftest*
7553
7554
7555 #
7556 # Check for any special shared library compilation flags.
7557 #
7558 lt_prog_cc_shlib=
7559 if test "$GCC" = no; then
7560   case $host_os in
7561   sco3.2v5*)
7562     lt_prog_cc_shlib='-belf'
7563     ;;
7564   esac
7565 fi
7566 if test -n "$lt_prog_cc_shlib"; then
7567   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7568 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7569   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7570   else
7571     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7572 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7573     lt_cv_prog_cc_can_build_shared=no
7574   fi
7575 fi
7576
7577
7578 #
7579 # Check to make sure the static flag actually works.
7580 #
7581 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7582 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7583 if test "${lt_prog_compiler_static_works+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   lt_prog_compiler_static_works=no
7587    save_LDFLAGS="$LDFLAGS"
7588    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7589    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7590    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7591      # The linker can only warn and ignore the option if not recognized
7592      # So say no if there are warnings
7593      if test -s conftest.err; then
7594        # Append any errors to the config.log.
7595        cat conftest.err 1>&5
7596        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7597        $SED '/^$/d' conftest.err >conftest.er2
7598        if diff conftest.exp conftest.er2 >/dev/null; then
7599          lt_prog_compiler_static_works=yes
7600        fi
7601      else
7602        lt_prog_compiler_static_works=yes
7603      fi
7604    fi
7605    $rm conftest*
7606    LDFLAGS="$save_LDFLAGS"
7607
7608 fi
7609 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7610 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7611
7612 if test x"$lt_prog_compiler_static_works" = xyes; then
7613     :
7614 else
7615     lt_prog_compiler_static=
7616 fi
7617
7618
7619
7620
7621 lt_prog_compiler_no_builtin_flag=
7622
7623 if test "$GCC" = yes; then
7624   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7625
7626
7627 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7628 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7629 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   lt_cv_prog_compiler_rtti_exceptions=no
7633   ac_outfile=conftest.$ac_objext
7634    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7635    lt_compiler_flag="-fno-rtti -fno-exceptions"
7636    # Insert the option either (1) after the last *FLAGS variable, or
7637    # (2) before a word containing "conftest.", or (3) at the end.
7638    # Note that $ac_compile itself does not contain backslashes and begins
7639    # with a dollar sign (not a hyphen), so the echo should work correctly.
7640    # The option is referenced via a variable to avoid confusing sed.
7641    lt_compile=`echo "$ac_compile" | $SED \
7642    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7643    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7644    -e 's:$: $lt_compiler_flag:'`
7645    (eval echo "\"\$as_me:7645: $lt_compile\"" >&5)
7646    (eval "$lt_compile" 2>conftest.err)
7647    ac_status=$?
7648    cat conftest.err >&5
7649    echo "$as_me:7649: \$? = $ac_status" >&5
7650    if (exit $ac_status) && test -s "$ac_outfile"; then
7651      # The compiler can only warn and ignore the option if not recognized
7652      # So say no if there are warnings other than the usual output.
7653      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7654      $SED '/^$/d' conftest.err >conftest.er2
7655      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7656        lt_cv_prog_compiler_rtti_exceptions=yes
7657      fi
7658    fi
7659    $rm conftest*
7660
7661 fi
7662 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7663 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7664
7665 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7666     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7667 else
7668     :
7669 fi
7670
7671 fi
7672
7673 lt_prog_compiler_wl=
7674 lt_prog_compiler_pic=
7675 lt_prog_compiler_static=
7676
7677 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7678 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7679
7680   if test "$GCC" = yes; then
7681     lt_prog_compiler_wl='-Wl,'
7682     lt_prog_compiler_static='-static'
7683
7684     case $host_os in
7685       aix*)
7686       # All AIX code is PIC.
7687       if test "$host_cpu" = ia64; then
7688         # AIX 5 now supports IA64 processor
7689         lt_prog_compiler_static='-Bstatic'
7690       fi
7691       ;;
7692
7693     amigaos*)
7694       # FIXME: we need at least 68020 code to build shared libraries, but
7695       # adding the `-m68020' flag to GCC prevents building anything better,
7696       # like `-m68040'.
7697       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7698       ;;
7699
7700     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7701       # PIC is the default for these OSes.
7702       ;;
7703
7704     mingw* | pw32* | os2*)
7705       # This hack is so that the source file can tell whether it is being
7706       # built for inclusion in a dll (and should export symbols for example).
7707       lt_prog_compiler_pic='-DDLL_EXPORT'
7708       ;;
7709
7710     darwin* | rhapsody*)
7711       # PIC is the default on this platform
7712       # Common symbols not allowed in MH_DYLIB files
7713       lt_prog_compiler_pic='-fno-common'
7714       ;;
7715
7716     msdosdjgpp*)
7717       # Just because we use GCC doesn't mean we suddenly get shared libraries
7718       # on systems that don't support them.
7719       lt_prog_compiler_can_build_shared=no
7720       enable_shared=no
7721       ;;
7722
7723     sysv4*MP*)
7724       if test -d /usr/nec; then
7725         lt_prog_compiler_pic=-Kconform_pic
7726       fi
7727       ;;
7728
7729     hpux*)
7730       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7731       # not for PA HP-UX.
7732       case $host_cpu in
7733       hppa*64*|ia64*)
7734         # +Z the default
7735         ;;
7736       *)
7737         lt_prog_compiler_pic='-fPIC'
7738         ;;
7739       esac
7740       ;;
7741
7742     *)
7743       lt_prog_compiler_pic='-fPIC'
7744       ;;
7745     esac
7746   else
7747     # PORTME Check for flag to pass linker flags through the system compiler.
7748     case $host_os in
7749     aix*)
7750       lt_prog_compiler_wl='-Wl,'
7751       if test "$host_cpu" = ia64; then
7752         # AIX 5 now supports IA64 processor
7753         lt_prog_compiler_static='-Bstatic'
7754       else
7755         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7756       fi
7757       ;;
7758       darwin*)
7759         # PIC is the default on this platform
7760         # Common symbols not allowed in MH_DYLIB files
7761        case $cc_basename in
7762          xlc*)
7763          lt_prog_compiler_pic='-qnocommon'
7764          lt_prog_compiler_wl='-Wl,'
7765          ;;
7766        esac
7767        ;;
7768
7769     mingw* | pw32* | os2*)
7770       # This hack is so that the source file can tell whether it is being
7771       # built for inclusion in a dll (and should export symbols for example).
7772       lt_prog_compiler_pic='-DDLL_EXPORT'
7773       ;;
7774
7775     hpux9* | hpux10* | hpux11*)
7776       lt_prog_compiler_wl='-Wl,'
7777       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7778       # not for PA HP-UX.
7779       case $host_cpu in
7780       hppa*64*|ia64*)
7781         # +Z the default
7782         ;;
7783       *)
7784         lt_prog_compiler_pic='+Z'
7785         ;;
7786       esac
7787       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7788       lt_prog_compiler_static='${wl}-a ${wl}archive'
7789       ;;
7790
7791     irix5* | irix6* | nonstopux*)
7792       lt_prog_compiler_wl='-Wl,'
7793       # PIC (with -KPIC) is the default.
7794       lt_prog_compiler_static='-non_shared'
7795       ;;
7796
7797     newsos6)
7798       lt_prog_compiler_pic='-KPIC'
7799       lt_prog_compiler_static='-Bstatic'
7800       ;;
7801
7802     linux*)
7803       case $cc_basename in
7804       icc* | ecc*)
7805         lt_prog_compiler_wl='-Wl,'
7806         lt_prog_compiler_pic='-KPIC'
7807         lt_prog_compiler_static='-static'
7808         ;;
7809       pgcc* | pgf77* | pgf90* | pgf95*)
7810         # Portland Group compilers (*not* the Pentium gcc compiler,
7811         # which looks to be a dead project)
7812         lt_prog_compiler_wl='-Wl,'
7813         lt_prog_compiler_pic='-fpic'
7814         lt_prog_compiler_static='-Bstatic'
7815         ;;
7816       ccc*)
7817         lt_prog_compiler_wl='-Wl,'
7818         # All Alpha code is PIC.
7819         lt_prog_compiler_static='-non_shared'
7820         ;;
7821       esac
7822       ;;
7823
7824     osf3* | osf4* | osf5*)
7825       lt_prog_compiler_wl='-Wl,'
7826       # All OSF/1 code is PIC.
7827       lt_prog_compiler_static='-non_shared'
7828       ;;
7829
7830     sco3.2v5*)
7831       lt_prog_compiler_pic='-Kpic'
7832       lt_prog_compiler_static='-dn'
7833       ;;
7834
7835     solaris*)
7836       lt_prog_compiler_pic='-KPIC'
7837       lt_prog_compiler_static='-Bstatic'
7838       case $cc_basename in
7839       f77* | f90* | f95*)
7840         lt_prog_compiler_wl='-Qoption ld ';;
7841       *)
7842         lt_prog_compiler_wl='-Wl,';;
7843       esac
7844       ;;
7845
7846     sunos4*)
7847       lt_prog_compiler_wl='-Qoption ld '
7848       lt_prog_compiler_pic='-PIC'
7849       lt_prog_compiler_static='-Bstatic'
7850       ;;
7851
7852     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7853       lt_prog_compiler_wl='-Wl,'
7854       lt_prog_compiler_pic='-KPIC'
7855       lt_prog_compiler_static='-Bstatic'
7856       ;;
7857
7858     sysv4*MP*)
7859       if test -d /usr/nec ;then
7860         lt_prog_compiler_pic='-Kconform_pic'
7861         lt_prog_compiler_static='-Bstatic'
7862       fi
7863       ;;
7864
7865     unicos*)
7866       lt_prog_compiler_wl='-Wl,'
7867       lt_prog_compiler_can_build_shared=no
7868       ;;
7869
7870     uts4*)
7871       lt_prog_compiler_pic='-pic'
7872       lt_prog_compiler_static='-Bstatic'
7873       ;;
7874
7875     *)
7876       lt_prog_compiler_can_build_shared=no
7877       ;;
7878     esac
7879   fi
7880
7881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7882 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7883
7884 #
7885 # Check to make sure the PIC flag actually works.
7886 #
7887 if test -n "$lt_prog_compiler_pic"; then
7888
7889 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7890 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7891 if test "${lt_prog_compiler_pic_works+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   lt_prog_compiler_pic_works=no
7895   ac_outfile=conftest.$ac_objext
7896    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7897    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7898    # Insert the option either (1) after the last *FLAGS variable, or
7899    # (2) before a word containing "conftest.", or (3) at the end.
7900    # Note that $ac_compile itself does not contain backslashes and begins
7901    # with a dollar sign (not a hyphen), so the echo should work correctly.
7902    # The option is referenced via a variable to avoid confusing sed.
7903    lt_compile=`echo "$ac_compile" | $SED \
7904    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906    -e 's:$: $lt_compiler_flag:'`
7907    (eval echo "\"\$as_me:7907: $lt_compile\"" >&5)
7908    (eval "$lt_compile" 2>conftest.err)
7909    ac_status=$?
7910    cat conftest.err >&5
7911    echo "$as_me:7911: \$? = $ac_status" >&5
7912    if (exit $ac_status) && test -s "$ac_outfile"; then
7913      # The compiler can only warn and ignore the option if not recognized
7914      # So say no if there are warnings other than the usual output.
7915      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7916      $SED '/^$/d' conftest.err >conftest.er2
7917      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7918        lt_prog_compiler_pic_works=yes
7919      fi
7920    fi
7921    $rm conftest*
7922
7923 fi
7924 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7925 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7926
7927 if test x"$lt_prog_compiler_pic_works" = xyes; then
7928     case $lt_prog_compiler_pic in
7929      "" | " "*) ;;
7930      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7931      esac
7932 else
7933     lt_prog_compiler_pic=
7934      lt_prog_compiler_can_build_shared=no
7935 fi
7936
7937 fi
7938 case $host_os in
7939   # For platforms which do not support PIC, -DPIC is meaningless:
7940   *djgpp*)
7941     lt_prog_compiler_pic=
7942     ;;
7943   *)
7944     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7945     ;;
7946 esac
7947
7948 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7949 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7950 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7951   echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953   lt_cv_prog_compiler_c_o=no
7954    $rm -r conftest 2>/dev/null
7955    mkdir conftest
7956    cd conftest
7957    mkdir out
7958    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7959
7960    lt_compiler_flag="-o out/conftest2.$ac_objext"
7961    # Insert the option either (1) after the last *FLAGS variable, or
7962    # (2) before a word containing "conftest.", or (3) at the end.
7963    # Note that $ac_compile itself does not contain backslashes and begins
7964    # with a dollar sign (not a hyphen), so the echo should work correctly.
7965    lt_compile=`echo "$ac_compile" | $SED \
7966    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7967    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7968    -e 's:$: $lt_compiler_flag:'`
7969    (eval echo "\"\$as_me:7969: $lt_compile\"" >&5)
7970    (eval "$lt_compile" 2>out/conftest.err)
7971    ac_status=$?
7972    cat out/conftest.err >&5
7973    echo "$as_me:7973: \$? = $ac_status" >&5
7974    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7975    then
7976      # The compiler can only warn and ignore the option if not recognized
7977      # So say no if there are warnings
7978      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7979      $SED '/^$/d' out/conftest.err >out/conftest.er2
7980      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7981        lt_cv_prog_compiler_c_o=yes
7982      fi
7983    fi
7984    chmod u+w . 2>&5
7985    $rm conftest*
7986    # SGI C++ compiler will create directory out/ii_files/ for
7987    # template instantiation
7988    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7989    $rm out/* && rmdir out
7990    cd ..
7991    rmdir conftest
7992    $rm conftest*
7993
7994 fi
7995 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7996 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7997
7998
7999 hard_links="nottested"
8000 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8001   # do not overwrite the value of need_locks provided by the user
8002   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8003 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8004   hard_links=yes
8005   $rm conftest*
8006   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8007   touch conftest.a
8008   ln conftest.a conftest.b 2>&5 || hard_links=no
8009   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8010   echo "$as_me:$LINENO: result: $hard_links" >&5
8011 echo "${ECHO_T}$hard_links" >&6
8012   if test "$hard_links" = no; then
8013     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8014 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8015     need_locks=warn
8016   fi
8017 else
8018   need_locks=no
8019 fi
8020
8021 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8022 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8023
8024   runpath_var=
8025   allow_undefined_flag=
8026   enable_shared_with_static_runtimes=no
8027   archive_cmds=
8028   archive_expsym_cmds=
8029   old_archive_From_new_cmds=
8030   old_archive_from_expsyms_cmds=
8031   export_dynamic_flag_spec=
8032   whole_archive_flag_spec=
8033   thread_safe_flag_spec=
8034   hardcode_libdir_flag_spec=
8035   hardcode_libdir_flag_spec_ld=
8036   hardcode_libdir_separator=
8037   hardcode_direct=no
8038   hardcode_minus_L=no
8039   hardcode_shlibpath_var=unsupported
8040   link_all_deplibs=unknown
8041   hardcode_automatic=no
8042   module_cmds=
8043   module_expsym_cmds=
8044   always_export_symbols=no
8045   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8046   # include_expsyms should be a list of space-separated symbols to be *always*
8047   # included in the symbol list
8048   include_expsyms=
8049   # exclude_expsyms can be an extended regexp of symbols to exclude
8050   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8051   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8052   # as well as any symbol that contains `d'.
8053   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8054   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8055   # platforms (ab)use it in PIC code, but their linkers get confused if
8056   # the symbol is explicitly referenced.  Since portable code cannot
8057   # rely on this symbol name, it's probably fine to never include it in
8058   # preloaded symbol tables.
8059   extract_expsyms_cmds=
8060   # Just being paranoid about ensuring that cc_basename is set.
8061   for cc_temp in $compiler""; do
8062   case $cc_temp in
8063     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8064     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8065     \-*) ;;
8066     *) break;;
8067   esac
8068 done
8069 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8070
8071   case $host_os in
8072   cygwin* | mingw* | pw32*)
8073     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8074     # When not using gcc, we currently assume that we are using
8075     # Microsoft Visual C++.
8076     if test "$GCC" != yes; then
8077       with_gnu_ld=no
8078     fi
8079     ;;
8080   openbsd*)
8081     with_gnu_ld=no
8082     ;;
8083   esac
8084
8085   ld_shlibs=yes
8086   if test "$with_gnu_ld" = yes; then
8087     # If archive_cmds runs LD, not CC, wlarc should be empty
8088     wlarc='${wl}'
8089
8090     # Set some defaults for GNU ld with shared library support. These
8091     # are reset later if shared libraries are not supported. Putting them
8092     # here allows them to be overridden if necessary.
8093     runpath_var=LD_RUN_PATH
8094     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8095     export_dynamic_flag_spec='${wl}--export-dynamic'
8096     # ancient GNU ld didn't support --whole-archive et. al.
8097     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8098         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8099       else
8100         whole_archive_flag_spec=
8101     fi
8102     supports_anon_versioning=no
8103     case `$LD -v 2>/dev/null` in
8104       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8105       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8106       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8107       *\ 2.11.*) ;; # other 2.11 versions
8108       *) supports_anon_versioning=yes ;;
8109     esac
8110
8111     # See if GNU ld supports shared libraries.
8112     case $host_os in
8113     aix3* | aix4* | aix5*)
8114       # On AIX/PPC, the GNU linker is very broken
8115       if test "$host_cpu" != ia64; then
8116         ld_shlibs=no
8117         cat <<EOF 1>&2
8118
8119 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8120 *** to be unable to reliably create shared libraries on AIX.
8121 *** Therefore, libtool is disabling shared libraries support.  If you
8122 *** really care for shared libraries, you may want to modify your PATH
8123 *** so that a non-GNU linker is found, and then restart.
8124
8125 EOF
8126       fi
8127       ;;
8128
8129     amigaos*)
8130       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)'
8131       hardcode_libdir_flag_spec='-L$libdir'
8132       hardcode_minus_L=yes
8133
8134       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8135       # that the semantics of dynamic libraries on AmigaOS, at least up
8136       # to version 4, is to share data among multiple programs linked
8137       # with the same dynamic library.  Since this doesn't match the
8138       # behavior of shared libraries on other platforms, we can't use
8139       # them.
8140       ld_shlibs=no
8141       ;;
8142
8143     beos*)
8144       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8145         allow_undefined_flag=unsupported
8146         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8147         # support --undefined.  This deserves some investigation.  FIXME
8148         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149       else
8150         ld_shlibs=no
8151       fi
8152       ;;
8153
8154     cygwin* | mingw* | pw32*)
8155       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8156       # as there is no search path for DLLs.
8157       hardcode_libdir_flag_spec='-L$libdir'
8158       allow_undefined_flag=unsupported
8159       always_export_symbols=no
8160       enable_shared_with_static_runtimes=yes
8161       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8162
8163       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8164         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8165         # If the export-symbols file already is a .def file (1st line
8166         # is EXPORTS), use it as is; otherwise, prepend...
8167         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8168           cp $export_symbols $output_objdir/$soname.def;
8169         else
8170           echo EXPORTS > $output_objdir/$soname.def;
8171           cat $export_symbols >> $output_objdir/$soname.def;
8172         fi~
8173         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8174       else
8175         ld_shlibs=no
8176       fi
8177       ;;
8178
8179     linux*)
8180       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8181         tmp_addflag=
8182         case $cc_basename,$host_cpu in
8183         pgcc*)                          # Portland Group C compiler
8184           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'
8185           tmp_addflag=' $pic_flag'
8186           ;;
8187         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8188           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'
8189           tmp_addflag=' $pic_flag -Mnomain' ;;
8190         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8191           tmp_addflag=' -i_dynamic' ;;
8192         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8193           tmp_addflag=' -i_dynamic -nofor_main' ;;
8194         ifc* | ifort*)                  # Intel Fortran compiler
8195           tmp_addflag=' -nofor_main' ;;
8196         esac
8197         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8198
8199         if test $supports_anon_versioning = yes; then
8200           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8201   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8202   $echo "local: *; };" >> $output_objdir/$libname.ver~
8203           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8204         fi
8205       else
8206         ld_shlibs=no
8207       fi
8208       ;;
8209
8210     netbsd*)
8211       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8212         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8213         wlarc=
8214       else
8215         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8216         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8217       fi
8218       ;;
8219
8220     solaris* | sysv5*)
8221       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8222         ld_shlibs=no
8223         cat <<EOF 1>&2
8224
8225 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8226 *** create shared libraries on Solaris systems.  Therefore, libtool
8227 *** is disabling shared libraries support.  We urge you to upgrade GNU
8228 *** binutils to release 2.9.1 or newer.  Another option is to modify
8229 *** your PATH or compiler configuration so that the native linker is
8230 *** used, and then restart.
8231
8232 EOF
8233       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8234         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8235         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8236       else
8237         ld_shlibs=no
8238       fi
8239       ;;
8240
8241     sunos4*)
8242       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243       wlarc=
8244       hardcode_direct=yes
8245       hardcode_shlibpath_var=no
8246       ;;
8247
8248     *)
8249       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8250         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252       else
8253         ld_shlibs=no
8254       fi
8255       ;;
8256     esac
8257
8258     if test "$ld_shlibs" = no; then
8259       runpath_var=
8260       hardcode_libdir_flag_spec=
8261       export_dynamic_flag_spec=
8262       whole_archive_flag_spec=
8263     fi
8264   else
8265     # PORTME fill in a description of your system's linker (not GNU ld)
8266     case $host_os in
8267     aix3*)
8268       allow_undefined_flag=unsupported
8269       always_export_symbols=yes
8270       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'
8271       # Note: this linker hardcodes the directories in LIBPATH if there
8272       # are no directories specified by -L.
8273       hardcode_minus_L=yes
8274       if test "$GCC" = yes && test -z "$link_static_flag"; then
8275         # Neither direct hardcoding nor static linking is supported with a
8276         # broken collect2.
8277         hardcode_direct=unsupported
8278       fi
8279       ;;
8280
8281     aix4* | aix5*)
8282       if test "$host_cpu" = ia64; then
8283         # On IA64, the linker does run time linking by default, so we don't
8284         # have to do anything special.
8285         aix_use_runtimelinking=no
8286         exp_sym_flag='-Bexport'
8287         no_entry_flag=""
8288       else
8289         # If we're using GNU nm, then we don't want the "-C" option.
8290         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8291         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8292           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'
8293         else
8294           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'
8295         fi
8296         aix_use_runtimelinking=no
8297
8298         # Test if we are trying to use run time linking or normal
8299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8300         # need to do runtime linking.
8301         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8302           for ld_flag in $LDFLAGS; do
8303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8304             aix_use_runtimelinking=yes
8305             break
8306           fi
8307           done
8308         esac
8309
8310         exp_sym_flag='-bexport'
8311         no_entry_flag='-bnoentry'
8312       fi
8313
8314       # When large executables or shared objects are built, AIX ld can
8315       # have problems creating the table of contents.  If linking a library
8316       # or program results in "error TOC overflow" add -mminimal-toc to
8317       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8318       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8319
8320       archive_cmds=''
8321       hardcode_direct=yes
8322       hardcode_libdir_separator=':'
8323       link_all_deplibs=yes
8324
8325       if test "$GCC" = yes; then
8326         case $host_os in aix4.[012]|aix4.[012].*)
8327         # We only want to do this on AIX 4.2 and lower, the check
8328         # below for broken collect2 doesn't work under 4.3+
8329           collect2name=`${CC} -print-prog-name=collect2`
8330           if test -f "$collect2name" && \
8331            strings "$collect2name" | grep resolve_lib_name >/dev/null
8332           then
8333           # We have reworked collect2
8334           hardcode_direct=yes
8335           else
8336           # We have old collect2
8337           hardcode_direct=unsupported
8338           # It fails to find uninstalled libraries when the uninstalled
8339           # path is not listed in the libpath.  Setting hardcode_minus_L
8340           # to unsupported forces relinking
8341           hardcode_minus_L=yes
8342           hardcode_libdir_flag_spec='-L$libdir'
8343           hardcode_libdir_separator=
8344           fi
8345         esac
8346         shared_flag='-shared'
8347         if test "$aix_use_runtimelinking" = yes; then
8348           shared_flag="$shared_flag "'${wl}-G'
8349         fi
8350       else
8351         # not using gcc
8352         if test "$host_cpu" = ia64; then
8353         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8354         # chokes on -Wl,-G. The following line is correct:
8355           shared_flag='-G'
8356         else
8357         if test "$aix_use_runtimelinking" = yes; then
8358             shared_flag='${wl}-G'
8359           else
8360             shared_flag='${wl}-bM:SRE'
8361         fi
8362         fi
8363       fi
8364
8365       # It seems that -bexpall does not export symbols beginning with
8366       # underscore (_), so it is better to generate a list of symbols to export.
8367       always_export_symbols=yes
8368       if test "$aix_use_runtimelinking" = yes; then
8369         # Warning - without using the other runtime loading flags (-brtl),
8370         # -berok will link without error, but may produce a broken library.
8371         allow_undefined_flag='-berok'
8372        # Determine the default libpath from the value encoded in an empty executable.
8373        cat >conftest.$ac_ext <<_ACEOF
8374 /* confdefs.h.  */
8375 _ACEOF
8376 cat confdefs.h >>conftest.$ac_ext
8377 cat >>conftest.$ac_ext <<_ACEOF
8378 /* end confdefs.h.  */
8379
8380 int
8381 main ()
8382 {
8383
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext conftest$ac_exeext
8389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8390   (eval $ac_link) 2>conftest.er1
8391   ac_status=$?
8392   grep -v '^ *+' conftest.er1 >conftest.err
8393   rm -f conftest.er1
8394   cat conftest.err >&5
8395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396   (exit $ac_status); } &&
8397          { ac_try='test -z "$ac_c_werror_flag"
8398                          || test ! -s conftest.err'
8399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8400   (eval $ac_try) 2>&5
8401   ac_status=$?
8402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403   (exit $ac_status); }; } &&
8404          { ac_try='test -s conftest$ac_exeext'
8405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8406   (eval $ac_try) 2>&5
8407   ac_status=$?
8408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409   (exit $ac_status); }; }; then
8410
8411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8412 }'`
8413 # Check for a 64-bit object if we didn't find anything.
8414 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; }
8415 }'`; fi
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8419
8420 fi
8421 rm -f conftest.err conftest.$ac_objext \
8422       conftest$ac_exeext conftest.$ac_ext
8423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8424
8425        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8426         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"
8427        else
8428         if test "$host_cpu" = ia64; then
8429           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8430           allow_undefined_flag="-z nodefs"
8431           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"
8432         else
8433          # Determine the default libpath from the value encoded in an empty executable.
8434          cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440
8441 int
8442 main ()
8443 {
8444
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8451   (eval $ac_link) 2>conftest.er1
8452   ac_status=$?
8453   grep -v '^ *+' conftest.er1 >conftest.err
8454   rm -f conftest.er1
8455   cat conftest.err >&5
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); } &&
8458          { ac_try='test -z "$ac_c_werror_flag"
8459                          || test ! -s conftest.err'
8460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461   (eval $ac_try) 2>&5
8462   ac_status=$?
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); }; } &&
8465          { ac_try='test -s conftest$ac_exeext'
8466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467   (eval $ac_try) 2>&5
8468   ac_status=$?
8469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470   (exit $ac_status); }; }; then
8471
8472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8473 }'`
8474 # Check for a 64-bit object if we didn't find anything.
8475 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; }
8476 }'`; fi
8477 else
8478   echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481 fi
8482 rm -f conftest.err conftest.$ac_objext \
8483       conftest$ac_exeext conftest.$ac_ext
8484 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8485
8486          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8487           # Warning - without using the other run time loading flags,
8488           # -berok will link without error, but may produce a broken library.
8489           no_undefined_flag=' ${wl}-bernotok'
8490           allow_undefined_flag=' ${wl}-berok'
8491           # -bexpall does not export symbols beginning with underscore (_)
8492           always_export_symbols=yes
8493           # Exported symbols can be pulled into shared objects from archives
8494           whole_archive_flag_spec=' '
8495           archive_cmds_need_lc=yes
8496           # This is similar to how AIX traditionally builds its shared libraries.
8497           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'
8498         fi
8499       fi
8500       ;;
8501
8502     amigaos*)
8503       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)'
8504       hardcode_libdir_flag_spec='-L$libdir'
8505       hardcode_minus_L=yes
8506       # see comment about different semantics on the GNU ld section
8507       ld_shlibs=no
8508       ;;
8509
8510     bsdi[45]*)
8511       export_dynamic_flag_spec=-rdynamic
8512       ;;
8513
8514     cygwin* | mingw* | pw32*)
8515       # When not using gcc, we currently assume that we are using
8516       # Microsoft Visual C++.
8517       # hardcode_libdir_flag_spec is actually meaningless, as there is
8518       # no search path for DLLs.
8519       hardcode_libdir_flag_spec=' '
8520       allow_undefined_flag=unsupported
8521       # Tell ltmain to make .lib files, not .a files.
8522       libext=lib
8523       # Tell ltmain to make .dll files, not .so files.
8524       shrext_cmds=".dll"
8525       # FIXME: Setting linknames here is a bad hack.
8526       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8527       # The linker will automatically build a .lib file if we build a DLL.
8528       old_archive_From_new_cmds='true'
8529       # FIXME: Should let the user specify the lib program.
8530       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8531       fix_srcfile_path='`cygpath -w "$srcfile"`'
8532       enable_shared_with_static_runtimes=yes
8533       ;;
8534
8535     darwin* | rhapsody*)
8536       case $host_os in
8537         rhapsody* | darwin1.[012])
8538          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8539          ;;
8540        *) # Darwin 1.3 on
8541          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8542            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8543          else
8544            case ${MACOSX_DEPLOYMENT_TARGET} in
8545              10.[012])
8546                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8547                ;;
8548              10.*)
8549                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8550                ;;
8551            esac
8552          fi
8553          ;;
8554       esac
8555       archive_cmds_need_lc=no
8556       hardcode_direct=no
8557       hardcode_automatic=yes
8558       hardcode_shlibpath_var=unsupported
8559       whole_archive_flag_spec=''
8560       link_all_deplibs=yes
8561     if test "$GCC" = yes ; then
8562         output_verbose_link_cmd='echo'
8563         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8564       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8565       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8566       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}'
8567       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}'
8568     else
8569       case $cc_basename in
8570         xlc*)
8571          output_verbose_link_cmd='echo'
8572          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8573          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8574           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8575          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}'
8576           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}'
8577           ;;
8578        *)
8579          ld_shlibs=no
8580           ;;
8581       esac
8582     fi
8583       ;;
8584
8585     dgux*)
8586       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587       hardcode_libdir_flag_spec='-L$libdir'
8588       hardcode_shlibpath_var=no
8589       ;;
8590
8591     freebsd1*)
8592       ld_shlibs=no
8593       ;;
8594
8595     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8596     # support.  Future versions do this automatically, but an explicit c++rt0.o
8597     # does not break anything, and helps significantly (at the cost of a little
8598     # extra space).
8599     freebsd2.2*)
8600       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8601       hardcode_libdir_flag_spec='-R$libdir'
8602       hardcode_direct=yes
8603       hardcode_shlibpath_var=no
8604       ;;
8605
8606     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8607     freebsd2*)
8608       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8609       hardcode_direct=yes
8610       hardcode_minus_L=yes
8611       hardcode_shlibpath_var=no
8612       ;;
8613
8614     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8615     freebsd* | kfreebsd*-gnu | dragonfly*)
8616       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8617       hardcode_libdir_flag_spec='-R$libdir'
8618       hardcode_direct=yes
8619       hardcode_shlibpath_var=no
8620       ;;
8621
8622     hpux9*)
8623       if test "$GCC" = yes; then
8624         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'
8625       else
8626         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'
8627       fi
8628       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629       hardcode_libdir_separator=:
8630       hardcode_direct=yes
8631
8632       # hardcode_minus_L: Not really in the search PATH,
8633       # but as the default location of the library.
8634       hardcode_minus_L=yes
8635       export_dynamic_flag_spec='${wl}-E'
8636       ;;
8637
8638     hpux10* | hpux11*)
8639       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8640         case $host_cpu in
8641         hppa*64*|ia64*)
8642           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8643           ;;
8644         *)
8645           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8646           ;;
8647         esac
8648       else
8649         case $host_cpu in
8650         hppa*64*|ia64*)
8651           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8652           ;;
8653         *)
8654           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8655           ;;
8656         esac
8657       fi
8658       if test "$with_gnu_ld" = no; then
8659         case $host_cpu in
8660         hppa*64*)
8661           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8662           hardcode_libdir_flag_spec_ld='+b $libdir'
8663           hardcode_libdir_separator=:
8664           hardcode_direct=no
8665           hardcode_shlibpath_var=no
8666           ;;
8667         ia64*)
8668           hardcode_libdir_flag_spec='-L$libdir'
8669           hardcode_direct=no
8670           hardcode_shlibpath_var=no
8671
8672           # hardcode_minus_L: Not really in the search PATH,
8673           # but as the default location of the library.
8674           hardcode_minus_L=yes
8675           ;;
8676         *)
8677           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678           hardcode_libdir_separator=:
8679           hardcode_direct=yes
8680           export_dynamic_flag_spec='${wl}-E'
8681
8682           # hardcode_minus_L: Not really in the search PATH,
8683           # but as the default location of the library.
8684           hardcode_minus_L=yes
8685           ;;
8686         esac
8687       fi
8688       ;;
8689
8690     irix5* | irix6* | nonstopux*)
8691       if test "$GCC" = yes; then
8692         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'
8693       else
8694         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'
8695         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8696       fi
8697       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8698       hardcode_libdir_separator=:
8699       link_all_deplibs=yes
8700       ;;
8701
8702     netbsd*)
8703       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8704         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8705       else
8706         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8707       fi
8708       hardcode_libdir_flag_spec='-R$libdir'
8709       hardcode_direct=yes
8710       hardcode_shlibpath_var=no
8711       ;;
8712
8713     newsos6)
8714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8715       hardcode_direct=yes
8716       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717       hardcode_libdir_separator=:
8718       hardcode_shlibpath_var=no
8719       ;;
8720
8721     openbsd*)
8722       hardcode_direct=yes
8723       hardcode_shlibpath_var=no
8724       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8725         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8726         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8727         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8728         export_dynamic_flag_spec='${wl}-E'
8729       else
8730        case $host_os in
8731          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8732            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733            hardcode_libdir_flag_spec='-R$libdir'
8734            ;;
8735          *)
8736            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8737            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8738            ;;
8739        esac
8740       fi
8741       ;;
8742
8743     os2*)
8744       hardcode_libdir_flag_spec='-L$libdir'
8745       hardcode_minus_L=yes
8746       allow_undefined_flag=unsupported
8747       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'
8748       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8749       ;;
8750
8751     osf3*)
8752       if test "$GCC" = yes; then
8753         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8754         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'
8755       else
8756         allow_undefined_flag=' -expect_unresolved \*'
8757         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'
8758       fi
8759       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8760       hardcode_libdir_separator=:
8761       ;;
8762
8763     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8764       if test "$GCC" = yes; then
8765         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8766         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'
8767         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8768       else
8769         allow_undefined_flag=' -expect_unresolved \*'
8770         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'
8771         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8772         $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'
8773
8774         # Both c and cxx compiler support -rpath directly
8775         hardcode_libdir_flag_spec='-rpath $libdir'
8776       fi
8777       hardcode_libdir_separator=:
8778       ;;
8779
8780     sco3.2v5*)
8781       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8782       hardcode_shlibpath_var=no
8783       export_dynamic_flag_spec='${wl}-Bexport'
8784       runpath_var=LD_RUN_PATH
8785       hardcode_runpath_var=yes
8786       ;;
8787
8788     solaris*)
8789       no_undefined_flag=' -z text'
8790       if test "$GCC" = yes; then
8791         wlarc='${wl}'
8792         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8793         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8794           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8795       else
8796         wlarc=''
8797         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8799         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8800       fi
8801       hardcode_libdir_flag_spec='-R$libdir'
8802       hardcode_shlibpath_var=no
8803       case $host_os in
8804       solaris2.[0-5] | solaris2.[0-5].*) ;;
8805       *)
8806         # The compiler driver will combine linker options so we
8807         # cannot just pass the convience library names through
8808         # without $wl, iff we do not link with $LD.
8809         # Luckily, gcc supports the same syntax we need for Sun Studio.
8810         # Supported since Solaris 2.6 (maybe 2.5.1?)
8811         case $wlarc in
8812         '')
8813           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8814         *)
8815           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' ;;
8816         esac ;;
8817       esac
8818       link_all_deplibs=yes
8819       ;;
8820
8821     sunos4*)
8822       if test "x$host_vendor" = xsequent; then
8823         # Use $CC to link under sequent, because it throws in some extra .o
8824         # files that make .init and .fini sections work.
8825         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8826       else
8827         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8828       fi
8829       hardcode_libdir_flag_spec='-L$libdir'
8830       hardcode_direct=yes
8831       hardcode_minus_L=yes
8832       hardcode_shlibpath_var=no
8833       ;;
8834
8835     sysv4)
8836       case $host_vendor in
8837         sni)
8838           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8839           hardcode_direct=yes # is this really true???
8840         ;;
8841         siemens)
8842           ## LD is ld it makes a PLAMLIB
8843           ## CC just makes a GrossModule.
8844           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8845           reload_cmds='$CC -r -o $output$reload_objs'
8846           hardcode_direct=no
8847         ;;
8848         motorola)
8849           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8850           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8851         ;;
8852       esac
8853       runpath_var='LD_RUN_PATH'
8854       hardcode_shlibpath_var=no
8855       ;;
8856
8857     sysv4.3*)
8858       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8859       hardcode_shlibpath_var=no
8860       export_dynamic_flag_spec='-Bexport'
8861       ;;
8862
8863     sysv4*MP*)
8864       if test -d /usr/nec; then
8865         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8866         hardcode_shlibpath_var=no
8867         runpath_var=LD_RUN_PATH
8868         hardcode_runpath_var=yes
8869         ld_shlibs=yes
8870       fi
8871       ;;
8872
8873     sysv4.2uw2*)
8874       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8875       hardcode_direct=yes
8876       hardcode_minus_L=no
8877       hardcode_shlibpath_var=no
8878       hardcode_runpath_var=yes
8879       runpath_var=LD_RUN_PATH
8880       ;;
8881
8882    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8883       no_undefined_flag='${wl}-z ${wl}text'
8884       if test "$GCC" = yes; then
8885         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886       else
8887         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8888       fi
8889       runpath_var='LD_RUN_PATH'
8890       hardcode_shlibpath_var=no
8891       ;;
8892
8893     sysv5*)
8894       no_undefined_flag=' -z text'
8895       # $CC -shared without GNU ld will not create a library from C++
8896       # object files and a static libstdc++, better avoid it by now
8897       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8899                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8900       hardcode_libdir_flag_spec=
8901       hardcode_shlibpath_var=no
8902       runpath_var='LD_RUN_PATH'
8903       ;;
8904
8905     uts4*)
8906       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8907       hardcode_libdir_flag_spec='-L$libdir'
8908       hardcode_shlibpath_var=no
8909       ;;
8910
8911     *)
8912       ld_shlibs=no
8913       ;;
8914     esac
8915   fi
8916
8917 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8918 echo "${ECHO_T}$ld_shlibs" >&6
8919 test "$ld_shlibs" = no && can_build_shared=no
8920
8921 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8922 if test "$GCC" = yes; then
8923   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8924 fi
8925
8926 #
8927 # Do we need to explicitly link libc?
8928 #
8929 case "x$archive_cmds_need_lc" in
8930 x|xyes)
8931   # Assume -lc should be added
8932   archive_cmds_need_lc=yes
8933
8934   if test "$enable_shared" = yes && test "$GCC" = yes; then
8935     case $archive_cmds in
8936     *'~'*)
8937       # FIXME: we may have to deal with multi-command sequences.
8938       ;;
8939     '$CC '*)
8940       # Test whether the compiler implicitly links with -lc since on some
8941       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8942       # to ld, don't add -lc before -lgcc.
8943       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8944 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8945       $rm conftest*
8946       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8949   (eval $ac_compile) 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); } 2>conftest.err; then
8953         soname=conftest
8954         lib=conftest
8955         libobjs=conftest.$ac_objext
8956         deplibs=
8957         wl=$lt_prog_compiler_wl
8958         compiler_flags=-v
8959         linker_flags=-v
8960         verstring=
8961         output_objdir=.
8962         libname=conftest
8963         lt_save_allow_undefined_flag=$allow_undefined_flag
8964         allow_undefined_flag=
8965         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8966   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8967   ac_status=$?
8968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969   (exit $ac_status); }
8970         then
8971           archive_cmds_need_lc=no
8972         else
8973           archive_cmds_need_lc=yes
8974         fi
8975         allow_undefined_flag=$lt_save_allow_undefined_flag
8976       else
8977         cat conftest.err 1>&5
8978       fi
8979       $rm conftest*
8980       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8981 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8982       ;;
8983     esac
8984   fi
8985   ;;
8986 esac
8987
8988 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8989 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8990 library_names_spec=
8991 libname_spec='lib$name'
8992 soname_spec=
8993 shrext_cmds=".so"
8994 postinstall_cmds=
8995 postuninstall_cmds=
8996 finish_cmds=
8997 finish_eval=
8998 shlibpath_var=
8999 shlibpath_overrides_runpath=unknown
9000 version_type=none
9001 dynamic_linker="$host_os ld.so"
9002 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9003 if test "$GCC" = yes; then
9004   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9005   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9006     # if the path contains ";" then we assume it to be the separator
9007     # otherwise default to the standard path separator (i.e. ":") - it is
9008     # assumed that no part of a normal pathname contains ";" but that should
9009     # okay in the real world where ";" in dirpaths is itself problematic.
9010     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9011   else
9012     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9013   fi
9014 else
9015   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9016 fi
9017 need_lib_prefix=unknown
9018 hardcode_into_libs=no
9019
9020 # when you set need_version to no, make sure it does not cause -set_version
9021 # flags to be left without arguments
9022 need_version=unknown
9023
9024 case $host_os in
9025 aix3*)
9026   version_type=linux
9027   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9028   shlibpath_var=LIBPATH
9029
9030   # AIX 3 has no versioning support, so we append a major version to the name.
9031   soname_spec='${libname}${release}${shared_ext}$major'
9032   ;;
9033
9034 aix4* | aix5*)
9035   version_type=linux
9036   need_lib_prefix=no
9037   need_version=no
9038   hardcode_into_libs=yes
9039   if test "$host_cpu" = ia64; then
9040     # AIX 5 supports IA64
9041     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9042     shlibpath_var=LD_LIBRARY_PATH
9043   else
9044     # With GCC up to 2.95.x, collect2 would create an import file
9045     # for dependence libraries.  The import file would start with
9046     # the line `#! .'.  This would cause the generated library to
9047     # depend on `.', always an invalid library.  This was fixed in
9048     # development snapshots of GCC prior to 3.0.
9049     case $host_os in
9050       aix4 | aix4.[01] | aix4.[01].*)
9051       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9052            echo ' yes '
9053            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9054         :
9055       else
9056         can_build_shared=no
9057       fi
9058       ;;
9059     esac
9060     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9061     # soname into executable. Probably we can add versioning support to
9062     # collect2, so additional links can be useful in future.
9063     if test "$aix_use_runtimelinking" = yes; then
9064       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9065       # instead of lib<name>.a to let people know that these are not
9066       # typical AIX shared libraries.
9067       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068     else
9069       # We preserve .a as extension for shared libraries through AIX4.2
9070       # and later when we are not doing run time linking.
9071       library_names_spec='${libname}${release}.a $libname.a'
9072       soname_spec='${libname}${release}${shared_ext}$major'
9073     fi
9074     shlibpath_var=LIBPATH
9075   fi
9076   ;;
9077
9078 amigaos*)
9079   library_names_spec='$libname.ixlibrary $libname.a'
9080   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9081   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'
9082   ;;
9083
9084 beos*)
9085   library_names_spec='${libname}${shared_ext}'
9086   dynamic_linker="$host_os ld.so"
9087   shlibpath_var=LIBRARY_PATH
9088   ;;
9089
9090 bsdi[45]*)
9091   version_type=linux
9092   need_version=no
9093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094   soname_spec='${libname}${release}${shared_ext}$major'
9095   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9096   shlibpath_var=LD_LIBRARY_PATH
9097   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9098   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9099   # the default ld.so.conf also contains /usr/contrib/lib and
9100   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9101   # libtool to hard-code these into programs
9102   ;;
9103
9104 cygwin* | mingw* | pw32*)
9105   version_type=windows
9106   shrext_cmds=".dll"
9107   need_version=no
9108   need_lib_prefix=no
9109
9110   case $GCC,$host_os in
9111   yes,cygwin* | yes,mingw* | yes,pw32*)
9112     library_names_spec='$libname.dll.a'
9113     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9114     postinstall_cmds='base_file=`basename \${file}`~
9115       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9116       dldir=$destdir/`dirname \$dlpath`~
9117       test -d \$dldir || mkdir -p \$dldir~
9118       $install_prog $dir/$dlname \$dldir/$dlname~
9119       chmod a+x \$dldir/$dlname'
9120     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9121       dlpath=$dir/\$dldll~
9122        $rm \$dlpath'
9123     shlibpath_overrides_runpath=yes
9124
9125     case $host_os in
9126     cygwin*)
9127       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9128       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9129       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9130       ;;
9131     mingw*)
9132       # MinGW DLLs use traditional 'lib' prefix
9133       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9134       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9135       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9136         # It is most probably a Windows format PATH printed by
9137         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9138         # path with ; separators, and with drive letters. We can handle the
9139         # drive letters (cygwin fileutils understands them), so leave them,
9140         # especially as we might pass files found there to a mingw objdump,
9141         # which wouldn't understand a cygwinified path. Ahh.
9142         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9143       else
9144         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9145       fi
9146       ;;
9147     pw32*)
9148       # pw32 DLLs use 'pw' prefix rather than 'lib'
9149       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9150       ;;
9151     esac
9152     ;;
9153
9154   *)
9155     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9156     ;;
9157   esac
9158   dynamic_linker='Win32 ld.exe'
9159   # FIXME: first we should search . and the directory the executable is in
9160   shlibpath_var=PATH
9161   ;;
9162
9163 darwin* | rhapsody*)
9164   dynamic_linker="$host_os dyld"
9165   version_type=darwin
9166   need_lib_prefix=no
9167   need_version=no
9168   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9169   soname_spec='${libname}${release}${major}$shared_ext'
9170   shlibpath_overrides_runpath=yes
9171   shlibpath_var=DYLD_LIBRARY_PATH
9172   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9173   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9174   if test "$GCC" = yes; then
9175     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"`
9176   else
9177     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9178   fi
9179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9180   ;;
9181
9182 dgux*)
9183   version_type=linux
9184   need_lib_prefix=no
9185   need_version=no
9186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9187   soname_spec='${libname}${release}${shared_ext}$major'
9188   shlibpath_var=LD_LIBRARY_PATH
9189   ;;
9190
9191 freebsd1*)
9192   dynamic_linker=no
9193   ;;
9194
9195 kfreebsd*-gnu)
9196   version_type=linux
9197   need_lib_prefix=no
9198   need_version=no
9199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9200   soname_spec='${libname}${release}${shared_ext}$major'
9201   shlibpath_var=LD_LIBRARY_PATH
9202   shlibpath_overrides_runpath=no
9203   hardcode_into_libs=yes
9204   dynamic_linker='GNU ld.so'
9205   ;;
9206
9207 freebsd* | dragonfly*)
9208   # DragonFly does not have aout.  When/if they implement a new
9209   # versioning mechanism, adjust this.
9210   if test -x /usr/bin/objformat; then
9211     objformat=`/usr/bin/objformat`
9212   else
9213     case $host_os in
9214     freebsd[123]*) objformat=aout ;;
9215     *) objformat=elf ;;
9216     esac
9217   fi
9218   version_type=freebsd-$objformat
9219   case $version_type in
9220     freebsd-elf*)
9221       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9222       need_version=no
9223       need_lib_prefix=no
9224       ;;
9225     freebsd-*)
9226       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9227       need_version=yes
9228       ;;
9229   esac
9230   shlibpath_var=LD_LIBRARY_PATH
9231   case $host_os in
9232   freebsd2*)
9233     shlibpath_overrides_runpath=yes
9234     ;;
9235   freebsd3.[01]* | freebsdelf3.[01]*)
9236     shlibpath_overrides_runpath=yes
9237     hardcode_into_libs=yes
9238     ;;
9239   *) # from 3.2 on
9240     shlibpath_overrides_runpath=no
9241     hardcode_into_libs=yes
9242     ;;
9243   esac
9244   ;;
9245
9246 gnu*)
9247   version_type=linux
9248   need_lib_prefix=no
9249   need_version=no
9250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9251   soname_spec='${libname}${release}${shared_ext}$major'
9252   shlibpath_var=LD_LIBRARY_PATH
9253   hardcode_into_libs=yes
9254   ;;
9255
9256 hpux9* | hpux10* | hpux11*)
9257   # Give a soname corresponding to the major version so that dld.sl refuses to
9258   # link against other versions.
9259   version_type=sunos
9260   need_lib_prefix=no
9261   need_version=no
9262   case $host_cpu in
9263   ia64*)
9264     shrext_cmds='.so'
9265     hardcode_into_libs=yes
9266     dynamic_linker="$host_os dld.so"
9267     shlibpath_var=LD_LIBRARY_PATH
9268     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9269     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9270     soname_spec='${libname}${release}${shared_ext}$major'
9271     if test "X$HPUX_IA64_MODE" = X32; then
9272       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9273     else
9274       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9275     fi
9276     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9277     ;;
9278    hppa*64*)
9279      shrext_cmds='.sl'
9280      hardcode_into_libs=yes
9281      dynamic_linker="$host_os dld.sl"
9282      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9283      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9284      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285      soname_spec='${libname}${release}${shared_ext}$major'
9286      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9287      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9288      ;;
9289    *)
9290     shrext_cmds='.sl'
9291     dynamic_linker="$host_os dld.sl"
9292     shlibpath_var=SHLIB_PATH
9293     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295     soname_spec='${libname}${release}${shared_ext}$major'
9296     ;;
9297   esac
9298   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9299   postinstall_cmds='chmod 555 $lib'
9300   ;;
9301
9302 irix5* | irix6* | nonstopux*)
9303   case $host_os in
9304     nonstopux*) version_type=nonstopux ;;
9305     *)
9306         if test "$lt_cv_prog_gnu_ld" = yes; then
9307                 version_type=linux
9308         else
9309                 version_type=irix
9310         fi ;;
9311   esac
9312   need_lib_prefix=no
9313   need_version=no
9314   soname_spec='${libname}${release}${shared_ext}$major'
9315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9316   case $host_os in
9317   irix5* | nonstopux*)
9318     libsuff= shlibsuff=
9319     ;;
9320   *)
9321     case $LD in # libtool.m4 will add one of these switches to LD
9322     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9323       libsuff= shlibsuff= libmagic=32-bit;;
9324     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9325       libsuff=32 shlibsuff=N32 libmagic=N32;;
9326     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9327       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9328     *) libsuff= shlibsuff= libmagic=never-match;;
9329     esac
9330     ;;
9331   esac
9332   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9333   shlibpath_overrides_runpath=no
9334   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9335   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9336   hardcode_into_libs=yes
9337   ;;
9338
9339 # No shared lib support for Linux oldld, aout, or coff.
9340 linux*oldld* | linux*aout* | linux*coff*)
9341   dynamic_linker=no
9342   ;;
9343
9344 # This must be Linux ELF.
9345 linux*)
9346   version_type=linux
9347   need_lib_prefix=no
9348   need_version=no
9349   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9350   soname_spec='${libname}${release}${shared_ext}$major'
9351   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9352   shlibpath_var=LD_LIBRARY_PATH
9353   shlibpath_overrides_runpath=no
9354   # This implies no fast_install, which is unacceptable.
9355   # Some rework will be needed to allow for fast_install
9356   # before this can be enabled.
9357   hardcode_into_libs=yes
9358
9359   # Append ld.so.conf contents to the search path
9360   if test -f /etc/ld.so.conf; then
9361     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' ' '`
9362     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9363   fi
9364
9365   # We used to test for /lib/ld.so.1 and disable shared libraries on
9366   # powerpc, because MkLinux only supported shared libraries with the
9367   # GNU dynamic linker.  Since this was broken with cross compilers,
9368   # most powerpc-linux boxes support dynamic linking these days and
9369   # people can always --disable-shared, the test was removed, and we
9370   # assume the GNU/Linux dynamic linker is in use.
9371   dynamic_linker='GNU/Linux ld.so'
9372   ;;
9373
9374 knetbsd*-gnu)
9375   version_type=linux
9376   need_lib_prefix=no
9377   need_version=no
9378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9379   soname_spec='${libname}${release}${shared_ext}$major'
9380   shlibpath_var=LD_LIBRARY_PATH
9381   shlibpath_overrides_runpath=no
9382   hardcode_into_libs=yes
9383   dynamic_linker='GNU ld.so'
9384   ;;
9385
9386 netbsd*)
9387   version_type=sunos
9388   need_lib_prefix=no
9389   need_version=no
9390   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9391     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9392     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9393     dynamic_linker='NetBSD (a.out) ld.so'
9394   else
9395     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9396     soname_spec='${libname}${release}${shared_ext}$major'
9397     dynamic_linker='NetBSD ld.elf_so'
9398   fi
9399   shlibpath_var=LD_LIBRARY_PATH
9400   shlibpath_overrides_runpath=yes
9401   hardcode_into_libs=yes
9402   ;;
9403
9404 newsos6)
9405   version_type=linux
9406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9407   shlibpath_var=LD_LIBRARY_PATH
9408   shlibpath_overrides_runpath=yes
9409   ;;
9410
9411 nto-qnx*)
9412   version_type=linux
9413   need_lib_prefix=no
9414   need_version=no
9415   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416   soname_spec='${libname}${release}${shared_ext}$major'
9417   shlibpath_var=LD_LIBRARY_PATH
9418   shlibpath_overrides_runpath=yes
9419   ;;
9420
9421 openbsd*)
9422   version_type=sunos
9423   need_lib_prefix=no
9424   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9425   case $host_os in
9426     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9427     *)                         need_version=no  ;;
9428   esac
9429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9430   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9431   shlibpath_var=LD_LIBRARY_PATH
9432   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9433     case $host_os in
9434       openbsd2.[89] | openbsd2.[89].*)
9435         shlibpath_overrides_runpath=no
9436         ;;
9437       *)
9438         shlibpath_overrides_runpath=yes
9439         ;;
9440       esac
9441   else
9442     shlibpath_overrides_runpath=yes
9443   fi
9444   ;;
9445
9446 os2*)
9447   libname_spec='$name'
9448   shrext_cmds=".dll"
9449   need_lib_prefix=no
9450   library_names_spec='$libname${shared_ext} $libname.a'
9451   dynamic_linker='OS/2 ld.exe'
9452   shlibpath_var=LIBPATH
9453   ;;
9454
9455 osf3* | osf4* | osf5*)
9456   version_type=osf
9457   need_lib_prefix=no
9458   need_version=no
9459   soname_spec='${libname}${release}${shared_ext}$major'
9460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461   shlibpath_var=LD_LIBRARY_PATH
9462   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9463   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9464   ;;
9465
9466 sco3.2v5*)
9467   version_type=osf
9468   soname_spec='${libname}${release}${shared_ext}$major'
9469   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470   shlibpath_var=LD_LIBRARY_PATH
9471   ;;
9472
9473 solaris*)
9474   version_type=linux
9475   need_lib_prefix=no
9476   need_version=no
9477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478   soname_spec='${libname}${release}${shared_ext}$major'
9479   shlibpath_var=LD_LIBRARY_PATH
9480   shlibpath_overrides_runpath=yes
9481   hardcode_into_libs=yes
9482   # ldd complains unless libraries are executable
9483   postinstall_cmds='chmod +x $lib'
9484   ;;
9485
9486 sunos4*)
9487   version_type=sunos
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9489   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9490   shlibpath_var=LD_LIBRARY_PATH
9491   shlibpath_overrides_runpath=yes
9492   if test "$with_gnu_ld" = yes; then
9493     need_lib_prefix=no
9494   fi
9495   need_version=yes
9496   ;;
9497
9498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9499   version_type=linux
9500   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9501   soname_spec='${libname}${release}${shared_ext}$major'
9502   shlibpath_var=LD_LIBRARY_PATH
9503   case $host_vendor in
9504     sni)
9505       shlibpath_overrides_runpath=no
9506       need_lib_prefix=no
9507       export_dynamic_flag_spec='${wl}-Blargedynsym'
9508       runpath_var=LD_RUN_PATH
9509       ;;
9510     siemens)
9511       need_lib_prefix=no
9512       ;;
9513     motorola)
9514       need_lib_prefix=no
9515       need_version=no
9516       shlibpath_overrides_runpath=no
9517       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9518       ;;
9519   esac
9520   ;;
9521
9522 sysv4*MP*)
9523   if test -d /usr/nec ;then
9524     version_type=linux
9525     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9526     soname_spec='$libname${shared_ext}.$major'
9527     shlibpath_var=LD_LIBRARY_PATH
9528   fi
9529   ;;
9530
9531 uts4*)
9532   version_type=linux
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   soname_spec='${libname}${release}${shared_ext}$major'
9535   shlibpath_var=LD_LIBRARY_PATH
9536   ;;
9537
9538 *)
9539   dynamic_linker=no
9540   ;;
9541 esac
9542 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9543 echo "${ECHO_T}$dynamic_linker" >&6
9544 test "$dynamic_linker" = no && can_build_shared=no
9545
9546 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9548 hardcode_action=
9549 if test -n "$hardcode_libdir_flag_spec" || \
9550    test -n "$runpath_var" || \
9551    test "X$hardcode_automatic" = "Xyes" ; then
9552
9553   # We can hardcode non-existant directories.
9554   if test "$hardcode_direct" != no &&
9555      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9556      # have to relink, otherwise we might link with an installed library
9557      # when we should be linking with a yet-to-be-installed one
9558      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9559      test "$hardcode_minus_L" != no; then
9560     # Linking always hardcodes the temporary library directory.
9561     hardcode_action=relink
9562   else
9563     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9564     hardcode_action=immediate
9565   fi
9566 else
9567   # We cannot hardcode anything, or else we can only hardcode existing
9568   # directories.
9569   hardcode_action=unsupported
9570 fi
9571 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9572 echo "${ECHO_T}$hardcode_action" >&6
9573
9574 if test "$hardcode_action" = relink; then
9575   # Fast installation is not supported
9576   enable_fast_install=no
9577 elif test "$shlibpath_overrides_runpath" = yes ||
9578      test "$enable_shared" = no; then
9579   # Fast installation is not necessary
9580   enable_fast_install=needless
9581 fi
9582
9583 striplib=
9584 old_striplib=
9585 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9586 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9587 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9588   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9589   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9590   echo "$as_me:$LINENO: result: yes" >&5
9591 echo "${ECHO_T}yes" >&6
9592 else
9593 # FIXME - insert some real tests, host_os isn't really good enough
9594   case $host_os in
9595    darwin*)
9596        if test -n "$STRIP" ; then
9597          striplib="$STRIP -x"
9598          echo "$as_me:$LINENO: result: yes" >&5
9599 echo "${ECHO_T}yes" >&6
9600        else
9601   echo "$as_me:$LINENO: result: no" >&5
9602 echo "${ECHO_T}no" >&6
9603 fi
9604        ;;
9605    *)
9606   echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6
9608     ;;
9609   esac
9610 fi
9611
9612 if test "x$enable_dlopen" != xyes; then
9613   enable_dlopen=unknown
9614   enable_dlopen_self=unknown
9615   enable_dlopen_self_static=unknown
9616 else
9617   lt_cv_dlopen=no
9618   lt_cv_dlopen_libs=
9619
9620   case $host_os in
9621   beos*)
9622     lt_cv_dlopen="load_add_on"
9623     lt_cv_dlopen_libs=
9624     lt_cv_dlopen_self=yes
9625     ;;
9626
9627   mingw* | pw32*)
9628     lt_cv_dlopen="LoadLibrary"
9629     lt_cv_dlopen_libs=
9630    ;;
9631
9632   cygwin*)
9633     lt_cv_dlopen="dlopen"
9634     lt_cv_dlopen_libs=
9635    ;;
9636
9637   darwin*)
9638   # if libdl is installed we need to link against it
9639     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9642   echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644   ac_check_lib_save_LIBS=$LIBS
9645 LIBS="-ldl  $LIBS"
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 /* Override any gcc2 internal prototype to avoid an error.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 /* We use char because int might match the return type of a gcc2
9658    builtin and then its argument prototype would still apply.  */
9659 char dlopen ();
9660 int
9661 main ()
9662 {
9663 dlopen ();
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag"
9678                          || test ! -s conftest.err'
9679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680   (eval $ac_try) 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; } &&
9684          { ac_try='test -s conftest$ac_exeext'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   ac_cv_lib_dl_dlopen=yes
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695 ac_cv_lib_dl_dlopen=no
9696 fi
9697 rm -f conftest.err conftest.$ac_objext \
9698       conftest$ac_exeext conftest.$ac_ext
9699 LIBS=$ac_check_lib_save_LIBS
9700 fi
9701 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9702 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9703 if test $ac_cv_lib_dl_dlopen = yes; then
9704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9705 else
9706
9707     lt_cv_dlopen="dyld"
9708     lt_cv_dlopen_libs=
9709     lt_cv_dlopen_self=yes
9710
9711 fi
9712
9713    ;;
9714
9715   *)
9716     echo "$as_me:$LINENO: checking for shl_load" >&5
9717 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9718 if test "${ac_cv_func_shl_load+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9729 #define shl_load innocuous_shl_load
9730
9731 /* System header to define __stub macros and hopefully few prototypes,
9732     which can conflict with char shl_load (); below.
9733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9734     <limits.h> exists even on freestanding compilers.  */
9735
9736 #ifdef __STDC__
9737 # include <limits.h>
9738 #else
9739 # include <assert.h>
9740 #endif
9741
9742 #undef shl_load
9743
9744 /* Override any gcc2 internal prototype to avoid an error.  */
9745 #ifdef __cplusplus
9746 extern "C"
9747 {
9748 #endif
9749 /* We use char because int might match the return type of a gcc2
9750    builtin and then its argument prototype would still apply.  */
9751 char shl_load ();
9752 /* The GNU C library defines this for functions which it implements
9753     to always fail with ENOSYS.  Some functions are actually named
9754     something starting with __ and the normal name is an alias.  */
9755 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9756 choke me
9757 #else
9758 char (*f) () = shl_load;
9759 #endif
9760 #ifdef __cplusplus
9761 }
9762 #endif
9763
9764 int
9765 main ()
9766 {
9767 return f != shl_load;
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774   (eval $ac_link) 2>conftest.er1
9775   ac_status=$?
9776   grep -v '^ *+' conftest.er1 >conftest.err
9777   rm -f conftest.er1
9778   cat conftest.err >&5
9779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780   (exit $ac_status); } &&
9781          { ac_try='test -z "$ac_c_werror_flag"
9782                          || test ! -s conftest.err'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_func_shl_load=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_cv_func_shl_load=no
9800 fi
9801 rm -f conftest.err conftest.$ac_objext \
9802       conftest$ac_exeext conftest.$ac_ext
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9805 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9806 if test $ac_cv_func_shl_load = yes; then
9807   lt_cv_dlopen="shl_load"
9808 else
9809   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9810 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9811 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9812   echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814   ac_check_lib_save_LIBS=$LIBS
9815 LIBS="-ldld  $LIBS"
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822
9823 /* Override any gcc2 internal prototype to avoid an error.  */
9824 #ifdef __cplusplus
9825 extern "C"
9826 #endif
9827 /* We use char because int might match the return type of a gcc2
9828    builtin and then its argument prototype would still apply.  */
9829 char shl_load ();
9830 int
9831 main ()
9832 {
9833 shl_load ();
9834   ;
9835   return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840   (eval $ac_link) 2>conftest.er1
9841   ac_status=$?
9842   grep -v '^ *+' conftest.er1 >conftest.err
9843   rm -f conftest.er1
9844   cat conftest.err >&5
9845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846   (exit $ac_status); } &&
9847          { ac_try='test -z "$ac_c_werror_flag"
9848                          || test ! -s conftest.err'
9849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9850   (eval $ac_try) 2>&5
9851   ac_status=$?
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); }; } &&
9854          { ac_try='test -s conftest$ac_exeext'
9855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856   (eval $ac_try) 2>&5
9857   ac_status=$?
9858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859   (exit $ac_status); }; }; then
9860   ac_cv_lib_dld_shl_load=yes
9861 else
9862   echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ac_cv_lib_dld_shl_load=no
9866 fi
9867 rm -f conftest.err conftest.$ac_objext \
9868       conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_lib_save_LIBS
9870 fi
9871 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9873 if test $ac_cv_lib_dld_shl_load = yes; then
9874   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9875 else
9876   echo "$as_me:$LINENO: checking for dlopen" >&5
9877 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9878 if test "${ac_cv_func_dlopen+set}" = set; then
9879   echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881   cat >conftest.$ac_ext <<_ACEOF
9882 /* confdefs.h.  */
9883 _ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h.  */
9887 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9888    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9889 #define dlopen innocuous_dlopen
9890
9891 /* System header to define __stub macros and hopefully few prototypes,
9892     which can conflict with char dlopen (); below.
9893     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9894     <limits.h> exists even on freestanding compilers.  */
9895
9896 #ifdef __STDC__
9897 # include <limits.h>
9898 #else
9899 # include <assert.h>
9900 #endif
9901
9902 #undef dlopen
9903
9904 /* Override any gcc2 internal prototype to avoid an error.  */
9905 #ifdef __cplusplus
9906 extern "C"
9907 {
9908 #endif
9909 /* We use char because int might match the return type of a gcc2
9910    builtin and then its argument prototype would still apply.  */
9911 char dlopen ();
9912 /* The GNU C library defines this for functions which it implements
9913     to always fail with ENOSYS.  Some functions are actually named
9914     something starting with __ and the normal name is an alias.  */
9915 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9916 choke me
9917 #else
9918 char (*f) () = dlopen;
9919 #endif
9920 #ifdef __cplusplus
9921 }
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 return f != dlopen;
9928   ;
9929   return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934   (eval $ac_link) 2>conftest.er1
9935   ac_status=$?
9936   grep -v '^ *+' conftest.er1 >conftest.err
9937   rm -f conftest.er1
9938   cat conftest.err >&5
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -z "$ac_c_werror_flag"
9942                          || test ! -s conftest.err'
9943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944   (eval $ac_try) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); }; } &&
9948          { ac_try='test -s conftest$ac_exeext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_func_dlopen=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_func_dlopen=no
9960 fi
9961 rm -f conftest.err conftest.$ac_objext \
9962       conftest$ac_exeext conftest.$ac_ext
9963 fi
9964 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9965 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9966 if test $ac_cv_func_dlopen = yes; then
9967   lt_cv_dlopen="dlopen"
9968 else
9969   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9970 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9971 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974   ac_check_lib_save_LIBS=$LIBS
9975 LIBS="-ldl  $LIBS"
9976 cat >conftest.$ac_ext <<_ACEOF
9977 /* confdefs.h.  */
9978 _ACEOF
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h.  */
9982
9983 /* Override any gcc2 internal prototype to avoid an error.  */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 /* We use char because int might match the return type of a gcc2
9988    builtin and then its argument prototype would still apply.  */
9989 char dlopen ();
9990 int
9991 main ()
9992 {
9993 dlopen ();
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10000   (eval $ac_link) 2>conftest.er1
10001   ac_status=$?
10002   grep -v '^ *+' conftest.er1 >conftest.err
10003   rm -f conftest.er1
10004   cat conftest.err >&5
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -z "$ac_c_werror_flag"
10008                          || test ! -s conftest.err'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; } &&
10014          { ac_try='test -s conftest$ac_exeext'
10015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10016   (eval $ac_try) 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; }; then
10020   ac_cv_lib_dl_dlopen=yes
10021 else
10022   echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_cv_lib_dl_dlopen=no
10026 fi
10027 rm -f conftest.err conftest.$ac_objext \
10028       conftest$ac_exeext conftest.$ac_ext
10029 LIBS=$ac_check_lib_save_LIBS
10030 fi
10031 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10033 if test $ac_cv_lib_dl_dlopen = yes; then
10034   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10035 else
10036   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10037 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10038 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_check_lib_save_LIBS=$LIBS
10042 LIBS="-lsvld  $LIBS"
10043 cat >conftest.$ac_ext <<_ACEOF
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char dlopen ();
10057 int
10058 main ()
10059 {
10060 dlopen ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067   (eval $ac_link) 2>conftest.er1
10068   ac_status=$?
10069   grep -v '^ *+' conftest.er1 >conftest.err
10070   rm -f conftest.er1
10071   cat conftest.err >&5
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); } &&
10074          { ac_try='test -z "$ac_c_werror_flag"
10075                          || test ! -s conftest.err'
10076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077   (eval $ac_try) 2>&5
10078   ac_status=$?
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   (exit $ac_status); }; } &&
10081          { ac_try='test -s conftest$ac_exeext'
10082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083   (eval $ac_try) 2>&5
10084   ac_status=$?
10085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086   (exit $ac_status); }; }; then
10087   ac_cv_lib_svld_dlopen=yes
10088 else
10089   echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_lib_svld_dlopen=no
10093 fi
10094 rm -f conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10100 if test $ac_cv_lib_svld_dlopen = yes; then
10101   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10102 else
10103   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108   ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-ldld  $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116
10117 /* Override any gcc2 internal prototype to avoid an error.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 #endif
10121 /* We use char because int might match the return type of a gcc2
10122    builtin and then its argument prototype would still apply.  */
10123 char dld_link ();
10124 int
10125 main ()
10126 {
10127 dld_link ();
10128   ;
10129   return 0;
10130 }
10131 _ACEOF
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134   (eval $ac_link) 2>conftest.er1
10135   ac_status=$?
10136   grep -v '^ *+' conftest.er1 >conftest.err
10137   rm -f conftest.er1
10138   cat conftest.err >&5
10139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140   (exit $ac_status); } &&
10141          { ac_try='test -z "$ac_c_werror_flag"
10142                          || test ! -s conftest.err'
10143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144   (eval $ac_try) 2>&5
10145   ac_status=$?
10146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147   (exit $ac_status); }; } &&
10148          { ac_try='test -s conftest$ac_exeext'
10149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150   (eval $ac_try) 2>&5
10151   ac_status=$?
10152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153   (exit $ac_status); }; }; then
10154   ac_cv_lib_dld_dld_link=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159 ac_cv_lib_dld_dld_link=no
10160 fi
10161 rm -f conftest.err conftest.$ac_objext \
10162       conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10166 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10167 if test $ac_cv_lib_dld_dld_link = yes; then
10168   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10169 fi
10170
10171
10172 fi
10173
10174
10175 fi
10176
10177
10178 fi
10179
10180
10181 fi
10182
10183
10184 fi
10185
10186     ;;
10187   esac
10188
10189   if test "x$lt_cv_dlopen" != xno; then
10190     enable_dlopen=yes
10191   else
10192     enable_dlopen=no
10193   fi
10194
10195   case $lt_cv_dlopen in
10196   dlopen)
10197     save_CPPFLAGS="$CPPFLAGS"
10198     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10199
10200     save_LDFLAGS="$LDFLAGS"
10201     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10202
10203     save_LIBS="$LIBS"
10204     LIBS="$lt_cv_dlopen_libs $LIBS"
10205
10206     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10207 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10208 if test "${lt_cv_dlopen_self+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211           if test "$cross_compiling" = yes; then :
10212   lt_cv_dlopen_self=cross
10213 else
10214   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10215   lt_status=$lt_dlunknown
10216   cat > conftest.$ac_ext <<EOF
10217 #line 10217 "configure"
10218 #include "confdefs.h"
10219
10220 #if HAVE_DLFCN_H
10221 #include <dlfcn.h>
10222 #endif
10223
10224 #include <stdio.h>
10225
10226 #ifdef RTLD_GLOBAL
10227 #  define LT_DLGLOBAL           RTLD_GLOBAL
10228 #else
10229 #  ifdef DL_GLOBAL
10230 #    define LT_DLGLOBAL         DL_GLOBAL
10231 #  else
10232 #    define LT_DLGLOBAL         0
10233 #  endif
10234 #endif
10235
10236 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10237    find out it does not work in some platform. */
10238 #ifndef LT_DLLAZY_OR_NOW
10239 #  ifdef RTLD_LAZY
10240 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10241 #  else
10242 #    ifdef DL_LAZY
10243 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10244 #    else
10245 #      ifdef RTLD_NOW
10246 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10247 #      else
10248 #        ifdef DL_NOW
10249 #          define LT_DLLAZY_OR_NOW      DL_NOW
10250 #        else
10251 #          define LT_DLLAZY_OR_NOW      0
10252 #        endif
10253 #      endif
10254 #    endif
10255 #  endif
10256 #endif
10257
10258 #ifdef __cplusplus
10259 extern "C" void exit (int);
10260 #endif
10261
10262 void fnord() { int i=42;}
10263 int main ()
10264 {
10265   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10266   int status = $lt_dlunknown;
10267
10268   if (self)
10269     {
10270       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10271       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10272       /* dlclose (self); */
10273     }
10274
10275     exit (status);
10276 }
10277 EOF
10278   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279   (eval $ac_link) 2>&5
10280   ac_status=$?
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10283     (./conftest; exit; ) >&5 2>/dev/null
10284     lt_status=$?
10285     case x$lt_status in
10286       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10287       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10288       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10289     esac
10290   else :
10291     # compilation failed
10292     lt_cv_dlopen_self=no
10293   fi
10294 fi
10295 rm -fr conftest*
10296
10297
10298 fi
10299 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10300 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10301
10302     if test "x$lt_cv_dlopen_self" = xyes; then
10303       LDFLAGS="$LDFLAGS $link_static_flag"
10304       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10305 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10306 if test "${lt_cv_dlopen_self_static+set}" = set; then
10307   echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309           if test "$cross_compiling" = yes; then :
10310   lt_cv_dlopen_self_static=cross
10311 else
10312   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10313   lt_status=$lt_dlunknown
10314   cat > conftest.$ac_ext <<EOF
10315 #line 10315 "configure"
10316 #include "confdefs.h"
10317
10318 #if HAVE_DLFCN_H
10319 #include <dlfcn.h>
10320 #endif
10321
10322 #include <stdio.h>
10323
10324 #ifdef RTLD_GLOBAL
10325 #  define LT_DLGLOBAL           RTLD_GLOBAL
10326 #else
10327 #  ifdef DL_GLOBAL
10328 #    define LT_DLGLOBAL         DL_GLOBAL
10329 #  else
10330 #    define LT_DLGLOBAL         0
10331 #  endif
10332 #endif
10333
10334 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10335    find out it does not work in some platform. */
10336 #ifndef LT_DLLAZY_OR_NOW
10337 #  ifdef RTLD_LAZY
10338 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10339 #  else
10340 #    ifdef DL_LAZY
10341 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10342 #    else
10343 #      ifdef RTLD_NOW
10344 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10345 #      else
10346 #        ifdef DL_NOW
10347 #          define LT_DLLAZY_OR_NOW      DL_NOW
10348 #        else
10349 #          define LT_DLLAZY_OR_NOW      0
10350 #        endif
10351 #      endif
10352 #    endif
10353 #  endif
10354 #endif
10355
10356 #ifdef __cplusplus
10357 extern "C" void exit (int);
10358 #endif
10359
10360 void fnord() { int i=42;}
10361 int main ()
10362 {
10363   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10364   int status = $lt_dlunknown;
10365
10366   if (self)
10367     {
10368       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10369       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10370       /* dlclose (self); */
10371     }
10372
10373     exit (status);
10374 }
10375 EOF
10376   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10377   (eval $ac_link) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10381     (./conftest; exit; ) >&5 2>/dev/null
10382     lt_status=$?
10383     case x$lt_status in
10384       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10385       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10386       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10387     esac
10388   else :
10389     # compilation failed
10390     lt_cv_dlopen_self_static=no
10391   fi
10392 fi
10393 rm -fr conftest*
10394
10395
10396 fi
10397 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10398 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10399     fi
10400
10401     CPPFLAGS="$save_CPPFLAGS"
10402     LDFLAGS="$save_LDFLAGS"
10403     LIBS="$save_LIBS"
10404     ;;
10405   esac
10406
10407   case $lt_cv_dlopen_self in
10408   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10409   *) enable_dlopen_self=unknown ;;
10410   esac
10411
10412   case $lt_cv_dlopen_self_static in
10413   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10414   *) enable_dlopen_self_static=unknown ;;
10415   esac
10416 fi
10417
10418
10419 # Report which librarie types wil actually be built
10420 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10421 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10422 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10423 echo "${ECHO_T}$can_build_shared" >&6
10424
10425 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10426 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10427 test "$can_build_shared" = "no" && enable_shared=no
10428
10429 # On AIX, shared libraries and static libraries use the same namespace, and
10430 # are all built from PIC.
10431 case $host_os in
10432 aix3*)
10433   test "$enable_shared" = yes && enable_static=no
10434   if test -n "$RANLIB"; then
10435     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10436     postinstall_cmds='$RANLIB $lib'
10437   fi
10438   ;;
10439
10440 aix4* | aix5*)
10441   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10442     test "$enable_shared" = yes && enable_static=no
10443   fi
10444     ;;
10445 esac
10446 echo "$as_me:$LINENO: result: $enable_shared" >&5
10447 echo "${ECHO_T}$enable_shared" >&6
10448
10449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10451 # Make sure either enable_shared or enable_static is yes.
10452 test "$enable_shared" = yes || enable_static=yes
10453 echo "$as_me:$LINENO: result: $enable_static" >&5
10454 echo "${ECHO_T}$enable_static" >&6
10455
10456 # The else clause should only fire when bootstrapping the
10457 # libtool distribution, otherwise you forgot to ship ltmain.sh
10458 # with your package, and you will get complaints that there are
10459 # no rules to generate ltmain.sh.
10460 if test -f "$ltmain"; then
10461   # See if we are running on zsh, and set the options which allow our commands through
10462   # without removal of \ escapes.
10463   if test -n "${ZSH_VERSION+set}" ; then
10464     setopt NO_GLOB_SUBST
10465   fi
10466   # Now quote all the things that may contain metacharacters while being
10467   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10468   # variables and quote the copies for generation of the libtool script.
10469   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10470     SED SHELL STRIP \
10471     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10472     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10473     deplibs_check_method reload_flag reload_cmds need_locks \
10474     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10475     lt_cv_sys_global_symbol_to_c_name_address \
10476     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10477     old_postinstall_cmds old_postuninstall_cmds \
10478     compiler \
10479     CC \
10480     LD \
10481     lt_prog_compiler_wl \
10482     lt_prog_compiler_pic \
10483     lt_prog_compiler_static \
10484     lt_prog_compiler_no_builtin_flag \
10485     export_dynamic_flag_spec \
10486     thread_safe_flag_spec \
10487     whole_archive_flag_spec \
10488     enable_shared_with_static_runtimes \
10489     old_archive_cmds \
10490     old_archive_from_new_cmds \
10491     predep_objects \
10492     postdep_objects \
10493     predeps \
10494     postdeps \
10495     compiler_lib_search_path \
10496     archive_cmds \
10497     archive_expsym_cmds \
10498     postinstall_cmds \
10499     postuninstall_cmds \
10500     old_archive_from_expsyms_cmds \
10501     allow_undefined_flag \
10502     no_undefined_flag \
10503     export_symbols_cmds \
10504     hardcode_libdir_flag_spec \
10505     hardcode_libdir_flag_spec_ld \
10506     hardcode_libdir_separator \
10507     hardcode_automatic \
10508     module_cmds \
10509     module_expsym_cmds \
10510     lt_cv_prog_compiler_c_o \
10511     exclude_expsyms \
10512     include_expsyms; do
10513
10514     case $var in
10515     old_archive_cmds | \
10516     old_archive_from_new_cmds | \
10517     archive_cmds | \
10518     archive_expsym_cmds | \
10519     module_cmds | \
10520     module_expsym_cmds | \
10521     old_archive_from_expsyms_cmds | \
10522     export_symbols_cmds | \
10523     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10524     postinstall_cmds | postuninstall_cmds | \
10525     old_postinstall_cmds | old_postuninstall_cmds | \
10526     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10527       # Double-quote double-evaled strings.
10528       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10529       ;;
10530     *)
10531       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10532       ;;
10533     esac
10534   done
10535
10536   case $lt_echo in
10537   *'\$0 --fallback-echo"')
10538     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10539     ;;
10540   esac
10541
10542 cfgfile="${ofile}T"
10543   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10544   $rm -f "$cfgfile"
10545   { echo "$as_me:$LINENO: creating $ofile" >&5
10546 echo "$as_me: creating $ofile" >&6;}
10547
10548   cat <<__EOF__ >> "$cfgfile"
10549 #! $SHELL
10550
10551 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10552 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10553 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10554 #
10555 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10556 # Free Software Foundation, Inc.
10557 #
10558 # This file is part of GNU Libtool:
10559 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10560 #
10561 # This program is free software; you can redistribute it and/or modify
10562 # it under the terms of the GNU General Public License as published by
10563 # the Free Software Foundation; either version 2 of the License, or
10564 # (at your option) any later version.
10565 #
10566 # This program is distributed in the hope that it will be useful, but
10567 # WITHOUT ANY WARRANTY; without even the implied warranty of
10568 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10569 # General Public License for more details.
10570 #
10571 # You should have received a copy of the GNU General Public License
10572 # along with this program; if not, write to the Free Software
10573 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10574 #
10575 # As a special exception to the GNU General Public License, if you
10576 # distribute this file as part of a program that contains a
10577 # configuration script generated by Autoconf, you may include it under
10578 # the same distribution terms that you use for the rest of that program.
10579
10580 # A sed program that does not truncate output.
10581 SED=$lt_SED
10582
10583 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10584 Xsed="$SED -e 1s/^X//"
10585
10586 # The HP-UX ksh and POSIX shell print the target directory to stdout
10587 # if CDPATH is set.
10588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10589
10590 # The names of the tagged configurations supported by this script.
10591 available_tags=
10592
10593 # ### BEGIN LIBTOOL CONFIG
10594
10595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10596
10597 # Shell to use when invoking shell scripts.
10598 SHELL=$lt_SHELL
10599
10600 # Whether or not to build shared libraries.
10601 build_libtool_libs=$enable_shared
10602
10603 # Whether or not to build static libraries.
10604 build_old_libs=$enable_static
10605
10606 # Whether or not to add -lc for building shared libraries.
10607 build_libtool_need_lc=$archive_cmds_need_lc
10608
10609 # Whether or not to disallow shared libs when runtime libs are static
10610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10611
10612 # Whether or not to optimize for fast installation.
10613 fast_install=$enable_fast_install
10614
10615 # The host system.
10616 host_alias=$host_alias
10617 host=$host
10618 host_os=$host_os
10619
10620 # The build system.
10621 build_alias=$build_alias
10622 build=$build
10623 build_os=$build_os
10624
10625 # An echo program that does not interpret backslashes.
10626 echo=$lt_echo
10627
10628 # The archiver.
10629 AR=$lt_AR
10630 AR_FLAGS=$lt_AR_FLAGS
10631
10632 # A C compiler.
10633 LTCC=$lt_LTCC
10634
10635 # A language-specific compiler.
10636 CC=$lt_compiler
10637
10638 # Is the compiler the GNU C compiler?
10639 with_gcc=$GCC
10640
10641 # An ERE matcher.
10642 EGREP=$lt_EGREP
10643
10644 # The linker used to build libraries.
10645 LD=$lt_LD
10646
10647 # Whether we need hard or soft links.
10648 LN_S=$lt_LN_S
10649
10650 # A BSD-compatible nm program.
10651 NM=$lt_NM
10652
10653 # A symbol stripping program
10654 STRIP=$lt_STRIP
10655
10656 # Used to examine libraries when file_magic_cmd begins "file"
10657 MAGIC_CMD=$MAGIC_CMD
10658
10659 # Used on cygwin: DLL creation program.
10660 DLLTOOL="$DLLTOOL"
10661
10662 # Used on cygwin: object dumper.
10663 OBJDUMP="$OBJDUMP"
10664
10665 # Used on cygwin: assembler.
10666 AS="$AS"
10667
10668 # The name of the directory that contains temporary libtool files.
10669 objdir=$objdir
10670
10671 # How to create reloadable object files.
10672 reload_flag=$lt_reload_flag
10673 reload_cmds=$lt_reload_cmds
10674
10675 # How to pass a linker flag through the compiler.
10676 wl=$lt_lt_prog_compiler_wl
10677
10678 # Object file suffix (normally "o").
10679 objext="$ac_objext"
10680
10681 # Old archive suffix (normally "a").
10682 libext="$libext"
10683
10684 # Shared library suffix (normally ".so").
10685 shrext_cmds='$shrext_cmds'
10686
10687 # Executable file suffix (normally "").
10688 exeext="$exeext"
10689
10690 # Additional compiler flags for building library objects.
10691 pic_flag=$lt_lt_prog_compiler_pic
10692 pic_mode=$pic_mode
10693
10694 # What is the maximum length of a command?
10695 max_cmd_len=$lt_cv_sys_max_cmd_len
10696
10697 # Does compiler simultaneously support -c and -o options?
10698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10699
10700 # Must we lock files when doing compilation?
10701 need_locks=$lt_need_locks
10702
10703 # Do we need the lib prefix for modules?
10704 need_lib_prefix=$need_lib_prefix
10705
10706 # Do we need a version for libraries?
10707 need_version=$need_version
10708
10709 # Whether dlopen is supported.
10710 dlopen_support=$enable_dlopen
10711
10712 # Whether dlopen of programs is supported.
10713 dlopen_self=$enable_dlopen_self
10714
10715 # Whether dlopen of statically linked programs is supported.
10716 dlopen_self_static=$enable_dlopen_self_static
10717
10718 # Compiler flag to prevent dynamic linking.
10719 link_static_flag=$lt_lt_prog_compiler_static
10720
10721 # Compiler flag to turn off builtin functions.
10722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10723
10724 # Compiler flag to allow reflexive dlopens.
10725 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10726
10727 # Compiler flag to generate shared objects directly from archives.
10728 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10729
10730 # Compiler flag to generate thread-safe objects.
10731 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10732
10733 # Library versioning type.
10734 version_type=$version_type
10735
10736 # Format of library name prefix.
10737 libname_spec=$lt_libname_spec
10738
10739 # List of archive names.  First name is the real one, the rest are links.
10740 # The last name is the one that the linker finds with -lNAME.
10741 library_names_spec=$lt_library_names_spec
10742
10743 # The coded name of the library, if different from the real name.
10744 soname_spec=$lt_soname_spec
10745
10746 # Commands used to build and install an old-style archive.
10747 RANLIB=$lt_RANLIB
10748 old_archive_cmds=$lt_old_archive_cmds
10749 old_postinstall_cmds=$lt_old_postinstall_cmds
10750 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10751
10752 # Create an old-style archive from a shared archive.
10753 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10754
10755 # Create a temporary old-style archive to link instead of a shared archive.
10756 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10757
10758 # Commands used to build and install a shared archive.
10759 archive_cmds=$lt_archive_cmds
10760 archive_expsym_cmds=$lt_archive_expsym_cmds
10761 postinstall_cmds=$lt_postinstall_cmds
10762 postuninstall_cmds=$lt_postuninstall_cmds
10763
10764 # Commands used to build a loadable module (assumed same as above if empty)
10765 module_cmds=$lt_module_cmds
10766 module_expsym_cmds=$lt_module_expsym_cmds
10767
10768 # Commands to strip libraries.
10769 old_striplib=$lt_old_striplib
10770 striplib=$lt_striplib
10771
10772 # Dependencies to place before the objects being linked to create a
10773 # shared library.
10774 predep_objects=$lt_predep_objects
10775
10776 # Dependencies to place after the objects being linked to create a
10777 # shared library.
10778 postdep_objects=$lt_postdep_objects
10779
10780 # Dependencies to place before the objects being linked to create a
10781 # shared library.
10782 predeps=$lt_predeps
10783
10784 # Dependencies to place after the objects being linked to create a
10785 # shared library.
10786 postdeps=$lt_postdeps
10787
10788 # The library search path used internally by the compiler when linking
10789 # a shared library.
10790 compiler_lib_search_path=$lt_compiler_lib_search_path
10791
10792 # Method to check whether dependent libraries are shared objects.
10793 deplibs_check_method=$lt_deplibs_check_method
10794
10795 # Command to use when deplibs_check_method == file_magic.
10796 file_magic_cmd=$lt_file_magic_cmd
10797
10798 # Flag that allows shared libraries with undefined symbols to be built.
10799 allow_undefined_flag=$lt_allow_undefined_flag
10800
10801 # Flag that forces no undefined symbols.
10802 no_undefined_flag=$lt_no_undefined_flag
10803
10804 # Commands used to finish a libtool library installation in a directory.
10805 finish_cmds=$lt_finish_cmds
10806
10807 # Same as above, but a single script fragment to be evaled but not shown.
10808 finish_eval=$lt_finish_eval
10809
10810 # Take the output of nm and produce a listing of raw symbols and C names.
10811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10812
10813 # Transform the output of nm in a proper C declaration
10814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10815
10816 # Transform the output of nm in a C name address pair
10817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10818
10819 # This is the shared library runtime path variable.
10820 runpath_var=$runpath_var
10821
10822 # This is the shared library path variable.
10823 shlibpath_var=$shlibpath_var
10824
10825 # Is shlibpath searched before the hard-coded library search path?
10826 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10827
10828 # How to hardcode a shared library path into an executable.
10829 hardcode_action=$hardcode_action
10830
10831 # Whether we should hardcode library paths into libraries.
10832 hardcode_into_libs=$hardcode_into_libs
10833
10834 # Flag to hardcode \$libdir into a binary during linking.
10835 # This must work even if \$libdir does not exist.
10836 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10837
10838 # If ld is used when linking, flag to hardcode \$libdir into
10839 # a binary during linking. This must work even if \$libdir does
10840 # not exist.
10841 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10842
10843 # Whether we need a single -rpath flag with a separated argument.
10844 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10845
10846 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10847 # resulting binary.
10848 hardcode_direct=$hardcode_direct
10849
10850 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10851 # resulting binary.
10852 hardcode_minus_L=$hardcode_minus_L
10853
10854 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10855 # the resulting binary.
10856 hardcode_shlibpath_var=$hardcode_shlibpath_var
10857
10858 # Set to yes if building a shared library automatically hardcodes DIR into the library
10859 # and all subsequent libraries and executables linked against it.
10860 hardcode_automatic=$hardcode_automatic
10861
10862 # Variables whose values should be saved in libtool wrapper scripts and
10863 # restored at relink time.
10864 variables_saved_for_relink="$variables_saved_for_relink"
10865
10866 # Whether libtool must link a program against all its dependency libraries.
10867 link_all_deplibs=$link_all_deplibs
10868
10869 # Compile-time system search path for libraries
10870 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10871
10872 # Run-time system search path for libraries
10873 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10874
10875 # Fix the shell variable \$srcfile for the compiler.
10876 fix_srcfile_path="$fix_srcfile_path"
10877
10878 # Set to yes if exported symbols are required.
10879 always_export_symbols=$always_export_symbols
10880
10881 # The commands to list exported symbols.
10882 export_symbols_cmds=$lt_export_symbols_cmds
10883
10884 # The commands to extract the exported symbol list from a shared archive.
10885 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10886
10887 # Symbols that should not be listed in the preloaded symbols.
10888 exclude_expsyms=$lt_exclude_expsyms
10889
10890 # Symbols that must always be exported.
10891 include_expsyms=$lt_include_expsyms
10892
10893 # ### END LIBTOOL CONFIG
10894
10895 __EOF__
10896
10897
10898   case $host_os in
10899   aix3*)
10900     cat <<\EOF >> "$cfgfile"
10901
10902 # AIX sometimes has problems with the GCC collect2 program.  For some
10903 # reason, if we set the COLLECT_NAMES environment variable, the problems
10904 # vanish in a puff of smoke.
10905 if test "X${COLLECT_NAMES+set}" != Xset; then
10906   COLLECT_NAMES=
10907   export COLLECT_NAMES
10908 fi
10909 EOF
10910     ;;
10911   esac
10912
10913   # We use sed instead of cat because bash on DJGPP gets confused if
10914   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10915   # text mode, it properly converts lines to CR/LF.  This bash problem
10916   # is reportedly fixed, but why not run on old versions too?
10917   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10918
10919   mv -f "$cfgfile" "$ofile" || \
10920     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10921   chmod +x "$ofile"
10922
10923 else
10924   # If there is no Makefile yet, we rely on a make rule to execute
10925   # `config.status --recheck' to rerun these tests and create the
10926   # libtool script then.
10927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10928   if test -f "$ltmain_in"; then
10929     test -f Makefile && make "$ltmain"
10930   fi
10931 fi
10932
10933
10934 ac_ext=c
10935 ac_cpp='$CPP $CPPFLAGS'
10936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10939
10940 CC="$lt_save_CC"
10941
10942
10943 # Check whether --with-tags or --without-tags was given.
10944 if test "${with_tags+set}" = set; then
10945   withval="$with_tags"
10946   tagnames="$withval"
10947 fi;
10948
10949 if test -f "$ltmain" && test -n "$tagnames"; then
10950   if test ! -f "${ofile}"; then
10951     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10952 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10953   fi
10954
10955   if test -z "$LTCC"; then
10956     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10957     if test -z "$LTCC"; then
10958       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10959 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10960     else
10961       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10962 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10963     fi
10964   fi
10965
10966   # Extract list of available tagged configurations in $ofile.
10967   # Note that this assumes the entire list is on one line.
10968   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10969
10970   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10971   for tagname in $tagnames; do
10972     IFS="$lt_save_ifs"
10973     # Check whether tagname contains only valid characters
10974     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10975     "") ;;
10976     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10977 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10978    { (exit 1); exit 1; }; }
10979         ;;
10980     esac
10981
10982     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10983     then
10984       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10985 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10986    { (exit 1); exit 1; }; }
10987     fi
10988
10989     # Update the list of available tags.
10990     if test -n "$tagname"; then
10991       echo appending configuration tag \"$tagname\" to $ofile
10992
10993       case $tagname in
10994       CXX)
10995         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10996             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10997             (test "X$CXX" != "Xg++"))) ; then
10998           :
10999         else
11000           tagname=""
11001         fi
11002         ;;
11003
11004       F77)
11005         if test -n "$F77" && test "X$F77" != "Xno"; then
11006           :
11007         else
11008           tagname=""
11009         fi
11010         ;;
11011
11012       GCJ)
11013         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11014           :
11015         else
11016           tagname=""
11017         fi
11018         ;;
11019
11020       RC)
11021
11022
11023
11024 # Source file extension for RC test sources.
11025 ac_ext=rc
11026
11027 # Object file extension for compiled RC test sources.
11028 objext=o
11029 objext_RC=$objext
11030
11031 # Code to be used in simple compile tests
11032 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11033
11034 # Code to be used in simple link tests
11035 lt_simple_link_test_code="$lt_simple_compile_test_code"
11036
11037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11038
11039 # If no C compiler was specified, use CC.
11040 LTCC=${LTCC-"$CC"}
11041
11042 # Allow CC to be a program name with arguments.
11043 compiler=$CC
11044
11045
11046 # save warnings/boilerplate of simple test code
11047 ac_outfile=conftest.$ac_objext
11048 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11049 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11050 _lt_compiler_boilerplate=`cat conftest.err`
11051 $rm conftest*
11052
11053 ac_outfile=conftest.$ac_objext
11054 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11055 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11056 _lt_linker_boilerplate=`cat conftest.err`
11057 $rm conftest*
11058
11059
11060 # Allow CC to be a program name with arguments.
11061 lt_save_CC="$CC"
11062 CC=${RC-"windres"}
11063 compiler=$CC
11064 compiler_RC=$CC
11065 for cc_temp in $compiler""; do
11066   case $cc_temp in
11067     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11068     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11069     \-*) ;;
11070     *) break;;
11071   esac
11072 done
11073 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11074
11075 lt_cv_prog_compiler_c_o_RC=yes
11076
11077 # The else clause should only fire when bootstrapping the
11078 # libtool distribution, otherwise you forgot to ship ltmain.sh
11079 # with your package, and you will get complaints that there are
11080 # no rules to generate ltmain.sh.
11081 if test -f "$ltmain"; then
11082   # See if we are running on zsh, and set the options which allow our commands through
11083   # without removal of \ escapes.
11084   if test -n "${ZSH_VERSION+set}" ; then
11085     setopt NO_GLOB_SUBST
11086   fi
11087   # Now quote all the things that may contain metacharacters while being
11088   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11089   # variables and quote the copies for generation of the libtool script.
11090   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11091     SED SHELL STRIP \
11092     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11093     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11094     deplibs_check_method reload_flag reload_cmds need_locks \
11095     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11096     lt_cv_sys_global_symbol_to_c_name_address \
11097     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11098     old_postinstall_cmds old_postuninstall_cmds \
11099     compiler_RC \
11100     CC_RC \
11101     LD_RC \
11102     lt_prog_compiler_wl_RC \
11103     lt_prog_compiler_pic_RC \
11104     lt_prog_compiler_static_RC \
11105     lt_prog_compiler_no_builtin_flag_RC \
11106     export_dynamic_flag_spec_RC \
11107     thread_safe_flag_spec_RC \
11108     whole_archive_flag_spec_RC \
11109     enable_shared_with_static_runtimes_RC \
11110     old_archive_cmds_RC \
11111     old_archive_from_new_cmds_RC \
11112     predep_objects_RC \
11113     postdep_objects_RC \
11114     predeps_RC \
11115     postdeps_RC \
11116     compiler_lib_search_path_RC \
11117     archive_cmds_RC \
11118     archive_expsym_cmds_RC \
11119     postinstall_cmds_RC \
11120     postuninstall_cmds_RC \
11121     old_archive_from_expsyms_cmds_RC \
11122     allow_undefined_flag_RC \
11123     no_undefined_flag_RC \
11124     export_symbols_cmds_RC \
11125     hardcode_libdir_flag_spec_RC \
11126     hardcode_libdir_flag_spec_ld_RC \
11127     hardcode_libdir_separator_RC \
11128     hardcode_automatic_RC \
11129     module_cmds_RC \
11130     module_expsym_cmds_RC \
11131     lt_cv_prog_compiler_c_o_RC \
11132     exclude_expsyms_RC \
11133     include_expsyms_RC; do
11134
11135     case $var in
11136     old_archive_cmds_RC | \
11137     old_archive_from_new_cmds_RC | \
11138     archive_cmds_RC | \
11139     archive_expsym_cmds_RC | \
11140     module_cmds_RC | \
11141     module_expsym_cmds_RC | \
11142     old_archive_from_expsyms_cmds_RC | \
11143     export_symbols_cmds_RC | \
11144     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11145     postinstall_cmds | postuninstall_cmds | \
11146     old_postinstall_cmds | old_postuninstall_cmds | \
11147     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11148       # Double-quote double-evaled strings.
11149       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11150       ;;
11151     *)
11152       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11153       ;;
11154     esac
11155   done
11156
11157   case $lt_echo in
11158   *'\$0 --fallback-echo"')
11159     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11160     ;;
11161   esac
11162
11163 cfgfile="$ofile"
11164
11165   cat <<__EOF__ >> "$cfgfile"
11166 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11167
11168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11169
11170 # Shell to use when invoking shell scripts.
11171 SHELL=$lt_SHELL
11172
11173 # Whether or not to build shared libraries.
11174 build_libtool_libs=$enable_shared
11175
11176 # Whether or not to build static libraries.
11177 build_old_libs=$enable_static
11178
11179 # Whether or not to add -lc for building shared libraries.
11180 build_libtool_need_lc=$archive_cmds_need_lc_RC
11181
11182 # Whether or not to disallow shared libs when runtime libs are static
11183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11184
11185 # Whether or not to optimize for fast installation.
11186 fast_install=$enable_fast_install
11187
11188 # The host system.
11189 host_alias=$host_alias
11190 host=$host
11191 host_os=$host_os
11192
11193 # The build system.
11194 build_alias=$build_alias
11195 build=$build
11196 build_os=$build_os
11197
11198 # An echo program that does not interpret backslashes.
11199 echo=$lt_echo
11200
11201 # The archiver.
11202 AR=$lt_AR
11203 AR_FLAGS=$lt_AR_FLAGS
11204
11205 # A C compiler.
11206 LTCC=$lt_LTCC
11207
11208 # A language-specific compiler.
11209 CC=$lt_compiler_RC
11210
11211 # Is the compiler the GNU C compiler?
11212 with_gcc=$GCC_RC
11213
11214 # An ERE matcher.
11215 EGREP=$lt_EGREP
11216
11217 # The linker used to build libraries.
11218 LD=$lt_LD_RC
11219
11220 # Whether we need hard or soft links.
11221 LN_S=$lt_LN_S
11222
11223 # A BSD-compatible nm program.
11224 NM=$lt_NM
11225
11226 # A symbol stripping program
11227 STRIP=$lt_STRIP
11228
11229 # Used to examine libraries when file_magic_cmd begins "file"
11230 MAGIC_CMD=$MAGIC_CMD
11231
11232 # Used on cygwin: DLL creation program.
11233 DLLTOOL="$DLLTOOL"
11234
11235 # Used on cygwin: object dumper.
11236 OBJDUMP="$OBJDUMP"
11237
11238 # Used on cygwin: assembler.
11239 AS="$AS"
11240
11241 # The name of the directory that contains temporary libtool files.
11242 objdir=$objdir
11243
11244 # How to create reloadable object files.
11245 reload_flag=$lt_reload_flag
11246 reload_cmds=$lt_reload_cmds
11247
11248 # How to pass a linker flag through the compiler.
11249 wl=$lt_lt_prog_compiler_wl_RC
11250
11251 # Object file suffix (normally "o").
11252 objext="$ac_objext"
11253
11254 # Old archive suffix (normally "a").
11255 libext="$libext"
11256
11257 # Shared library suffix (normally ".so").
11258 shrext_cmds='$shrext_cmds'
11259
11260 # Executable file suffix (normally "").
11261 exeext="$exeext"
11262
11263 # Additional compiler flags for building library objects.
11264 pic_flag=$lt_lt_prog_compiler_pic_RC
11265 pic_mode=$pic_mode
11266
11267 # What is the maximum length of a command?
11268 max_cmd_len=$lt_cv_sys_max_cmd_len
11269
11270 # Does compiler simultaneously support -c and -o options?
11271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11272
11273 # Must we lock files when doing compilation?
11274 need_locks=$lt_need_locks
11275
11276 # Do we need the lib prefix for modules?
11277 need_lib_prefix=$need_lib_prefix
11278
11279 # Do we need a version for libraries?
11280 need_version=$need_version
11281
11282 # Whether dlopen is supported.
11283 dlopen_support=$enable_dlopen
11284
11285 # Whether dlopen of programs is supported.
11286 dlopen_self=$enable_dlopen_self
11287
11288 # Whether dlopen of statically linked programs is supported.
11289 dlopen_self_static=$enable_dlopen_self_static
11290
11291 # Compiler flag to prevent dynamic linking.
11292 link_static_flag=$lt_lt_prog_compiler_static_RC
11293
11294 # Compiler flag to turn off builtin functions.
11295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11296
11297 # Compiler flag to allow reflexive dlopens.
11298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11299
11300 # Compiler flag to generate shared objects directly from archives.
11301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11302
11303 # Compiler flag to generate thread-safe objects.
11304 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11305
11306 # Library versioning type.
11307 version_type=$version_type
11308
11309 # Format of library name prefix.
11310 libname_spec=$lt_libname_spec
11311
11312 # List of archive names.  First name is the real one, the rest are links.
11313 # The last name is the one that the linker finds with -lNAME.
11314 library_names_spec=$lt_library_names_spec
11315
11316 # The coded name of the library, if different from the real name.
11317 soname_spec=$lt_soname_spec
11318
11319 # Commands used to build and install an old-style archive.
11320 RANLIB=$lt_RANLIB
11321 old_archive_cmds=$lt_old_archive_cmds_RC
11322 old_postinstall_cmds=$lt_old_postinstall_cmds
11323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11324
11325 # Create an old-style archive from a shared archive.
11326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11327
11328 # Create a temporary old-style archive to link instead of a shared archive.
11329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11330
11331 # Commands used to build and install a shared archive.
11332 archive_cmds=$lt_archive_cmds_RC
11333 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11334 postinstall_cmds=$lt_postinstall_cmds
11335 postuninstall_cmds=$lt_postuninstall_cmds
11336
11337 # Commands used to build a loadable module (assumed same as above if empty)
11338 module_cmds=$lt_module_cmds_RC
11339 module_expsym_cmds=$lt_module_expsym_cmds_RC
11340
11341 # Commands to strip libraries.
11342 old_striplib=$lt_old_striplib
11343 striplib=$lt_striplib
11344
11345 # Dependencies to place before the objects being linked to create a
11346 # shared library.
11347 predep_objects=$lt_predep_objects_RC
11348
11349 # Dependencies to place after the objects being linked to create a
11350 # shared library.
11351 postdep_objects=$lt_postdep_objects_RC
11352
11353 # Dependencies to place before the objects being linked to create a
11354 # shared library.
11355 predeps=$lt_predeps_RC
11356
11357 # Dependencies to place after the objects being linked to create a
11358 # shared library.
11359 postdeps=$lt_postdeps_RC
11360
11361 # The library search path used internally by the compiler when linking
11362 # a shared library.
11363 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11364
11365 # Method to check whether dependent libraries are shared objects.
11366 deplibs_check_method=$lt_deplibs_check_method
11367
11368 # Command to use when deplibs_check_method == file_magic.
11369 file_magic_cmd=$lt_file_magic_cmd
11370
11371 # Flag that allows shared libraries with undefined symbols to be built.
11372 allow_undefined_flag=$lt_allow_undefined_flag_RC
11373
11374 # Flag that forces no undefined symbols.
11375 no_undefined_flag=$lt_no_undefined_flag_RC
11376
11377 # Commands used to finish a libtool library installation in a directory.
11378 finish_cmds=$lt_finish_cmds
11379
11380 # Same as above, but a single script fragment to be evaled but not shown.
11381 finish_eval=$lt_finish_eval
11382
11383 # Take the output of nm and produce a listing of raw symbols and C names.
11384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11385
11386 # Transform the output of nm in a proper C declaration
11387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11388
11389 # Transform the output of nm in a C name address pair
11390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11391
11392 # This is the shared library runtime path variable.
11393 runpath_var=$runpath_var
11394
11395 # This is the shared library path variable.
11396 shlibpath_var=$shlibpath_var
11397
11398 # Is shlibpath searched before the hard-coded library search path?
11399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11400
11401 # How to hardcode a shared library path into an executable.
11402 hardcode_action=$hardcode_action_RC
11403
11404 # Whether we should hardcode library paths into libraries.
11405 hardcode_into_libs=$hardcode_into_libs
11406
11407 # Flag to hardcode \$libdir into a binary during linking.
11408 # This must work even if \$libdir does not exist.
11409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11410
11411 # If ld is used when linking, flag to hardcode \$libdir into
11412 # a binary during linking. This must work even if \$libdir does
11413 # not exist.
11414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11415
11416 # Whether we need a single -rpath flag with a separated argument.
11417 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11418
11419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11420 # resulting binary.
11421 hardcode_direct=$hardcode_direct_RC
11422
11423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11424 # resulting binary.
11425 hardcode_minus_L=$hardcode_minus_L_RC
11426
11427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11428 # the resulting binary.
11429 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11430
11431 # Set to yes if building a shared library automatically hardcodes DIR into the library
11432 # and all subsequent libraries and executables linked against it.
11433 hardcode_automatic=$hardcode_automatic_RC
11434
11435 # Variables whose values should be saved in libtool wrapper scripts and
11436 # restored at relink time.
11437 variables_saved_for_relink="$variables_saved_for_relink"
11438
11439 # Whether libtool must link a program against all its dependency libraries.
11440 link_all_deplibs=$link_all_deplibs_RC
11441
11442 # Compile-time system search path for libraries
11443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11444
11445 # Run-time system search path for libraries
11446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11447
11448 # Fix the shell variable \$srcfile for the compiler.
11449 fix_srcfile_path="$fix_srcfile_path_RC"
11450
11451 # Set to yes if exported symbols are required.
11452 always_export_symbols=$always_export_symbols_RC
11453
11454 # The commands to list exported symbols.
11455 export_symbols_cmds=$lt_export_symbols_cmds_RC
11456
11457 # The commands to extract the exported symbol list from a shared archive.
11458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11459
11460 # Symbols that should not be listed in the preloaded symbols.
11461 exclude_expsyms=$lt_exclude_expsyms_RC
11462
11463 # Symbols that must always be exported.
11464 include_expsyms=$lt_include_expsyms_RC
11465
11466 # ### END LIBTOOL TAG CONFIG: $tagname
11467
11468 __EOF__
11469
11470
11471 else
11472   # If there is no Makefile yet, we rely on a make rule to execute
11473   # `config.status --recheck' to rerun these tests and create the
11474   # libtool script then.
11475   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11476   if test -f "$ltmain_in"; then
11477     test -f Makefile && make "$ltmain"
11478   fi
11479 fi
11480
11481
11482 ac_ext=c
11483 ac_cpp='$CPP $CPPFLAGS'
11484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11487
11488 CC="$lt_save_CC"
11489
11490         ;;
11491
11492       *)
11493         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11494 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11495    { (exit 1); exit 1; }; }
11496         ;;
11497       esac
11498
11499       # Append the new tag name to the list of available tags.
11500       if test -n "$tagname" ; then
11501       available_tags="$available_tags $tagname"
11502     fi
11503     fi
11504   done
11505   IFS="$lt_save_ifs"
11506
11507   # Now substitute the updated list of available tags.
11508   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11509     mv "${ofile}T" "$ofile"
11510     chmod +x "$ofile"
11511   else
11512     rm -f "${ofile}T"
11513     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11514 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11515    { (exit 1); exit 1; }; }
11516   fi
11517 fi
11518
11519
11520
11521 # This can be used to rebuild libtool when needed
11522 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11523
11524 # Always use our own libtool.
11525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11526
11527 # Prevent multiple expansion
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538 ol_link_perl=no
11539 if test $ol_enable_perl != no ; then
11540         # Extract the first word of "perl", so it can be a program name with args.
11541 set dummy perl; ac_word=$2
11542 echo "$as_me:$LINENO: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_path_PERLBIN+set}" = set; then
11545   echo $ECHO_N "(cached) $ECHO_C" >&6
11546 else
11547   case $PERLBIN in
11548   [\\/]* | ?:[\\/]*)
11549   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11550   ;;
11551   *)
11552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553 for as_dir in $PATH
11554 do
11555   IFS=$as_save_IFS
11556   test -z "$as_dir" && as_dir=.
11557   for ac_exec_ext in '' $ac_executable_extensions; do
11558   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11559     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11560     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11561     break 2
11562   fi
11563 done
11564 done
11565
11566   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11567   ;;
11568 esac
11569 fi
11570 PERLBIN=$ac_cv_path_PERLBIN
11571
11572 if test -n "$PERLBIN"; then
11573   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11574 echo "${ECHO_T}$PERLBIN" >&6
11575 else
11576   echo "$as_me:$LINENO: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11578 fi
11579
11580
11581         if test "no$PERLBIN" = "no" ; then
11582                 if test $ol_enable_perl = yes ; then
11583                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11584 echo "$as_me: error: could not locate perl" >&2;}
11585    { (exit 1); exit 1; }; }
11586                 fi
11587
11588         else
11589                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11590                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11591
11592                 if test x"$ol_enable_perl" = "xyes" ; then
11593                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11594                 else
11595                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11596                 fi
11597                                 ol_link_perl=yes
11598         fi
11599 fi
11600
11601 ac_ext=c
11602 ac_cpp='$CPP $CPPFLAGS'
11603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11607 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11608 # On Suns, sometimes $CPP names a directory.
11609 if test -n "$CPP" && test -d "$CPP"; then
11610   CPP=
11611 fi
11612 if test -z "$CPP"; then
11613   if test "${ac_cv_prog_CPP+set}" = set; then
11614   echo $ECHO_N "(cached) $ECHO_C" >&6
11615 else
11616       # Double quotes because CPP needs to be expanded
11617     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11618     do
11619       ac_preproc_ok=false
11620 for ac_c_preproc_warn_flag in '' yes
11621 do
11622   # Use a header file that comes with gcc, so configuring glibc
11623   # with a fresh cross-compiler works.
11624   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625   # <limits.h> exists even on freestanding compilers.
11626   # On the NeXT, cc -E runs the code through the compiler's parser,
11627   # not just through cpp. "Syntax error" is here to catch this case.
11628   cat >conftest.$ac_ext <<_ACEOF
11629 /* confdefs.h.  */
11630 _ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h.  */
11634 #ifdef __STDC__
11635 # include <limits.h>
11636 #else
11637 # include <assert.h>
11638 #endif
11639                      Syntax error
11640 _ACEOF
11641 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11642   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11643   ac_status=$?
11644   grep -v '^ *+' conftest.er1 >conftest.err
11645   rm -f conftest.er1
11646   cat conftest.err >&5
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } >/dev/null; then
11649   if test -s conftest.err; then
11650     ac_cpp_err=$ac_c_preproc_warn_flag
11651     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11652   else
11653     ac_cpp_err=
11654   fi
11655 else
11656   ac_cpp_err=yes
11657 fi
11658 if test -z "$ac_cpp_err"; then
11659   :
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664   # Broken: fails on valid input.
11665 continue
11666 fi
11667 rm -f conftest.err conftest.$ac_ext
11668
11669   # OK, works on sane cases.  Now check whether non-existent headers
11670   # can be detected and how.
11671   cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 #include <ac_nonexistent.h>
11678 _ACEOF
11679 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11680   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11681   ac_status=$?
11682   grep -v '^ *+' conftest.er1 >conftest.err
11683   rm -f conftest.er1
11684   cat conftest.err >&5
11685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686   (exit $ac_status); } >/dev/null; then
11687   if test -s conftest.err; then
11688     ac_cpp_err=$ac_c_preproc_warn_flag
11689     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11690   else
11691     ac_cpp_err=
11692   fi
11693 else
11694   ac_cpp_err=yes
11695 fi
11696 if test -z "$ac_cpp_err"; then
11697   # Broken: success on invalid input.
11698 continue
11699 else
11700   echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.$ac_ext >&5
11702
11703   # Passes both tests.
11704 ac_preproc_ok=:
11705 break
11706 fi
11707 rm -f conftest.err conftest.$ac_ext
11708
11709 done
11710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11711 rm -f conftest.err conftest.$ac_ext
11712 if $ac_preproc_ok; then
11713   break
11714 fi
11715
11716     done
11717     ac_cv_prog_CPP=$CPP
11718
11719 fi
11720   CPP=$ac_cv_prog_CPP
11721 else
11722   ac_cv_prog_CPP=$CPP
11723 fi
11724 echo "$as_me:$LINENO: result: $CPP" >&5
11725 echo "${ECHO_T}$CPP" >&6
11726 ac_preproc_ok=false
11727 for ac_c_preproc_warn_flag in '' yes
11728 do
11729   # Use a header file that comes with gcc, so configuring glibc
11730   # with a fresh cross-compiler works.
11731   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732   # <limits.h> exists even on freestanding compilers.
11733   # On the NeXT, cc -E runs the code through the compiler's parser,
11734   # not just through cpp. "Syntax error" is here to catch this case.
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #ifdef __STDC__
11742 # include <limits.h>
11743 #else
11744 # include <assert.h>
11745 #endif
11746                      Syntax error
11747 _ACEOF
11748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } >/dev/null; then
11756   if test -s conftest.err; then
11757     ac_cpp_err=$ac_c_preproc_warn_flag
11758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11759   else
11760     ac_cpp_err=
11761   fi
11762 else
11763   ac_cpp_err=yes
11764 fi
11765 if test -z "$ac_cpp_err"; then
11766   :
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771   # Broken: fails on valid input.
11772 continue
11773 fi
11774 rm -f conftest.err conftest.$ac_ext
11775
11776   # OK, works on sane cases.  Now check whether non-existent headers
11777   # can be detected and how.
11778   cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h.  */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h.  */
11784 #include <ac_nonexistent.h>
11785 _ACEOF
11786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11787   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11788   ac_status=$?
11789   grep -v '^ *+' conftest.er1 >conftest.err
11790   rm -f conftest.er1
11791   cat conftest.err >&5
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } >/dev/null; then
11794   if test -s conftest.err; then
11795     ac_cpp_err=$ac_c_preproc_warn_flag
11796     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11797   else
11798     ac_cpp_err=
11799   fi
11800 else
11801   ac_cpp_err=yes
11802 fi
11803 if test -z "$ac_cpp_err"; then
11804   # Broken: success on invalid input.
11805 continue
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810   # Passes both tests.
11811 ac_preproc_ok=:
11812 break
11813 fi
11814 rm -f conftest.err conftest.$ac_ext
11815
11816 done
11817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11818 rm -f conftest.err conftest.$ac_ext
11819 if $ac_preproc_ok; then
11820   :
11821 else
11822   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11823 See \`config.log' for more details." >&5
11824 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11825 See \`config.log' for more details." >&2;}
11826    { (exit 1); exit 1; }; }
11827 fi
11828
11829 ac_ext=c
11830 ac_cpp='$CPP $CPPFLAGS'
11831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834
11835
11836 case $host_os in
11837   *mingw32* ) ac_cv_mingw32=yes ;;
11838   *cygwin* ) ac_cv_cygwin=yes ;;
11839 esac
11840
11841
11842
11843
11844 cat >>confdefs.h <<_ACEOF
11845 #define EXEEXT "${EXEEXT}"
11846 _ACEOF
11847
11848
11849 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11850 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11851 if test "${ac_cv_lib_be_be_app+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   ac_check_lib_save_LIBS=$LIBS
11855 LIBS="-lbe -lroot -lnet $LIBS"
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h.  */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h.  */
11862
11863 /* Override any gcc2 internal prototype to avoid an error.  */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868    builtin and then its argument prototype would still apply.  */
11869 char be_app ();
11870 int
11871 main ()
11872 {
11873 be_app ();
11874   ;
11875   return 0;
11876 }
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880   (eval $ac_link) 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -z "$ac_c_werror_flag"
11888                          || test ! -s conftest.err'
11889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890   (eval $ac_try) 2>&5
11891   ac_status=$?
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); }; } &&
11894          { ac_try='test -s conftest$ac_exeext'
11895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896   (eval $ac_try) 2>&5
11897   ac_status=$?
11898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); }; }; then
11900   ac_cv_lib_be_be_app=yes
11901 else
11902   echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11904
11905 ac_cv_lib_be_be_app=no
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908       conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11912 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11913 if test $ac_cv_lib_be_be_app = yes; then
11914   LIBS="$LIBS -lbe -lroot -lnet"
11915 else
11916   :
11917 fi
11918
11919
11920 ac_ext=c
11921 ac_cpp='$CPP $CPPFLAGS'
11922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11925 if test -n "$ac_tool_prefix"; then
11926   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11927 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11928 echo "$as_me:$LINENO: checking for $ac_word" >&5
11929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11930 if test "${ac_cv_prog_CC+set}" = set; then
11931   echo $ECHO_N "(cached) $ECHO_C" >&6
11932 else
11933   if test -n "$CC"; then
11934   ac_cv_prog_CC="$CC" # Let the user override the test.
11935 else
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941   for ac_exec_ext in '' $ac_executable_extensions; do
11942   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11944     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11945     break 2
11946   fi
11947 done
11948 done
11949
11950 fi
11951 fi
11952 CC=$ac_cv_prog_CC
11953 if test -n "$CC"; then
11954   echo "$as_me:$LINENO: result: $CC" >&5
11955 echo "${ECHO_T}$CC" >&6
11956 else
11957   echo "$as_me:$LINENO: result: no" >&5
11958 echo "${ECHO_T}no" >&6
11959 fi
11960
11961 fi
11962 if test -z "$ac_cv_prog_CC"; then
11963   ac_ct_CC=$CC
11964   # Extract the first word of "gcc", so it can be a program name with args.
11965 set dummy gcc; ac_word=$2
11966 echo "$as_me:$LINENO: checking for $ac_word" >&5
11967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11969   echo $ECHO_N "(cached) $ECHO_C" >&6
11970 else
11971   if test -n "$ac_ct_CC"; then
11972   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11973 else
11974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11975 for as_dir in $PATH
11976 do
11977   IFS=$as_save_IFS
11978   test -z "$as_dir" && as_dir=.
11979   for ac_exec_ext in '' $ac_executable_extensions; do
11980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11981     ac_cv_prog_ac_ct_CC="gcc"
11982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11983     break 2
11984   fi
11985 done
11986 done
11987
11988 fi
11989 fi
11990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11991 if test -n "$ac_ct_CC"; then
11992   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11993 echo "${ECHO_T}$ac_ct_CC" >&6
11994 else
11995   echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6
11997 fi
11998
11999   CC=$ac_ct_CC
12000 else
12001   CC="$ac_cv_prog_CC"
12002 fi
12003
12004 if test -z "$CC"; then
12005   if test -n "$ac_tool_prefix"; then
12006   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12007 set dummy ${ac_tool_prefix}cc; ac_word=$2
12008 echo "$as_me:$LINENO: checking for $ac_word" >&5
12009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12010 if test "${ac_cv_prog_CC+set}" = set; then
12011   echo $ECHO_N "(cached) $ECHO_C" >&6
12012 else
12013   if test -n "$CC"; then
12014   ac_cv_prog_CC="$CC" # Let the user override the test.
12015 else
12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12017 for as_dir in $PATH
12018 do
12019   IFS=$as_save_IFS
12020   test -z "$as_dir" && as_dir=.
12021   for ac_exec_ext in '' $ac_executable_extensions; do
12022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12023     ac_cv_prog_CC="${ac_tool_prefix}cc"
12024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12025     break 2
12026   fi
12027 done
12028 done
12029
12030 fi
12031 fi
12032 CC=$ac_cv_prog_CC
12033 if test -n "$CC"; then
12034   echo "$as_me:$LINENO: result: $CC" >&5
12035 echo "${ECHO_T}$CC" >&6
12036 else
12037   echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6
12039 fi
12040
12041 fi
12042 if test -z "$ac_cv_prog_CC"; then
12043   ac_ct_CC=$CC
12044   # Extract the first word of "cc", so it can be a program name with args.
12045 set dummy cc; ac_word=$2
12046 echo "$as_me:$LINENO: checking for $ac_word" >&5
12047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 else
12051   if test -n "$ac_ct_CC"; then
12052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12053 else
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057   IFS=$as_save_IFS
12058   test -z "$as_dir" && as_dir=.
12059   for ac_exec_ext in '' $ac_executable_extensions; do
12060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061     ac_cv_prog_ac_ct_CC="cc"
12062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063     break 2
12064   fi
12065 done
12066 done
12067
12068 fi
12069 fi
12070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12071 if test -n "$ac_ct_CC"; then
12072   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12073 echo "${ECHO_T}$ac_ct_CC" >&6
12074 else
12075   echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12077 fi
12078
12079   CC=$ac_ct_CC
12080 else
12081   CC="$ac_cv_prog_CC"
12082 fi
12083
12084 fi
12085 if test -z "$CC"; then
12086   # Extract the first word of "cc", so it can be a program name with args.
12087 set dummy cc; ac_word=$2
12088 echo "$as_me:$LINENO: checking for $ac_word" >&5
12089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090 if test "${ac_cv_prog_CC+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   if test -n "$CC"; then
12094   ac_cv_prog_CC="$CC" # Let the user override the test.
12095 else
12096   ac_prog_rejected=no
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098 for as_dir in $PATH
12099 do
12100   IFS=$as_save_IFS
12101   test -z "$as_dir" && as_dir=.
12102   for ac_exec_ext in '' $ac_executable_extensions; do
12103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12105        ac_prog_rejected=yes
12106        continue
12107      fi
12108     ac_cv_prog_CC="cc"
12109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12110     break 2
12111   fi
12112 done
12113 done
12114
12115 if test $ac_prog_rejected = yes; then
12116   # We found a bogon in the path, so make sure we never use it.
12117   set dummy $ac_cv_prog_CC
12118   shift
12119   if test $# != 0; then
12120     # We chose a different compiler from the bogus one.
12121     # However, it has the same basename, so the bogon will be chosen
12122     # first if we set CC to just the basename; use the full file name.
12123     shift
12124     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12125   fi
12126 fi
12127 fi
12128 fi
12129 CC=$ac_cv_prog_CC
12130 if test -n "$CC"; then
12131   echo "$as_me:$LINENO: result: $CC" >&5
12132 echo "${ECHO_T}$CC" >&6
12133 else
12134   echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12136 fi
12137
12138 fi
12139 if test -z "$CC"; then
12140   if test -n "$ac_tool_prefix"; then
12141   for ac_prog in cl
12142   do
12143     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12145 echo "$as_me:$LINENO: checking for $ac_word" >&5
12146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12147 if test "${ac_cv_prog_CC+set}" = set; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   if test -n "$CC"; then
12151   ac_cv_prog_CC="$CC" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158   for ac_exec_ext in '' $ac_executable_extensions; do
12159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165 done
12166
12167 fi
12168 fi
12169 CC=$ac_cv_prog_CC
12170 if test -n "$CC"; then
12171   echo "$as_me:$LINENO: result: $CC" >&5
12172 echo "${ECHO_T}$CC" >&6
12173 else
12174   echo "$as_me:$LINENO: result: no" >&5
12175 echo "${ECHO_T}no" >&6
12176 fi
12177
12178     test -n "$CC" && break
12179   done
12180 fi
12181 if test -z "$CC"; then
12182   ac_ct_CC=$CC
12183   for ac_prog in cl
12184 do
12185   # Extract the first word of "$ac_prog", so it can be a program name with args.
12186 set dummy $ac_prog; ac_word=$2
12187 echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   if test -n "$ac_ct_CC"; then
12193   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12194 else
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12197 do
12198   IFS=$as_save_IFS
12199   test -z "$as_dir" && as_dir=.
12200   for ac_exec_ext in '' $ac_executable_extensions; do
12201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202     ac_cv_prog_ac_ct_CC="$ac_prog"
12203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204     break 2
12205   fi
12206 done
12207 done
12208
12209 fi
12210 fi
12211 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12212 if test -n "$ac_ct_CC"; then
12213   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12214 echo "${ECHO_T}$ac_ct_CC" >&6
12215 else
12216   echo "$as_me:$LINENO: result: no" >&5
12217 echo "${ECHO_T}no" >&6
12218 fi
12219
12220   test -n "$ac_ct_CC" && break
12221 done
12222
12223   CC=$ac_ct_CC
12224 fi
12225
12226 fi
12227
12228
12229 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12230 See \`config.log' for more details." >&5
12231 echo "$as_me: error: no acceptable C compiler found in \$PATH
12232 See \`config.log' for more details." >&2;}
12233    { (exit 1); exit 1; }; }
12234
12235 # Provide some information about the compiler.
12236 echo "$as_me:$LINENO:" \
12237      "checking for C compiler version" >&5
12238 ac_compiler=`set X $ac_compile; echo $2`
12239 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12240   (eval $ac_compiler --version </dev/null >&5) 2>&5
12241   ac_status=$?
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); }
12244 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12245   (eval $ac_compiler -v </dev/null >&5) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }
12249 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12250   (eval $ac_compiler -V </dev/null >&5) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }
12254
12255 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12256 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12257 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h.  */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h.  */
12266
12267 int
12268 main ()
12269 {
12270 #ifndef __GNUC__
12271        choke me
12272 #endif
12273
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12280   (eval $ac_compile) 2>conftest.er1
12281   ac_status=$?
12282   grep -v '^ *+' conftest.er1 >conftest.err
12283   rm -f conftest.er1
12284   cat conftest.err >&5
12285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286   (exit $ac_status); } &&
12287          { ac_try='test -z "$ac_c_werror_flag"
12288                          || test ! -s conftest.err'
12289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290   (eval $ac_try) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; } &&
12294          { ac_try='test -s conftest.$ac_objext'
12295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296   (eval $ac_try) 2>&5
12297   ac_status=$?
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); }; }; then
12300   ac_compiler_gnu=yes
12301 else
12302   echo "$as_me: failed program was:" >&5
12303 sed 's/^/| /' conftest.$ac_ext >&5
12304
12305 ac_compiler_gnu=no
12306 fi
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12309
12310 fi
12311 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12313 GCC=`test $ac_compiler_gnu = yes && echo yes`
12314 ac_test_CFLAGS=${CFLAGS+set}
12315 ac_save_CFLAGS=$CFLAGS
12316 CFLAGS="-g"
12317 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12319 if test "${ac_cv_prog_cc_g+set}" = set; then
12320   echo $ECHO_N "(cached) $ECHO_C" >&6
12321 else
12322   cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328
12329 int
12330 main ()
12331 {
12332
12333   ;
12334   return 0;
12335 }
12336 _ACEOF
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12339   (eval $ac_compile) 2>conftest.er1
12340   ac_status=$?
12341   grep -v '^ *+' conftest.er1 >conftest.err
12342   rm -f conftest.er1
12343   cat conftest.err >&5
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -z "$ac_c_werror_flag"
12347                          || test ! -s conftest.err'
12348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349   (eval $ac_try) 2>&5
12350   ac_status=$?
12351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352   (exit $ac_status); }; } &&
12353          { ac_try='test -s conftest.$ac_objext'
12354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12355   (eval $ac_try) 2>&5
12356   ac_status=$?
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); }; }; then
12359   ac_cv_prog_cc_g=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364 ac_cv_prog_cc_g=no
12365 fi
12366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12369 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12370 if test "$ac_test_CFLAGS" = set; then
12371   CFLAGS=$ac_save_CFLAGS
12372 elif test $ac_cv_prog_cc_g = yes; then
12373   if test "$GCC" = yes; then
12374     CFLAGS="-g -O2"
12375   else
12376     CFLAGS="-g"
12377   fi
12378 else
12379   if test "$GCC" = yes; then
12380     CFLAGS="-O2"
12381   else
12382     CFLAGS=
12383   fi
12384 fi
12385 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12386 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12387 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12388   echo $ECHO_N "(cached) $ECHO_C" >&6
12389 else
12390   ac_cv_prog_cc_stdc=no
12391 ac_save_CC=$CC
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 #include <stdarg.h>
12399 #include <stdio.h>
12400 #include <sys/types.h>
12401 #include <sys/stat.h>
12402 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12403 struct buf { int x; };
12404 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12405 static char *e (p, i)
12406      char **p;
12407      int i;
12408 {
12409   return p[i];
12410 }
12411 static char *f (char * (*g) (char **, int), char **p, ...)
12412 {
12413   char *s;
12414   va_list v;
12415   va_start (v,p);
12416   s = g (p, va_arg (v,int));
12417   va_end (v);
12418   return s;
12419 }
12420
12421 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12422    function prototypes and stuff, but not '\xHH' hex character constants.
12423    These don't provoke an error unfortunately, instead are silently treated
12424    as 'x'.  The following induces an error, until -std1 is added to get
12425    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12426    array size at least.  It's necessary to write '\x00'==0 to get something
12427    that's true only with -std1.  */
12428 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12429
12430 int test (int i, double x);
12431 struct s1 {int (*f) (int a);};
12432 struct s2 {int (*f) (double a);};
12433 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12434 int argc;
12435 char **argv;
12436 int
12437 main ()
12438 {
12439 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12440   ;
12441   return 0;
12442 }
12443 _ACEOF
12444 # Don't try gcc -ansi; that turns off useful extensions and
12445 # breaks some systems' header files.
12446 # AIX                   -qlanglvl=ansi
12447 # Ultrix and OSF/1      -std1
12448 # HP-UX 10.20 and later -Ae
12449 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12450 # SVR4                  -Xc -D__EXTENSIONS__
12451 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12452 do
12453   CC="$ac_save_CC $ac_arg"
12454   rm -f conftest.$ac_objext
12455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12456   (eval $ac_compile) 2>conftest.er1
12457   ac_status=$?
12458   grep -v '^ *+' conftest.er1 >conftest.err
12459   rm -f conftest.er1
12460   cat conftest.err >&5
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -z "$ac_c_werror_flag"
12464                          || test ! -s conftest.err'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; } &&
12470          { ac_try='test -s conftest.$ac_objext'
12471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12472   (eval $ac_try) 2>&5
12473   ac_status=$?
12474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); }; }; then
12476   ac_cv_prog_cc_stdc=$ac_arg
12477 break
12478 else
12479   echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 fi
12483 rm -f conftest.err conftest.$ac_objext
12484 done
12485 rm -f conftest.$ac_ext conftest.$ac_objext
12486 CC=$ac_save_CC
12487
12488 fi
12489
12490 case "x$ac_cv_prog_cc_stdc" in
12491   x|xno)
12492     echo "$as_me:$LINENO: result: none needed" >&5
12493 echo "${ECHO_T}none needed" >&6 ;;
12494   *)
12495     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12496 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12497     CC="$CC $ac_cv_prog_cc_stdc" ;;
12498 esac
12499
12500 # Some people use a C++ compiler to compile C.  Since we use `exit',
12501 # in C++ we need to declare it.  In case someone uses the same compiler
12502 # for both compiling C and C++ we need to have the C++ compiler decide
12503 # the declaration of exit, since it's the most demanding environment.
12504 cat >conftest.$ac_ext <<_ACEOF
12505 #ifndef __cplusplus
12506   choke me
12507 #endif
12508 _ACEOF
12509 rm -f conftest.$ac_objext
12510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12511   (eval $ac_compile) 2>conftest.er1
12512   ac_status=$?
12513   grep -v '^ *+' conftest.er1 >conftest.err
12514   rm -f conftest.er1
12515   cat conftest.err >&5
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); } &&
12518          { ac_try='test -z "$ac_c_werror_flag"
12519                          || test ! -s conftest.err'
12520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521   (eval $ac_try) 2>&5
12522   ac_status=$?
12523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524   (exit $ac_status); }; } &&
12525          { ac_try='test -s conftest.$ac_objext'
12526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527   (eval $ac_try) 2>&5
12528   ac_status=$?
12529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530   (exit $ac_status); }; }; then
12531   for ac_declaration in \
12532    '' \
12533    'extern "C" void std::exit (int) throw (); using std::exit;' \
12534    'extern "C" void std::exit (int); using std::exit;' \
12535    'extern "C" void exit (int) throw ();' \
12536    'extern "C" void exit (int);' \
12537    'void exit (int);'
12538 do
12539   cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 $ac_declaration
12546 #include <stdlib.h>
12547 int
12548 main ()
12549 {
12550 exit (42);
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557   (eval $ac_compile) 2>conftest.er1
12558   ac_status=$?
12559   grep -v '^ *+' conftest.er1 >conftest.err
12560   rm -f conftest.er1
12561   cat conftest.err >&5
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); } &&
12564          { ac_try='test -z "$ac_c_werror_flag"
12565                          || test ! -s conftest.err'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; } &&
12571          { ac_try='test -s conftest.$ac_objext'
12572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573   (eval $ac_try) 2>&5
12574   ac_status=$?
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); }; }; then
12577   :
12578 else
12579   echo "$as_me: failed program was:" >&5
12580 sed 's/^/| /' conftest.$ac_ext >&5
12581
12582 continue
12583 fi
12584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12585   cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 $ac_declaration
12592 int
12593 main ()
12594 {
12595 exit (42);
12596   ;
12597   return 0;
12598 }
12599 _ACEOF
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602   (eval $ac_compile) 2>conftest.er1
12603   ac_status=$?
12604   grep -v '^ *+' conftest.er1 >conftest.err
12605   rm -f conftest.er1
12606   cat conftest.err >&5
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); } &&
12609          { ac_try='test -z "$ac_c_werror_flag"
12610                          || test ! -s conftest.err'
12611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612   (eval $ac_try) 2>&5
12613   ac_status=$?
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); }; } &&
12616          { ac_try='test -s conftest.$ac_objext'
12617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618   (eval $ac_try) 2>&5
12619   ac_status=$?
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); }; }; then
12622   break
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 fi
12628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12629 done
12630 rm -f conftest*
12631 if test -n "$ac_declaration"; then
12632   echo '#ifdef __cplusplus' >>confdefs.h
12633   echo $ac_declaration      >>confdefs.h
12634   echo '#endif'             >>confdefs.h
12635 fi
12636
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 fi
12642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12643 ac_ext=c
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648
12649 depcc="$CC"   am_compiler_list=
12650
12651 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12652 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12653 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12657   # We make a subdir and do the tests there.  Otherwise we can end up
12658   # making bogus files that we don't know about and never remove.  For
12659   # instance it was reported that on HP-UX the gcc test will end up
12660   # making a dummy file named `D' -- because `-MD' means `put the output
12661   # in D'.
12662   mkdir conftest.dir
12663   # Copy depcomp to subdir because otherwise we won't find it if we're
12664   # using a relative directory.
12665   cp "$am_depcomp" conftest.dir
12666   cd conftest.dir
12667   # We will build objects and dependencies in a subdirectory because
12668   # it helps to detect inapplicable dependency modes.  For instance
12669   # both Tru64's cc and ICC support -MD to output dependencies as a
12670   # side effect of compilation, but ICC will put the dependencies in
12671   # the current directory while Tru64 will put them in the object
12672   # directory.
12673   mkdir sub
12674
12675   am_cv_CC_dependencies_compiler_type=none
12676   if test "$am_compiler_list" = ""; then
12677      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12678   fi
12679   for depmode in $am_compiler_list; do
12680     # Setup a source with many dependencies, because some compilers
12681     # like to wrap large dependency lists on column 80 (with \), and
12682     # we should not choose a depcomp mode which is confused by this.
12683     #
12684     # We need to recreate these files for each test, as the compiler may
12685     # overwrite some of them when testing with obscure command lines.
12686     # This happens at least with the AIX C compiler.
12687     : > sub/conftest.c
12688     for i in 1 2 3 4 5 6; do
12689       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12690       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12691       # Solaris 8's {/usr,}/bin/sh.
12692       touch sub/conftst$i.h
12693     done
12694     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12695
12696     case $depmode in
12697     nosideeffect)
12698       # after this tag, mechanisms are not by side-effect, so they'll
12699       # only be used when explicitly requested
12700       if test "x$enable_dependency_tracking" = xyes; then
12701         continue
12702       else
12703         break
12704       fi
12705       ;;
12706     none) break ;;
12707     esac
12708     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12709     # mode.  It turns out that the SunPro C++ compiler does not properly
12710     # handle `-M -o', and we need to detect this.
12711     if depmode=$depmode \
12712        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12713        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12714        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12715          >/dev/null 2>conftest.err &&
12716        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12717        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12718        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12719       # icc doesn't choke on unknown options, it will just issue warnings
12720       # or remarks (even with -Werror).  So we grep stderr for any message
12721       # that says an option was ignored or not supported.
12722       # When given -MP, icc 7.0 and 7.1 complain thusly:
12723       #   icc: Command line warning: ignoring option '-M'; no argument required
12724       # The diagnosis changed in icc 8.0:
12725       #   icc: Command line remark: option '-MP' not supported
12726       if (grep 'ignoring option' conftest.err ||
12727           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12728         am_cv_CC_dependencies_compiler_type=$depmode
12729         break
12730       fi
12731     fi
12732   done
12733
12734   cd ..
12735   rm -rf conftest.dir
12736 else
12737   am_cv_CC_dependencies_compiler_type=none
12738 fi
12739
12740 fi
12741 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12742 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12743 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12744
12745
12746
12747 if
12748   test "x$enable_dependency_tracking" != xno \
12749   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12750   am__fastdepCC_TRUE=
12751   am__fastdepCC_FALSE='#'
12752 else
12753   am__fastdepCC_TRUE='#'
12754   am__fastdepCC_FALSE=
12755 fi
12756
12757
12758 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12759         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12760 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12761    { (exit 1); exit 1; }; }
12762 fi
12763
12764 # test for make depend flag
12765 OL_MKDEP=
12766 OL_MKDEP_FLAGS=
12767 if test -z "${MKDEP}"; then
12768         OL_MKDEP="${CC-cc}"
12769         if test -z "${MKDEP_FLAGS}"; then
12770                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12771 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12772 if test "${ol_cv_mkdep+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775
12776                         ol_cv_mkdep=no
12777                         for flag in "-M" "-xM"; do
12778                                 cat > conftest.c <<EOF
12779  noCode;
12780 EOF
12781                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783   (eval $ac_try) 2>&5
12784   ac_status=$?
12785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786   (exit $ac_status); }; } \
12787                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12788                                 then
12789                                         if test ! -f conftest."${ac_object}" ; then
12790                                                 ol_cv_mkdep=$flag
12791                                                 OL_MKDEP_FLAGS="$flag"
12792                                                 break
12793                                         fi
12794                                 fi
12795                         done
12796                         rm -f conftest*
12797
12798 fi
12799 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12800 echo "${ECHO_T}$ol_cv_mkdep" >&6
12801         else
12802                 cc_cv_mkdep=yes
12803                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12804         fi
12805 else
12806         cc_cv_mkdep=yes
12807         OL_MKDEP="${MKDEP}"
12808         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12809 fi
12810
12811
12812
12813 if test "${ol_cv_mkdep}" = no ; then
12814         # this will soon become an error
12815         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12816 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12817 fi
12818
12819 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12820 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12821 if test "${ac_cv_lib_s_afopen+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   ac_check_lib_save_LIBS=$LIBS
12825 LIBS="-ls  $LIBS"
12826 cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832
12833 /* Override any gcc2 internal prototype to avoid an error.  */
12834 #ifdef __cplusplus
12835 extern "C"
12836 #endif
12837 /* We use char because int might match the return type of a gcc2
12838    builtin and then its argument prototype would still apply.  */
12839 char afopen ();
12840 int
12841 main ()
12842 {
12843 afopen ();
12844   ;
12845   return 0;
12846 }
12847 _ACEOF
12848 rm -f conftest.$ac_objext conftest$ac_exeext
12849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12850   (eval $ac_link) 2>conftest.er1
12851   ac_status=$?
12852   grep -v '^ *+' conftest.er1 >conftest.err
12853   rm -f conftest.er1
12854   cat conftest.err >&5
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); } &&
12857          { ac_try='test -z "$ac_c_werror_flag"
12858                          || test ! -s conftest.err'
12859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860   (eval $ac_try) 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; } &&
12864          { ac_try='test -s conftest$ac_exeext'
12865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866   (eval $ac_try) 2>&5
12867   ac_status=$?
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); }; }; then
12870   ac_cv_lib_s_afopen=yes
12871 else
12872   echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12874
12875 ac_cv_lib_s_afopen=no
12876 fi
12877 rm -f conftest.err conftest.$ac_objext \
12878       conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12882 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12883 if test $ac_cv_lib_s_afopen = yes; then
12884
12885         AUTH_LIBS=-ls
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_AIX_SECURITY 1
12889 _ACEOF
12890
12891
12892 fi
12893
12894
12895 case "$target" in
12896 *-ibm-openedition)
12897         ac_cv_func_getopt=no
12898
12899 cat >>confdefs.h <<\_ACEOF
12900 #define BOTH_STRINGS_H 1
12901 _ACEOF
12902
12903         ;;
12904 esac
12905
12906 ol_link_modules=no
12907 WITH_MODULES_ENABLED=no
12908 if test $ol_enable_modules != no ; then
12909
12910 for ac_header in ltdl.h
12911 do
12912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12914   echo "$as_me:$LINENO: checking for $ac_header" >&5
12915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 fi
12919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12921 else
12922   # Is the header compilable?
12923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12925 cat >conftest.$ac_ext <<_ACEOF
12926 /* confdefs.h.  */
12927 _ACEOF
12928 cat confdefs.h >>conftest.$ac_ext
12929 cat >>conftest.$ac_ext <<_ACEOF
12930 /* end confdefs.h.  */
12931 $ac_includes_default
12932 #include <$ac_header>
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12936   (eval $ac_compile) 2>conftest.er1
12937   ac_status=$?
12938   grep -v '^ *+' conftest.er1 >conftest.err
12939   rm -f conftest.er1
12940   cat conftest.err >&5
12941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942   (exit $ac_status); } &&
12943          { ac_try='test -z "$ac_c_werror_flag"
12944                          || test ! -s conftest.err'
12945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12946   (eval $ac_try) 2>&5
12947   ac_status=$?
12948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; } &&
12950          { ac_try='test -s conftest.$ac_objext'
12951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952   (eval $ac_try) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); }; }; then
12956   ac_header_compiler=yes
12957 else
12958   echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_header_compiler=no
12962 fi
12963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12965 echo "${ECHO_T}$ac_header_compiler" >&6
12966
12967 # Is the header present?
12968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12970 cat >conftest.$ac_ext <<_ACEOF
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 #include <$ac_header>
12977 _ACEOF
12978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12980   ac_status=$?
12981   grep -v '^ *+' conftest.er1 >conftest.err
12982   rm -f conftest.er1
12983   cat conftest.err >&5
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); } >/dev/null; then
12986   if test -s conftest.err; then
12987     ac_cpp_err=$ac_c_preproc_warn_flag
12988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12989   else
12990     ac_cpp_err=
12991   fi
12992 else
12993   ac_cpp_err=yes
12994 fi
12995 if test -z "$ac_cpp_err"; then
12996   ac_header_preproc=yes
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001   ac_header_preproc=no
13002 fi
13003 rm -f conftest.err conftest.$ac_ext
13004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13005 echo "${ECHO_T}$ac_header_preproc" >&6
13006
13007 # So?  What about this header?
13008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13009   yes:no: )
13010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13014     ac_header_preproc=yes
13015     ;;
13016   no:yes:* )
13017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13029     (
13030       cat <<\_ASBOX
13031 ## --------------------------------------------- ##
13032 ## Report this to <http://www.openldap.org/its/> ##
13033 ## --------------------------------------------- ##
13034 _ASBOX
13035     ) |
13036       sed "s/^/$as_me: WARNING:     /" >&2
13037     ;;
13038 esac
13039 echo "$as_me:$LINENO: checking for $ac_header" >&5
13040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13042   echo $ECHO_N "(cached) $ECHO_C" >&6
13043 else
13044   eval "$as_ac_Header=\$ac_header_preproc"
13045 fi
13046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13048
13049 fi
13050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13051   cat >>confdefs.h <<_ACEOF
13052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13053 _ACEOF
13054
13055 fi
13056
13057 done
13058
13059
13060         if test $ac_cv_header_ltdl_h = no ; then
13061                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13062 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13063    { (exit 1); exit 1; }; }
13064         fi
13065
13066         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13067 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13068 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13069   echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071   ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-lltdl  $LIBS"
13073 cat >conftest.$ac_ext <<_ACEOF
13074 /* confdefs.h.  */
13075 _ACEOF
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h.  */
13079
13080 /* Override any gcc2 internal prototype to avoid an error.  */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 /* We use char because int might match the return type of a gcc2
13085    builtin and then its argument prototype would still apply.  */
13086 char lt_dlinit ();
13087 int
13088 main ()
13089 {
13090 lt_dlinit ();
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13097   (eval $ac_link) 2>conftest.er1
13098   ac_status=$?
13099   grep -v '^ *+' conftest.er1 >conftest.err
13100   rm -f conftest.er1
13101   cat conftest.err >&5
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -z "$ac_c_werror_flag"
13105                          || test ! -s conftest.err'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; } &&
13111          { ac_try='test -s conftest$ac_exeext'
13112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113   (eval $ac_try) 2>&5
13114   ac_status=$?
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); }; }; then
13117   ac_cv_lib_ltdl_lt_dlinit=yes
13118 else
13119   echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_lib_ltdl_lt_dlinit=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext \
13125       conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13129 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13130 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13131
13132                 MODULES_LIBS=-lltdl
13133
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_LIBLTDL 1
13136 _ACEOF
13137
13138
13139 fi
13140
13141
13142         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13143                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13144 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13145    { (exit 1); exit 1; }; }
13146         fi
13147         ol_link_modules=yes
13148         WITH_MODULES_ENABLED=yes
13149
13150 else
13151         for i in $Backends; do
13152                 eval "ol_tmp=\$ol_enable_$i"
13153                 if test $ol_tmp = mod ; then
13154                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13155 echo "$as_me: WARNING: building static $i backend" >&2;}
13156                         eval "ol_enable_$i=yes"
13157                 fi
13158         done
13159         for i in $Overlays; do
13160                 eval "ol_tmp=\$ol_enable_$i"
13161                 if test $ol_tmp = mod ; then
13162                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13163 echo "$as_me: WARNING: building static $i overlay" >&2;}
13164                         eval "ol_enable_$i=yes"
13165                 fi
13166         done
13167 fi
13168
13169 # test for EBCDIC
13170 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13171 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13172 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175
13176         cat >conftest.$ac_ext <<_ACEOF
13177 /* confdefs.h.  */
13178 _ACEOF
13179 cat confdefs.h >>conftest.$ac_ext
13180 cat >>conftest.$ac_ext <<_ACEOF
13181 /* end confdefs.h.  */
13182
13183 #if !('M' == 0xd4)
13184 #include <__ASCII__/generate_error.h>
13185 #endif
13186
13187 _ACEOF
13188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } >/dev/null; then
13196   if test -s conftest.err; then
13197     ac_cpp_err=$ac_c_preproc_warn_flag
13198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13199   else
13200     ac_cpp_err=
13201   fi
13202 else
13203   ac_cpp_err=yes
13204 fi
13205 if test -z "$ac_cpp_err"; then
13206   ol_cv_cpp_ebcdic=yes
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211   ol_cv_cpp_ebcdic=no
13212 fi
13213 rm -f conftest.err conftest.$ac_ext
13214 fi
13215 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13216 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13217 if test $ol_cv_cpp_ebcdic = yes ; then
13218
13219 cat >>confdefs.h <<\_ACEOF
13220 #define HAVE_EBCDIC 1
13221 _ACEOF
13222
13223 fi
13224
13225 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13226 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13227 if test "${ol_cv_header_stdc+set}" = set; then
13228   echo $ECHO_N "(cached) $ECHO_C" >&6
13229 else
13230   cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <stdlib.h>
13237 #include <stdarg.h>
13238 #include <string.h>
13239 #include <float.h>
13240 _ACEOF
13241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } >/dev/null; then
13249   if test -s conftest.err; then
13250     ac_cpp_err=$ac_c_preproc_warn_flag
13251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13252   else
13253     ac_cpp_err=
13254   fi
13255 else
13256   ac_cpp_err=yes
13257 fi
13258 if test -z "$ac_cpp_err"; then
13259   ol_cv_header_stdc=yes
13260 else
13261   echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264   ol_cv_header_stdc=no
13265 fi
13266 rm -f conftest.err conftest.$ac_ext
13267
13268 if test $ol_cv_header_stdc = yes; then
13269   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h.  */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h.  */
13276 #include <string.h>
13277
13278 _ACEOF
13279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13280   $EGREP "memchr" >/dev/null 2>&1; then
13281   :
13282 else
13283   ol_cv_header_stdc=no
13284 fi
13285 rm -f conftest*
13286
13287 fi
13288
13289 if test $ol_cv_header_stdc = yes; then
13290   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297 #include <stdlib.h>
13298
13299 _ACEOF
13300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13301   $EGREP "free" >/dev/null 2>&1; then
13302   :
13303 else
13304   ol_cv_header_stdc=no
13305 fi
13306 rm -f conftest*
13307
13308 fi
13309
13310 if test $ol_cv_header_stdc = yes; then
13311   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13312 if test "$cross_compiling" = yes; then
13313   :
13314 else
13315   cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h.  */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h.  */
13321 #include <ctype.h>
13322 #ifndef HAVE_EBCDIC
13323 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13324 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13325 #else
13326 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13327                 || ('j' <= (c) && (c) <= 'r') \
13328                 || ('s' <= (c) && (c) <= 'z'))
13329 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13330 #endif
13331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13332 int main () { int i; for (i = 0; i < 256; i++)
13333 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13334 exit (0); }
13335
13336 _ACEOF
13337 rm -f conftest$ac_exeext
13338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13339   (eval $ac_link) 2>&5
13340   ac_status=$?
13341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   :
13349 else
13350   echo "$as_me: program exited with status $ac_status" >&5
13351 echo "$as_me: failed program was:" >&5
13352 sed 's/^/| /' conftest.$ac_ext >&5
13353
13354 ( exit $ac_status )
13355 ol_cv_header_stdc=no
13356 fi
13357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13358 fi
13359 fi
13360 fi
13361 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13362 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13363 if test $ol_cv_header_stdc = yes; then
13364   cat >>confdefs.h <<\_ACEOF
13365 #define STDC_HEADERS 1
13366 _ACEOF
13367
13368 fi
13369 ac_cv_header_stdc=disable
13370
13371
13372 if test $ol_cv_header_stdc != yes; then
13373         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13374 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13375 fi
13376
13377
13378
13379
13380
13381
13382 ac_header_dirent=no
13383 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13384   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13385 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13386 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13388   echo $ECHO_N "(cached) $ECHO_C" >&6
13389 else
13390   cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h.  */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h.  */
13396 #include <sys/types.h>
13397 #include <$ac_hdr>
13398
13399 int
13400 main ()
13401 {
13402 if ((DIR *) 0)
13403 return 0;
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 rm -f conftest.$ac_objext
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410   (eval $ac_compile) 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag"
13418                          || test ! -s conftest.err'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; } &&
13424          { ac_try='test -s conftest.$ac_objext'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; }; then
13430   eval "$as_ac_Header=yes"
13431 else
13432   echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 eval "$as_ac_Header=no"
13436 fi
13437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13442   cat >>confdefs.h <<_ACEOF
13443 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13444 _ACEOF
13445
13446 ac_header_dirent=$ac_hdr; break
13447 fi
13448
13449 done
13450 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13451 if test $ac_header_dirent = dirent.h; then
13452   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13453 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13454 if test "${ac_cv_search_opendir+set}" = set; then
13455   echo $ECHO_N "(cached) $ECHO_C" >&6
13456 else
13457   ac_func_search_save_LIBS=$LIBS
13458 ac_cv_search_opendir=no
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465
13466 /* Override any gcc2 internal prototype to avoid an error.  */
13467 #ifdef __cplusplus
13468 extern "C"
13469 #endif
13470 /* We use char because int might match the return type of a gcc2
13471    builtin and then its argument prototype would still apply.  */
13472 char opendir ();
13473 int
13474 main ()
13475 {
13476 opendir ();
13477   ;
13478   return 0;
13479 }
13480 _ACEOF
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13483   (eval $ac_link) 2>conftest.er1
13484   ac_status=$?
13485   grep -v '^ *+' conftest.er1 >conftest.err
13486   rm -f conftest.er1
13487   cat conftest.err >&5
13488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489   (exit $ac_status); } &&
13490          { ac_try='test -z "$ac_c_werror_flag"
13491                          || test ! -s conftest.err'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; } &&
13497          { ac_try='test -s conftest$ac_exeext'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; }; then
13503   ac_cv_search_opendir="none required"
13504 else
13505   echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 fi
13509 rm -f conftest.err conftest.$ac_objext \
13510       conftest$ac_exeext conftest.$ac_ext
13511 if test "$ac_cv_search_opendir" = no; then
13512   for ac_lib in dir; do
13513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13514     cat >conftest.$ac_ext <<_ACEOF
13515 /* confdefs.h.  */
13516 _ACEOF
13517 cat confdefs.h >>conftest.$ac_ext
13518 cat >>conftest.$ac_ext <<_ACEOF
13519 /* end confdefs.h.  */
13520
13521 /* Override any gcc2 internal prototype to avoid an error.  */
13522 #ifdef __cplusplus
13523 extern "C"
13524 #endif
13525 /* We use char because int might match the return type of a gcc2
13526    builtin and then its argument prototype would still apply.  */
13527 char opendir ();
13528 int
13529 main ()
13530 {
13531 opendir ();
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext conftest$ac_exeext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13538   (eval $ac_link) 2>conftest.er1
13539   ac_status=$?
13540   grep -v '^ *+' conftest.er1 >conftest.err
13541   rm -f conftest.er1
13542   cat conftest.err >&5
13543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544   (exit $ac_status); } &&
13545          { ac_try='test -z "$ac_c_werror_flag"
13546                          || test ! -s conftest.err'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; } &&
13552          { ac_try='test -s conftest$ac_exeext'
13553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554   (eval $ac_try) 2>&5
13555   ac_status=$?
13556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557   (exit $ac_status); }; }; then
13558   ac_cv_search_opendir="-l$ac_lib"
13559 break
13560 else
13561   echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13563
13564 fi
13565 rm -f conftest.err conftest.$ac_objext \
13566       conftest$ac_exeext conftest.$ac_ext
13567   done
13568 fi
13569 LIBS=$ac_func_search_save_LIBS
13570 fi
13571 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13572 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13573 if test "$ac_cv_search_opendir" != no; then
13574   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13575
13576 fi
13577
13578 else
13579   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13580 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13581 if test "${ac_cv_search_opendir+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   ac_func_search_save_LIBS=$LIBS
13585 ac_cv_search_opendir=no
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 /* We use char because int might match the return type of a gcc2
13598    builtin and then its argument prototype would still apply.  */
13599 char opendir ();
13600 int
13601 main ()
13602 {
13603 opendir ();
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610   (eval $ac_link) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_cv_search_opendir="none required"
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 fi
13636 rm -f conftest.err conftest.$ac_objext \
13637       conftest$ac_exeext conftest.$ac_ext
13638 if test "$ac_cv_search_opendir" = no; then
13639   for ac_lib in x; do
13640     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13641     cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647
13648 /* Override any gcc2 internal prototype to avoid an error.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 /* We use char because int might match the return type of a gcc2
13653    builtin and then its argument prototype would still apply.  */
13654 char opendir ();
13655 int
13656 main ()
13657 {
13658 opendir ();
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13665   (eval $ac_link) 2>conftest.er1
13666   ac_status=$?
13667   grep -v '^ *+' conftest.er1 >conftest.err
13668   rm -f conftest.er1
13669   cat conftest.err >&5
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } &&
13672          { ac_try='test -z "$ac_c_werror_flag"
13673                          || test ! -s conftest.err'
13674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675   (eval $ac_try) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681   (eval $ac_try) 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; }; then
13685   ac_cv_search_opendir="-l$ac_lib"
13686 break
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 fi
13692 rm -f conftest.err conftest.$ac_objext \
13693       conftest$ac_exeext conftest.$ac_ext
13694   done
13695 fi
13696 LIBS=$ac_func_search_save_LIBS
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13699 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13700 if test "$ac_cv_search_opendir" != no; then
13701   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13702
13703 fi
13704
13705 fi
13706
13707 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13708 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13709 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h.  */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h.  */
13718 #include <sys/types.h>
13719 #include <sys/wait.h>
13720 #ifndef WEXITSTATUS
13721 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13722 #endif
13723 #ifndef WIFEXITED
13724 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13725 #endif
13726
13727 int
13728 main ()
13729 {
13730   int s;
13731   wait (&s);
13732   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext
13738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13739   (eval $ac_compile) 2>conftest.er1
13740   ac_status=$?
13741   grep -v '^ *+' conftest.er1 >conftest.err
13742   rm -f conftest.er1
13743   cat conftest.err >&5
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); } &&
13746          { ac_try='test -z "$ac_c_werror_flag"
13747                          || test ! -s conftest.err'
13748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749   (eval $ac_try) 2>&5
13750   ac_status=$?
13751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752   (exit $ac_status); }; } &&
13753          { ac_try='test -s conftest.$ac_objext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_cv_header_sys_wait_h=yes
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_cv_header_sys_wait_h=no
13765 fi
13766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13769 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13770 if test $ac_cv_header_sys_wait_h = yes; then
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_SYS_WAIT_H 1
13774 _ACEOF
13775
13776 fi
13777
13778 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13779 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13780 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 #include <sys/types.h>
13790 #include <termios.h>
13791 #ifdef TIOCGWINSZ
13792   yes
13793 #endif
13794
13795 _ACEOF
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797   $EGREP "yes" >/dev/null 2>&1; then
13798   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13799 else
13800   ac_cv_sys_tiocgwinsz_in_termios_h=no
13801 fi
13802 rm -f conftest*
13803
13804 fi
13805 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13806 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13807
13808 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13809   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13810 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13811 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13812   echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814   cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 #include <sys/types.h>
13821 #include <sys/ioctl.h>
13822 #ifdef TIOCGWINSZ
13823   yes
13824 #endif
13825
13826 _ACEOF
13827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13828   $EGREP "yes" >/dev/null 2>&1; then
13829   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13830 else
13831   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13832 fi
13833 rm -f conftest*
13834
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13837 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13838
13839   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13840
13841 cat >>confdefs.h <<\_ACEOF
13842 #define GWINSZ_IN_SYS_IOCTL 1
13843 _ACEOF
13844
13845   fi
13846 fi
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893 for ac_header in \
13894         arpa/inet.h             \
13895         arpa/nameser.h  \
13896         assert.h                \
13897         bits/types.h    \
13898         conio.h                 \
13899         crypt.h                 \
13900         direct.h                \
13901         errno.h                 \
13902         fcntl.h                 \
13903         filio.h                 \
13904         getopt.h                \
13905         grp.h                   \
13906         io.h                    \
13907         libutil.h               \
13908         limits.h                \
13909         locale.h                \
13910         malloc.h                \
13911         memory.h                \
13912         psap.h                  \
13913         pwd.h                   \
13914         process.h               \
13915         sgtty.h                 \
13916         shadow.h                \
13917         stddef.h                \
13918         string.h                \
13919         strings.h               \
13920         sysexits.h              \
13921         sys/file.h              \
13922         sys/filio.h             \
13923         sys/errno.h             \
13924         sys/ioctl.h             \
13925         sys/param.h             \
13926         sys/resource.h  \
13927         sys/select.h    \
13928         sys/socket.h    \
13929         sys/stat.h              \
13930         sys/syslog.h    \
13931         sys/time.h              \
13932         sys/types.h             \
13933         sys/uio.h               \
13934         syslog.h                \
13935         termios.h               \
13936         unistd.h                \
13937         utime.h                 \
13938
13939 do
13940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13942   echo "$as_me:$LINENO: checking for $ac_header" >&5
13943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13945   echo $ECHO_N "(cached) $ECHO_C" >&6
13946 fi
13947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13949 else
13950   # Is the header compilable?
13951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 $ac_includes_default
13960 #include <$ac_header>
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -z "$ac_c_werror_flag"
13972                          || test ! -s conftest.err'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_header_compiler=yes
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_header_compiler=no
13990 fi
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993 echo "${ECHO_T}$ac_header_compiler" >&6
13994
13995 # Is the header present?
13996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 #include <$ac_header>
14005 _ACEOF
14006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14008   ac_status=$?
14009   grep -v '^ *+' conftest.er1 >conftest.err
14010   rm -f conftest.er1
14011   cat conftest.err >&5
14012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013   (exit $ac_status); } >/dev/null; then
14014   if test -s conftest.err; then
14015     ac_cpp_err=$ac_c_preproc_warn_flag
14016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14017   else
14018     ac_cpp_err=
14019   fi
14020 else
14021   ac_cpp_err=yes
14022 fi
14023 if test -z "$ac_cpp_err"; then
14024   ac_header_preproc=yes
14025 else
14026   echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029   ac_header_preproc=no
14030 fi
14031 rm -f conftest.err conftest.$ac_ext
14032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14033 echo "${ECHO_T}$ac_header_preproc" >&6
14034
14035 # So?  What about this header?
14036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037   yes:no: )
14038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14042     ac_header_preproc=yes
14043     ;;
14044   no:yes:* )
14045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14057     (
14058       cat <<\_ASBOX
14059 ## --------------------------------------------- ##
14060 ## Report this to <http://www.openldap.org/its/> ##
14061 ## --------------------------------------------- ##
14062 _ASBOX
14063     ) |
14064       sed "s/^/$as_me: WARNING:     /" >&2
14065     ;;
14066 esac
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 else
14072   eval "$as_ac_Header=\$ac_header_preproc"
14073 fi
14074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14076
14077 fi
14078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14079   cat >>confdefs.h <<_ACEOF
14080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081 _ACEOF
14082
14083 fi
14084
14085 done
14086
14087
14088 if test "$ac_cv_mingw32" = yes ; then
14089
14090
14091 for ac_header in winsock.h winsock2.h
14092 do
14093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14095   echo "$as_me:$LINENO: checking for $ac_header" >&5
14096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 fi
14100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102 else
14103   # Is the header compilable?
14104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h.  */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h.  */
14112 $ac_includes_default
14113 #include <$ac_header>
14114 _ACEOF
14115 rm -f conftest.$ac_objext
14116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14117   (eval $ac_compile) 2>conftest.er1
14118   ac_status=$?
14119   grep -v '^ *+' conftest.er1 >conftest.err
14120   rm -f conftest.er1
14121   cat conftest.err >&5
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); } &&
14124          { ac_try='test -z "$ac_c_werror_flag"
14125                          || test ! -s conftest.err'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_header_compiler=yes
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_header_compiler=no
14143 fi
14144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14145 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14146 echo "${ECHO_T}$ac_header_compiler" >&6
14147
14148 # Is the header present?
14149 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14151 cat >conftest.$ac_ext <<_ACEOF
14152 /* confdefs.h.  */
14153 _ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h.  */
14157 #include <$ac_header>
14158 _ACEOF
14159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } >/dev/null; then
14167   if test -s conftest.err; then
14168     ac_cpp_err=$ac_c_preproc_warn_flag
14169     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14170   else
14171     ac_cpp_err=
14172   fi
14173 else
14174   ac_cpp_err=yes
14175 fi
14176 if test -z "$ac_cpp_err"; then
14177   ac_header_preproc=yes
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182   ac_header_preproc=no
14183 fi
14184 rm -f conftest.err conftest.$ac_ext
14185 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6
14187
14188 # So?  What about this header?
14189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14190   yes:no: )
14191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14195     ac_header_preproc=yes
14196     ;;
14197   no:yes:* )
14198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14210     (
14211       cat <<\_ASBOX
14212 ## --------------------------------------------- ##
14213 ## Report this to <http://www.openldap.org/its/> ##
14214 ## --------------------------------------------- ##
14215 _ASBOX
14216     ) |
14217       sed "s/^/$as_me: WARNING:     /" >&2
14218     ;;
14219 esac
14220 echo "$as_me:$LINENO: checking for $ac_header" >&5
14221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223   echo $ECHO_N "(cached) $ECHO_C" >&6
14224 else
14225   eval "$as_ac_Header=\$ac_header_preproc"
14226 fi
14227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229
14230 fi
14231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14232   cat >>confdefs.h <<_ACEOF
14233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 _ACEOF
14235
14236 fi
14237
14238 done
14239
14240 fi
14241
14242
14243 for ac_header in resolv.h
14244 do
14245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_header" >&5
14247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 $ac_includes_default
14258 #include <netinet/in.h>
14259
14260
14261 #include <$ac_header>
14262 _ACEOF
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265   (eval $ac_compile) 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -z "$ac_c_werror_flag"
14273                          || test ! -s conftest.err'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281   (eval $ac_try) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   eval "$as_ac_Header=yes"
14286 else
14287   echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 eval "$as_ac_Header=no"
14291 fi
14292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14293 fi
14294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14297   cat >>confdefs.h <<_ACEOF
14298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14299 _ACEOF
14300
14301 fi
14302
14303 done
14304
14305
14306
14307 for ac_header in netinet/tcp.h
14308 do
14309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313   echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315   cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 $ac_includes_default
14322 #include <netinet/in.h>
14323
14324
14325 #include <$ac_header>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329   (eval $ac_compile) 2>conftest.er1
14330   ac_status=$?
14331   grep -v '^ *+' conftest.er1 >conftest.err
14332   rm -f conftest.er1
14333   cat conftest.err >&5
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); } &&
14336          { ac_try='test -z "$ac_c_werror_flag"
14337                          || test ! -s conftest.err'
14338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339   (eval $ac_try) 2>&5
14340   ac_status=$?
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); }; } &&
14343          { ac_try='test -s conftest.$ac_objext'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; }; then
14349   eval "$as_ac_Header=yes"
14350 else
14351   echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 eval "$as_ac_Header=no"
14355 fi
14356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14361   cat >>confdefs.h <<_ACEOF
14362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14363 _ACEOF
14364
14365 fi
14366
14367 done
14368
14369
14370
14371 for ac_header in sys/ucred.h
14372 do
14373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14374 echo "$as_me:$LINENO: checking for $ac_header" >&5
14375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14377   echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379   cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 $ac_includes_default
14386 #ifdef HAVE_SYS_PARAM_H
14387 #include <sys/param.h>
14388 #endif
14389
14390
14391 #include <$ac_header>
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14395   (eval $ac_compile) 2>conftest.er1
14396   ac_status=$?
14397   grep -v '^ *+' conftest.er1 >conftest.err
14398   rm -f conftest.er1
14399   cat conftest.err >&5
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -z "$ac_c_werror_flag"
14403                          || test ! -s conftest.err'
14404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405   (eval $ac_try) 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } &&
14409          { ac_try='test -s conftest.$ac_objext'
14410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411   (eval $ac_try) 2>&5
14412   ac_status=$?
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); }; }; then
14415   eval "$as_ac_Header=yes"
14416 else
14417   echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420 eval "$as_ac_Header=no"
14421 fi
14422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14423 fi
14424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14427   cat >>confdefs.h <<_ACEOF
14428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14429 _ACEOF
14430
14431 fi
14432
14433 done
14434
14435
14436
14437
14438
14439 for ac_func in sigaction sigset
14440 do
14441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14442 echo "$as_me:$LINENO: checking for $ac_func" >&5
14443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14444 if eval "test \"\${$as_ac_var+set}\" = set"; then
14445   echo $ECHO_N "(cached) $ECHO_C" >&6
14446 else
14447   cat >conftest.$ac_ext <<_ACEOF
14448 /* confdefs.h.  */
14449 _ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h.  */
14453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14454    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14455 #define $ac_func innocuous_$ac_func
14456
14457 /* System header to define __stub macros and hopefully few prototypes,
14458     which can conflict with char $ac_func (); below.
14459     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14460     <limits.h> exists even on freestanding compilers.  */
14461
14462 #ifdef __STDC__
14463 # include <limits.h>
14464 #else
14465 # include <assert.h>
14466 #endif
14467
14468 #undef $ac_func
14469
14470 /* Override any gcc2 internal prototype to avoid an error.  */
14471 #ifdef __cplusplus
14472 extern "C"
14473 {
14474 #endif
14475 /* We use char because int might match the return type of a gcc2
14476    builtin and then its argument prototype would still apply.  */
14477 char $ac_func ();
14478 /* The GNU C library defines this for functions which it implements
14479     to always fail with ENOSYS.  Some functions are actually named
14480     something starting with __ and the normal name is an alias.  */
14481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14482 choke me
14483 #else
14484 char (*f) () = $ac_func;
14485 #endif
14486 #ifdef __cplusplus
14487 }
14488 #endif
14489
14490 int
14491 main ()
14492 {
14493 return f != $ac_func;
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest.$ac_objext conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500   (eval $ac_link) 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -z "$ac_c_werror_flag"
14508                          || test ! -s conftest.err'
14509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14510   (eval $ac_try) 2>&5
14511   ac_status=$?
14512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513   (exit $ac_status); }; } &&
14514          { ac_try='test -s conftest$ac_exeext'
14515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516   (eval $ac_try) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); }; }; then
14520   eval "$as_ac_var=yes"
14521 else
14522   echo "$as_me: failed program was:" >&5
14523 sed 's/^/| /' conftest.$ac_ext >&5
14524
14525 eval "$as_ac_var=no"
14526 fi
14527 rm -f conftest.err conftest.$ac_objext \
14528       conftest$ac_exeext conftest.$ac_ext
14529 fi
14530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14532 if test `eval echo '${'$as_ac_var'}'` = yes; then
14533   cat >>confdefs.h <<_ACEOF
14534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14535 _ACEOF
14536
14537 fi
14538 done
14539
14540
14541 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14542
14543 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14544 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14545 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14546   echo $ECHO_N "(cached) $ECHO_C" >&6
14547 else
14548   ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-lV3  $LIBS"
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556
14557 /* Override any gcc2 internal prototype to avoid an error.  */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 /* We use char because int might match the return type of a gcc2
14562    builtin and then its argument prototype would still apply.  */
14563 char sigset ();
14564 int
14565 main ()
14566 {
14567 sigset ();
14568   ;
14569   return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574   (eval $ac_link) 2>conftest.er1
14575   ac_status=$?
14576   grep -v '^ *+' conftest.er1 >conftest.err
14577   rm -f conftest.er1
14578   cat conftest.err >&5
14579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580   (exit $ac_status); } &&
14581          { ac_try='test -z "$ac_c_werror_flag"
14582                          || test ! -s conftest.err'
14583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584   (eval $ac_try) 2>&5
14585   ac_status=$?
14586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); }; } &&
14588          { ac_try='test -s conftest$ac_exeext'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; }; then
14594   ac_cv_lib_V3_sigset=yes
14595 else
14596   echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 ac_cv_lib_V3_sigset=no
14600 fi
14601 rm -f conftest.err conftest.$ac_objext \
14602       conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14604 fi
14605 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14606 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14607 if test $ac_cv_lib_V3_sigset = yes; then
14608   cat >>confdefs.h <<_ACEOF
14609 #define HAVE_LIBV3 1
14610 _ACEOF
14611
14612   LIBS="-lV3 $LIBS"
14613
14614 fi
14615
14616 fi
14617
14618 if test "$ac_cv_header_winsock_h" = yes; then
14619 echo "$as_me:$LINENO: checking for winsock" >&5
14620 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14621 if test "${ol_cv_winsock+set}" = set; then
14622   echo $ECHO_N "(cached) $ECHO_C" >&6
14623 else
14624   save_LIBS="$LIBS"
14625 for curlib in ws2_32 wsock32; do
14626         LIBS="$LIBS -l$curlib"
14627         cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633 #include <winsock.h>
14634
14635 int
14636 main ()
14637 {
14638
14639                         socket(0,0,0);
14640                         select(0,NULL,NULL,NULL,NULL);
14641                         closesocket(0);
14642                         gethostname(NULL,0);
14643
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 rm -f conftest.$ac_objext conftest$ac_exeext
14649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14650   (eval $ac_link) 2>conftest.er1
14651   ac_status=$?
14652   grep -v '^ *+' conftest.er1 >conftest.err
14653   rm -f conftest.er1
14654   cat conftest.err >&5
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -z "$ac_c_werror_flag"
14658                          || test ! -s conftest.err'
14659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660   (eval $ac_try) 2>&5
14661   ac_status=$?
14662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663   (exit $ac_status); }; } &&
14664          { ac_try='test -s conftest$ac_exeext'
14665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666   (eval $ac_try) 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; }; then
14670   ol_cv_winsock=yes
14671 else
14672   echo "$as_me: failed program was:" >&5
14673 sed 's/^/| /' conftest.$ac_ext >&5
14674
14675 ol_cv_winsock=no
14676 fi
14677 rm -f conftest.err conftest.$ac_objext \
14678       conftest$ac_exeext conftest.$ac_ext
14679
14680         if test $ol_cv_winsock = yes; then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_WINSOCK 1
14684 _ACEOF
14685
14686                 ac_cv_func_socket=yes
14687                 ac_cv_func_select=yes
14688                 ac_cv_func_closesocket=yes
14689                 ac_cv_func_gethostname=yes
14690                 if test $curlib = ws2_32; then
14691                         ol_cv_winsock=winsock2
14692
14693 cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_WINSOCK2 1
14695 _ACEOF
14696
14697                 fi
14698                 break
14699         fi
14700         LIBS="$save_LIBS"
14701 done
14702 fi
14703 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14704 echo "${ECHO_T}$ol_cv_winsock" >&6
14705 fi
14706
14707
14708 echo "$as_me:$LINENO: checking for socket" >&5
14709 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14710 if test "${ac_cv_func_socket+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   cat >conftest.$ac_ext <<_ACEOF
14714 /* confdefs.h.  */
14715 _ACEOF
14716 cat confdefs.h >>conftest.$ac_ext
14717 cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h.  */
14719 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14721 #define socket innocuous_socket
14722
14723 /* System header to define __stub macros and hopefully few prototypes,
14724     which can conflict with char socket (); below.
14725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14726     <limits.h> exists even on freestanding compilers.  */
14727
14728 #ifdef __STDC__
14729 # include <limits.h>
14730 #else
14731 # include <assert.h>
14732 #endif
14733
14734 #undef socket
14735
14736 /* Override any gcc2 internal prototype to avoid an error.  */
14737 #ifdef __cplusplus
14738 extern "C"
14739 {
14740 #endif
14741 /* We use char because int might match the return type of a gcc2
14742    builtin and then its argument prototype would still apply.  */
14743 char socket ();
14744 /* The GNU C library defines this for functions which it implements
14745     to always fail with ENOSYS.  Some functions are actually named
14746     something starting with __ and the normal name is an alias.  */
14747 #if defined (__stub_socket) || defined (__stub___socket)
14748 choke me
14749 #else
14750 char (*f) () = socket;
14751 #endif
14752 #ifdef __cplusplus
14753 }
14754 #endif
14755
14756 int
14757 main ()
14758 {
14759 return f != socket;
14760   ;
14761   return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14766   (eval $ac_link) 2>conftest.er1
14767   ac_status=$?
14768   grep -v '^ *+' conftest.er1 >conftest.err
14769   rm -f conftest.er1
14770   cat conftest.err >&5
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -z "$ac_c_werror_flag"
14774                          || test ! -s conftest.err'
14775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776   (eval $ac_try) 2>&5
14777   ac_status=$?
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   (exit $ac_status); }; } &&
14780          { ac_try='test -s conftest$ac_exeext'
14781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782   (eval $ac_try) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); }; }; then
14786   ac_cv_func_socket=yes
14787 else
14788   echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791 ac_cv_func_socket=no
14792 fi
14793 rm -f conftest.err conftest.$ac_objext \
14794       conftest$ac_exeext conftest.$ac_ext
14795 fi
14796 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14797 echo "${ECHO_T}$ac_cv_func_socket" >&6
14798 if test $ac_cv_func_socket = yes; then
14799   :
14800 else
14801
14802
14803 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14804 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14805 if test "${ac_cv_lib_socket_main+set}" = set; then
14806   echo $ECHO_N "(cached) $ECHO_C" >&6
14807 else
14808   ac_check_lib_save_LIBS=$LIBS
14809 LIBS="-lsocket  $LIBS"
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h.  */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h.  */
14816
14817
14818 int
14819 main ()
14820 {
14821 main ();
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest.$ac_objext conftest$ac_exeext
14827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14828   (eval $ac_link) 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } &&
14835          { ac_try='test -z "$ac_c_werror_flag"
14836                          || test ! -s conftest.err'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; } &&
14842          { ac_try='test -s conftest$ac_exeext'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }; then
14848   ac_cv_lib_socket_main=yes
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ac_cv_lib_socket_main=no
14854 fi
14855 rm -f conftest.err conftest.$ac_objext \
14856       conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14858 fi
14859 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14860 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14861 if test $ac_cv_lib_socket_main = yes; then
14862   cat >>confdefs.h <<_ACEOF
14863 #define HAVE_LIBSOCKET 1
14864 _ACEOF
14865
14866   LIBS="-lsocket $LIBS"
14867
14868 fi
14869
14870
14871 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14872 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14873 if test "${ac_cv_lib_net_main+set}" = set; then
14874   echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876   ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-lnet  $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14879 /* confdefs.h.  */
14880 _ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h.  */
14884
14885
14886 int
14887 main ()
14888 {
14889 main ();
14890   ;
14891   return 0;
14892 }
14893 _ACEOF
14894 rm -f conftest.$ac_objext conftest$ac_exeext
14895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14896   (eval $ac_link) 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag"
14904                          || test ! -s conftest.err'
14905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906   (eval $ac_try) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); }; } &&
14910          { ac_try='test -s conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_lib_net_main=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ac_cv_lib_net_main=no
14922 fi
14923 rm -f conftest.err conftest.$ac_objext \
14924       conftest$ac_exeext conftest.$ac_ext
14925 LIBS=$ac_check_lib_save_LIBS
14926 fi
14927 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14928 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14929 if test $ac_cv_lib_net_main = yes; then
14930   cat >>confdefs.h <<_ACEOF
14931 #define HAVE_LIBNET 1
14932 _ACEOF
14933
14934   LIBS="-lnet $LIBS"
14935
14936 fi
14937
14938
14939 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14940 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14941 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14942   echo $ECHO_N "(cached) $ECHO_C" >&6
14943 else
14944   ac_check_lib_save_LIBS=$LIBS
14945 LIBS="-lnsl_s  $LIBS"
14946 cat >conftest.$ac_ext <<_ACEOF
14947 /* confdefs.h.  */
14948 _ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h.  */
14952
14953
14954 int
14955 main ()
14956 {
14957 main ();
14958   ;
14959   return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext conftest$ac_exeext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14964   (eval $ac_link) 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } &&
14971          { ac_try='test -z "$ac_c_werror_flag"
14972                          || test ! -s conftest.err'
14973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974   (eval $ac_try) 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; } &&
14978          { ac_try='test -s conftest$ac_exeext'
14979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980   (eval $ac_try) 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984   ac_cv_lib_nsl_s_main=yes
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_cv_lib_nsl_s_main=no
14990 fi
14991 rm -f conftest.err conftest.$ac_objext \
14992       conftest$ac_exeext conftest.$ac_ext
14993 LIBS=$ac_check_lib_save_LIBS
14994 fi
14995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14996 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14997 if test $ac_cv_lib_nsl_s_main = yes; then
14998   cat >>confdefs.h <<_ACEOF
14999 #define HAVE_LIBNSL_S 1
15000 _ACEOF
15001
15002   LIBS="-lnsl_s $LIBS"
15003
15004 fi
15005
15006
15007 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15008 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15009 if test "${ac_cv_lib_nsl_main+set}" = set; then
15010   echo $ECHO_N "(cached) $ECHO_C" >&6
15011 else
15012   ac_check_lib_save_LIBS=$LIBS
15013 LIBS="-lnsl  $LIBS"
15014 cat >conftest.$ac_ext <<_ACEOF
15015 /* confdefs.h.  */
15016 _ACEOF
15017 cat confdefs.h >>conftest.$ac_ext
15018 cat >>conftest.$ac_ext <<_ACEOF
15019 /* end confdefs.h.  */
15020
15021
15022 int
15023 main ()
15024 {
15025 main ();
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext conftest$ac_exeext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15032   (eval $ac_link) 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } &&
15039          { ac_try='test -z "$ac_c_werror_flag"
15040                          || test ! -s conftest.err'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; } &&
15046          { ac_try='test -s conftest$ac_exeext'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052   ac_cv_lib_nsl_main=yes
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 ac_cv_lib_nsl_main=no
15058 fi
15059 rm -f conftest.err conftest.$ac_objext \
15060       conftest$ac_exeext conftest.$ac_ext
15061 LIBS=$ac_check_lib_save_LIBS
15062 fi
15063 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15064 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15065 if test $ac_cv_lib_nsl_main = yes; then
15066   cat >>confdefs.h <<_ACEOF
15067 #define HAVE_LIBNSL 1
15068 _ACEOF
15069
15070   LIBS="-lnsl $LIBS"
15071
15072 fi
15073
15074
15075 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15076 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15077 if test "${ac_cv_lib_inet_socket+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   ac_check_lib_save_LIBS=$LIBS
15081 LIBS="-linet  $LIBS"
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h.  */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h.  */
15088
15089 /* Override any gcc2 internal prototype to avoid an error.  */
15090 #ifdef __cplusplus
15091 extern "C"
15092 #endif
15093 /* We use char because int might match the return type of a gcc2
15094    builtin and then its argument prototype would still apply.  */
15095 char socket ();
15096 int
15097 main ()
15098 {
15099 socket ();
15100   ;
15101   return 0;
15102 }
15103 _ACEOF
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15106   (eval $ac_link) 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -z "$ac_c_werror_flag"
15114                          || test ! -s conftest.err'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; } &&
15120          { ac_try='test -s conftest$ac_exeext'
15121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15122   (eval $ac_try) 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; }; then
15126   ac_cv_lib_inet_socket=yes
15127 else
15128   echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.$ac_ext >&5
15130
15131 ac_cv_lib_inet_socket=no
15132 fi
15133 rm -f conftest.err conftest.$ac_objext \
15134       conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15136 fi
15137 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15138 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15139 if test $ac_cv_lib_inet_socket = yes; then
15140   cat >>confdefs.h <<_ACEOF
15141 #define HAVE_LIBINET 1
15142 _ACEOF
15143
15144   LIBS="-linet $LIBS"
15145
15146 fi
15147
15148
15149 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15150 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15151 if test "${ac_cv_lib_gen_main+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   ac_check_lib_save_LIBS=$LIBS
15155 LIBS="-lgen  $LIBS"
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h.  */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h.  */
15162
15163
15164 int
15165 main ()
15166 {
15167 main ();
15168   ;
15169   return 0;
15170 }
15171 _ACEOF
15172 rm -f conftest.$ac_objext conftest$ac_exeext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15174   (eval $ac_link) 2>conftest.er1
15175   ac_status=$?
15176   grep -v '^ *+' conftest.er1 >conftest.err
15177   rm -f conftest.er1
15178   cat conftest.err >&5
15179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180   (exit $ac_status); } &&
15181          { ac_try='test -z "$ac_c_werror_flag"
15182                          || test ! -s conftest.err'
15183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184   (eval $ac_try) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; } &&
15188          { ac_try='test -s conftest$ac_exeext'
15189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190   (eval $ac_try) 2>&5
15191   ac_status=$?
15192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); }; }; then
15194   ac_cv_lib_gen_main=yes
15195 else
15196   echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15198
15199 ac_cv_lib_gen_main=no
15200 fi
15201 rm -f conftest.err conftest.$ac_objext \
15202       conftest$ac_exeext conftest.$ac_ext
15203 LIBS=$ac_check_lib_save_LIBS
15204 fi
15205 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15206 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15207 if test $ac_cv_lib_gen_main = yes; then
15208   cat >>confdefs.h <<_ACEOF
15209 #define HAVE_LIBGEN 1
15210 _ACEOF
15211
15212   LIBS="-lgen $LIBS"
15213
15214 fi
15215
15216
15217 fi
15218
15219
15220 echo "$as_me:$LINENO: checking for select" >&5
15221 echo $ECHO_N "checking for select... $ECHO_C" >&6
15222 if test "${ac_cv_func_select+set}" = set; then
15223   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225   cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 /* Define select to an innocuous variant, in case <limits.h> declares select.
15232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15233 #define select innocuous_select
15234
15235 /* System header to define __stub macros and hopefully few prototypes,
15236     which can conflict with char select (); below.
15237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15238     <limits.h> exists even on freestanding compilers.  */
15239
15240 #ifdef __STDC__
15241 # include <limits.h>
15242 #else
15243 # include <assert.h>
15244 #endif
15245
15246 #undef select
15247
15248 /* Override any gcc2 internal prototype to avoid an error.  */
15249 #ifdef __cplusplus
15250 extern "C"
15251 {
15252 #endif
15253 /* We use char because int might match the return type of a gcc2
15254    builtin and then its argument prototype would still apply.  */
15255 char select ();
15256 /* The GNU C library defines this for functions which it implements
15257     to always fail with ENOSYS.  Some functions are actually named
15258     something starting with __ and the normal name is an alias.  */
15259 #if defined (__stub_select) || defined (__stub___select)
15260 choke me
15261 #else
15262 char (*f) () = select;
15263 #endif
15264 #ifdef __cplusplus
15265 }
15266 #endif
15267
15268 int
15269 main ()
15270 {
15271 return f != select;
15272   ;
15273   return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15278   (eval $ac_link) 2>conftest.er1
15279   ac_status=$?
15280   grep -v '^ *+' conftest.er1 >conftest.err
15281   rm -f conftest.er1
15282   cat conftest.err >&5
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); } &&
15285          { ac_try='test -z "$ac_c_werror_flag"
15286                          || test ! -s conftest.err'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; } &&
15292          { ac_try='test -s conftest$ac_exeext'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; }; then
15298   ac_cv_func_select=yes
15299 else
15300   echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ac_cv_func_select=no
15304 fi
15305 rm -f conftest.err conftest.$ac_objext \
15306       conftest$ac_exeext conftest.$ac_ext
15307 fi
15308 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15309 echo "${ECHO_T}$ac_cv_func_select" >&6
15310 if test $ac_cv_func_select = yes; then
15311   :
15312 else
15313   { { echo "$as_me:$LINENO: error: select() required." >&5
15314 echo "$as_me: error: select() required." >&2;}
15315    { (exit 1); exit 1; }; }
15316 fi
15317
15318
15319 if test "${ac_cv_header_winsock_h}" != yes; then
15320
15321
15322 for ac_header in sys/select.h sys/socket.h
15323 do
15324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15326   echo "$as_me:$LINENO: checking for $ac_header" >&5
15327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15329   echo $ECHO_N "(cached) $ECHO_C" >&6
15330 fi
15331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15333 else
15334   # Is the header compilable?
15335 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 $ac_includes_default
15344 #include <$ac_header>
15345 _ACEOF
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348   (eval $ac_compile) 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_c_werror_flag"
15356                          || test ! -s conftest.err'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; } &&
15362          { ac_try='test -s conftest.$ac_objext'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368   ac_header_compiler=yes
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_header_compiler=no
15374 fi
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15376 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15377 echo "${ECHO_T}$ac_header_compiler" >&6
15378
15379 # Is the header present?
15380 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15382 cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 #include <$ac_header>
15389 _ACEOF
15390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15392   ac_status=$?
15393   grep -v '^ *+' conftest.er1 >conftest.err
15394   rm -f conftest.er1
15395   cat conftest.err >&5
15396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397   (exit $ac_status); } >/dev/null; then
15398   if test -s conftest.err; then
15399     ac_cpp_err=$ac_c_preproc_warn_flag
15400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15401   else
15402     ac_cpp_err=
15403   fi
15404 else
15405   ac_cpp_err=yes
15406 fi
15407 if test -z "$ac_cpp_err"; then
15408   ac_header_preproc=yes
15409 else
15410   echo "$as_me: failed program was:" >&5
15411 sed 's/^/| /' conftest.$ac_ext >&5
15412
15413   ac_header_preproc=no
15414 fi
15415 rm -f conftest.err conftest.$ac_ext
15416 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15417 echo "${ECHO_T}$ac_header_preproc" >&6
15418
15419 # So?  What about this header?
15420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15421   yes:no: )
15422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15426     ac_header_preproc=yes
15427     ;;
15428   no:yes:* )
15429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15441     (
15442       cat <<\_ASBOX
15443 ## --------------------------------------------- ##
15444 ## Report this to <http://www.openldap.org/its/> ##
15445 ## --------------------------------------------- ##
15446 _ASBOX
15447     ) |
15448       sed "s/^/$as_me: WARNING:     /" >&2
15449     ;;
15450 esac
15451 echo "$as_me:$LINENO: checking for $ac_header" >&5
15452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   eval "$as_ac_Header=\$ac_header_preproc"
15457 fi
15458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15460
15461 fi
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463   cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 _ACEOF
15466
15467 fi
15468
15469 done
15470
15471 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15472 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15473 if test "${ac_cv_func_select_args+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15477  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15478   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15479    cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 $ac_includes_default
15486 #if HAVE_SYS_SELECT_H
15487 # include <sys/select.h>
15488 #endif
15489 #if HAVE_SYS_SOCKET_H
15490 # include <sys/socket.h>
15491 #endif
15492
15493 int
15494 main ()
15495 {
15496 extern int select ($ac_arg1,
15497                                             $ac_arg234, $ac_arg234, $ac_arg234,
15498                                             $ac_arg5);
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505   (eval $ac_compile) 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } &&
15512          { ac_try='test -z "$ac_c_werror_flag"
15513                          || test ! -s conftest.err'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; }; then
15525   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 fi
15531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15532   done
15533  done
15534 done
15535 # Provide a safe default value.
15536 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15537
15538 fi
15539 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15540 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15541 ac_save_IFS=$IFS; IFS=','
15542 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15543 IFS=$ac_save_IFS
15544 shift
15545
15546 cat >>confdefs.h <<_ACEOF
15547 #define SELECT_TYPE_ARG1 $1
15548 _ACEOF
15549
15550
15551 cat >>confdefs.h <<_ACEOF
15552 #define SELECT_TYPE_ARG234 ($2)
15553 _ACEOF
15554
15555
15556 cat >>confdefs.h <<_ACEOF
15557 #define SELECT_TYPE_ARG5 ($3)
15558 _ACEOF
15559
15560 rm -f conftest*
15561
15562 fi
15563
15564
15565
15566 for ac_func in poll
15567 do
15568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15569 echo "$as_me:$LINENO: checking for $ac_func" >&5
15570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15571 if eval "test \"\${$as_ac_var+set}\" = set"; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   cat >conftest.$ac_ext <<_ACEOF
15575 /* confdefs.h.  */
15576 _ACEOF
15577 cat confdefs.h >>conftest.$ac_ext
15578 cat >>conftest.$ac_ext <<_ACEOF
15579 /* end confdefs.h.  */
15580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15582 #define $ac_func innocuous_$ac_func
15583
15584 /* System header to define __stub macros and hopefully few prototypes,
15585     which can conflict with char $ac_func (); below.
15586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15587     <limits.h> exists even on freestanding compilers.  */
15588
15589 #ifdef __STDC__
15590 # include <limits.h>
15591 #else
15592 # include <assert.h>
15593 #endif
15594
15595 #undef $ac_func
15596
15597 /* Override any gcc2 internal prototype to avoid an error.  */
15598 #ifdef __cplusplus
15599 extern "C"
15600 {
15601 #endif
15602 /* We use char because int might match the return type of a gcc2
15603    builtin and then its argument prototype would still apply.  */
15604 char $ac_func ();
15605 /* The GNU C library defines this for functions which it implements
15606     to always fail with ENOSYS.  Some functions are actually named
15607     something starting with __ and the normal name is an alias.  */
15608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15609 choke me
15610 #else
15611 char (*f) () = $ac_func;
15612 #endif
15613 #ifdef __cplusplus
15614 }
15615 #endif
15616
15617 int
15618 main ()
15619 {
15620 return f != $ac_func;
15621   ;
15622   return 0;
15623 }
15624 _ACEOF
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627   (eval $ac_link) 2>conftest.er1
15628   ac_status=$?
15629   grep -v '^ *+' conftest.er1 >conftest.err
15630   rm -f conftest.er1
15631   cat conftest.err >&5
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); } &&
15634          { ac_try='test -z "$ac_c_werror_flag"
15635                          || test ! -s conftest.err'
15636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637   (eval $ac_try) 2>&5
15638   ac_status=$?
15639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640   (exit $ac_status); }; } &&
15641          { ac_try='test -s conftest$ac_exeext'
15642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15643   (eval $ac_try) 2>&5
15644   ac_status=$?
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); }; }; then
15647   eval "$as_ac_var=yes"
15648 else
15649   echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15651
15652 eval "$as_ac_var=no"
15653 fi
15654 rm -f conftest.err conftest.$ac_objext \
15655       conftest$ac_exeext conftest.$ac_ext
15656 fi
15657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659 if test `eval echo '${'$as_ac_var'}'` = yes; then
15660   cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15662 _ACEOF
15663
15664 fi
15665 done
15666
15667
15668 for ac_header in poll.h
15669 do
15670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15672   echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 fi
15677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15679 else
15680   # Is the header compilable?
15681 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 $ac_includes_default
15690 #include <$ac_header>
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694   (eval $ac_compile) 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_c_werror_flag"
15702                          || test ! -s conftest.err'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest.$ac_objext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_header_compiler=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_header_compiler=no
15720 fi
15721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15723 echo "${ECHO_T}$ac_header_compiler" >&6
15724
15725 # Is the header present?
15726 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15728 cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <$ac_header>
15735 _ACEOF
15736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15737   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } >/dev/null; then
15744   if test -s conftest.err; then
15745     ac_cpp_err=$ac_c_preproc_warn_flag
15746     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15747   else
15748     ac_cpp_err=
15749   fi
15750 else
15751   ac_cpp_err=yes
15752 fi
15753 if test -z "$ac_cpp_err"; then
15754   ac_header_preproc=yes
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759   ac_header_preproc=no
15760 fi
15761 rm -f conftest.err conftest.$ac_ext
15762 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15763 echo "${ECHO_T}$ac_header_preproc" >&6
15764
15765 # So?  What about this header?
15766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15767   yes:no: )
15768     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15769 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15770     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15771 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15772     ac_header_preproc=yes
15773     ;;
15774   no:yes:* )
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15776 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15778 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15779     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15780 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15781     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15782 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15784 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15785     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15786 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15787     (
15788       cat <<\_ASBOX
15789 ## --------------------------------------------- ##
15790 ## Report this to <http://www.openldap.org/its/> ##
15791 ## --------------------------------------------- ##
15792 _ASBOX
15793     ) |
15794       sed "s/^/$as_me: WARNING:     /" >&2
15795     ;;
15796 esac
15797 echo "$as_me:$LINENO: checking for $ac_header" >&5
15798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15800   echo $ECHO_N "(cached) $ECHO_C" >&6
15801 else
15802   eval "$as_ac_Header=\$ac_header_preproc"
15803 fi
15804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15806
15807 fi
15808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15809   cat >>confdefs.h <<_ACEOF
15810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15811 _ACEOF
15812
15813 fi
15814
15815 done
15816
15817
15818
15819 for ac_header in sys/epoll.h
15820 do
15821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15823   echo "$as_me:$LINENO: checking for $ac_header" >&5
15824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 fi
15828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15830 else
15831   # Is the header compilable?
15832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15835 /* confdefs.h.  */
15836 _ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h.  */
15840 $ac_includes_default
15841 #include <$ac_header>
15842 _ACEOF
15843 rm -f conftest.$ac_objext
15844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15845   (eval $ac_compile) 2>conftest.er1
15846   ac_status=$?
15847   grep -v '^ *+' conftest.er1 >conftest.err
15848   rm -f conftest.er1
15849   cat conftest.err >&5
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); } &&
15852          { ac_try='test -z "$ac_c_werror_flag"
15853                          || test ! -s conftest.err'
15854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855   (eval $ac_try) 2>&5
15856   ac_status=$?
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); }; } &&
15859          { ac_try='test -s conftest.$ac_objext'
15860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15861   (eval $ac_try) 2>&5
15862   ac_status=$?
15863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15864   (exit $ac_status); }; }; then
15865   ac_header_compiler=yes
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ac_header_compiler=no
15871 fi
15872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15873 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6
15875
15876 # Is the header present?
15877 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 #include <$ac_header>
15886 _ACEOF
15887 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15888   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } >/dev/null; then
15895   if test -s conftest.err; then
15896     ac_cpp_err=$ac_c_preproc_warn_flag
15897     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15898   else
15899     ac_cpp_err=
15900   fi
15901 else
15902   ac_cpp_err=yes
15903 fi
15904 if test -z "$ac_cpp_err"; then
15905   ac_header_preproc=yes
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910   ac_header_preproc=no
15911 fi
15912 rm -f conftest.err conftest.$ac_ext
15913 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15914 echo "${ECHO_T}$ac_header_preproc" >&6
15915
15916 # So?  What about this header?
15917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15918   yes:no: )
15919     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15921     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15923     ac_header_preproc=yes
15924     ;;
15925   no:yes:* )
15926     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15928     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15929 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15930     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15932     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15933 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15936     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15938     (
15939       cat <<\_ASBOX
15940 ## --------------------------------------------- ##
15941 ## Report this to <http://www.openldap.org/its/> ##
15942 ## --------------------------------------------- ##
15943 _ASBOX
15944     ) |
15945       sed "s/^/$as_me: WARNING:     /" >&2
15946     ;;
15947 esac
15948 echo "$as_me:$LINENO: checking for $ac_header" >&5
15949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15951   echo $ECHO_N "(cached) $ECHO_C" >&6
15952 else
15953   eval "$as_ac_Header=\$ac_header_preproc"
15954 fi
15955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15957
15958 fi
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960   cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 _ACEOF
15963
15964 fi
15965
15966 done
15967
15968 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15969 echo "$as_me:$LINENO: checking for epoll system call" >&5
15970 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15971 if test "$cross_compiling" = yes; then
15972   echo "$as_me:$LINENO: result: no" >&5
15973 echo "${ECHO_T}no" >&6
15974 else
15975   cat >conftest.$ac_ext <<_ACEOF
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981 int main(int argc, char *argv)
15982 {
15983         int epfd = epoll_create(256);
15984         exit (epfd == -1 ? 1 : 0);
15985 }
15986 _ACEOF
15987 rm -f conftest$ac_exeext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15989   (eval $ac_link) 2>&5
15990   ac_status=$?
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994   (eval $ac_try) 2>&5
15995   ac_status=$?
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); }; }; then
15998   echo "$as_me:$LINENO: result: yes" >&5
15999 echo "${ECHO_T}yes" >&6
16000
16001 cat >>confdefs.h <<\_ACEOF
16002 #define HAVE_EPOLL 1
16003 _ACEOF
16004
16005 else
16006   echo "$as_me: program exited with status $ac_status" >&5
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16009
16010 ( exit $ac_status )
16011 echo "$as_me:$LINENO: result: no" >&5
16012 echo "${ECHO_T}no" >&6
16013 fi
16014 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16015 fi
16016 fi
16017
16018 # strerror checks
16019 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16020 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16021 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16022   echo $ECHO_N "(cached) $ECHO_C" >&6
16023 else
16024
16025         cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031
16032 #include <stdio.h>
16033 #include <sys/types.h>
16034 #include <errno.h>
16035 #ifdef WINNT
16036 #include <stdlib.h>
16037 #endif
16038 int
16039 main ()
16040 {
16041 char *c = (char *) *sys_errlist
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16048   (eval $ac_compile) 2>conftest.er1
16049   ac_status=$?
16050   grep -v '^ *+' conftest.er1 >conftest.err
16051   rm -f conftest.er1
16052   cat conftest.err >&5
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); } &&
16055          { ac_try='test -z "$ac_c_werror_flag"
16056                          || test ! -s conftest.err'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; } &&
16062          { ac_try='test -s conftest.$ac_objext'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; }; then
16068   ol_cv_dcl_sys_errlist=yes
16069         ol_cv_have_sys_errlist=yes
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074 ol_cv_dcl_sys_errlist=no
16075 fi
16076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16077 fi
16078 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16079 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16080 #
16081 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16082 if test $ol_cv_dcl_sys_errlist = no ; then
16083
16084 cat >>confdefs.h <<\_ACEOF
16085 #define DECL_SYS_ERRLIST 1
16086 _ACEOF
16087
16088
16089         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16090 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16091 if test "${ol_cv_have_sys_errlist+set}" = set; then
16092   echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094
16095                 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 #include <errno.h>
16102 int
16103 main ()
16104 {
16105 char *c = (char *) *sys_errlist
16106   ;
16107   return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext conftest$ac_exeext
16111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16112   (eval $ac_link) 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } &&
16119          { ac_try='test -z "$ac_c_werror_flag"
16120                          || test ! -s conftest.err'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; } &&
16126          { ac_try='test -s conftest$ac_exeext'
16127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16128   (eval $ac_try) 2>&5
16129   ac_status=$?
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); }; }; then
16132   ol_cv_have_sys_errlist=yes
16133 else
16134   echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ol_cv_have_sys_errlist=no
16138 fi
16139 rm -f conftest.err conftest.$ac_objext \
16140       conftest$ac_exeext conftest.$ac_ext
16141 fi
16142 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16143 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16144 fi
16145 if test $ol_cv_have_sys_errlist = yes ; then
16146
16147 cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_SYS_ERRLIST 1
16149 _ACEOF
16150
16151 fi
16152
16153
16154 for ac_func in strerror strerror_r
16155 do
16156 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16157 echo "$as_me:$LINENO: checking for $ac_func" >&5
16158 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16159 if eval "test \"\${$as_ac_var+set}\" = set"; then
16160   echo $ECHO_N "(cached) $ECHO_C" >&6
16161 else
16162   cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16170 #define $ac_func innocuous_$ac_func
16171
16172 /* System header to define __stub macros and hopefully few prototypes,
16173     which can conflict with char $ac_func (); below.
16174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16175     <limits.h> exists even on freestanding compilers.  */
16176
16177 #ifdef __STDC__
16178 # include <limits.h>
16179 #else
16180 # include <assert.h>
16181 #endif
16182
16183 #undef $ac_func
16184
16185 /* Override any gcc2 internal prototype to avoid an error.  */
16186 #ifdef __cplusplus
16187 extern "C"
16188 {
16189 #endif
16190 /* We use char because int might match the return type of a gcc2
16191    builtin and then its argument prototype would still apply.  */
16192 char $ac_func ();
16193 /* The GNU C library defines this for functions which it implements
16194     to always fail with ENOSYS.  Some functions are actually named
16195     something starting with __ and the normal name is an alias.  */
16196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16197 choke me
16198 #else
16199 char (*f) () = $ac_func;
16200 #endif
16201 #ifdef __cplusplus
16202 }
16203 #endif
16204
16205 int
16206 main ()
16207 {
16208 return f != $ac_func;
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16215   (eval $ac_link) 2>conftest.er1
16216   ac_status=$?
16217   grep -v '^ *+' conftest.er1 >conftest.err
16218   rm -f conftest.er1
16219   cat conftest.err >&5
16220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221   (exit $ac_status); } &&
16222          { ac_try='test -z "$ac_c_werror_flag"
16223                          || test ! -s conftest.err'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; } &&
16229          { ac_try='test -s conftest$ac_exeext'
16230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231   (eval $ac_try) 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; }; then
16235   eval "$as_ac_var=yes"
16236 else
16237   echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16239
16240 eval "$as_ac_var=no"
16241 fi
16242 rm -f conftest.err conftest.$ac_objext \
16243       conftest$ac_exeext conftest.$ac_ext
16244 fi
16245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16246 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16247 if test `eval echo '${'$as_ac_var'}'` = yes; then
16248   cat >>confdefs.h <<_ACEOF
16249 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16250 _ACEOF
16251
16252 fi
16253 done
16254
16255 ol_cv_func_strerror_r=no
16256 if test "${ac_cv_func_strerror_r}" = yes ; then
16257         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16258 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16259 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16260   echo $ECHO_N "(cached) $ECHO_C" >&6
16261 else
16262
16263         cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 #include <string.h>
16270 _ACEOF
16271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16272   $EGREP "strerror_r" >/dev/null 2>&1; then
16273   ol_decl_strerror_r=yes
16274 else
16275   ol_decl_strerror_r=no
16276 fi
16277 rm -f conftest*
16278
16279         if test $ol_decl_strerror_r = yes ; then
16280                 cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286 #include <string.h>
16287 int
16288 main ()
16289 {
16290    /* from autoconf 2.59 */
16291                                 char buf[100];
16292                                 char x = *strerror_r (0, buf, sizeof buf);
16293                                 char *p = strerror_r (0, buf, sizeof buf);
16294
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16301   (eval $ac_compile) 2>conftest.er1
16302   ac_status=$?
16303   grep -v '^ *+' conftest.er1 >conftest.err
16304   rm -f conftest.er1
16305   cat conftest.err >&5
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); } &&
16308          { ac_try='test -z "$ac_c_werror_flag"
16309                          || test ! -s conftest.err'
16310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16311   (eval $ac_try) 2>&5
16312   ac_status=$?
16313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314   (exit $ac_status); }; } &&
16315          { ac_try='test -s conftest.$ac_objext'
16316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317   (eval $ac_try) 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; }; then
16321   ol_cv_nonposix_strerror_r=yes
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326 ol_cv_nonposix_strerror_r=no
16327 fi
16328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329         else
16330                 if test "$cross_compiling" = yes; then
16331   ol_cv_nonposix_strerror=no
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 /* confdefs.h.  */
16335 _ACEOF
16336 cat confdefs.h >>conftest.$ac_ext
16337 cat >>conftest.$ac_ext <<_ACEOF
16338 /* end confdefs.h.  */
16339
16340                         main() {
16341                                 char buf[100];
16342                                 buf[0] = 0;
16343                                 strerror_r( 1, buf, sizeof buf );
16344                                 exit( buf[0] == 0 );
16345                         }
16346
16347 _ACEOF
16348 rm -f conftest$ac_exeext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16350   (eval $ac_link) 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16355   (eval $ac_try) 2>&5
16356   ac_status=$?
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); }; }; then
16359   ol_cv_nonposix_strerror_r=yes
16360 else
16361   echo "$as_me: program exited with status $ac_status" >&5
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365 ( exit $ac_status )
16366 ol_cv_nonposix_strerror=no
16367 fi
16368 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16369 fi
16370         fi
16371
16372 fi
16373 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16374 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16375 if test $ol_cv_nonposix_strerror_r = yes ; then
16376
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_NONPOSIX_STRERROR_R 1
16379 _ACEOF
16380
16381 fi
16382
16383 elif test "${ac_cv_func_strerror}" = no ; then
16384         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16385 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16386 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16387   echo $ECHO_N "(cached) $ECHO_C" >&6
16388 else
16389
16390         cat >conftest.$ac_ext <<_ACEOF
16391 /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396
16397 #include <stdio.h>
16398 #include <sys/types.h>
16399 #include <errno.h>
16400 #ifdef WINNT
16401 #include <stdlib.h>
16402 #endif
16403 int
16404 main ()
16405 {
16406 char *c = (char *) *sys_errlist
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413   (eval $ac_compile) 2>conftest.er1
16414   ac_status=$?
16415   grep -v '^ *+' conftest.er1 >conftest.err
16416   rm -f conftest.er1
16417   cat conftest.err >&5
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); } &&
16420          { ac_try='test -z "$ac_c_werror_flag"
16421                          || test ! -s conftest.err'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; } &&
16427          { ac_try='test -s conftest.$ac_objext'
16428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429   (eval $ac_try) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }; }; then
16433   ol_cv_dcl_sys_errlist=yes
16434         ol_cv_have_sys_errlist=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439 ol_cv_dcl_sys_errlist=no
16440 fi
16441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 fi
16443 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16444 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16445 #
16446 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16447 if test $ol_cv_dcl_sys_errlist = no ; then
16448
16449 cat >>confdefs.h <<\_ACEOF
16450 #define DECL_SYS_ERRLIST 1
16451 _ACEOF
16452
16453
16454         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16455 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16456 if test "${ol_cv_have_sys_errlist+set}" = set; then
16457   echo $ECHO_N "(cached) $ECHO_C" >&6
16458 else
16459
16460                 cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466 #include <errno.h>
16467 int
16468 main ()
16469 {
16470 char *c = (char *) *sys_errlist
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16477   (eval $ac_link) 2>conftest.er1
16478   ac_status=$?
16479   grep -v '^ *+' conftest.er1 >conftest.err
16480   rm -f conftest.er1
16481   cat conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } &&
16484          { ac_try='test -z "$ac_c_werror_flag"
16485                          || test ! -s conftest.err'
16486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16487   (eval $ac_try) 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); }; } &&
16491          { ac_try='test -s conftest$ac_exeext'
16492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16493   (eval $ac_try) 2>&5
16494   ac_status=$?
16495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496   (exit $ac_status); }; }; then
16497   ol_cv_have_sys_errlist=yes
16498 else
16499   echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ol_cv_have_sys_errlist=no
16503 fi
16504 rm -f conftest.err conftest.$ac_objext \
16505       conftest$ac_exeext conftest.$ac_ext
16506 fi
16507 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16508 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16509 fi
16510 if test $ol_cv_have_sys_errlist = yes ; then
16511
16512 cat >>confdefs.h <<\_ACEOF
16513 #define HAVE_SYS_ERRLIST 1
16514 _ACEOF
16515
16516 fi
16517
16518 fi
16519
16520
16521
16522 for ac_header in regex.h
16523 do
16524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16526   echo "$as_me:$LINENO: checking for $ac_header" >&5
16527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 fi
16531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16533 else
16534   # Is the header compilable?
16535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16537 cat >conftest.$ac_ext <<_ACEOF
16538 /* confdefs.h.  */
16539 _ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h.  */
16543 $ac_includes_default
16544 #include <$ac_header>
16545 _ACEOF
16546 rm -f conftest.$ac_objext
16547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16548   (eval $ac_compile) 2>conftest.er1
16549   ac_status=$?
16550   grep -v '^ *+' conftest.er1 >conftest.err
16551   rm -f conftest.er1
16552   cat conftest.err >&5
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); } &&
16555          { ac_try='test -z "$ac_c_werror_flag"
16556                          || test ! -s conftest.err'
16557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558   (eval $ac_try) 2>&5
16559   ac_status=$?
16560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561   (exit $ac_status); }; } &&
16562          { ac_try='test -s conftest.$ac_objext'
16563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564   (eval $ac_try) 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); }; }; then
16568   ac_header_compiler=yes
16569 else
16570   echo "$as_me: failed program was:" >&5
16571 sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 ac_header_compiler=no
16574 fi
16575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16577 echo "${ECHO_T}$ac_header_compiler" >&6
16578
16579 # Is the header present?
16580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16582 cat >conftest.$ac_ext <<_ACEOF
16583 /* confdefs.h.  */
16584 _ACEOF
16585 cat confdefs.h >>conftest.$ac_ext
16586 cat >>conftest.$ac_ext <<_ACEOF
16587 /* end confdefs.h.  */
16588 #include <$ac_header>
16589 _ACEOF
16590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16592   ac_status=$?
16593   grep -v '^ *+' conftest.er1 >conftest.err
16594   rm -f conftest.er1
16595   cat conftest.err >&5
16596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597   (exit $ac_status); } >/dev/null; then
16598   if test -s conftest.err; then
16599     ac_cpp_err=$ac_c_preproc_warn_flag
16600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16601   else
16602     ac_cpp_err=
16603   fi
16604 else
16605   ac_cpp_err=yes
16606 fi
16607 if test -z "$ac_cpp_err"; then
16608   ac_header_preproc=yes
16609 else
16610   echo "$as_me: failed program was:" >&5
16611 sed 's/^/| /' conftest.$ac_ext >&5
16612
16613   ac_header_preproc=no
16614 fi
16615 rm -f conftest.err conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16617 echo "${ECHO_T}$ac_header_preproc" >&6
16618
16619 # So?  What about this header?
16620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16621   yes:no: )
16622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16626     ac_header_preproc=yes
16627     ;;
16628   no:yes:* )
16629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16641     (
16642       cat <<\_ASBOX
16643 ## --------------------------------------------- ##
16644 ## Report this to <http://www.openldap.org/its/> ##
16645 ## --------------------------------------------- ##
16646 _ASBOX
16647     ) |
16648       sed "s/^/$as_me: WARNING:     /" >&2
16649     ;;
16650 esac
16651 echo "$as_me:$LINENO: checking for $ac_header" >&5
16652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   eval "$as_ac_Header=\$ac_header_preproc"
16657 fi
16658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16660
16661 fi
16662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16663   cat >>confdefs.h <<_ACEOF
16664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16665 _ACEOF
16666
16667 fi
16668
16669 done
16670
16671 if test "$ac_cv_header_regex_h" != yes ; then
16672         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16673 echo "$as_me: error: POSIX regex.h required." >&2;}
16674    { (exit 1); exit 1; }; }
16675 fi
16676 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16677 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16678 if test "${ac_cv_search_regfree+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   ac_func_search_save_LIBS=$LIBS
16682 ac_cv_search_regfree=no
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h.  */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h.  */
16689
16690 /* Override any gcc2 internal prototype to avoid an error.  */
16691 #ifdef __cplusplus
16692 extern "C"
16693 #endif
16694 /* We use char because int might match the return type of a gcc2
16695    builtin and then its argument prototype would still apply.  */
16696 char regfree ();
16697 int
16698 main ()
16699 {
16700 regfree ();
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16707   (eval $ac_link) 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } &&
16714          { ac_try='test -z "$ac_c_werror_flag"
16715                          || test ! -s conftest.err'
16716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16717   (eval $ac_try) 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; } &&
16721          { ac_try='test -s conftest$ac_exeext'
16722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723   (eval $ac_try) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; }; then
16727   ac_cv_search_regfree="none required"
16728 else
16729   echo "$as_me: failed program was:" >&5
16730 sed 's/^/| /' conftest.$ac_ext >&5
16731
16732 fi
16733 rm -f conftest.err conftest.$ac_objext \
16734       conftest$ac_exeext conftest.$ac_ext
16735 if test "$ac_cv_search_regfree" = no; then
16736   for ac_lib in regex gnuregex; do
16737     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16738     cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744
16745 /* Override any gcc2 internal prototype to avoid an error.  */
16746 #ifdef __cplusplus
16747 extern "C"
16748 #endif
16749 /* We use char because int might match the return type of a gcc2
16750    builtin and then its argument prototype would still apply.  */
16751 char regfree ();
16752 int
16753 main ()
16754 {
16755 regfree ();
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16762   (eval $ac_link) 2>conftest.er1
16763   ac_status=$?
16764   grep -v '^ *+' conftest.er1 >conftest.err
16765   rm -f conftest.er1
16766   cat conftest.err >&5
16767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768   (exit $ac_status); } &&
16769          { ac_try='test -z "$ac_c_werror_flag"
16770                          || test ! -s conftest.err'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest$ac_exeext'
16777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778   (eval $ac_try) 2>&5
16779   ac_status=$?
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); }; }; then
16782   ac_cv_search_regfree="-l$ac_lib"
16783 break
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 fi
16789 rm -f conftest.err conftest.$ac_objext \
16790       conftest$ac_exeext conftest.$ac_ext
16791   done
16792 fi
16793 LIBS=$ac_func_search_save_LIBS
16794 fi
16795 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16796 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16797 if test "$ac_cv_search_regfree" != no; then
16798   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16799   :
16800 else
16801   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16802 echo "$as_me: error: POSIX regex required." >&2;}
16803    { (exit 1); exit 1; }; }
16804 fi
16805
16806
16807
16808 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16809 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16810 if test "${ol_cv_c_posix_regex+set}" = set; then
16811   echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813
16814         if test "$cross_compiling" = yes; then
16815   ol_cv_c_posix_regex=cross
16816 else
16817   cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h.  */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h.  */
16823
16824 #include <sys/types.h>
16825 #include <regex.h>
16826 static char *pattern, *string;
16827 main()
16828 {
16829         int rc;
16830         regex_t re;
16831
16832         pattern = "^A";
16833
16834         if(regcomp(&re, pattern, 0)) {
16835                 return -1;
16836         }
16837
16838         string = "ALL MATCH";
16839
16840         rc = regexec(&re, string, 0, (void*)0, 0);
16841
16842         regfree(&re);
16843
16844         return rc;
16845 }
16846 _ACEOF
16847 rm -f conftest$ac_exeext
16848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16849   (eval $ac_link) 2>&5
16850   ac_status=$?
16851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854   (eval $ac_try) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); }; }; then
16858   ol_cv_c_posix_regex=yes
16859 else
16860   echo "$as_me: program exited with status $ac_status" >&5
16861 echo "$as_me: failed program was:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ( exit $ac_status )
16865 ol_cv_c_posix_regex=no
16866 fi
16867 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 fi
16870 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16871 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16872
16873 if test "$ol_cv_c_posix_regex" = no ; then
16874         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16875 echo "$as_me: error: broken POSIX regex!" >&2;}
16876    { (exit 1); exit 1; }; }
16877 fi
16878
16879
16880 have_uuid=no
16881
16882 for ac_header in sys/uuid.h
16883 do
16884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16886   echo "$as_me:$LINENO: checking for $ac_header" >&5
16887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16889   echo $ECHO_N "(cached) $ECHO_C" >&6
16890 fi
16891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16893 else
16894   # Is the header compilable?
16895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16897 cat >conftest.$ac_ext <<_ACEOF
16898 /* confdefs.h.  */
16899 _ACEOF
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h.  */
16903 $ac_includes_default
16904 #include <$ac_header>
16905 _ACEOF
16906 rm -f conftest.$ac_objext
16907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16908   (eval $ac_compile) 2>conftest.er1
16909   ac_status=$?
16910   grep -v '^ *+' conftest.er1 >conftest.err
16911   rm -f conftest.er1
16912   cat conftest.err >&5
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } &&
16915          { ac_try='test -z "$ac_c_werror_flag"
16916                          || test ! -s conftest.err'
16917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918   (eval $ac_try) 2>&5
16919   ac_status=$?
16920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921   (exit $ac_status); }; } &&
16922          { ac_try='test -s conftest.$ac_objext'
16923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16924   (eval $ac_try) 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_header_compiler=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933 ac_header_compiler=no
16934 fi
16935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16937 echo "${ECHO_T}$ac_header_compiler" >&6
16938
16939 # Is the header present?
16940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16942 cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 #include <$ac_header>
16949 _ACEOF
16950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16952   ac_status=$?
16953   grep -v '^ *+' conftest.er1 >conftest.err
16954   rm -f conftest.er1
16955   cat conftest.err >&5
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); } >/dev/null; then
16958   if test -s conftest.err; then
16959     ac_cpp_err=$ac_c_preproc_warn_flag
16960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16961   else
16962     ac_cpp_err=
16963   fi
16964 else
16965   ac_cpp_err=yes
16966 fi
16967 if test -z "$ac_cpp_err"; then
16968   ac_header_preproc=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973   ac_header_preproc=no
16974 fi
16975 rm -f conftest.err conftest.$ac_ext
16976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16977 echo "${ECHO_T}$ac_header_preproc" >&6
16978
16979 # So?  What about this header?
16980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16981   yes:no: )
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16986     ac_header_preproc=yes
16987     ;;
16988   no:yes:* )
16989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17001     (
17002       cat <<\_ASBOX
17003 ## --------------------------------------------- ##
17004 ## Report this to <http://www.openldap.org/its/> ##
17005 ## --------------------------------------------- ##
17006 _ASBOX
17007     ) |
17008       sed "s/^/$as_me: WARNING:     /" >&2
17009     ;;
17010 esac
17011 echo "$as_me:$LINENO: checking for $ac_header" >&5
17012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   eval "$as_ac_Header=\$ac_header_preproc"
17017 fi
17018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17020
17021 fi
17022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17023   cat >>confdefs.h <<_ACEOF
17024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17025 _ACEOF
17026
17027 fi
17028
17029 done
17030
17031 if test $ac_cv_header_sys_uuid_h = yes ; then
17032         save_LIBS="$LIBS"
17033         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17034 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17035 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   ac_func_search_save_LIBS=$LIBS
17039 ac_cv_search_uuid_to_str=no
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046
17047 /* Override any gcc2 internal prototype to avoid an error.  */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 /* We use char because int might match the return type of a gcc2
17052    builtin and then its argument prototype would still apply.  */
17053 char uuid_to_str ();
17054 int
17055 main ()
17056 {
17057 uuid_to_str ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17064   (eval $ac_link) 2>conftest.er1
17065   ac_status=$?
17066   grep -v '^ *+' conftest.er1 >conftest.err
17067   rm -f conftest.er1
17068   cat conftest.err >&5
17069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070   (exit $ac_status); } &&
17071          { ac_try='test -z "$ac_c_werror_flag"
17072                          || test ! -s conftest.err'
17073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074   (eval $ac_try) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); }; } &&
17078          { ac_try='test -s conftest$ac_exeext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   ac_cv_search_uuid_to_str="none required"
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 fi
17090 rm -f conftest.err conftest.$ac_objext \
17091       conftest$ac_exeext conftest.$ac_ext
17092 if test "$ac_cv_search_uuid_to_str" = no; then
17093   for ac_lib in uuid; do
17094     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17095     cat >conftest.$ac_ext <<_ACEOF
17096 /* confdefs.h.  */
17097 _ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h.  */
17101
17102 /* Override any gcc2 internal prototype to avoid an error.  */
17103 #ifdef __cplusplus
17104 extern "C"
17105 #endif
17106 /* We use char because int might match the return type of a gcc2
17107    builtin and then its argument prototype would still apply.  */
17108 char uuid_to_str ();
17109 int
17110 main ()
17111 {
17112 uuid_to_str ();
17113   ;
17114   return 0;
17115 }
17116 _ACEOF
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17119   (eval $ac_link) 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } &&
17126          { ac_try='test -z "$ac_c_werror_flag"
17127                          || test ! -s conftest.err'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; } &&
17133          { ac_try='test -s conftest$ac_exeext'
17134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17135   (eval $ac_try) 2>&5
17136   ac_status=$?
17137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138   (exit $ac_status); }; }; then
17139   ac_cv_search_uuid_to_str="-l$ac_lib"
17140 break
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 fi
17146 rm -f conftest.err conftest.$ac_objext \
17147       conftest$ac_exeext conftest.$ac_ext
17148   done
17149 fi
17150 LIBS=$ac_func_search_save_LIBS
17151 fi
17152 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17153 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17154 if test "$ac_cv_search_uuid_to_str" != no; then
17155   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17156   have_uuid=yes
17157 else
17158   :
17159 fi
17160
17161         LIBS="$save_LIBS"
17162
17163         if test have_uuid = yes ; then
17164
17165 cat >>confdefs.h <<\_ACEOF
17166 #define HAVE_UUID_TO_STR 1
17167 _ACEOF
17168
17169
17170                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17171                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17172         fi
17173 fi
17174
17175 if test $have_uuid = no ; then
17176         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17177 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17178         save_LIBS="$LIBS"
17179         LIBS="$LIBS -lrpcrt4"
17180         cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186
17187                 int __stdcall UuidCreate(void *);
17188                 int __stdcall UuidToStringA(void *,void **);
17189
17190 int
17191 main ()
17192 {
17193
17194                 UuidCreate(0);
17195                 UuidToStringA(0,0);
17196
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203   (eval $ac_link) 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } &&
17210          { ac_try='test -z "$ac_c_werror_flag"
17211                          || test ! -s conftest.err'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; } &&
17217          { ac_try='test -s conftest$ac_exeext'
17218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219   (eval $ac_try) 2>&5
17220   ac_status=$?
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); }; }; then
17223   need_rpcrt=yes
17224 else
17225   echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17227
17228 need_rpcrt=no
17229 fi
17230 rm -f conftest.err conftest.$ac_objext \
17231       conftest$ac_exeext conftest.$ac_ext
17232         if test $need_rpcrt = yes; then
17233                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17234         fi
17235         LIBS="$save_LIBS"
17236         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17237 echo "${ECHO_T}$need_rpcrt" >&6
17238 fi
17239
17240 ol_cv_lib_resolver=no
17241 if test $ol_cv_lib_resolver = no ; then
17242         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17243 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17244 if test "${ol_cv_resolver_none+set}" = set; then
17245   echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247
17248         ol_RESOLVER_LIB=
17249         ol_LIBS=$LIBS
17250         LIBS="$ol_RESOLVER_LIB $LIBS"
17251
17252         cat >conftest.$ac_ext <<_ACEOF
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259 #ifdef HAVE_SYS_TYPES_H
17260 #       include <sys/types.h>
17261 #endif
17262 #include <netinet/in.h>
17263 #ifdef HAVE_ARPA_NAMESER_H
17264 #       include <arpa/nameser.h>
17265 #endif
17266 #ifdef HAVE_RESOLV_H
17267 #       include <resolv.h>
17268 #endif
17269
17270 int
17271 main ()
17272 {
17273 {
17274         int len, status;
17275         char *request = NULL;
17276         unsigned char reply[64*1024];
17277         unsigned char host[64*1024];
17278         unsigned char *p;
17279
17280 #ifdef NS_HFIXEDSZ
17281         /* Bind 8/9 interface */
17282         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17283 #else
17284         /* Bind 4 interface */
17285 # ifndef T_SRV
17286 #  define T_SRV 33
17287 # endif
17288         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17289 #endif
17290         p = reply;
17291 #ifdef NS_HFIXEDSZ
17292         /* Bind 8/9 interface */
17293         p += NS_HFIXEDSZ;
17294 #elif defined(HFIXEDSZ)
17295         /* Bind 4 interface w/ HFIXEDSZ */
17296         p += HFIXEDSZ;
17297 #else
17298         /* Bind 4 interface w/o HFIXEDSZ */
17299         p += sizeof(HEADER);
17300 #endif
17301         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17302 }
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext conftest$ac_exeext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17309   (eval $ac_link) 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } &&
17316          { ac_try='test -z "$ac_c_werror_flag"
17317                          || test ! -s conftest.err'
17318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319   (eval $ac_try) 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; } &&
17323          { ac_try='test -s conftest$ac_exeext'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; }; then
17329   ol_cv_resolver_none=yes
17330 else
17331   echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334 ol_cv_resolver_none=no
17335 fi
17336 rm -f conftest.err conftest.$ac_objext \
17337       conftest$ac_exeext conftest.$ac_ext
17338
17339         LIBS="$ol_LIBS"
17340
17341 fi
17342 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17343 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17344
17345         if test $ol_cv_resolver_none = yes ; then
17346                 ol_cv_lib_resolver=yes
17347         fi
17348 fi
17349
17350 if test $ol_cv_lib_resolver = no ; then
17351         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17352 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17353 if test "${ol_cv_resolver_resolv+set}" = set; then
17354   echo $ECHO_N "(cached) $ECHO_C" >&6
17355 else
17356
17357         ol_RESOLVER_LIB=-lresolv
17358         ol_LIBS=$LIBS
17359         LIBS="$ol_RESOLVER_LIB $LIBS"
17360
17361         cat >conftest.$ac_ext <<_ACEOF
17362 /* confdefs.h.  */
17363 _ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h.  */
17367
17368 #ifdef HAVE_SYS_TYPES_H
17369 #       include <sys/types.h>
17370 #endif
17371 #include <netinet/in.h>
17372 #ifdef HAVE_ARPA_NAMESER_H
17373 #       include <arpa/nameser.h>
17374 #endif
17375 #ifdef HAVE_RESOLV_H
17376 #       include <resolv.h>
17377 #endif
17378
17379 int
17380 main ()
17381 {
17382 {
17383         int len, status;
17384         char *request = NULL;
17385         unsigned char reply[64*1024];
17386         unsigned char host[64*1024];
17387         unsigned char *p;
17388
17389 #ifdef NS_HFIXEDSZ
17390         /* Bind 8/9 interface */
17391         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17392 #else
17393         /* Bind 4 interface */
17394 # ifndef T_SRV
17395 #  define T_SRV 33
17396 # endif
17397         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17398 #endif
17399         p = reply;
17400 #ifdef NS_HFIXEDSZ
17401         /* Bind 8/9 interface */
17402         p += NS_HFIXEDSZ;
17403 #elif defined(HFIXEDSZ)
17404         /* Bind 4 interface w/ HFIXEDSZ */
17405         p += HFIXEDSZ;
17406 #else
17407         /* Bind 4 interface w/o HFIXEDSZ */
17408         p += sizeof(HEADER);
17409 #endif
17410         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17411 }
17412   ;
17413   return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418   (eval $ac_link) 2>conftest.er1
17419   ac_status=$?
17420   grep -v '^ *+' conftest.er1 >conftest.err
17421   rm -f conftest.er1
17422   cat conftest.err >&5
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); } &&
17425          { ac_try='test -z "$ac_c_werror_flag"
17426                          || test ! -s conftest.err'
17427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428   (eval $ac_try) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; } &&
17432          { ac_try='test -s conftest$ac_exeext'
17433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434   (eval $ac_try) 2>&5
17435   ac_status=$?
17436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437   (exit $ac_status); }; }; then
17438   ol_cv_resolver_resolv=yes
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 ol_cv_resolver_resolv=no
17444 fi
17445 rm -f conftest.err conftest.$ac_objext \
17446       conftest$ac_exeext conftest.$ac_ext
17447
17448         LIBS="$ol_LIBS"
17449
17450 fi
17451 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17452 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17453
17454         if test $ol_cv_resolver_resolv = yes ; then
17455                 ol_cv_lib_resolver=-lresolv
17456         fi
17457 fi
17458
17459 if test $ol_cv_lib_resolver = no ; then
17460         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17461 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17462 if test "${ol_cv_resolver_bind+set}" = set; then
17463   echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465
17466         ol_RESOLVER_LIB=-lbind
17467         ol_LIBS=$LIBS
17468         LIBS="$ol_RESOLVER_LIB $LIBS"
17469
17470         cat >conftest.$ac_ext <<_ACEOF
17471 /* confdefs.h.  */
17472 _ACEOF
17473 cat confdefs.h >>conftest.$ac_ext
17474 cat >>conftest.$ac_ext <<_ACEOF
17475 /* end confdefs.h.  */
17476
17477 #ifdef HAVE_SYS_TYPES_H
17478 #       include <sys/types.h>
17479 #endif
17480 #include <netinet/in.h>
17481 #ifdef HAVE_ARPA_NAMESER_H
17482 #       include <arpa/nameser.h>
17483 #endif
17484 #ifdef HAVE_RESOLV_H
17485 #       include <resolv.h>
17486 #endif
17487
17488 int
17489 main ()
17490 {
17491 {
17492         int len, status;
17493         char *request = NULL;
17494         unsigned char reply[64*1024];
17495         unsigned char host[64*1024];
17496         unsigned char *p;
17497
17498 #ifdef NS_HFIXEDSZ
17499         /* Bind 8/9 interface */
17500         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17501 #else
17502         /* Bind 4 interface */
17503 # ifndef T_SRV
17504 #  define T_SRV 33
17505 # endif
17506         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17507 #endif
17508         p = reply;
17509 #ifdef NS_HFIXEDSZ
17510         /* Bind 8/9 interface */
17511         p += NS_HFIXEDSZ;
17512 #elif defined(HFIXEDSZ)
17513         /* Bind 4 interface w/ HFIXEDSZ */
17514         p += HFIXEDSZ;
17515 #else
17516         /* Bind 4 interface w/o HFIXEDSZ */
17517         p += sizeof(HEADER);
17518 #endif
17519         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17520 }
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>conftest.er1
17528   ac_status=$?
17529   grep -v '^ *+' conftest.er1 >conftest.err
17530   rm -f conftest.er1
17531   cat conftest.err >&5
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); } &&
17534          { ac_try='test -z "$ac_c_werror_flag"
17535                          || test ! -s conftest.err'
17536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537   (eval $ac_try) 2>&5
17538   ac_status=$?
17539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); }; } &&
17541          { ac_try='test -s conftest$ac_exeext'
17542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17543   (eval $ac_try) 2>&5
17544   ac_status=$?
17545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546   (exit $ac_status); }; }; then
17547   ol_cv_resolver_bind=yes
17548 else
17549   echo "$as_me: failed program was:" >&5
17550 sed 's/^/| /' conftest.$ac_ext >&5
17551
17552 ol_cv_resolver_bind=no
17553 fi
17554 rm -f conftest.err conftest.$ac_objext \
17555       conftest$ac_exeext conftest.$ac_ext
17556
17557         LIBS="$ol_LIBS"
17558
17559 fi
17560 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17561 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17562
17563         if test $ol_cv_resolver_bind = yes ; then
17564                 ol_cv_lib_resolver=-lbind
17565         fi
17566 fi
17567
17568
17569
17570 ol_link_dnssrv=no
17571 if test "$ol_cv_lib_resolver" != no ; then
17572
17573 cat >>confdefs.h <<\_ACEOF
17574 #define HAVE_RES_QUERY 1
17575 _ACEOF
17576
17577
17578         if test "$ol_enable_dnssrv" != no ; then
17579                 ol_link_dnssrv=yes
17580         fi
17581
17582         if test "$ol_cv_lib_resolver" != yes ; then
17583                 LIBS="$ol_cv_lib_resolver $LIBS"
17584         fi
17585 fi
17586
17587 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17588         if test "$ol_link_dnssrv" = no ; then
17589                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17590 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17591    { (exit 1); exit 1; }; }
17592         fi
17593 else
17594         ol_enable_dnssrv=no
17595 fi
17596
17597
17598 for ac_func in hstrerror
17599 do
17600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17601 echo "$as_me:$LINENO: checking for $ac_func" >&5
17602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17603 if eval "test \"\${$as_ac_var+set}\" = set"; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17614 #define $ac_func innocuous_$ac_func
17615
17616 /* System header to define __stub macros and hopefully few prototypes,
17617     which can conflict with char $ac_func (); below.
17618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17619     <limits.h> exists even on freestanding compilers.  */
17620
17621 #ifdef __STDC__
17622 # include <limits.h>
17623 #else
17624 # include <assert.h>
17625 #endif
17626
17627 #undef $ac_func
17628
17629 /* Override any gcc2 internal prototype to avoid an error.  */
17630 #ifdef __cplusplus
17631 extern "C"
17632 {
17633 #endif
17634 /* We use char because int might match the return type of a gcc2
17635    builtin and then its argument prototype would still apply.  */
17636 char $ac_func ();
17637 /* The GNU C library defines this for functions which it implements
17638     to always fail with ENOSYS.  Some functions are actually named
17639     something starting with __ and the normal name is an alias.  */
17640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17641 choke me
17642 #else
17643 char (*f) () = $ac_func;
17644 #endif
17645 #ifdef __cplusplus
17646 }
17647 #endif
17648
17649 int
17650 main ()
17651 {
17652 return f != $ac_func;
17653   ;
17654   return 0;
17655 }
17656 _ACEOF
17657 rm -f conftest.$ac_objext conftest$ac_exeext
17658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17659   (eval $ac_link) 2>conftest.er1
17660   ac_status=$?
17661   grep -v '^ *+' conftest.er1 >conftest.err
17662   rm -f conftest.er1
17663   cat conftest.err >&5
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); } &&
17666          { ac_try='test -z "$ac_c_werror_flag"
17667                          || test ! -s conftest.err'
17668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669   (eval $ac_try) 2>&5
17670   ac_status=$?
17671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672   (exit $ac_status); }; } &&
17673          { ac_try='test -s conftest$ac_exeext'
17674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17675   (eval $ac_try) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); }; }; then
17679   eval "$as_ac_var=yes"
17680 else
17681   echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 eval "$as_ac_var=no"
17685 fi
17686 rm -f conftest.err conftest.$ac_objext \
17687       conftest$ac_exeext conftest.$ac_ext
17688 fi
17689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692   cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17694 _ACEOF
17695
17696 fi
17697 done
17698
17699
17700
17701
17702
17703
17704 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17705 do
17706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17707 echo "$as_me:$LINENO: checking for $ac_func" >&5
17708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17709 if eval "test \"\${$as_ac_var+set}\" = set"; then
17710   echo $ECHO_N "(cached) $ECHO_C" >&6
17711 else
17712   cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17719    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17720 #define $ac_func innocuous_$ac_func
17721
17722 /* System header to define __stub macros and hopefully few prototypes,
17723     which can conflict with char $ac_func (); below.
17724     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17725     <limits.h> exists even on freestanding compilers.  */
17726
17727 #ifdef __STDC__
17728 # include <limits.h>
17729 #else
17730 # include <assert.h>
17731 #endif
17732
17733 #undef $ac_func
17734
17735 /* Override any gcc2 internal prototype to avoid an error.  */
17736 #ifdef __cplusplus
17737 extern "C"
17738 {
17739 #endif
17740 /* We use char because int might match the return type of a gcc2
17741    builtin and then its argument prototype would still apply.  */
17742 char $ac_func ();
17743 /* The GNU C library defines this for functions which it implements
17744     to always fail with ENOSYS.  Some functions are actually named
17745     something starting with __ and the normal name is an alias.  */
17746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17747 choke me
17748 #else
17749 char (*f) () = $ac_func;
17750 #endif
17751 #ifdef __cplusplus
17752 }
17753 #endif
17754
17755 int
17756 main ()
17757 {
17758 return f != $ac_func;
17759   ;
17760   return 0;
17761 }
17762 _ACEOF
17763 rm -f conftest.$ac_objext conftest$ac_exeext
17764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17765   (eval $ac_link) 2>conftest.er1
17766   ac_status=$?
17767   grep -v '^ *+' conftest.er1 >conftest.err
17768   rm -f conftest.er1
17769   cat conftest.err >&5
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); } &&
17772          { ac_try='test -z "$ac_c_werror_flag"
17773                          || test ! -s conftest.err'
17774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775   (eval $ac_try) 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; } &&
17779          { ac_try='test -s conftest$ac_exeext'
17780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781   (eval $ac_try) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); }; }; then
17785   eval "$as_ac_var=yes"
17786 else
17787   echo "$as_me: failed program was:" >&5
17788 sed 's/^/| /' conftest.$ac_ext >&5
17789
17790 eval "$as_ac_var=no"
17791 fi
17792 rm -f conftest.err conftest.$ac_objext \
17793       conftest$ac_exeext conftest.$ac_ext
17794 fi
17795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17796 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798   cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17800 _ACEOF
17801
17802 fi
17803 done
17804
17805
17806 ol_link_ipv6=no
17807 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17808         if test $ol_enable_ipv6 = yes ; then
17809                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17810 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17811    { (exit 1); exit 1; }; }
17812         fi
17813 elif test $ol_enable_ipv6 != no ; then
17814         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17815 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17816 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17817   echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819
17820                 cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826
17827 #                       include <netinet/in.h>
17828 #                       ifdef INET6_ADDRSTRLEN
17829                                 __has_inet6_addrstrlen__;
17830 #                       endif
17831
17832 _ACEOF
17833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17834   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17835   ol_cv_inet6_addrstrlen=yes
17836 else
17837   ol_cv_inet6_addrstrlen=no
17838 fi
17839 rm -f conftest*
17840
17841 fi
17842 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17843 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17844
17845
17846         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17847 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17848 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17849   echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851
17852                 cat >conftest.$ac_ext <<_ACEOF
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858
17859 #include <sys/types.h>
17860 #include <sys/socket.h>
17861
17862 int
17863 main ()
17864 {
17865
17866                         struct sockaddr_storage ss;
17867
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17874   (eval $ac_compile) 2>conftest.er1
17875   ac_status=$?
17876   grep -v '^ *+' conftest.er1 >conftest.err
17877   rm -f conftest.er1
17878   cat conftest.err >&5
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); } &&
17881          { ac_try='test -z "$ac_c_werror_flag"
17882                          || test ! -s conftest.err'
17883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884   (eval $ac_try) 2>&5
17885   ac_status=$?
17886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887   (exit $ac_status); }; } &&
17888          { ac_try='test -s conftest.$ac_objext'
17889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890   (eval $ac_try) 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   ol_cv_struct_sockaddr_storage=yes
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 ol_cv_struct_sockaddr_storage=no
17900 fi
17901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17902 fi
17903 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17904 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17905
17906         if test $ol_cv_inet6_addrstrlen = yes &&
17907            test $ol_cv_struct_sockaddr_storage = yes ; then
17908                 ol_link_ipv6=yes
17909         elif test $ol_enable_ipv6 = yes &&
17910              test $ol_cv_inet6_addrstrlen = no ; then
17911                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17912 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17913    { (exit 1); exit 1; }; }
17914         elif test $ol_enable_ipv6 = yes &&
17915              test $ol_cv_struct_sockaddr_storage = no ; then
17916                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17917 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17918    { (exit 1); exit 1; }; }
17919         fi
17920 fi
17921
17922 if test $ol_enable_local != no ; then
17923
17924 for ac_header in sys/un.h
17925 do
17926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17928   echo "$as_me:$LINENO: checking for $ac_header" >&5
17929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931   echo $ECHO_N "(cached) $ECHO_C" >&6
17932 fi
17933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17935 else
17936   # Is the header compilable?
17937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17939 cat >conftest.$ac_ext <<_ACEOF
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945 $ac_includes_default
17946 #include <$ac_header>
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17950   (eval $ac_compile) 2>conftest.er1
17951   ac_status=$?
17952   grep -v '^ *+' conftest.er1 >conftest.err
17953   rm -f conftest.er1
17954   cat conftest.err >&5
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); } &&
17957          { ac_try='test -z "$ac_c_werror_flag"
17958                          || test ! -s conftest.err'
17959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960   (eval $ac_try) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); }; } &&
17964          { ac_try='test -s conftest.$ac_objext'
17965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966   (eval $ac_try) 2>&5
17967   ac_status=$?
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); }; }; then
17970   ac_header_compiler=yes
17971 else
17972   echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17974
17975 ac_header_compiler=no
17976 fi
17977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17979 echo "${ECHO_T}$ac_header_compiler" >&6
17980
17981 # Is the header present?
17982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17984 cat >conftest.$ac_ext <<_ACEOF
17985 /* confdefs.h.  */
17986 _ACEOF
17987 cat confdefs.h >>conftest.$ac_ext
17988 cat >>conftest.$ac_ext <<_ACEOF
17989 /* end confdefs.h.  */
17990 #include <$ac_header>
17991 _ACEOF
17992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17994   ac_status=$?
17995   grep -v '^ *+' conftest.er1 >conftest.err
17996   rm -f conftest.er1
17997   cat conftest.err >&5
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } >/dev/null; then
18000   if test -s conftest.err; then
18001     ac_cpp_err=$ac_c_preproc_warn_flag
18002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18003   else
18004     ac_cpp_err=
18005   fi
18006 else
18007   ac_cpp_err=yes
18008 fi
18009 if test -z "$ac_cpp_err"; then
18010   ac_header_preproc=yes
18011 else
18012   echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18014
18015   ac_header_preproc=no
18016 fi
18017 rm -f conftest.err conftest.$ac_ext
18018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18019 echo "${ECHO_T}$ac_header_preproc" >&6
18020
18021 # So?  What about this header?
18022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18023   yes:no: )
18024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18028     ac_header_preproc=yes
18029     ;;
18030   no:yes:* )
18031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18043     (
18044       cat <<\_ASBOX
18045 ## --------------------------------------------- ##
18046 ## Report this to <http://www.openldap.org/its/> ##
18047 ## --------------------------------------------- ##
18048 _ASBOX
18049     ) |
18050       sed "s/^/$as_me: WARNING:     /" >&2
18051     ;;
18052 esac
18053 echo "$as_me:$LINENO: checking for $ac_header" >&5
18054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18056   echo $ECHO_N "(cached) $ECHO_C" >&6
18057 else
18058   eval "$as_ac_Header=\$ac_header_preproc"
18059 fi
18060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18062
18063 fi
18064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18065   cat >>confdefs.h <<_ACEOF
18066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18067 _ACEOF
18068
18069 fi
18070
18071 done
18072
18073
18074         if test $ol_enable_local = auto ; then
18075                 ol_enable_local=$ac_cv_header_sys_un_h
18076         elif test $ac_cv_header_sys_un_h = no ; then
18077                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18078 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18079    { (exit 1); exit 1; }; }
18080         fi
18081 fi
18082
18083 ol_link_kbind=no
18084 ol_link_krb5=no
18085 ol_link_krb4=no
18086
18087 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
18088
18089
18090 for ac_header in krb5.h
18091 do
18092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18094   echo "$as_me:$LINENO: checking for $ac_header" >&5
18095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18097   echo $ECHO_N "(cached) $ECHO_C" >&6
18098 fi
18099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18101 else
18102   # Is the header compilable?
18103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h.  */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h.  */
18111 $ac_includes_default
18112 #include <$ac_header>
18113 _ACEOF
18114 rm -f conftest.$ac_objext
18115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18116   (eval $ac_compile) 2>conftest.er1
18117   ac_status=$?
18118   grep -v '^ *+' conftest.er1 >conftest.err
18119   rm -f conftest.er1
18120   cat conftest.err >&5
18121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122   (exit $ac_status); } &&
18123          { ac_try='test -z "$ac_c_werror_flag"
18124                          || test ! -s conftest.err'
18125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126   (eval $ac_try) 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; } &&
18130          { ac_try='test -s conftest.$ac_objext'
18131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132   (eval $ac_try) 2>&5
18133   ac_status=$?
18134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135   (exit $ac_status); }; }; then
18136   ac_header_compiler=yes
18137 else
18138   echo "$as_me: failed program was:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18140
18141 ac_header_compiler=no
18142 fi
18143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18145 echo "${ECHO_T}$ac_header_compiler" >&6
18146
18147 # Is the header present?
18148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18150 cat >conftest.$ac_ext <<_ACEOF
18151 /* confdefs.h.  */
18152 _ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h.  */
18156 #include <$ac_header>
18157 _ACEOF
18158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18159   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } >/dev/null; then
18166   if test -s conftest.err; then
18167     ac_cpp_err=$ac_c_preproc_warn_flag
18168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18169   else
18170     ac_cpp_err=
18171   fi
18172 else
18173   ac_cpp_err=yes
18174 fi
18175 if test -z "$ac_cpp_err"; then
18176   ac_header_preproc=yes
18177 else
18178   echo "$as_me: failed program was:" >&5
18179 sed 's/^/| /' conftest.$ac_ext >&5
18180
18181   ac_header_preproc=no
18182 fi
18183 rm -f conftest.err conftest.$ac_ext
18184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18185 echo "${ECHO_T}$ac_header_preproc" >&6
18186
18187 # So?  What about this header?
18188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18189   yes:no: )
18190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18194     ac_header_preproc=yes
18195     ;;
18196   no:yes:* )
18197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18209     (
18210       cat <<\_ASBOX
18211 ## --------------------------------------------- ##
18212 ## Report this to <http://www.openldap.org/its/> ##
18213 ## --------------------------------------------- ##
18214 _ASBOX
18215     ) |
18216       sed "s/^/$as_me: WARNING:     /" >&2
18217     ;;
18218 esac
18219 echo "$as_me:$LINENO: checking for $ac_header" >&5
18220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224   eval "$as_ac_Header=\$ac_header_preproc"
18225 fi
18226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18228
18229 fi
18230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18231   cat >>confdefs.h <<_ACEOF
18232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18233 _ACEOF
18234
18235 fi
18236
18237 done
18238
18239
18240         if test $ac_cv_header_krb5_h = yes ; then
18241
18242 for ac_header in heim_err.h
18243 do
18244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18246   echo "$as_me:$LINENO: checking for $ac_header" >&5
18247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 fi
18251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18253 else
18254   # Is the header compilable?
18255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h.  */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h.  */
18263 $ac_includes_default
18264 #include <$ac_header>
18265 _ACEOF
18266 rm -f conftest.$ac_objext
18267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268   (eval $ac_compile) 2>conftest.er1
18269   ac_status=$?
18270   grep -v '^ *+' conftest.er1 >conftest.err
18271   rm -f conftest.er1
18272   cat conftest.err >&5
18273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274   (exit $ac_status); } &&
18275          { ac_try='test -z "$ac_c_werror_flag"
18276                          || test ! -s conftest.err'
18277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18278   (eval $ac_try) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); }; } &&
18282          { ac_try='test -s conftest.$ac_objext'
18283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284   (eval $ac_try) 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; }; then
18288   ac_header_compiler=yes
18289 else
18290   echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 ac_header_compiler=no
18294 fi
18295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18297 echo "${ECHO_T}$ac_header_compiler" >&6
18298
18299 # Is the header present?
18300 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18302 cat >conftest.$ac_ext <<_ACEOF
18303 /* confdefs.h.  */
18304 _ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h.  */
18308 #include <$ac_header>
18309 _ACEOF
18310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18312   ac_status=$?
18313   grep -v '^ *+' conftest.er1 >conftest.err
18314   rm -f conftest.er1
18315   cat conftest.err >&5
18316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317   (exit $ac_status); } >/dev/null; then
18318   if test -s conftest.err; then
18319     ac_cpp_err=$ac_c_preproc_warn_flag
18320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18321   else
18322     ac_cpp_err=
18323   fi
18324 else
18325   ac_cpp_err=yes
18326 fi
18327 if test -z "$ac_cpp_err"; then
18328   ac_header_preproc=yes
18329 else
18330   echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333   ac_header_preproc=no
18334 fi
18335 rm -f conftest.err conftest.$ac_ext
18336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18337 echo "${ECHO_T}$ac_header_preproc" >&6
18338
18339 # So?  What about this header?
18340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18341   yes:no: )
18342     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18346     ac_header_preproc=yes
18347     ;;
18348   no:yes:* )
18349     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18351     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18352 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18353     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18355     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18356 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18359     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18361     (
18362       cat <<\_ASBOX
18363 ## --------------------------------------------- ##
18364 ## Report this to <http://www.openldap.org/its/> ##
18365 ## --------------------------------------------- ##
18366 _ASBOX
18367     ) |
18368       sed "s/^/$as_me: WARNING:     /" >&2
18369     ;;
18370 esac
18371 echo "$as_me:$LINENO: checking for $ac_header" >&5
18372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   eval "$as_ac_Header=\$ac_header_preproc"
18377 fi
18378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18380
18381 fi
18382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18383   cat >>confdefs.h <<_ACEOF
18384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18385 _ACEOF
18386
18387 fi
18388
18389 done
18390
18391                 if test $ac_cv_header_heim_err_h = yes ; then
18392                         krb5_impl=heimdal
18393                 else
18394                         krb5_impl=mit
18395                 fi
18396
18397                 if test $krb5_impl = mit; then
18398                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18399 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18400 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18401   echo $ECHO_N "(cached) $ECHO_C" >&6
18402 else
18403   ac_check_lib_save_LIBS=$LIBS
18404 LIBS="-lk5crypto  $LIBS"
18405 cat >conftest.$ac_ext <<_ACEOF
18406 /* confdefs.h.  */
18407 _ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h.  */
18411
18412
18413 int
18414 main ()
18415 {
18416 main ();
18417   ;
18418   return 0;
18419 }
18420 _ACEOF
18421 rm -f conftest.$ac_objext conftest$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423   (eval $ac_link) 2>conftest.er1
18424   ac_status=$?
18425   grep -v '^ *+' conftest.er1 >conftest.err
18426   rm -f conftest.er1
18427   cat conftest.err >&5
18428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429   (exit $ac_status); } &&
18430          { ac_try='test -z "$ac_c_werror_flag"
18431                          || test ! -s conftest.err'
18432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433   (eval $ac_try) 2>&5
18434   ac_status=$?
18435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436   (exit $ac_status); }; } &&
18437          { ac_try='test -s conftest$ac_exeext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_lib_k5crypto_main=yes
18444 else
18445   echo "$as_me: failed program was:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18447
18448 ac_cv_lib_k5crypto_main=no
18449 fi
18450 rm -f conftest.err conftest.$ac_objext \
18451       conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18453 fi
18454 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18455 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18456 if test $ac_cv_lib_k5crypto_main = yes; then
18457   krb5crypto=k5crypto
18458 else
18459   krb5crypto=crypto
18460 fi
18461
18462
18463                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18464 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18465 if test "${ac_cv_lib_krb5_main+set}" = set; then
18466   echo $ECHO_N "(cached) $ECHO_C" >&6
18467 else
18468   ac_check_lib_save_LIBS=$LIBS
18469 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18470 cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476
18477
18478 int
18479 main ()
18480 {
18481 main ();
18482   ;
18483   return 0;
18484 }
18485 _ACEOF
18486 rm -f conftest.$ac_objext conftest$ac_exeext
18487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18488   (eval $ac_link) 2>conftest.er1
18489   ac_status=$?
18490   grep -v '^ *+' conftest.er1 >conftest.err
18491   rm -f conftest.er1
18492   cat conftest.err >&5
18493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494   (exit $ac_status); } &&
18495          { ac_try='test -z "$ac_c_werror_flag"
18496                          || test ! -s conftest.err'
18497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18498   (eval $ac_try) 2>&5
18499   ac_status=$?
18500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501   (exit $ac_status); }; } &&
18502          { ac_try='test -s conftest$ac_exeext'
18503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18504   (eval $ac_try) 2>&5
18505   ac_status=$?
18506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507   (exit $ac_status); }; }; then
18508   ac_cv_lib_krb5_main=yes
18509 else
18510   echo "$as_me: failed program was:" >&5
18511 sed 's/^/| /' conftest.$ac_ext >&5
18512
18513 ac_cv_lib_krb5_main=no
18514 fi
18515 rm -f conftest.err conftest.$ac_objext \
18516       conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18518 fi
18519 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18520 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18521 if test $ac_cv_lib_krb5_main = yes; then
18522   have_krb5=yes
18523                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18524 else
18525   have_krb5=no
18526 fi
18527
18528
18529                 elif test $krb5_impl = heimdal; then
18530                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18531 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18532 if test "${ac_cv_lib_des_main+set}" = set; then
18533   echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535   ac_check_lib_save_LIBS=$LIBS
18536 LIBS="-ldes  $LIBS"
18537 cat >conftest.$ac_ext <<_ACEOF
18538 /* confdefs.h.  */
18539 _ACEOF
18540 cat confdefs.h >>conftest.$ac_ext
18541 cat >>conftest.$ac_ext <<_ACEOF
18542 /* end confdefs.h.  */
18543
18544
18545 int
18546 main ()
18547 {
18548 main ();
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext conftest$ac_exeext
18554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18555   (eval $ac_link) 2>conftest.er1
18556   ac_status=$?
18557   grep -v '^ *+' conftest.er1 >conftest.err
18558   rm -f conftest.er1
18559   cat conftest.err >&5
18560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561   (exit $ac_status); } &&
18562          { ac_try='test -z "$ac_c_werror_flag"
18563                          || test ! -s conftest.err'
18564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565   (eval $ac_try) 2>&5
18566   ac_status=$?
18567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568   (exit $ac_status); }; } &&
18569          { ac_try='test -s conftest$ac_exeext'
18570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571   (eval $ac_try) 2>&5
18572   ac_status=$?
18573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574   (exit $ac_status); }; }; then
18575   ac_cv_lib_des_main=yes
18576 else
18577   echo "$as_me: failed program was:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18579
18580 ac_cv_lib_des_main=no
18581 fi
18582 rm -f conftest.err conftest.$ac_objext \
18583       conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18587 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18588 if test $ac_cv_lib_des_main = yes; then
18589   krb5crypto=des
18590 else
18591   krb5crypto=crypto
18592 fi
18593
18594
18595                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18596 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18597 if test "${ac_cv_lib_krb5_main+set}" = set; then
18598   echo $ECHO_N "(cached) $ECHO_C" >&6
18599 else
18600   ac_check_lib_save_LIBS=$LIBS
18601 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608
18609
18610 int
18611 main ()
18612 {
18613 main ();
18614   ;
18615   return 0;
18616 }
18617 _ACEOF
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18620   (eval $ac_link) 2>conftest.er1
18621   ac_status=$?
18622   grep -v '^ *+' conftest.er1 >conftest.err
18623   rm -f conftest.er1
18624   cat conftest.err >&5
18625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626   (exit $ac_status); } &&
18627          { ac_try='test -z "$ac_c_werror_flag"
18628                          || test ! -s conftest.err'
18629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18630   (eval $ac_try) 2>&5
18631   ac_status=$?
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); }; } &&
18634          { ac_try='test -s conftest$ac_exeext'
18635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18636   (eval $ac_try) 2>&5
18637   ac_status=$?
18638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639   (exit $ac_status); }; }; then
18640   ac_cv_lib_krb5_main=yes
18641 else
18642   echo "$as_me: failed program was:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18644
18645 ac_cv_lib_krb5_main=no
18646 fi
18647 rm -f conftest.err conftest.$ac_objext \
18648       conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18650 fi
18651 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18652 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18653 if test $ac_cv_lib_krb5_main = yes; then
18654   have_krb5=yes
18655                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18656 else
18657   have_krb5=no
18658 fi
18659
18660
18661
18662 cat >>confdefs.h <<\_ACEOF
18663 #define HAVE_HEIMDAL_KERBEROS 1
18664 _ACEOF
18665
18666
18667                 else
18668                         have_krb5=no
18669                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18670 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18671                 fi
18672
18673                 if test $have_krb5 = yes ; then
18674                         ol_link_krb5=yes
18675
18676
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_KRB5 1
18679 _ACEOF
18680
18681
18682                         if test $ol_with_kerberos = k5only ; then
18683                                 ol_with_kerberos=found
18684                         fi
18685
18686                 elif test $ol_with_kerberos != auto ; then
18687                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18688 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18689    { (exit 1); exit 1; }; }
18690                 fi
18691
18692         fi
18693         ;;
18694 esac
18695
18696 if test $ol_link_krb5 = yes &&
18697    { test $ol_with_kerberos = yes ||
18698      test $ol_with_kerberos = auto ||
18699      test $ol_with_kerberos = k425; }; then
18700
18701
18702
18703 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18704 do
18705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18707   echo "$as_me:$LINENO: checking for $ac_header" >&5
18708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18710   echo $ECHO_N "(cached) $ECHO_C" >&6
18711 fi
18712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18714 else
18715   # Is the header compilable?
18716 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18718 cat >conftest.$ac_ext <<_ACEOF
18719 /* confdefs.h.  */
18720 _ACEOF
18721 cat confdefs.h >>conftest.$ac_ext
18722 cat >>conftest.$ac_ext <<_ACEOF
18723 /* end confdefs.h.  */
18724 $ac_includes_default
18725 #include <$ac_header>
18726 _ACEOF
18727 rm -f conftest.$ac_objext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18729   (eval $ac_compile) 2>conftest.er1
18730   ac_status=$?
18731   grep -v '^ *+' conftest.er1 >conftest.err
18732   rm -f conftest.er1
18733   cat conftest.err >&5
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } &&
18736          { ac_try='test -z "$ac_c_werror_flag"
18737                          || test ! -s conftest.err'
18738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739   (eval $ac_try) 2>&5
18740   ac_status=$?
18741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742   (exit $ac_status); }; } &&
18743          { ac_try='test -s conftest.$ac_objext'
18744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18745   (eval $ac_try) 2>&5
18746   ac_status=$?
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); }; }; then
18749   ac_header_compiler=yes
18750 else
18751   echo "$as_me: failed program was:" >&5
18752 sed 's/^/| /' conftest.$ac_ext >&5
18753
18754 ac_header_compiler=no
18755 fi
18756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18758 echo "${ECHO_T}$ac_header_compiler" >&6
18759
18760 # Is the header present?
18761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18763 cat >conftest.$ac_ext <<_ACEOF
18764 /* confdefs.h.  */
18765 _ACEOF
18766 cat confdefs.h >>conftest.$ac_ext
18767 cat >>conftest.$ac_ext <<_ACEOF
18768 /* end confdefs.h.  */
18769 #include <$ac_header>
18770 _ACEOF
18771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18773   ac_status=$?
18774   grep -v '^ *+' conftest.er1 >conftest.err
18775   rm -f conftest.er1
18776   cat conftest.err >&5
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); } >/dev/null; then
18779   if test -s conftest.err; then
18780     ac_cpp_err=$ac_c_preproc_warn_flag
18781     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18782   else
18783     ac_cpp_err=
18784   fi
18785 else
18786   ac_cpp_err=yes
18787 fi
18788 if test -z "$ac_cpp_err"; then
18789   ac_header_preproc=yes
18790 else
18791   echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18793
18794   ac_header_preproc=no
18795 fi
18796 rm -f conftest.err conftest.$ac_ext
18797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18798 echo "${ECHO_T}$ac_header_preproc" >&6
18799
18800 # So?  What about this header?
18801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18802   yes:no: )
18803     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18807     ac_header_preproc=yes
18808     ;;
18809   no:yes:* )
18810     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18812     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18813 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18814     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18816     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18817 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18818     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18820     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18822     (
18823       cat <<\_ASBOX
18824 ## --------------------------------------------- ##
18825 ## Report this to <http://www.openldap.org/its/> ##
18826 ## --------------------------------------------- ##
18827 _ASBOX
18828     ) |
18829       sed "s/^/$as_me: WARNING:     /" >&2
18830     ;;
18831 esac
18832 echo "$as_me:$LINENO: checking for $ac_header" >&5
18833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18835   echo $ECHO_N "(cached) $ECHO_C" >&6
18836 else
18837   eval "$as_ac_Header=\$ac_header_preproc"
18838 fi
18839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18841
18842 fi
18843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18844   cat >>confdefs.h <<_ACEOF
18845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18846 _ACEOF
18847
18848 fi
18849
18850 done
18851
18852
18853         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18854                 if test $krb5_impl = mit; then
18855                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18856 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18857 if test "${ac_cv_lib_krb4_main+set}" = set; then
18858   echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860   ac_check_lib_save_LIBS=$LIBS
18861 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868
18869
18870 int
18871 main ()
18872 {
18873 main ();
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>conftest.er1
18881   ac_status=$?
18882   grep -v '^ *+' conftest.er1 >conftest.err
18883   rm -f conftest.er1
18884   cat conftest.err >&5
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -z "$ac_c_werror_flag"
18888                          || test ! -s conftest.err'
18889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890   (eval $ac_try) 2>&5
18891   ac_status=$?
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); }; } &&
18894          { ac_try='test -s conftest$ac_exeext'
18895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896   (eval $ac_try) 2>&5
18897   ac_status=$?
18898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899   (exit $ac_status); }; }; then
18900   ac_cv_lib_krb4_main=yes
18901 else
18902   echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_cv_lib_krb4_main=no
18906 fi
18907 rm -f conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18910 fi
18911 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18912 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18913 if test $ac_cv_lib_krb4_main = yes; then
18914   have_k425=yes
18915                                 KRB4_LIBS="-lkrb4 -ldes425"
18916 else
18917   have_k425=no
18918 fi
18919
18920
18921                 elif test $krb5_impl = heimdal; then
18922                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18923 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18924 if test "${ac_cv_lib_krb4_main+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935
18936
18937 int
18938 main ()
18939 {
18940 main ();
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18947   (eval $ac_link) 2>conftest.er1
18948   ac_status=$?
18949   grep -v '^ *+' conftest.er1 >conftest.err
18950   rm -f conftest.er1
18951   cat conftest.err >&5
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); } &&
18954          { ac_try='test -z "$ac_c_werror_flag"
18955                          || test ! -s conftest.err'
18956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18957   (eval $ac_try) 2>&5
18958   ac_status=$?
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); }; } &&
18961          { ac_try='test -s conftest$ac_exeext'
18962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18963   (eval $ac_try) 2>&5
18964   ac_status=$?
18965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966   (exit $ac_status); }; }; then
18967   ac_cv_lib_krb4_main=yes
18968 else
18969   echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.$ac_ext >&5
18971
18972 ac_cv_lib_krb4_main=no
18973 fi
18974 rm -f conftest.err conftest.$ac_objext \
18975       conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18977 fi
18978 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18979 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18980 if test $ac_cv_lib_krb4_main = yes; then
18981   have_k425=yes
18982                                 KRB4_LIBS="-lkrb4"
18983 else
18984   have_k425=no
18985 fi
18986
18987
18988                 else
18989                         have_425=no
18990                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18991 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18992                 fi
18993
18994                 if test $have_k425 = yes ; then
18995                         ol_with_kerberos=found
18996                         ol_link_krb4=yes
18997
18998
18999 cat >>confdefs.h <<\_ACEOF
19000 #define HAVE_KRB425 1
19001 _ACEOF
19002
19003
19004 cat >>confdefs.h <<\_ACEOF
19005 #define HAVE_KRB4 1
19006 _ACEOF
19007
19008
19009                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
19010 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
19011 if test "${ol_cv_var_des_debug+set}" = set; then
19012   echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014
19015                                                                 save_LIBS="$LIBS"
19016                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
19017                                 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023
19024 #include <kerberosIV/krb.h>
19025 #include <kerberosIV/des.h>
19026 extern int des_debug;
19027
19028 int
19029 main ()
19030 {
19031
19032 des_debug = 1;
19033
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   ol_cv_var_des_debug=yes
19061 else
19062   echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.$ac_ext >&5
19064
19065 ol_cv_var_des_debug=no
19066 fi
19067 rm -f conftest.err conftest.$ac_objext \
19068       conftest$ac_exeext conftest.$ac_ext
19069                                                                 LIBS="$save_LIBS"
19070
19071 fi
19072 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
19073 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
19074
19075                         if test $ol_cv_var_des_debug = yes ; then
19076
19077 cat >>confdefs.h <<\_ACEOF
19078 #define HAVE_DES_DEBUG 1
19079 _ACEOF
19080
19081                         fi
19082
19083                         LIBS="$save_LIBS"
19084                 fi
19085         fi
19086 fi
19087
19088 if test $ol_link_krb5 = yes ; then
19089         ol_with_kerberos=found
19090 fi
19091
19092 case $ol_with_kerberos in yes | auto | k4 | kth)
19093
19094
19095
19096
19097 for ac_header in krb.h des.h krb-archaeology.h
19098 do
19099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19101   echo "$as_me:$LINENO: checking for $ac_header" >&5
19102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19104   echo $ECHO_N "(cached) $ECHO_C" >&6
19105 fi
19106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19108 else
19109   # Is the header compilable?
19110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h.  */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h.  */
19118 $ac_includes_default
19119 #include <$ac_header>
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123   (eval $ac_compile) 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_c_werror_flag"
19131                          || test ! -s conftest.err'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; } &&
19137          { ac_try='test -s conftest.$ac_objext'
19138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139   (eval $ac_try) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143   ac_header_compiler=yes
19144 else
19145   echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 ac_header_compiler=no
19149 fi
19150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19152 echo "${ECHO_T}$ac_header_compiler" >&6
19153
19154 # Is the header present?
19155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19157 cat >conftest.$ac_ext <<_ACEOF
19158 /* confdefs.h.  */
19159 _ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h.  */
19163 #include <$ac_header>
19164 _ACEOF
19165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19166   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19167   ac_status=$?
19168   grep -v '^ *+' conftest.er1 >conftest.err
19169   rm -f conftest.er1
19170   cat conftest.err >&5
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); } >/dev/null; then
19173   if test -s conftest.err; then
19174     ac_cpp_err=$ac_c_preproc_warn_flag
19175     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19176   else
19177     ac_cpp_err=
19178   fi
19179 else
19180   ac_cpp_err=yes
19181 fi
19182 if test -z "$ac_cpp_err"; then
19183   ac_header_preproc=yes
19184 else
19185   echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19187
19188   ac_header_preproc=no
19189 fi
19190 rm -f conftest.err conftest.$ac_ext
19191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19192 echo "${ECHO_T}$ac_header_preproc" >&6
19193
19194 # So?  What about this header?
19195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19196   yes:no: )
19197     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19201     ac_header_preproc=yes
19202     ;;
19203   no:yes:* )
19204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19206     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19207 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19208     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19210     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19211 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19214     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19216     (
19217       cat <<\_ASBOX
19218 ## --------------------------------------------- ##
19219 ## Report this to <http://www.openldap.org/its/> ##
19220 ## --------------------------------------------- ##
19221 _ASBOX
19222     ) |
19223       sed "s/^/$as_me: WARNING:     /" >&2
19224     ;;
19225 esac
19226 echo "$as_me:$LINENO: checking for $ac_header" >&5
19227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19229   echo $ECHO_N "(cached) $ECHO_C" >&6
19230 else
19231   eval "$as_ac_Header=\$ac_header_preproc"
19232 fi
19233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19235
19236 fi
19237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19238   cat >>confdefs.h <<_ACEOF
19239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19240 _ACEOF
19241
19242 fi
19243
19244 done
19245
19246
19247         if test $ac_cv_header_krb_h = yes ; then
19248                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19249 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19250 if test "${ac_cv_lib_krb_main+set}" = set; then
19251   echo $ECHO_N "(cached) $ECHO_C" >&6
19252 else
19253   ac_check_lib_save_LIBS=$LIBS
19254 LIBS="-lkrb -ldes $LIBS"
19255 cat >conftest.$ac_ext <<_ACEOF
19256 /* confdefs.h.  */
19257 _ACEOF
19258 cat confdefs.h >>conftest.$ac_ext
19259 cat >>conftest.$ac_ext <<_ACEOF
19260 /* end confdefs.h.  */
19261
19262
19263 int
19264 main ()
19265 {
19266 main ();
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19273   (eval $ac_link) 2>conftest.er1
19274   ac_status=$?
19275   grep -v '^ *+' conftest.er1 >conftest.err
19276   rm -f conftest.er1
19277   cat conftest.err >&5
19278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279   (exit $ac_status); } &&
19280          { ac_try='test -z "$ac_c_werror_flag"
19281                          || test ! -s conftest.err'
19282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283   (eval $ac_try) 2>&5
19284   ac_status=$?
19285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286   (exit $ac_status); }; } &&
19287          { ac_try='test -s conftest$ac_exeext'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; }; then
19293   ac_cv_lib_krb_main=yes
19294 else
19295   echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19297
19298 ac_cv_lib_krb_main=no
19299 fi
19300 rm -f conftest.err conftest.$ac_objext \
19301       conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_check_lib_save_LIBS
19303 fi
19304 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19305 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19306 if test $ac_cv_lib_krb_main = yes; then
19307   have_k4=yes
19308 else
19309   have_k4=no
19310 fi
19311
19312
19313                 if test $have_k4 = yes ; then
19314                         ol_with_kerberos=found
19315                         ol_link_krb4=yes
19316
19317
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_KRB4 1
19320 _ACEOF
19321
19322
19323                         KRB4_LIBS="-lkrb -ldes"
19324
19325                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19326
19327 cat >>confdefs.h <<\_ACEOF
19328 #define HAVE_KTH_KERBEROS 1
19329 _ACEOF
19330
19331                         fi
19332                 fi
19333         fi
19334         ;;
19335 esac
19336
19337 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19338         ol_link_kbind=yes
19339
19340 elif test $ol_enable_kbind = yes ; then
19341         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19342 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19343    { (exit 1); exit 1; }; }
19344 fi
19345
19346 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19347
19348 cat >>confdefs.h <<\_ACEOF
19349 #define HAVE_KERBEROS 1
19350 _ACEOF
19351
19352
19353 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19354         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19355 echo "$as_me: error: Kerberos detection failed" >&2;}
19356    { (exit 1); exit 1; }; }
19357 fi
19358
19359
19360 if test $ol_with_tls = yes ; then
19361         ol_with_tls=auto
19362 fi
19363
19364 ol_link_tls=no
19365 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19366
19367 for ac_header in openssl/ssl.h
19368 do
19369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19371   echo "$as_me:$LINENO: checking for $ac_header" >&5
19372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19374   echo $ECHO_N "(cached) $ECHO_C" >&6
19375 fi
19376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19378 else
19379   # Is the header compilable?
19380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19382 cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388 $ac_includes_default
19389 #include <$ac_header>
19390 _ACEOF
19391 rm -f conftest.$ac_objext
19392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19393   (eval $ac_compile) 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } &&
19400          { ac_try='test -z "$ac_c_werror_flag"
19401                          || test ! -s conftest.err'
19402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403   (eval $ac_try) 2>&5
19404   ac_status=$?
19405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406   (exit $ac_status); }; } &&
19407          { ac_try='test -s conftest.$ac_objext'
19408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409   (eval $ac_try) 2>&5
19410   ac_status=$?
19411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412   (exit $ac_status); }; }; then
19413   ac_header_compiler=yes
19414 else
19415   echo "$as_me: failed program was:" >&5
19416 sed 's/^/| /' conftest.$ac_ext >&5
19417
19418 ac_header_compiler=no
19419 fi
19420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19422 echo "${ECHO_T}$ac_header_compiler" >&6
19423
19424 # Is the header present?
19425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h.  */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h.  */
19433 #include <$ac_header>
19434 _ACEOF
19435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19436   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } >/dev/null; then
19443   if test -s conftest.err; then
19444     ac_cpp_err=$ac_c_preproc_warn_flag
19445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19446   else
19447     ac_cpp_err=
19448   fi
19449 else
19450   ac_cpp_err=yes
19451 fi
19452 if test -z "$ac_cpp_err"; then
19453   ac_header_preproc=yes
19454 else
19455   echo "$as_me: failed program was:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19457
19458   ac_header_preproc=no
19459 fi
19460 rm -f conftest.err conftest.$ac_ext
19461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19462 echo "${ECHO_T}$ac_header_preproc" >&6
19463
19464 # So?  What about this header?
19465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19466   yes:no: )
19467     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19471     ac_header_preproc=yes
19472     ;;
19473   no:yes:* )
19474     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19476     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19477 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19478     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19480     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19481 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19484     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19486     (
19487       cat <<\_ASBOX
19488 ## --------------------------------------------- ##
19489 ## Report this to <http://www.openldap.org/its/> ##
19490 ## --------------------------------------------- ##
19491 _ASBOX
19492     ) |
19493       sed "s/^/$as_me: WARNING:     /" >&2
19494     ;;
19495 esac
19496 echo "$as_me:$LINENO: checking for $ac_header" >&5
19497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19499   echo $ECHO_N "(cached) $ECHO_C" >&6
19500 else
19501   eval "$as_ac_Header=\$ac_header_preproc"
19502 fi
19503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19505
19506 fi
19507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19508   cat >>confdefs.h <<_ACEOF
19509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19510 _ACEOF
19511
19512 fi
19513
19514 done
19515
19516
19517         if test $ac_cv_header_openssl_ssl_h = yes ; then
19518                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19519 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19520 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19521   echo $ECHO_N "(cached) $ECHO_C" >&6
19522 else
19523   ac_check_lib_save_LIBS=$LIBS
19524 LIBS="-lssl -lcrypto $LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531
19532 /* Override any gcc2 internal prototype to avoid an error.  */
19533 #ifdef __cplusplus
19534 extern "C"
19535 #endif
19536 /* We use char because int might match the return type of a gcc2
19537    builtin and then its argument prototype would still apply.  */
19538 char SSL_library_init ();
19539 int
19540 main ()
19541 {
19542 SSL_library_init ();
19543   ;
19544   return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549   (eval $ac_link) 2>conftest.er1
19550   ac_status=$?
19551   grep -v '^ *+' conftest.er1 >conftest.err
19552   rm -f conftest.er1
19553   cat conftest.err >&5
19554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555   (exit $ac_status); } &&
19556          { ac_try='test -z "$ac_c_werror_flag"
19557                          || test ! -s conftest.err'
19558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559   (eval $ac_try) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); }; } &&
19563          { ac_try='test -s conftest$ac_exeext'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; }; then
19569   ac_cv_lib_ssl_SSL_library_init=yes
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 ac_cv_lib_ssl_SSL_library_init=no
19575 fi
19576 rm -f conftest.err conftest.$ac_objext \
19577       conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19579 fi
19580 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19581 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19582 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19583   have_openssl=yes
19584                         need_rsaref=no
19585 else
19586   have_openssl=no
19587 fi
19588
19589
19590                 if test $have_openssl = no ; then
19591                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19592 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19593 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   ac_check_lib_save_LIBS=$LIBS
19597 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604
19605 /* Override any gcc2 internal prototype to avoid an error.  */
19606 #ifdef __cplusplus
19607 extern "C"
19608 #endif
19609 /* We use char because int might match the return type of a gcc2
19610    builtin and then its argument prototype would still apply.  */
19611 char ssl3_accept ();
19612 int
19613 main ()
19614 {
19615 ssl3_accept ();
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19622   (eval $ac_link) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag"
19630                          || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest$ac_exeext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642   ac_cv_lib_ssl_ssl3_accept=yes
19643 else
19644   echo "$as_me: failed program was:" >&5
19645 sed 's/^/| /' conftest.$ac_ext >&5
19646
19647 ac_cv_lib_ssl_ssl3_accept=no
19648 fi
19649 rm -f conftest.err conftest.$ac_objext \
19650       conftest$ac_exeext conftest.$ac_ext
19651 LIBS=$ac_check_lib_save_LIBS
19652 fi
19653 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19654 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19655 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19656   have_openssl=yes
19657                                 need_rsaref=yes
19658 else
19659   have_openssl=no
19660 fi
19661
19662                 fi
19663
19664                 if test $have_openssl = yes ; then
19665                         ol_with_tls=openssl
19666                         ol_link_tls=yes
19667
19668
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE_OPENSSL 1
19671 _ACEOF
19672
19673
19674                         if test $need_rsaref = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_RSAREF 1
19678 _ACEOF
19679
19680
19681                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19682                         else
19683                                 TLS_LIBS="-lssl -lcrypto"
19684                         fi
19685
19686                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19687 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19688 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691
19692                 cat >conftest.$ac_ext <<_ACEOF
19693 /* confdefs.h.  */
19694 _ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h.  */
19698
19699 #ifdef HAVE_OPENSSL_SSL_H
19700 #include <openssl/ssl.h>
19701 #endif
19702
19703 /* Require 0.9.7d+ */
19704 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19705         char *__ssl_compat = "0.9.7d";
19706 #endif
19707
19708 _ACEOF
19709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19710   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19711   ol_cv_ssl_crl_compat=yes
19712 else
19713   ol_cv_ssl_crl_compat=no
19714 fi
19715 rm -f conftest*
19716
19717 fi
19718 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19719 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19720
19721                         if test $ol_cv_ssl_crl_compat = yes ; then
19722
19723 cat >>confdefs.h <<\_ACEOF
19724 #define HAVE_OPENSSL_CRL 1
19725 _ACEOF
19726
19727                         fi
19728                 fi
19729         fi
19730 fi
19731
19732 WITH_TLS=no
19733 if test $ol_link_tls = yes ; then
19734
19735 cat >>confdefs.h <<\_ACEOF
19736 #define HAVE_TLS 1
19737 _ACEOF
19738
19739         WITH_TLS=yes
19740 elif test $ol_with_tls = auto ; then
19741         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19742 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19743         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19744 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19745 elif test $ol_with_tls != no ; then
19746         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19747 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19748    { (exit 1); exit 1; }; }
19749 else
19750         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19751 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19752 fi
19753
19754 if test $ol_enable_lmpasswd != no; then
19755         if test $ol_link_tls != yes ; then
19756                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19757 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19758    { (exit 1); exit 1; }; }
19759         fi
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define SLAPD_LMHASH 1
19764 _ACEOF
19765
19766 fi
19767
19768 ol_link_threads=no
19769
19770 case $ol_with_threads in auto | yes | nt)
19771
19772
19773         echo "$as_me:$LINENO: checking for _beginthread" >&5
19774 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19775 if test "${ac_cv_func__beginthread+set}" = set; then
19776   echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778   cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h.  */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h.  */
19784 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19786 #define _beginthread innocuous__beginthread
19787
19788 /* System header to define __stub macros and hopefully few prototypes,
19789     which can conflict with char _beginthread (); below.
19790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19791     <limits.h> exists even on freestanding compilers.  */
19792
19793 #ifdef __STDC__
19794 # include <limits.h>
19795 #else
19796 # include <assert.h>
19797 #endif
19798
19799 #undef _beginthread
19800
19801 /* Override any gcc2 internal prototype to avoid an error.  */
19802 #ifdef __cplusplus
19803 extern "C"
19804 {
19805 #endif
19806 /* We use char because int might match the return type of a gcc2
19807    builtin and then its argument prototype would still apply.  */
19808 char _beginthread ();
19809 /* The GNU C library defines this for functions which it implements
19810     to always fail with ENOSYS.  Some functions are actually named
19811     something starting with __ and the normal name is an alias.  */
19812 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19813 choke me
19814 #else
19815 char (*f) () = _beginthread;
19816 #endif
19817 #ifdef __cplusplus
19818 }
19819 #endif
19820
19821 int
19822 main ()
19823 {
19824 return f != _beginthread;
19825   ;
19826   return 0;
19827 }
19828 _ACEOF
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19831   (eval $ac_link) 2>conftest.er1
19832   ac_status=$?
19833   grep -v '^ *+' conftest.er1 >conftest.err
19834   rm -f conftest.er1
19835   cat conftest.err >&5
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); } &&
19838          { ac_try='test -z "$ac_c_werror_flag"
19839                          || test ! -s conftest.err'
19840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841   (eval $ac_try) 2>&5
19842   ac_status=$?
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); }; } &&
19845          { ac_try='test -s conftest$ac_exeext'
19846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847   (eval $ac_try) 2>&5
19848   ac_status=$?
19849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850   (exit $ac_status); }; }; then
19851   ac_cv_func__beginthread=yes
19852 else
19853   echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856 ac_cv_func__beginthread=no
19857 fi
19858 rm -f conftest.err conftest.$ac_objext \
19859       conftest$ac_exeext conftest.$ac_ext
19860 fi
19861 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19862 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19863
19864
19865         if test $ac_cv_func__beginthread = yes ; then
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_NT_THREADS 1
19869 _ACEOF
19870
19871                 ol_cv_nt_threads=yes
19872         fi
19873
19874
19875         if test "$ol_cv_nt_threads" = yes ; then
19876                 ol_link_threads=nt
19877                 ol_with_threads=found
19878                 ol_with_yielding_select=yes
19879
19880
19881 cat >>confdefs.h <<\_ACEOF
19882 #define HAVE_NT_SERVICE_MANAGER 1
19883 _ACEOF
19884
19885
19886 cat >>confdefs.h <<\_ACEOF
19887 #define HAVE_NT_EVENT_LOG 1
19888 _ACEOF
19889
19890         fi
19891
19892         if test $ol_with_threads = nt ; then
19893                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19894 echo "$as_me: error: could not locate NT Threads" >&2;}
19895    { (exit 1); exit 1; }; }
19896         fi
19897         ;;
19898 esac
19899
19900 case $ol_with_threads in auto | yes | posix)
19901
19902
19903 for ac_header in pthread.h
19904 do
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19907   echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19910   echo $ECHO_N "(cached) $ECHO_C" >&6
19911 fi
19912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19914 else
19915   # Is the header compilable?
19916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h.  */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h.  */
19924 $ac_includes_default
19925 #include <$ac_header>
19926 _ACEOF
19927 rm -f conftest.$ac_objext
19928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19929   (eval $ac_compile) 2>conftest.er1
19930   ac_status=$?
19931   grep -v '^ *+' conftest.er1 >conftest.err
19932   rm -f conftest.er1
19933   cat conftest.err >&5
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); } &&
19936          { ac_try='test -z "$ac_c_werror_flag"
19937                          || test ! -s conftest.err'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; } &&
19943          { ac_try='test -s conftest.$ac_objext'
19944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19945   (eval $ac_try) 2>&5
19946   ac_status=$?
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); }; }; then
19949   ac_header_compiler=yes
19950 else
19951   echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19953
19954 ac_header_compiler=no
19955 fi
19956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19958 echo "${ECHO_T}$ac_header_compiler" >&6
19959
19960 # Is the header present?
19961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19963 cat >conftest.$ac_ext <<_ACEOF
19964 /* confdefs.h.  */
19965 _ACEOF
19966 cat confdefs.h >>conftest.$ac_ext
19967 cat >>conftest.$ac_ext <<_ACEOF
19968 /* end confdefs.h.  */
19969 #include <$ac_header>
19970 _ACEOF
19971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19973   ac_status=$?
19974   grep -v '^ *+' conftest.er1 >conftest.err
19975   rm -f conftest.er1
19976   cat conftest.err >&5
19977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978   (exit $ac_status); } >/dev/null; then
19979   if test -s conftest.err; then
19980     ac_cpp_err=$ac_c_preproc_warn_flag
19981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19982   else
19983     ac_cpp_err=
19984   fi
19985 else
19986   ac_cpp_err=yes
19987 fi
19988 if test -z "$ac_cpp_err"; then
19989   ac_header_preproc=yes
19990 else
19991   echo "$as_me: failed program was:" >&5
19992 sed 's/^/| /' conftest.$ac_ext >&5
19993
19994   ac_header_preproc=no
19995 fi
19996 rm -f conftest.err conftest.$ac_ext
19997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19998 echo "${ECHO_T}$ac_header_preproc" >&6
19999
20000 # So?  What about this header?
20001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20002   yes:no: )
20003     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20005     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20007     ac_header_preproc=yes
20008     ;;
20009   no:yes:* )
20010     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20013 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20016     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20017 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20020     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20022     (
20023       cat <<\_ASBOX
20024 ## --------------------------------------------- ##
20025 ## Report this to <http://www.openldap.org/its/> ##
20026 ## --------------------------------------------- ##
20027 _ASBOX
20028     ) |
20029       sed "s/^/$as_me: WARNING:     /" >&2
20030     ;;
20031 esac
20032 echo "$as_me:$LINENO: checking for $ac_header" >&5
20033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20035   echo $ECHO_N "(cached) $ECHO_C" >&6
20036 else
20037   eval "$as_ac_Header=\$ac_header_preproc"
20038 fi
20039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20041
20042 fi
20043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20044   cat >>confdefs.h <<_ACEOF
20045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20046 _ACEOF
20047
20048 fi
20049
20050 done
20051
20052
20053         if test $ac_cv_header_pthread_h = yes ; then
20054                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20055 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20056 if test "${ol_cv_pthread_version+set}" = set; then
20057   echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059
20060         cat >conftest.$ac_ext <<_ACEOF
20061 /* confdefs.h.  */
20062 _ACEOF
20063 cat confdefs.h >>conftest.$ac_ext
20064 cat >>conftest.$ac_ext <<_ACEOF
20065 /* end confdefs.h.  */
20066
20067 #               include <pthread.h>
20068
20069 int
20070 main ()
20071 {
20072
20073                 int i = PTHREAD_CREATE_JOINABLE;
20074
20075   ;
20076   return 0;
20077 }
20078 _ACEOF
20079 rm -f conftest.$ac_objext
20080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081   (eval $ac_compile) 2>conftest.er1
20082   ac_status=$?
20083   grep -v '^ *+' conftest.er1 >conftest.err
20084   rm -f conftest.er1
20085   cat conftest.err >&5
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); } &&
20088          { ac_try='test -z "$ac_c_werror_flag"
20089                          || test ! -s conftest.err'
20090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091   (eval $ac_try) 2>&5
20092   ac_status=$?
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); }; } &&
20095          { ac_try='test -s conftest.$ac_objext'
20096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097   (eval $ac_try) 2>&5
20098   ac_status=$?
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); }; }; then
20101
20102         cat >conftest.$ac_ext <<_ACEOF
20103 /* confdefs.h.  */
20104 _ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h.  */
20108 #include <pthread.h>
20109
20110 _ACEOF
20111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20112   $EGREP "pthread_detach" >/dev/null 2>&1; then
20113   ol_cv_pthread_version=10
20114 else
20115   ol_cv_pthread_version=8
20116 fi
20117 rm -f conftest*
20118
20119 else
20120   echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123
20124         cat >conftest.$ac_ext <<_ACEOF
20125 /* confdefs.h.  */
20126 _ACEOF
20127 cat confdefs.h >>conftest.$ac_ext
20128 cat >>conftest.$ac_ext <<_ACEOF
20129 /* end confdefs.h.  */
20130
20131 #               include <pthread.h>
20132 #               ifdef PTHREAD_CREATE_UNDETACHED
20133                 draft7
20134 #               endif
20135
20136 _ACEOF
20137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20138   $EGREP "draft7" >/dev/null 2>&1; then
20139   ol_cv_pthread_version=7
20140 else
20141
20142         cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 #include <pthread.h>
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20153   ol_cv_pthread_version=6
20154 else
20155
20156         cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 #               include <pthread.h>
20164 #ifdef          PTHREAD_MUTEX_INITIALIZER
20165                 draft5
20166 #endif
20167
20168 _ACEOF
20169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20170   $EGREP "draft5" >/dev/null 2>&1; then
20171   ol_cv_pthread_version=5
20172 else
20173   ol_cv_pthread_version=4
20174 fi
20175 rm -f conftest*
20176
20177 fi
20178 rm -f conftest*
20179
20180 fi
20181 rm -f conftest*
20182
20183 fi
20184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20185
20186 fi
20187 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20188 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20189
20190
20191                 if test $ol_cv_pthread_version != 0 ; then
20192
20193 cat >>confdefs.h <<_ACEOF
20194 #define HAVE_PTHREADS $ol_cv_pthread_version
20195 _ACEOF
20196
20197                 else
20198                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20199 echo "$as_me: error: unknown pthread version" >&2;}
20200    { (exit 1); exit 1; }; }
20201                 fi
20202
20203                 # consider threads found
20204                 ol_with_threads=found
20205
20206
20207         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20208 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20209 if test "${ol_cv_header_linux_threads+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h.  */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h.  */
20218 #include <pthread.h>
20219 _ACEOF
20220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20221   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20222   ol_cv_header_linux_threads=yes
20223 else
20224   ol_cv_header_linux_threads=no
20225 fi
20226 rm -f conftest*
20227
20228
20229 fi
20230 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20231 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20232         if test $ol_cv_header_linux_threads = yes; then
20233
20234 cat >>confdefs.h <<\_ACEOF
20235 #define HAVE_LINUX_THREADS 1
20236 _ACEOF
20237
20238         fi
20239
20240
20241         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20242 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20243 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20244   echo $ECHO_N "(cached) $ECHO_C" >&6
20245 else
20246   cat >conftest.$ac_ext <<_ACEOF
20247 /* confdefs.h.  */
20248 _ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h.  */
20252 #include <pthread.h>
20253 #ifdef _POSIX_THREAD_IS_GNU_PTH
20254         __gnu_pth__;
20255 #endif
20256
20257 _ACEOF
20258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20259   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20260   ol_cv_header_gnu_pth_pthread_h=yes
20261 else
20262   ol_cv_header_gnu_pth_pthread_h=no
20263 fi
20264 rm -f conftest*
20265
20266
20267 fi
20268 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20269 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20270
20271
20272                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20273
20274 for ac_header in sched.h
20275 do
20276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20278   echo "$as_me:$LINENO: checking for $ac_header" >&5
20279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 fi
20283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20285 else
20286   # Is the header compilable?
20287 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20289 cat >conftest.$ac_ext <<_ACEOF
20290 /* confdefs.h.  */
20291 _ACEOF
20292 cat confdefs.h >>conftest.$ac_ext
20293 cat >>conftest.$ac_ext <<_ACEOF
20294 /* end confdefs.h.  */
20295 $ac_includes_default
20296 #include <$ac_header>
20297 _ACEOF
20298 rm -f conftest.$ac_objext
20299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20300   (eval $ac_compile) 2>conftest.er1
20301   ac_status=$?
20302   grep -v '^ *+' conftest.er1 >conftest.err
20303   rm -f conftest.er1
20304   cat conftest.err >&5
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); } &&
20307          { ac_try='test -z "$ac_c_werror_flag"
20308                          || test ! -s conftest.err'
20309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310   (eval $ac_try) 2>&5
20311   ac_status=$?
20312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313   (exit $ac_status); }; } &&
20314          { ac_try='test -s conftest.$ac_objext'
20315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316   (eval $ac_try) 2>&5
20317   ac_status=$?
20318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319   (exit $ac_status); }; }; then
20320   ac_header_compiler=yes
20321 else
20322   echo "$as_me: failed program was:" >&5
20323 sed 's/^/| /' conftest.$ac_ext >&5
20324
20325 ac_header_compiler=no
20326 fi
20327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20328 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20329 echo "${ECHO_T}$ac_header_compiler" >&6
20330
20331 # Is the header present?
20332 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20334 cat >conftest.$ac_ext <<_ACEOF
20335 /* confdefs.h.  */
20336 _ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h.  */
20340 #include <$ac_header>
20341 _ACEOF
20342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20344   ac_status=$?
20345   grep -v '^ *+' conftest.er1 >conftest.err
20346   rm -f conftest.er1
20347   cat conftest.err >&5
20348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349   (exit $ac_status); } >/dev/null; then
20350   if test -s conftest.err; then
20351     ac_cpp_err=$ac_c_preproc_warn_flag
20352     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20353   else
20354     ac_cpp_err=
20355   fi
20356 else
20357   ac_cpp_err=yes
20358 fi
20359 if test -z "$ac_cpp_err"; then
20360   ac_header_preproc=yes
20361 else
20362   echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20364
20365   ac_header_preproc=no
20366 fi
20367 rm -f conftest.err conftest.$ac_ext
20368 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20369 echo "${ECHO_T}$ac_header_preproc" >&6
20370
20371 # So?  What about this header?
20372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20373   yes:no: )
20374     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20378     ac_header_preproc=yes
20379     ;;
20380   no:yes:* )
20381     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20383     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20384 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20385     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20387     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20388 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20389     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20391     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20393     (
20394       cat <<\_ASBOX
20395 ## --------------------------------------------- ##
20396 ## Report this to <http://www.openldap.org/its/> ##
20397 ## --------------------------------------------- ##
20398 _ASBOX
20399     ) |
20400       sed "s/^/$as_me: WARNING:     /" >&2
20401     ;;
20402 esac
20403 echo "$as_me:$LINENO: checking for $ac_header" >&5
20404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20406   echo $ECHO_N "(cached) $ECHO_C" >&6
20407 else
20408   eval "$as_ac_Header=\$ac_header_preproc"
20409 fi
20410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20412
20413 fi
20414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20415   cat >>confdefs.h <<_ACEOF
20416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20417 _ACEOF
20418
20419 fi
20420
20421 done
20422
20423                 fi
20424
20425
20426                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20427 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20428 if test "${ol_cv_pthread_create+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431
20432                         if test "$cross_compiling" = yes; then
20433   cat >conftest.$ac_ext <<_ACEOF
20434 /* confdefs.h.  */
20435 _ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h.  */
20439
20440 /* pthread test headers */
20441 #include <pthread.h>
20442 #if HAVE_PTHREADS < 7
20443 #include <errno.h>
20444 #endif
20445 #ifndef NULL
20446 #define NULL (void*)0
20447 #endif
20448
20449 static void *task(p)
20450         void *p;
20451 {
20452         return (void *) (p == NULL);
20453 }
20454
20455 int
20456 main ()
20457 {
20458
20459         /* pthread test function */
20460 #ifndef PTHREAD_CREATE_DETACHED
20461 #define PTHREAD_CREATE_DETACHED 1
20462 #endif
20463         pthread_t t;
20464         int status;
20465         int detach = PTHREAD_CREATE_DETACHED;
20466
20467 #if HAVE_PTHREADS > 4
20468         /* Final pthreads */
20469         pthread_attr_t attr;
20470
20471         status = pthread_attr_init(&attr);
20472         if( status ) return status;
20473
20474 #if HAVE_PTHREADS < 7
20475         status = pthread_attr_setdetachstate(&attr, &detach);
20476         if( status < 0 ) status = errno;
20477 #else
20478         status = pthread_attr_setdetachstate(&attr, detach);
20479 #endif
20480         if( status ) return status;
20481         status = pthread_create( &t, &attr, task, NULL );
20482 #if HAVE_PTHREADS < 7
20483         if( status < 0 ) status = errno;
20484 #endif
20485         if( status ) return status;
20486 #else
20487         /* Draft 4 pthreads */
20488         status = pthread_create( &t, pthread_attr_default, task, NULL );
20489         if( status ) return errno;
20490
20491         /* give thread a chance to complete */
20492         /* it should remain joinable and hence detachable */
20493         sleep( 1 );
20494
20495         status = pthread_detach( &t );
20496         if( status ) return errno;
20497 #endif
20498
20499 #ifdef HAVE_LINUX_THREADS
20500         pthread_kill_other_threads_np();
20501 #endif
20502
20503         return 0;
20504
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 rm -f conftest.$ac_objext conftest$ac_exeext
20510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20511   (eval $ac_link) 2>conftest.er1
20512   ac_status=$?
20513   grep -v '^ *+' conftest.er1 >conftest.err
20514   rm -f conftest.er1
20515   cat conftest.err >&5
20516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517   (exit $ac_status); } &&
20518          { ac_try='test -z "$ac_c_werror_flag"
20519                          || test ! -s conftest.err'
20520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521   (eval $ac_try) 2>&5
20522   ac_status=$?
20523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524   (exit $ac_status); }; } &&
20525          { ac_try='test -s conftest$ac_exeext'
20526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20527   (eval $ac_try) 2>&5
20528   ac_status=$?
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); }; }; then
20531   ol_cv_pthread_create=yes
20532 else
20533   echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20535
20536 ol_cv_pthread_create=no
20537 fi
20538 rm -f conftest.err conftest.$ac_objext \
20539       conftest$ac_exeext conftest.$ac_ext
20540 else
20541   cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547
20548 /* pthread test headers */
20549 #include <pthread.h>
20550 #if HAVE_PTHREADS < 7
20551 #include <errno.h>
20552 #endif
20553 #ifndef NULL
20554 #define NULL (void*)0
20555 #endif
20556
20557 static void *task(p)
20558         void *p;
20559 {
20560         return (void *) (p == NULL);
20561 }
20562
20563
20564 int main(argc, argv)
20565         int argc;
20566         char **argv;
20567 {
20568
20569         /* pthread test function */
20570 #ifndef PTHREAD_CREATE_DETACHED
20571 #define PTHREAD_CREATE_DETACHED 1
20572 #endif
20573         pthread_t t;
20574         int status;
20575         int detach = PTHREAD_CREATE_DETACHED;
20576
20577 #if HAVE_PTHREADS > 4
20578         /* Final pthreads */
20579         pthread_attr_t attr;
20580
20581         status = pthread_attr_init(&attr);
20582         if( status ) return status;
20583
20584 #if HAVE_PTHREADS < 7
20585         status = pthread_attr_setdetachstate(&attr, &detach);
20586         if( status < 0 ) status = errno;
20587 #else
20588         status = pthread_attr_setdetachstate(&attr, detach);
20589 #endif
20590         if( status ) return status;
20591         status = pthread_create( &t, &attr, task, NULL );
20592 #if HAVE_PTHREADS < 7
20593         if( status < 0 ) status = errno;
20594 #endif
20595         if( status ) return status;
20596 #else
20597         /* Draft 4 pthreads */
20598         status = pthread_create( &t, pthread_attr_default, task, NULL );
20599         if( status ) return errno;
20600
20601         /* give thread a chance to complete */
20602         /* it should remain joinable and hence detachable */
20603         sleep( 1 );
20604
20605         status = pthread_detach( &t );
20606         if( status ) return errno;
20607 #endif
20608
20609 #ifdef HAVE_LINUX_THREADS
20610         pthread_kill_other_threads_np();
20611 #endif
20612
20613         return 0;
20614
20615 }
20616
20617 _ACEOF
20618 rm -f conftest$ac_exeext
20619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20620   (eval $ac_link) 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; }; then
20629   ol_cv_pthread_create=yes
20630 else
20631   echo "$as_me: program exited with status $ac_status" >&5
20632 echo "$as_me: failed program was:" >&5
20633 sed 's/^/| /' conftest.$ac_ext >&5
20634
20635 ( exit $ac_status )
20636 ol_cv_pthread_create=no
20637 fi
20638 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20639 fi
20640 fi
20641 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20642 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20643
20644                 if test $ol_cv_pthread_create != no ; then
20645                         ol_link_threads=posix
20646                         ol_link_pthreads=""
20647                 fi
20648
20649                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20650 if test "$ol_link_threads" = no ; then
20651         # try -kthread
20652         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20653 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20654 if test "${ol_cv_pthread_kthread+set}" = set; then
20655   echo $ECHO_N "(cached) $ECHO_C" >&6
20656 else
20657
20658                 # save the flags
20659                 ol_LIBS="$LIBS"
20660                 LIBS="-kthread $LIBS"
20661
20662                 if test "$cross_compiling" = yes; then
20663   cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h.  */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h.  */
20669
20670 /* pthread test headers */
20671 #include <pthread.h>
20672 #if HAVE_PTHREADS < 7
20673 #include <errno.h>
20674 #endif
20675 #ifndef NULL
20676 #define NULL (void*)0
20677 #endif
20678
20679 static void *task(p)
20680         void *p;
20681 {
20682         return (void *) (p == NULL);
20683 }
20684
20685 int
20686 main ()
20687 {
20688
20689         /* pthread test function */
20690 #ifndef PTHREAD_CREATE_DETACHED
20691 #define PTHREAD_CREATE_DETACHED 1
20692 #endif
20693         pthread_t t;
20694         int status;
20695         int detach = PTHREAD_CREATE_DETACHED;
20696
20697 #if HAVE_PTHREADS > 4
20698         /* Final pthreads */
20699         pthread_attr_t attr;
20700
20701         status = pthread_attr_init(&attr);
20702         if( status ) return status;
20703
20704 #if HAVE_PTHREADS < 7
20705         status = pthread_attr_setdetachstate(&attr, &detach);
20706         if( status < 0 ) status = errno;
20707 #else
20708         status = pthread_attr_setdetachstate(&attr, detach);
20709 #endif
20710         if( status ) return status;
20711         status = pthread_create( &t, &attr, task, NULL );
20712 #if HAVE_PTHREADS < 7
20713         if( status < 0 ) status = errno;
20714 #endif
20715         if( status ) return status;
20716 #else
20717         /* Draft 4 pthreads */
20718         status = pthread_create( &t, pthread_attr_default, task, NULL );
20719         if( status ) return errno;
20720
20721         /* give thread a chance to complete */
20722         /* it should remain joinable and hence detachable */
20723         sleep( 1 );
20724
20725         status = pthread_detach( &t );
20726         if( status ) return errno;
20727 #endif
20728
20729 #ifdef HAVE_LINUX_THREADS
20730         pthread_kill_other_threads_np();
20731 #endif
20732
20733         return 0;
20734
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20741   (eval $ac_link) 2>conftest.er1
20742   ac_status=$?
20743   grep -v '^ *+' conftest.er1 >conftest.err
20744   rm -f conftest.er1
20745   cat conftest.err >&5
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); } &&
20748          { ac_try='test -z "$ac_c_werror_flag"
20749                          || test ! -s conftest.err'
20750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751   (eval $ac_try) 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest$ac_exeext'
20756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757   (eval $ac_try) 2>&5
20758   ac_status=$?
20759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760   (exit $ac_status); }; }; then
20761   ol_cv_pthread_kthread=yes
20762 else
20763   echo "$as_me: failed program was:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20765
20766 ol_cv_pthread_kthread=no
20767 fi
20768 rm -f conftest.err conftest.$ac_objext \
20769       conftest$ac_exeext conftest.$ac_ext
20770 else
20771   cat >conftest.$ac_ext <<_ACEOF
20772 /* confdefs.h.  */
20773 _ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h.  */
20777
20778 /* pthread test headers */
20779 #include <pthread.h>
20780 #if HAVE_PTHREADS < 7
20781 #include <errno.h>
20782 #endif
20783 #ifndef NULL
20784 #define NULL (void*)0
20785 #endif
20786
20787 static void *task(p)
20788         void *p;
20789 {
20790         return (void *) (p == NULL);
20791 }
20792
20793
20794 int main(argc, argv)
20795         int argc;
20796         char **argv;
20797 {
20798
20799         /* pthread test function */
20800 #ifndef PTHREAD_CREATE_DETACHED
20801 #define PTHREAD_CREATE_DETACHED 1
20802 #endif
20803         pthread_t t;
20804         int status;
20805         int detach = PTHREAD_CREATE_DETACHED;
20806
20807 #if HAVE_PTHREADS > 4
20808         /* Final pthreads */
20809         pthread_attr_t attr;
20810
20811         status = pthread_attr_init(&attr);
20812         if( status ) return status;
20813
20814 #if HAVE_PTHREADS < 7
20815         status = pthread_attr_setdetachstate(&attr, &detach);
20816         if( status < 0 ) status = errno;
20817 #else
20818         status = pthread_attr_setdetachstate(&attr, detach);
20819 #endif
20820         if( status ) return status;
20821         status = pthread_create( &t, &attr, task, NULL );
20822 #if HAVE_PTHREADS < 7
20823         if( status < 0 ) status = errno;
20824 #endif
20825         if( status ) return status;
20826 #else
20827         /* Draft 4 pthreads */
20828         status = pthread_create( &t, pthread_attr_default, task, NULL );
20829         if( status ) return errno;
20830
20831         /* give thread a chance to complete */
20832         /* it should remain joinable and hence detachable */
20833         sleep( 1 );
20834
20835         status = pthread_detach( &t );
20836         if( status ) return errno;
20837 #endif
20838
20839 #ifdef HAVE_LINUX_THREADS
20840         pthread_kill_other_threads_np();
20841 #endif
20842
20843         return 0;
20844
20845 }
20846
20847 _ACEOF
20848 rm -f conftest$ac_exeext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20850   (eval $ac_link) 2>&5
20851   ac_status=$?
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ol_cv_pthread_kthread=yes
20860 else
20861   echo "$as_me: program exited with status $ac_status" >&5
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865 ( exit $ac_status )
20866 ol_cv_pthread_kthread=no
20867 fi
20868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20869 fi
20870
20871                 # restore the LIBS
20872                 LIBS="$ol_LIBS"
20873
20874 fi
20875 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20876 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20877
20878         if test $ol_cv_pthread_kthread = yes ; then
20879                 ol_link_pthreads="-kthread"
20880                 ol_link_threads=posix
20881         fi
20882 fi
20883
20884                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20885 if test "$ol_link_threads" = no ; then
20886         # try -pthread
20887         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20888 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20889 if test "${ol_cv_pthread_pthread+set}" = set; then
20890   echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892
20893                 # save the flags
20894                 ol_LIBS="$LIBS"
20895                 LIBS="-pthread $LIBS"
20896
20897                 if test "$cross_compiling" = yes; then
20898   cat >conftest.$ac_ext <<_ACEOF
20899 /* confdefs.h.  */
20900 _ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h.  */
20904
20905 /* pthread test headers */
20906 #include <pthread.h>
20907 #if HAVE_PTHREADS < 7
20908 #include <errno.h>
20909 #endif
20910 #ifndef NULL
20911 #define NULL (void*)0
20912 #endif
20913
20914 static void *task(p)
20915         void *p;
20916 {
20917         return (void *) (p == NULL);
20918 }
20919
20920 int
20921 main ()
20922 {
20923
20924         /* pthread test function */
20925 #ifndef PTHREAD_CREATE_DETACHED
20926 #define PTHREAD_CREATE_DETACHED 1
20927 #endif
20928         pthread_t t;
20929         int status;
20930         int detach = PTHREAD_CREATE_DETACHED;
20931
20932 #if HAVE_PTHREADS > 4
20933         /* Final pthreads */
20934         pthread_attr_t attr;
20935
20936         status = pthread_attr_init(&attr);
20937         if( status ) return status;
20938
20939 #if HAVE_PTHREADS < 7
20940         status = pthread_attr_setdetachstate(&attr, &detach);
20941         if( status < 0 ) status = errno;
20942 #else
20943         status = pthread_attr_setdetachstate(&attr, detach);
20944 #endif
20945         if( status ) return status;
20946         status = pthread_create( &t, &attr, task, NULL );
20947 #if HAVE_PTHREADS < 7
20948         if( status < 0 ) status = errno;
20949 #endif
20950         if( status ) return status;
20951 #else
20952         /* Draft 4 pthreads */
20953         status = pthread_create( &t, pthread_attr_default, task, NULL );
20954         if( status ) return errno;
20955
20956         /* give thread a chance to complete */
20957         /* it should remain joinable and hence detachable */
20958         sleep( 1 );
20959
20960         status = pthread_detach( &t );
20961         if( status ) return errno;
20962 #endif
20963
20964 #ifdef HAVE_LINUX_THREADS
20965         pthread_kill_other_threads_np();
20966 #endif
20967
20968         return 0;
20969
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20976   (eval $ac_link) 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } &&
20983          { ac_try='test -z "$ac_c_werror_flag"
20984                          || test ! -s conftest.err'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; } &&
20990          { ac_try='test -s conftest$ac_exeext'
20991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20992   (eval $ac_try) 2>&5
20993   ac_status=$?
20994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995   (exit $ac_status); }; }; then
20996   ol_cv_pthread_pthread=yes
20997 else
20998   echo "$as_me: failed program was:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21000
21001 ol_cv_pthread_pthread=no
21002 fi
21003 rm -f conftest.err conftest.$ac_objext \
21004       conftest$ac_exeext conftest.$ac_ext
21005 else
21006   cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h.  */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h.  */
21012
21013 /* pthread test headers */
21014 #include <pthread.h>
21015 #if HAVE_PTHREADS < 7
21016 #include <errno.h>
21017 #endif
21018 #ifndef NULL
21019 #define NULL (void*)0
21020 #endif
21021
21022 static void *task(p)
21023         void *p;
21024 {
21025         return (void *) (p == NULL);
21026 }
21027
21028
21029 int main(argc, argv)
21030         int argc;
21031         char **argv;
21032 {
21033
21034         /* pthread test function */
21035 #ifndef PTHREAD_CREATE_DETACHED
21036 #define PTHREAD_CREATE_DETACHED 1
21037 #endif
21038         pthread_t t;
21039         int status;
21040         int detach = PTHREAD_CREATE_DETACHED;
21041
21042 #if HAVE_PTHREADS > 4
21043         /* Final pthreads */
21044         pthread_attr_t attr;
21045
21046         status = pthread_attr_init(&attr);
21047         if( status ) return status;
21048
21049 #if HAVE_PTHREADS < 7
21050         status = pthread_attr_setdetachstate(&attr, &detach);
21051         if( status < 0 ) status = errno;
21052 #else
21053         status = pthread_attr_setdetachstate(&attr, detach);
21054 #endif
21055         if( status ) return status;
21056         status = pthread_create( &t, &attr, task, NULL );
21057 #if HAVE_PTHREADS < 7
21058         if( status < 0 ) status = errno;
21059 #endif
21060         if( status ) return status;
21061 #else
21062         /* Draft 4 pthreads */
21063         status = pthread_create( &t, pthread_attr_default, task, NULL );
21064         if( status ) return errno;
21065
21066         /* give thread a chance to complete */
21067         /* it should remain joinable and hence detachable */
21068         sleep( 1 );
21069
21070         status = pthread_detach( &t );
21071         if( status ) return errno;
21072 #endif
21073
21074 #ifdef HAVE_LINUX_THREADS
21075         pthread_kill_other_threads_np();
21076 #endif
21077
21078         return 0;
21079
21080 }
21081
21082 _ACEOF
21083 rm -f conftest$ac_exeext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21085   (eval $ac_link) 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090   (eval $ac_try) 2>&5
21091   ac_status=$?
21092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093   (exit $ac_status); }; }; then
21094   ol_cv_pthread_pthread=yes
21095 else
21096   echo "$as_me: program exited with status $ac_status" >&5
21097 echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 ( exit $ac_status )
21101 ol_cv_pthread_pthread=no
21102 fi
21103 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21104 fi
21105
21106                 # restore the LIBS
21107                 LIBS="$ol_LIBS"
21108
21109 fi
21110 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21111 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21112
21113         if test $ol_cv_pthread_pthread = yes ; then
21114                 ol_link_pthreads="-pthread"
21115                 ol_link_threads=posix
21116         fi
21117 fi
21118
21119                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21120 if test "$ol_link_threads" = no ; then
21121         # try -pthreads
21122         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21123 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21124 if test "${ol_cv_pthread_pthreads+set}" = set; then
21125   echo $ECHO_N "(cached) $ECHO_C" >&6
21126 else
21127
21128                 # save the flags
21129                 ol_LIBS="$LIBS"
21130                 LIBS="-pthreads $LIBS"
21131
21132                 if test "$cross_compiling" = yes; then
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139
21140 /* pthread test headers */
21141 #include <pthread.h>
21142 #if HAVE_PTHREADS < 7
21143 #include <errno.h>
21144 #endif
21145 #ifndef NULL
21146 #define NULL (void*)0
21147 #endif
21148
21149 static void *task(p)
21150         void *p;
21151 {
21152         return (void *) (p == NULL);
21153 }
21154
21155 int
21156 main ()
21157 {
21158
21159         /* pthread test function */
21160 #ifndef PTHREAD_CREATE_DETACHED
21161 #define PTHREAD_CREATE_DETACHED 1
21162 #endif
21163         pthread_t t;
21164         int status;
21165         int detach = PTHREAD_CREATE_DETACHED;
21166
21167 #if HAVE_PTHREADS > 4
21168         /* Final pthreads */
21169         pthread_attr_t attr;
21170
21171         status = pthread_attr_init(&attr);
21172         if( status ) return status;
21173
21174 #if HAVE_PTHREADS < 7
21175         status = pthread_attr_setdetachstate(&attr, &detach);
21176         if( status < 0 ) status = errno;
21177 #else
21178         status = pthread_attr_setdetachstate(&attr, detach);
21179 #endif
21180         if( status ) return status;
21181         status = pthread_create( &t, &attr, task, NULL );
21182 #if HAVE_PTHREADS < 7
21183         if( status < 0 ) status = errno;
21184 #endif
21185         if( status ) return status;
21186 #else
21187         /* Draft 4 pthreads */
21188         status = pthread_create( &t, pthread_attr_default, task, NULL );
21189         if( status ) return errno;
21190
21191         /* give thread a chance to complete */
21192         /* it should remain joinable and hence detachable */
21193         sleep( 1 );
21194
21195         status = pthread_detach( &t );
21196         if( status ) return errno;
21197 #endif
21198
21199 #ifdef HAVE_LINUX_THREADS
21200         pthread_kill_other_threads_np();
21201 #endif
21202
21203         return 0;
21204
21205   ;
21206   return 0;
21207 }
21208 _ACEOF
21209 rm -f conftest.$ac_objext conftest$ac_exeext
21210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21211   (eval $ac_link) 2>conftest.er1
21212   ac_status=$?
21213   grep -v '^ *+' conftest.er1 >conftest.err
21214   rm -f conftest.er1
21215   cat conftest.err >&5
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); } &&
21218          { ac_try='test -z "$ac_c_werror_flag"
21219                          || test ! -s conftest.err'
21220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21221   (eval $ac_try) 2>&5
21222   ac_status=$?
21223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224   (exit $ac_status); }; } &&
21225          { ac_try='test -s conftest$ac_exeext'
21226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21227   (eval $ac_try) 2>&5
21228   ac_status=$?
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); }; }; then
21231   ol_cv_pthread_pthreads=yes
21232 else
21233   echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21235
21236 ol_cv_pthread_pthreads=no
21237 fi
21238 rm -f conftest.err conftest.$ac_objext \
21239       conftest$ac_exeext conftest.$ac_ext
21240 else
21241   cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247
21248 /* pthread test headers */
21249 #include <pthread.h>
21250 #if HAVE_PTHREADS < 7
21251 #include <errno.h>
21252 #endif
21253 #ifndef NULL
21254 #define NULL (void*)0
21255 #endif
21256
21257 static void *task(p)
21258         void *p;
21259 {
21260         return (void *) (p == NULL);
21261 }
21262
21263
21264 int main(argc, argv)
21265         int argc;
21266         char **argv;
21267 {
21268
21269         /* pthread test function */
21270 #ifndef PTHREAD_CREATE_DETACHED
21271 #define PTHREAD_CREATE_DETACHED 1
21272 #endif
21273         pthread_t t;
21274         int status;
21275         int detach = PTHREAD_CREATE_DETACHED;
21276
21277 #if HAVE_PTHREADS > 4
21278         /* Final pthreads */
21279         pthread_attr_t attr;
21280
21281         status = pthread_attr_init(&attr);
21282         if( status ) return status;
21283
21284 #if HAVE_PTHREADS < 7
21285         status = pthread_attr_setdetachstate(&attr, &detach);
21286         if( status < 0 ) status = errno;
21287 #else
21288         status = pthread_attr_setdetachstate(&attr, detach);
21289 #endif
21290         if( status ) return status;
21291         status = pthread_create( &t, &attr, task, NULL );
21292 #if HAVE_PTHREADS < 7
21293         if( status < 0 ) status = errno;
21294 #endif
21295         if( status ) return status;
21296 #else
21297         /* Draft 4 pthreads */
21298         status = pthread_create( &t, pthread_attr_default, task, NULL );
21299         if( status ) return errno;
21300
21301         /* give thread a chance to complete */
21302         /* it should remain joinable and hence detachable */
21303         sleep( 1 );
21304
21305         status = pthread_detach( &t );
21306         if( status ) return errno;
21307 #endif
21308
21309 #ifdef HAVE_LINUX_THREADS
21310         pthread_kill_other_threads_np();
21311 #endif
21312
21313         return 0;
21314
21315 }
21316
21317 _ACEOF
21318 rm -f conftest$ac_exeext
21319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21320   (eval $ac_link) 2>&5
21321   ac_status=$?
21322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21325   (eval $ac_try) 2>&5
21326   ac_status=$?
21327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328   (exit $ac_status); }; }; then
21329   ol_cv_pthread_pthreads=yes
21330 else
21331   echo "$as_me: program exited with status $ac_status" >&5
21332 echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335 ( exit $ac_status )
21336 ol_cv_pthread_pthreads=no
21337 fi
21338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21339 fi
21340
21341                 # restore the LIBS
21342                 LIBS="$ol_LIBS"
21343
21344 fi
21345 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21346 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21347
21348         if test $ol_cv_pthread_pthreads = yes ; then
21349                 ol_link_pthreads="-pthreads"
21350                 ol_link_threads=posix
21351         fi
21352 fi
21353
21354                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21355 if test "$ol_link_threads" = no ; then
21356         # try -mthreads
21357         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21358 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21359 if test "${ol_cv_pthread_mthreads+set}" = set; then
21360   echo $ECHO_N "(cached) $ECHO_C" >&6
21361 else
21362
21363                 # save the flags
21364                 ol_LIBS="$LIBS"
21365                 LIBS="-mthreads $LIBS"
21366
21367                 if test "$cross_compiling" = yes; then
21368   cat >conftest.$ac_ext <<_ACEOF
21369 /* confdefs.h.  */
21370 _ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h.  */
21374
21375 /* pthread test headers */
21376 #include <pthread.h>
21377 #if HAVE_PTHREADS < 7
21378 #include <errno.h>
21379 #endif
21380 #ifndef NULL
21381 #define NULL (void*)0
21382 #endif
21383
21384 static void *task(p)
21385         void *p;
21386 {
21387         return (void *) (p == NULL);
21388 }
21389
21390 int
21391 main ()
21392 {
21393
21394         /* pthread test function */
21395 #ifndef PTHREAD_CREATE_DETACHED
21396 #define PTHREAD_CREATE_DETACHED 1
21397 #endif
21398         pthread_t t;
21399         int status;
21400         int detach = PTHREAD_CREATE_DETACHED;
21401
21402 #if HAVE_PTHREADS > 4
21403         /* Final pthreads */
21404         pthread_attr_t attr;
21405
21406         status = pthread_attr_init(&attr);
21407         if( status ) return status;
21408
21409 #if HAVE_PTHREADS < 7
21410         status = pthread_attr_setdetachstate(&attr, &detach);
21411         if( status < 0 ) status = errno;
21412 #else
21413         status = pthread_attr_setdetachstate(&attr, detach);
21414 #endif
21415         if( status ) return status;
21416         status = pthread_create( &t, &attr, task, NULL );
21417 #if HAVE_PTHREADS < 7
21418         if( status < 0 ) status = errno;
21419 #endif
21420         if( status ) return status;
21421 #else
21422         /* Draft 4 pthreads */
21423         status = pthread_create( &t, pthread_attr_default, task, NULL );
21424         if( status ) return errno;
21425
21426         /* give thread a chance to complete */
21427         /* it should remain joinable and hence detachable */
21428         sleep( 1 );
21429
21430         status = pthread_detach( &t );
21431         if( status ) return errno;
21432 #endif
21433
21434 #ifdef HAVE_LINUX_THREADS
21435         pthread_kill_other_threads_np();
21436 #endif
21437
21438         return 0;
21439
21440   ;
21441   return 0;
21442 }
21443 _ACEOF
21444 rm -f conftest.$ac_objext conftest$ac_exeext
21445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21446   (eval $ac_link) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } &&
21453          { ac_try='test -z "$ac_c_werror_flag"
21454                          || test ! -s conftest.err'
21455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456   (eval $ac_try) 2>&5
21457   ac_status=$?
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); }; } &&
21460          { ac_try='test -s conftest$ac_exeext'
21461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21462   (eval $ac_try) 2>&5
21463   ac_status=$?
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); }; }; then
21466   ol_cv_pthread_mthreads=yes
21467 else
21468   echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471 ol_cv_pthread_mthreads=no
21472 fi
21473 rm -f conftest.err conftest.$ac_objext \
21474       conftest$ac_exeext conftest.$ac_ext
21475 else
21476   cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h.  */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h.  */
21482
21483 /* pthread test headers */
21484 #include <pthread.h>
21485 #if HAVE_PTHREADS < 7
21486 #include <errno.h>
21487 #endif
21488 #ifndef NULL
21489 #define NULL (void*)0
21490 #endif
21491
21492 static void *task(p)
21493         void *p;
21494 {
21495         return (void *) (p == NULL);
21496 }
21497
21498
21499 int main(argc, argv)
21500         int argc;
21501         char **argv;
21502 {
21503
21504         /* pthread test function */
21505 #ifndef PTHREAD_CREATE_DETACHED
21506 #define PTHREAD_CREATE_DETACHED 1
21507 #endif
21508         pthread_t t;
21509         int status;
21510         int detach = PTHREAD_CREATE_DETACHED;
21511
21512 #if HAVE_PTHREADS > 4
21513         /* Final pthreads */
21514         pthread_attr_t attr;
21515
21516         status = pthread_attr_init(&attr);
21517         if( status ) return status;
21518
21519 #if HAVE_PTHREADS < 7
21520         status = pthread_attr_setdetachstate(&attr, &detach);
21521         if( status < 0 ) status = errno;
21522 #else
21523         status = pthread_attr_setdetachstate(&attr, detach);
21524 #endif
21525         if( status ) return status;
21526         status = pthread_create( &t, &attr, task, NULL );
21527 #if HAVE_PTHREADS < 7
21528         if( status < 0 ) status = errno;
21529 #endif
21530         if( status ) return status;
21531 #else
21532         /* Draft 4 pthreads */
21533         status = pthread_create( &t, pthread_attr_default, task, NULL );
21534         if( status ) return errno;
21535
21536         /* give thread a chance to complete */
21537         /* it should remain joinable and hence detachable */
21538         sleep( 1 );
21539
21540         status = pthread_detach( &t );
21541         if( status ) return errno;
21542 #endif
21543
21544 #ifdef HAVE_LINUX_THREADS
21545         pthread_kill_other_threads_np();
21546 #endif
21547
21548         return 0;
21549
21550 }
21551
21552 _ACEOF
21553 rm -f conftest$ac_exeext
21554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21555   (eval $ac_link) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21560   (eval $ac_try) 2>&5
21561   ac_status=$?
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); }; }; then
21564   ol_cv_pthread_mthreads=yes
21565 else
21566   echo "$as_me: program exited with status $ac_status" >&5
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ( exit $ac_status )
21571 ol_cv_pthread_mthreads=no
21572 fi
21573 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21574 fi
21575
21576                 # restore the LIBS
21577                 LIBS="$ol_LIBS"
21578
21579 fi
21580 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21581 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21582
21583         if test $ol_cv_pthread_mthreads = yes ; then
21584                 ol_link_pthreads="-mthreads"
21585                 ol_link_threads=posix
21586         fi
21587 fi
21588
21589                 # Pthread try link: -thread (ol_cv_pthread_thread)
21590 if test "$ol_link_threads" = no ; then
21591         # try -thread
21592         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21593 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21594 if test "${ol_cv_pthread_thread+set}" = set; then
21595   echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597
21598                 # save the flags
21599                 ol_LIBS="$LIBS"
21600                 LIBS="-thread $LIBS"
21601
21602                 if test "$cross_compiling" = yes; then
21603   cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h.  */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h.  */
21609
21610 /* pthread test headers */
21611 #include <pthread.h>
21612 #if HAVE_PTHREADS < 7
21613 #include <errno.h>
21614 #endif
21615 #ifndef NULL
21616 #define NULL (void*)0
21617 #endif
21618
21619 static void *task(p)
21620         void *p;
21621 {
21622         return (void *) (p == NULL);
21623 }
21624
21625 int
21626 main ()
21627 {
21628
21629         /* pthread test function */
21630 #ifndef PTHREAD_CREATE_DETACHED
21631 #define PTHREAD_CREATE_DETACHED 1
21632 #endif
21633         pthread_t t;
21634         int status;
21635         int detach = PTHREAD_CREATE_DETACHED;
21636
21637 #if HAVE_PTHREADS > 4
21638         /* Final pthreads */
21639         pthread_attr_t attr;
21640
21641         status = pthread_attr_init(&attr);
21642         if( status ) return status;
21643
21644 #if HAVE_PTHREADS < 7
21645         status = pthread_attr_setdetachstate(&attr, &detach);
21646         if( status < 0 ) status = errno;
21647 #else
21648         status = pthread_attr_setdetachstate(&attr, detach);
21649 #endif
21650         if( status ) return status;
21651         status = pthread_create( &t, &attr, task, NULL );
21652 #if HAVE_PTHREADS < 7
21653         if( status < 0 ) status = errno;
21654 #endif
21655         if( status ) return status;
21656 #else
21657         /* Draft 4 pthreads */
21658         status = pthread_create( &t, pthread_attr_default, task, NULL );
21659         if( status ) return errno;
21660
21661         /* give thread a chance to complete */
21662         /* it should remain joinable and hence detachable */
21663         sleep( 1 );
21664
21665         status = pthread_detach( &t );
21666         if( status ) return errno;
21667 #endif
21668
21669 #ifdef HAVE_LINUX_THREADS
21670         pthread_kill_other_threads_np();
21671 #endif
21672
21673         return 0;
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681   (eval $ac_link) 2>conftest.er1
21682   ac_status=$?
21683   grep -v '^ *+' conftest.er1 >conftest.err
21684   rm -f conftest.er1
21685   cat conftest.err >&5
21686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687   (exit $ac_status); } &&
21688          { ac_try='test -z "$ac_c_werror_flag"
21689                          || test ! -s conftest.err'
21690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21691   (eval $ac_try) 2>&5
21692   ac_status=$?
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); }; } &&
21695          { ac_try='test -s conftest$ac_exeext'
21696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21697   (eval $ac_try) 2>&5
21698   ac_status=$?
21699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700   (exit $ac_status); }; }; then
21701   ol_cv_pthread_thread=yes
21702 else
21703   echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21705
21706 ol_cv_pthread_thread=no
21707 fi
21708 rm -f conftest.err conftest.$ac_objext \
21709       conftest$ac_exeext conftest.$ac_ext
21710 else
21711   cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h.  */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h.  */
21717
21718 /* pthread test headers */
21719 #include <pthread.h>
21720 #if HAVE_PTHREADS < 7
21721 #include <errno.h>
21722 #endif
21723 #ifndef NULL
21724 #define NULL (void*)0
21725 #endif
21726
21727 static void *task(p)
21728         void *p;
21729 {
21730         return (void *) (p == NULL);
21731 }
21732
21733
21734 int main(argc, argv)
21735         int argc;
21736         char **argv;
21737 {
21738
21739         /* pthread test function */
21740 #ifndef PTHREAD_CREATE_DETACHED
21741 #define PTHREAD_CREATE_DETACHED 1
21742 #endif
21743         pthread_t t;
21744         int status;
21745         int detach = PTHREAD_CREATE_DETACHED;
21746
21747 #if HAVE_PTHREADS > 4
21748         /* Final pthreads */
21749         pthread_attr_t attr;
21750
21751         status = pthread_attr_init(&attr);
21752         if( status ) return status;
21753
21754 #if HAVE_PTHREADS < 7
21755         status = pthread_attr_setdetachstate(&attr, &detach);
21756         if( status < 0 ) status = errno;
21757 #else
21758         status = pthread_attr_setdetachstate(&attr, detach);
21759 #endif
21760         if( status ) return status;
21761         status = pthread_create( &t, &attr, task, NULL );
21762 #if HAVE_PTHREADS < 7
21763         if( status < 0 ) status = errno;
21764 #endif
21765         if( status ) return status;
21766 #else
21767         /* Draft 4 pthreads */
21768         status = pthread_create( &t, pthread_attr_default, task, NULL );
21769         if( status ) return errno;
21770
21771         /* give thread a chance to complete */
21772         /* it should remain joinable and hence detachable */
21773         sleep( 1 );
21774
21775         status = pthread_detach( &t );
21776         if( status ) return errno;
21777 #endif
21778
21779 #ifdef HAVE_LINUX_THREADS
21780         pthread_kill_other_threads_np();
21781 #endif
21782
21783         return 0;
21784
21785 }
21786
21787 _ACEOF
21788 rm -f conftest$ac_exeext
21789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21790   (eval $ac_link) 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795   (eval $ac_try) 2>&5
21796   ac_status=$?
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); }; }; then
21799   ol_cv_pthread_thread=yes
21800 else
21801   echo "$as_me: program exited with status $ac_status" >&5
21802 echo "$as_me: failed program was:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21804
21805 ( exit $ac_status )
21806 ol_cv_pthread_thread=no
21807 fi
21808 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21809 fi
21810
21811                 # restore the LIBS
21812                 LIBS="$ol_LIBS"
21813
21814 fi
21815 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21816 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21817
21818         if test $ol_cv_pthread_thread = yes ; then
21819                 ol_link_pthreads="-thread"
21820                 ol_link_threads=posix
21821         fi
21822 fi
21823
21824
21825                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21826 if test "$ol_link_threads" = no ; then
21827         # try -lpthread -lmach -lexc -lc_r
21828         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21829 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21830 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21831   echo $ECHO_N "(cached) $ECHO_C" >&6
21832 else
21833
21834                 # save the flags
21835                 ol_LIBS="$LIBS"
21836                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21837
21838                 if test "$cross_compiling" = yes; then
21839   cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h.  */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h.  */
21845
21846 /* pthread test headers */
21847 #include <pthread.h>
21848 #if HAVE_PTHREADS < 7
21849 #include <errno.h>
21850 #endif
21851 #ifndef NULL
21852 #define NULL (void*)0
21853 #endif
21854
21855 static void *task(p)
21856         void *p;
21857 {
21858         return (void *) (p == NULL);
21859 }
21860
21861 int
21862 main ()
21863 {
21864
21865         /* pthread test function */
21866 #ifndef PTHREAD_CREATE_DETACHED
21867 #define PTHREAD_CREATE_DETACHED 1
21868 #endif
21869         pthread_t t;
21870         int status;
21871         int detach = PTHREAD_CREATE_DETACHED;
21872
21873 #if HAVE_PTHREADS > 4
21874         /* Final pthreads */
21875         pthread_attr_t attr;
21876
21877         status = pthread_attr_init(&attr);
21878         if( status ) return status;
21879
21880 #if HAVE_PTHREADS < 7
21881         status = pthread_attr_setdetachstate(&attr, &detach);
21882         if( status < 0 ) status = errno;
21883 #else
21884         status = pthread_attr_setdetachstate(&attr, detach);
21885 #endif
21886         if( status ) return status;
21887         status = pthread_create( &t, &attr, task, NULL );
21888 #if HAVE_PTHREADS < 7
21889         if( status < 0 ) status = errno;
21890 #endif
21891         if( status ) return status;
21892 #else
21893         /* Draft 4 pthreads */
21894         status = pthread_create( &t, pthread_attr_default, task, NULL );
21895         if( status ) return errno;
21896
21897         /* give thread a chance to complete */
21898         /* it should remain joinable and hence detachable */
21899         sleep( 1 );
21900
21901         status = pthread_detach( &t );
21902         if( status ) return errno;
21903 #endif
21904
21905 #ifdef HAVE_LINUX_THREADS
21906         pthread_kill_other_threads_np();
21907 #endif
21908
21909         return 0;
21910
21911   ;
21912   return 0;
21913 }
21914 _ACEOF
21915 rm -f conftest.$ac_objext conftest$ac_exeext
21916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21917   (eval $ac_link) 2>conftest.er1
21918   ac_status=$?
21919   grep -v '^ *+' conftest.er1 >conftest.err
21920   rm -f conftest.er1
21921   cat conftest.err >&5
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); } &&
21924          { ac_try='test -z "$ac_c_werror_flag"
21925                          || test ! -s conftest.err'
21926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927   (eval $ac_try) 2>&5
21928   ac_status=$?
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); }; } &&
21931          { ac_try='test -s conftest$ac_exeext'
21932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933   (eval $ac_try) 2>&5
21934   ac_status=$?
21935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936   (exit $ac_status); }; }; then
21937   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21938 else
21939   echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21941
21942 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21943 fi
21944 rm -f conftest.err conftest.$ac_objext \
21945       conftest$ac_exeext conftest.$ac_ext
21946 else
21947   cat >conftest.$ac_ext <<_ACEOF
21948 /* confdefs.h.  */
21949 _ACEOF
21950 cat confdefs.h >>conftest.$ac_ext
21951 cat >>conftest.$ac_ext <<_ACEOF
21952 /* end confdefs.h.  */
21953
21954 /* pthread test headers */
21955 #include <pthread.h>
21956 #if HAVE_PTHREADS < 7
21957 #include <errno.h>
21958 #endif
21959 #ifndef NULL
21960 #define NULL (void*)0
21961 #endif
21962
21963 static void *task(p)
21964         void *p;
21965 {
21966         return (void *) (p == NULL);
21967 }
21968
21969
21970 int main(argc, argv)
21971         int argc;
21972         char **argv;
21973 {
21974
21975         /* pthread test function */
21976 #ifndef PTHREAD_CREATE_DETACHED
21977 #define PTHREAD_CREATE_DETACHED 1
21978 #endif
21979         pthread_t t;
21980         int status;
21981         int detach = PTHREAD_CREATE_DETACHED;
21982
21983 #if HAVE_PTHREADS > 4
21984         /* Final pthreads */
21985         pthread_attr_t attr;
21986
21987         status = pthread_attr_init(&attr);
21988         if( status ) return status;
21989
21990 #if HAVE_PTHREADS < 7
21991         status = pthread_attr_setdetachstate(&attr, &detach);
21992         if( status < 0 ) status = errno;
21993 #else
21994         status = pthread_attr_setdetachstate(&attr, detach);
21995 #endif
21996         if( status ) return status;
21997         status = pthread_create( &t, &attr, task, NULL );
21998 #if HAVE_PTHREADS < 7
21999         if( status < 0 ) status = errno;
22000 #endif
22001         if( status ) return status;
22002 #else
22003         /* Draft 4 pthreads */
22004         status = pthread_create( &t, pthread_attr_default, task, NULL );
22005         if( status ) return errno;
22006
22007         /* give thread a chance to complete */
22008         /* it should remain joinable and hence detachable */
22009         sleep( 1 );
22010
22011         status = pthread_detach( &t );
22012         if( status ) return errno;
22013 #endif
22014
22015 #ifdef HAVE_LINUX_THREADS
22016         pthread_kill_other_threads_np();
22017 #endif
22018
22019         return 0;
22020
22021 }
22022
22023 _ACEOF
22024 rm -f conftest$ac_exeext
22025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22026   (eval $ac_link) 2>&5
22027   ac_status=$?
22028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031   (eval $ac_try) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); }; }; then
22035   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22036 else
22037   echo "$as_me: program exited with status $ac_status" >&5
22038 echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041 ( exit $ac_status )
22042 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22043 fi
22044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22045 fi
22046
22047                 # restore the LIBS
22048                 LIBS="$ol_LIBS"
22049
22050 fi
22051 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22052 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22053
22054         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22055                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22056                 ol_link_threads=posix
22057         fi
22058 fi
22059
22060                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22061 if test "$ol_link_threads" = no ; then
22062         # try -lpthread -lmach -lexc
22063         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22064 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22065 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22066   echo $ECHO_N "(cached) $ECHO_C" >&6
22067 else
22068
22069                 # save the flags
22070                 ol_LIBS="$LIBS"
22071                 LIBS="-lpthread -lmach -lexc $LIBS"
22072
22073                 if test "$cross_compiling" = yes; then
22074   cat >conftest.$ac_ext <<_ACEOF
22075 /* confdefs.h.  */
22076 _ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h.  */
22080
22081 /* pthread test headers */
22082 #include <pthread.h>
22083 #if HAVE_PTHREADS < 7
22084 #include <errno.h>
22085 #endif
22086 #ifndef NULL
22087 #define NULL (void*)0
22088 #endif
22089
22090 static void *task(p)
22091         void *p;
22092 {
22093         return (void *) (p == NULL);
22094 }
22095
22096 int
22097 main ()
22098 {
22099
22100         /* pthread test function */
22101 #ifndef PTHREAD_CREATE_DETACHED
22102 #define PTHREAD_CREATE_DETACHED 1
22103 #endif
22104         pthread_t t;
22105         int status;
22106         int detach = PTHREAD_CREATE_DETACHED;
22107
22108 #if HAVE_PTHREADS > 4
22109         /* Final pthreads */
22110         pthread_attr_t attr;
22111
22112         status = pthread_attr_init(&attr);
22113         if( status ) return status;
22114
22115 #if HAVE_PTHREADS < 7
22116         status = pthread_attr_setdetachstate(&attr, &detach);
22117         if( status < 0 ) status = errno;
22118 #else
22119         status = pthread_attr_setdetachstate(&attr, detach);
22120 #endif
22121         if( status ) return status;
22122         status = pthread_create( &t, &attr, task, NULL );
22123 #if HAVE_PTHREADS < 7
22124         if( status < 0 ) status = errno;
22125 #endif
22126         if( status ) return status;
22127 #else
22128         /* Draft 4 pthreads */
22129         status = pthread_create( &t, pthread_attr_default, task, NULL );
22130         if( status ) return errno;
22131
22132         /* give thread a chance to complete */
22133         /* it should remain joinable and hence detachable */
22134         sleep( 1 );
22135
22136         status = pthread_detach( &t );
22137         if( status ) return errno;
22138 #endif
22139
22140 #ifdef HAVE_LINUX_THREADS
22141         pthread_kill_other_threads_np();
22142 #endif
22143
22144         return 0;
22145
22146   ;
22147   return 0;
22148 }
22149 _ACEOF
22150 rm -f conftest.$ac_objext conftest$ac_exeext
22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22152   (eval $ac_link) 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } &&
22159          { ac_try='test -z "$ac_c_werror_flag"
22160                          || test ! -s conftest.err'
22161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162   (eval $ac_try) 2>&5
22163   ac_status=$?
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); }; } &&
22166          { ac_try='test -s conftest$ac_exeext'
22167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168   (eval $ac_try) 2>&5
22169   ac_status=$?
22170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171   (exit $ac_status); }; }; then
22172   ol_cv_pthread_lpthread_lmach_lexc=yes
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ol_cv_pthread_lpthread_lmach_lexc=no
22178 fi
22179 rm -f conftest.err conftest.$ac_objext \
22180       conftest$ac_exeext conftest.$ac_ext
22181 else
22182   cat >conftest.$ac_ext <<_ACEOF
22183 /* confdefs.h.  */
22184 _ACEOF
22185 cat confdefs.h >>conftest.$ac_ext
22186 cat >>conftest.$ac_ext <<_ACEOF
22187 /* end confdefs.h.  */
22188
22189 /* pthread test headers */
22190 #include <pthread.h>
22191 #if HAVE_PTHREADS < 7
22192 #include <errno.h>
22193 #endif
22194 #ifndef NULL
22195 #define NULL (void*)0
22196 #endif
22197
22198 static void *task(p)
22199         void *p;
22200 {
22201         return (void *) (p == NULL);
22202 }
22203
22204
22205 int main(argc, argv)
22206         int argc;
22207         char **argv;
22208 {
22209
22210         /* pthread test function */
22211 #ifndef PTHREAD_CREATE_DETACHED
22212 #define PTHREAD_CREATE_DETACHED 1
22213 #endif
22214         pthread_t t;
22215         int status;
22216         int detach = PTHREAD_CREATE_DETACHED;
22217
22218 #if HAVE_PTHREADS > 4
22219         /* Final pthreads */
22220         pthread_attr_t attr;
22221
22222         status = pthread_attr_init(&attr);
22223         if( status ) return status;
22224
22225 #if HAVE_PTHREADS < 7
22226         status = pthread_attr_setdetachstate(&attr, &detach);
22227         if( status < 0 ) status = errno;
22228 #else
22229         status = pthread_attr_setdetachstate(&attr, detach);
22230 #endif
22231         if( status ) return status;
22232         status = pthread_create( &t, &attr, task, NULL );
22233 #if HAVE_PTHREADS < 7
22234         if( status < 0 ) status = errno;
22235 #endif
22236         if( status ) return status;
22237 #else
22238         /* Draft 4 pthreads */
22239         status = pthread_create( &t, pthread_attr_default, task, NULL );
22240         if( status ) return errno;
22241
22242         /* give thread a chance to complete */
22243         /* it should remain joinable and hence detachable */
22244         sleep( 1 );
22245
22246         status = pthread_detach( &t );
22247         if( status ) return errno;
22248 #endif
22249
22250 #ifdef HAVE_LINUX_THREADS
22251         pthread_kill_other_threads_np();
22252 #endif
22253
22254         return 0;
22255
22256 }
22257
22258 _ACEOF
22259 rm -f conftest$ac_exeext
22260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22261   (eval $ac_link) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ol_cv_pthread_lpthread_lmach_lexc=yes
22271 else
22272   echo "$as_me: program exited with status $ac_status" >&5
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ( exit $ac_status )
22277 ol_cv_pthread_lpthread_lmach_lexc=no
22278 fi
22279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22280 fi
22281
22282                 # restore the LIBS
22283                 LIBS="$ol_LIBS"
22284
22285 fi
22286 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22287 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22288
22289         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22290                 ol_link_pthreads="-lpthread -lmach -lexc"
22291                 ol_link_threads=posix
22292         fi
22293 fi
22294
22295
22296                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22297 if test "$ol_link_threads" = no ; then
22298         # try -lpthread -Wl,-woff,85
22299         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22300 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22301 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304
22305                 # save the flags
22306                 ol_LIBS="$LIBS"
22307                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22308
22309                 if test "$cross_compiling" = yes; then
22310   cat >conftest.$ac_ext <<_ACEOF
22311 /* confdefs.h.  */
22312 _ACEOF
22313 cat confdefs.h >>conftest.$ac_ext
22314 cat >>conftest.$ac_ext <<_ACEOF
22315 /* end confdefs.h.  */
22316
22317 /* pthread test headers */
22318 #include <pthread.h>
22319 #if HAVE_PTHREADS < 7
22320 #include <errno.h>
22321 #endif
22322 #ifndef NULL
22323 #define NULL (void*)0
22324 #endif
22325
22326 static void *task(p)
22327         void *p;
22328 {
22329         return (void *) (p == NULL);
22330 }
22331
22332 int
22333 main ()
22334 {
22335
22336         /* pthread test function */
22337 #ifndef PTHREAD_CREATE_DETACHED
22338 #define PTHREAD_CREATE_DETACHED 1
22339 #endif
22340         pthread_t t;
22341         int status;
22342         int detach = PTHREAD_CREATE_DETACHED;
22343
22344 #if HAVE_PTHREADS > 4
22345         /* Final pthreads */
22346         pthread_attr_t attr;
22347
22348         status = pthread_attr_init(&attr);
22349         if( status ) return status;
22350
22351 #if HAVE_PTHREADS < 7
22352         status = pthread_attr_setdetachstate(&attr, &detach);
22353         if( status < 0 ) status = errno;
22354 #else
22355         status = pthread_attr_setdetachstate(&attr, detach);
22356 #endif
22357         if( status ) return status;
22358         status = pthread_create( &t, &attr, task, NULL );
22359 #if HAVE_PTHREADS < 7
22360         if( status < 0 ) status = errno;
22361 #endif
22362         if( status ) return status;
22363 #else
22364         /* Draft 4 pthreads */
22365         status = pthread_create( &t, pthread_attr_default, task, NULL );
22366         if( status ) return errno;
22367
22368         /* give thread a chance to complete */
22369         /* it should remain joinable and hence detachable */
22370         sleep( 1 );
22371
22372         status = pthread_detach( &t );
22373         if( status ) return errno;
22374 #endif
22375
22376 #ifdef HAVE_LINUX_THREADS
22377         pthread_kill_other_threads_np();
22378 #endif
22379
22380         return 0;
22381
22382   ;
22383   return 0;
22384 }
22385 _ACEOF
22386 rm -f conftest.$ac_objext conftest$ac_exeext
22387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22388   (eval $ac_link) 2>conftest.er1
22389   ac_status=$?
22390   grep -v '^ *+' conftest.er1 >conftest.err
22391   rm -f conftest.er1
22392   cat conftest.err >&5
22393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394   (exit $ac_status); } &&
22395          { ac_try='test -z "$ac_c_werror_flag"
22396                          || test ! -s conftest.err'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; } &&
22402          { ac_try='test -s conftest$ac_exeext'
22403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22404   (eval $ac_try) 2>&5
22405   ac_status=$?
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); }; }; then
22408   ol_cv_pthread_lib_lpthread_woff=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413 ol_cv_pthread_lib_lpthread_woff=no
22414 fi
22415 rm -f conftest.err conftest.$ac_objext \
22416       conftest$ac_exeext conftest.$ac_ext
22417 else
22418   cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h.  */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h.  */
22424
22425 /* pthread test headers */
22426 #include <pthread.h>
22427 #if HAVE_PTHREADS < 7
22428 #include <errno.h>
22429 #endif
22430 #ifndef NULL
22431 #define NULL (void*)0
22432 #endif
22433
22434 static void *task(p)
22435         void *p;
22436 {
22437         return (void *) (p == NULL);
22438 }
22439
22440
22441 int main(argc, argv)
22442         int argc;
22443         char **argv;
22444 {
22445
22446         /* pthread test function */
22447 #ifndef PTHREAD_CREATE_DETACHED
22448 #define PTHREAD_CREATE_DETACHED 1
22449 #endif
22450         pthread_t t;
22451         int status;
22452         int detach = PTHREAD_CREATE_DETACHED;
22453
22454 #if HAVE_PTHREADS > 4
22455         /* Final pthreads */
22456         pthread_attr_t attr;
22457
22458         status = pthread_attr_init(&attr);
22459         if( status ) return status;
22460
22461 #if HAVE_PTHREADS < 7
22462         status = pthread_attr_setdetachstate(&attr, &detach);
22463         if( status < 0 ) status = errno;
22464 #else
22465         status = pthread_attr_setdetachstate(&attr, detach);
22466 #endif
22467         if( status ) return status;
22468         status = pthread_create( &t, &attr, task, NULL );
22469 #if HAVE_PTHREADS < 7
22470         if( status < 0 ) status = errno;
22471 #endif
22472         if( status ) return status;
22473 #else
22474         /* Draft 4 pthreads */
22475         status = pthread_create( &t, pthread_attr_default, task, NULL );
22476         if( status ) return errno;
22477
22478         /* give thread a chance to complete */
22479         /* it should remain joinable and hence detachable */
22480         sleep( 1 );
22481
22482         status = pthread_detach( &t );
22483         if( status ) return errno;
22484 #endif
22485
22486 #ifdef HAVE_LINUX_THREADS
22487         pthread_kill_other_threads_np();
22488 #endif
22489
22490         return 0;
22491
22492 }
22493
22494 _ACEOF
22495 rm -f conftest$ac_exeext
22496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22497   (eval $ac_link) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22502   (eval $ac_try) 2>&5
22503   ac_status=$?
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); }; }; then
22506   ol_cv_pthread_lib_lpthread_woff=yes
22507 else
22508   echo "$as_me: program exited with status $ac_status" >&5
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512 ( exit $ac_status )
22513 ol_cv_pthread_lib_lpthread_woff=no
22514 fi
22515 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22516 fi
22517
22518                 # restore the LIBS
22519                 LIBS="$ol_LIBS"
22520
22521 fi
22522 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22523 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22524
22525         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22526                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22527                 ol_link_threads=posix
22528         fi
22529 fi
22530
22531
22532                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22533 if test "$ol_link_threads" = no ; then
22534         # try -lpthread
22535         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22536 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22537 if test "${ol_cv_pthread_lpthread+set}" = set; then
22538   echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540
22541                 # save the flags
22542                 ol_LIBS="$LIBS"
22543                 LIBS="-lpthread $LIBS"
22544
22545                 if test "$cross_compiling" = yes; then
22546   cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552
22553 /* pthread test headers */
22554 #include <pthread.h>
22555 #if HAVE_PTHREADS < 7
22556 #include <errno.h>
22557 #endif
22558 #ifndef NULL
22559 #define NULL (void*)0
22560 #endif
22561
22562 static void *task(p)
22563         void *p;
22564 {
22565         return (void *) (p == NULL);
22566 }
22567
22568 int
22569 main ()
22570 {
22571
22572         /* pthread test function */
22573 #ifndef PTHREAD_CREATE_DETACHED
22574 #define PTHREAD_CREATE_DETACHED 1
22575 #endif
22576         pthread_t t;
22577         int status;
22578         int detach = PTHREAD_CREATE_DETACHED;
22579
22580 #if HAVE_PTHREADS > 4
22581         /* Final pthreads */
22582         pthread_attr_t attr;
22583
22584         status = pthread_attr_init(&attr);
22585         if( status ) return status;
22586
22587 #if HAVE_PTHREADS < 7
22588         status = pthread_attr_setdetachstate(&attr, &detach);
22589         if( status < 0 ) status = errno;
22590 #else
22591         status = pthread_attr_setdetachstate(&attr, detach);
22592 #endif
22593         if( status ) return status;
22594         status = pthread_create( &t, &attr, task, NULL );
22595 #if HAVE_PTHREADS < 7
22596         if( status < 0 ) status = errno;
22597 #endif
22598         if( status ) return status;
22599 #else
22600         /* Draft 4 pthreads */
22601         status = pthread_create( &t, pthread_attr_default, task, NULL );
22602         if( status ) return errno;
22603
22604         /* give thread a chance to complete */
22605         /* it should remain joinable and hence detachable */
22606         sleep( 1 );
22607
22608         status = pthread_detach( &t );
22609         if( status ) return errno;
22610 #endif
22611
22612 #ifdef HAVE_LINUX_THREADS
22613         pthread_kill_other_threads_np();
22614 #endif
22615
22616         return 0;
22617
22618   ;
22619   return 0;
22620 }
22621 _ACEOF
22622 rm -f conftest.$ac_objext conftest$ac_exeext
22623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22624   (eval $ac_link) 2>conftest.er1
22625   ac_status=$?
22626   grep -v '^ *+' conftest.er1 >conftest.err
22627   rm -f conftest.er1
22628   cat conftest.err >&5
22629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630   (exit $ac_status); } &&
22631          { ac_try='test -z "$ac_c_werror_flag"
22632                          || test ! -s conftest.err'
22633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22634   (eval $ac_try) 2>&5
22635   ac_status=$?
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); }; } &&
22638          { ac_try='test -s conftest$ac_exeext'
22639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22640   (eval $ac_try) 2>&5
22641   ac_status=$?
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); }; }; then
22644   ol_cv_pthread_lpthread=yes
22645 else
22646   echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 ol_cv_pthread_lpthread=no
22650 fi
22651 rm -f conftest.err conftest.$ac_objext \
22652       conftest$ac_exeext conftest.$ac_ext
22653 else
22654   cat >conftest.$ac_ext <<_ACEOF
22655 /* confdefs.h.  */
22656 _ACEOF
22657 cat confdefs.h >>conftest.$ac_ext
22658 cat >>conftest.$ac_ext <<_ACEOF
22659 /* end confdefs.h.  */
22660
22661 /* pthread test headers */
22662 #include <pthread.h>
22663 #if HAVE_PTHREADS < 7
22664 #include <errno.h>
22665 #endif
22666 #ifndef NULL
22667 #define NULL (void*)0
22668 #endif
22669
22670 static void *task(p)
22671         void *p;
22672 {
22673         return (void *) (p == NULL);
22674 }
22675
22676
22677 int main(argc, argv)
22678         int argc;
22679         char **argv;
22680 {
22681
22682         /* pthread test function */
22683 #ifndef PTHREAD_CREATE_DETACHED
22684 #define PTHREAD_CREATE_DETACHED 1
22685 #endif
22686         pthread_t t;
22687         int status;
22688         int detach = PTHREAD_CREATE_DETACHED;
22689
22690 #if HAVE_PTHREADS > 4
22691         /* Final pthreads */
22692         pthread_attr_t attr;
22693
22694         status = pthread_attr_init(&attr);
22695         if( status ) return status;
22696
22697 #if HAVE_PTHREADS < 7
22698         status = pthread_attr_setdetachstate(&attr, &detach);
22699         if( status < 0 ) status = errno;
22700 #else
22701         status = pthread_attr_setdetachstate(&attr, detach);
22702 #endif
22703         if( status ) return status;
22704         status = pthread_create( &t, &attr, task, NULL );
22705 #if HAVE_PTHREADS < 7
22706         if( status < 0 ) status = errno;
22707 #endif
22708         if( status ) return status;
22709 #else
22710         /* Draft 4 pthreads */
22711         status = pthread_create( &t, pthread_attr_default, task, NULL );
22712         if( status ) return errno;
22713
22714         /* give thread a chance to complete */
22715         /* it should remain joinable and hence detachable */
22716         sleep( 1 );
22717
22718         status = pthread_detach( &t );
22719         if( status ) return errno;
22720 #endif
22721
22722 #ifdef HAVE_LINUX_THREADS
22723         pthread_kill_other_threads_np();
22724 #endif
22725
22726         return 0;
22727
22728 }
22729
22730 _ACEOF
22731 rm -f conftest$ac_exeext
22732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22733   (eval $ac_link) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22738   (eval $ac_try) 2>&5
22739   ac_status=$?
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); }; }; then
22742   ol_cv_pthread_lpthread=yes
22743 else
22744   echo "$as_me: program exited with status $ac_status" >&5
22745 echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 ( exit $ac_status )
22749 ol_cv_pthread_lpthread=no
22750 fi
22751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22752 fi
22753
22754                 # restore the LIBS
22755                 LIBS="$ol_LIBS"
22756
22757 fi
22758 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22759 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22760
22761         if test $ol_cv_pthread_lpthread = yes ; then
22762                 ol_link_pthreads="-lpthread"
22763                 ol_link_threads=posix
22764         fi
22765 fi
22766
22767                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22768 if test "$ol_link_threads" = no ; then
22769         # try -lc_r
22770         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22771 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22772 if test "${ol_cv_pthread_lc_r+set}" = set; then
22773   echo $ECHO_N "(cached) $ECHO_C" >&6
22774 else
22775
22776                 # save the flags
22777                 ol_LIBS="$LIBS"
22778                 LIBS="-lc_r $LIBS"
22779
22780                 if test "$cross_compiling" = yes; then
22781   cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787
22788 /* pthread test headers */
22789 #include <pthread.h>
22790 #if HAVE_PTHREADS < 7
22791 #include <errno.h>
22792 #endif
22793 #ifndef NULL
22794 #define NULL (void*)0
22795 #endif
22796
22797 static void *task(p)
22798         void *p;
22799 {
22800         return (void *) (p == NULL);
22801 }
22802
22803 int
22804 main ()
22805 {
22806
22807         /* pthread test function */
22808 #ifndef PTHREAD_CREATE_DETACHED
22809 #define PTHREAD_CREATE_DETACHED 1
22810 #endif
22811         pthread_t t;
22812         int status;
22813         int detach = PTHREAD_CREATE_DETACHED;
22814
22815 #if HAVE_PTHREADS > 4
22816         /* Final pthreads */
22817         pthread_attr_t attr;
22818
22819         status = pthread_attr_init(&attr);
22820         if( status ) return status;
22821
22822 #if HAVE_PTHREADS < 7
22823         status = pthread_attr_setdetachstate(&attr, &detach);
22824         if( status < 0 ) status = errno;
22825 #else
22826         status = pthread_attr_setdetachstate(&attr, detach);
22827 #endif
22828         if( status ) return status;
22829         status = pthread_create( &t, &attr, task, NULL );
22830 #if HAVE_PTHREADS < 7
22831         if( status < 0 ) status = errno;
22832 #endif
22833         if( status ) return status;
22834 #else
22835         /* Draft 4 pthreads */
22836         status = pthread_create( &t, pthread_attr_default, task, NULL );
22837         if( status ) return errno;
22838
22839         /* give thread a chance to complete */
22840         /* it should remain joinable and hence detachable */
22841         sleep( 1 );
22842
22843         status = pthread_detach( &t );
22844         if( status ) return errno;
22845 #endif
22846
22847 #ifdef HAVE_LINUX_THREADS
22848         pthread_kill_other_threads_np();
22849 #endif
22850
22851         return 0;
22852
22853   ;
22854   return 0;
22855 }
22856 _ACEOF
22857 rm -f conftest.$ac_objext conftest$ac_exeext
22858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22859   (eval $ac_link) 2>conftest.er1
22860   ac_status=$?
22861   grep -v '^ *+' conftest.er1 >conftest.err
22862   rm -f conftest.er1
22863   cat conftest.err >&5
22864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22865   (exit $ac_status); } &&
22866          { ac_try='test -z "$ac_c_werror_flag"
22867                          || test ! -s conftest.err'
22868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869   (eval $ac_try) 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; } &&
22873          { ac_try='test -s conftest$ac_exeext'
22874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875   (eval $ac_try) 2>&5
22876   ac_status=$?
22877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878   (exit $ac_status); }; }; then
22879   ol_cv_pthread_lc_r=yes
22880 else
22881   echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.$ac_ext >&5
22883
22884 ol_cv_pthread_lc_r=no
22885 fi
22886 rm -f conftest.err conftest.$ac_objext \
22887       conftest$ac_exeext conftest.$ac_ext
22888 else
22889   cat >conftest.$ac_ext <<_ACEOF
22890 /* confdefs.h.  */
22891 _ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h.  */
22895
22896 /* pthread test headers */
22897 #include <pthread.h>
22898 #if HAVE_PTHREADS < 7
22899 #include <errno.h>
22900 #endif
22901 #ifndef NULL
22902 #define NULL (void*)0
22903 #endif
22904
22905 static void *task(p)
22906         void *p;
22907 {
22908         return (void *) (p == NULL);
22909 }
22910
22911
22912 int main(argc, argv)
22913         int argc;
22914         char **argv;
22915 {
22916
22917         /* pthread test function */
22918 #ifndef PTHREAD_CREATE_DETACHED
22919 #define PTHREAD_CREATE_DETACHED 1
22920 #endif
22921         pthread_t t;
22922         int status;
22923         int detach = PTHREAD_CREATE_DETACHED;
22924
22925 #if HAVE_PTHREADS > 4
22926         /* Final pthreads */
22927         pthread_attr_t attr;
22928
22929         status = pthread_attr_init(&attr);
22930         if( status ) return status;
22931
22932 #if HAVE_PTHREADS < 7
22933         status = pthread_attr_setdetachstate(&attr, &detach);
22934         if( status < 0 ) status = errno;
22935 #else
22936         status = pthread_attr_setdetachstate(&attr, detach);
22937 #endif
22938         if( status ) return status;
22939         status = pthread_create( &t, &attr, task, NULL );
22940 #if HAVE_PTHREADS < 7
22941         if( status < 0 ) status = errno;
22942 #endif
22943         if( status ) return status;
22944 #else
22945         /* Draft 4 pthreads */
22946         status = pthread_create( &t, pthread_attr_default, task, NULL );
22947         if( status ) return errno;
22948
22949         /* give thread a chance to complete */
22950         /* it should remain joinable and hence detachable */
22951         sleep( 1 );
22952
22953         status = pthread_detach( &t );
22954         if( status ) return errno;
22955 #endif
22956
22957 #ifdef HAVE_LINUX_THREADS
22958         pthread_kill_other_threads_np();
22959 #endif
22960
22961         return 0;
22962
22963 }
22964
22965 _ACEOF
22966 rm -f conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968   (eval $ac_link) 2>&5
22969   ac_status=$?
22970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973   (eval $ac_try) 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ol_cv_pthread_lc_r=yes
22978 else
22979   echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 ( exit $ac_status )
22984 ol_cv_pthread_lc_r=no
22985 fi
22986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 fi
22988
22989                 # restore the LIBS
22990                 LIBS="$ol_LIBS"
22991
22992 fi
22993 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22994 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22995
22996         if test $ol_cv_pthread_lc_r = yes ; then
22997                 ol_link_pthreads="-lc_r"
22998                 ol_link_threads=posix
22999         fi
23000 fi
23001
23002
23003                 # Pthread try link: -threads (ol_cv_pthread_threads)
23004 if test "$ol_link_threads" = no ; then
23005         # try -threads
23006         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23007 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23008 if test "${ol_cv_pthread_threads+set}" = set; then
23009   echo $ECHO_N "(cached) $ECHO_C" >&6
23010 else
23011
23012                 # save the flags
23013                 ol_LIBS="$LIBS"
23014                 LIBS="-threads $LIBS"
23015
23016                 if test "$cross_compiling" = yes; then
23017   cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h.  */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h.  */
23023
23024 /* pthread test headers */
23025 #include <pthread.h>
23026 #if HAVE_PTHREADS < 7
23027 #include <errno.h>
23028 #endif
23029 #ifndef NULL
23030 #define NULL (void*)0
23031 #endif
23032
23033 static void *task(p)
23034         void *p;
23035 {
23036         return (void *) (p == NULL);
23037 }
23038
23039 int
23040 main ()
23041 {
23042
23043         /* pthread test function */
23044 #ifndef PTHREAD_CREATE_DETACHED
23045 #define PTHREAD_CREATE_DETACHED 1
23046 #endif
23047         pthread_t t;
23048         int status;
23049         int detach = PTHREAD_CREATE_DETACHED;
23050
23051 #if HAVE_PTHREADS > 4
23052         /* Final pthreads */
23053         pthread_attr_t attr;
23054
23055         status = pthread_attr_init(&attr);
23056         if( status ) return status;
23057
23058 #if HAVE_PTHREADS < 7
23059         status = pthread_attr_setdetachstate(&attr, &detach);
23060         if( status < 0 ) status = errno;
23061 #else
23062         status = pthread_attr_setdetachstate(&attr, detach);
23063 #endif
23064         if( status ) return status;
23065         status = pthread_create( &t, &attr, task, NULL );
23066 #if HAVE_PTHREADS < 7
23067         if( status < 0 ) status = errno;
23068 #endif
23069         if( status ) return status;
23070 #else
23071         /* Draft 4 pthreads */
23072         status = pthread_create( &t, pthread_attr_default, task, NULL );
23073         if( status ) return errno;
23074
23075         /* give thread a chance to complete */
23076         /* it should remain joinable and hence detachable */
23077         sleep( 1 );
23078
23079         status = pthread_detach( &t );
23080         if( status ) return errno;
23081 #endif
23082
23083 #ifdef HAVE_LINUX_THREADS
23084         pthread_kill_other_threads_np();
23085 #endif
23086
23087         return 0;
23088
23089   ;
23090   return 0;
23091 }
23092 _ACEOF
23093 rm -f conftest.$ac_objext conftest$ac_exeext
23094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23095   (eval $ac_link) 2>conftest.er1
23096   ac_status=$?
23097   grep -v '^ *+' conftest.er1 >conftest.err
23098   rm -f conftest.er1
23099   cat conftest.err >&5
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); } &&
23102          { ac_try='test -z "$ac_c_werror_flag"
23103                          || test ! -s conftest.err'
23104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23105   (eval $ac_try) 2>&5
23106   ac_status=$?
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); }; } &&
23109          { ac_try='test -s conftest$ac_exeext'
23110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111   (eval $ac_try) 2>&5
23112   ac_status=$?
23113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114   (exit $ac_status); }; }; then
23115   ol_cv_pthread_threads=yes
23116 else
23117   echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.$ac_ext >&5
23119
23120 ol_cv_pthread_threads=no
23121 fi
23122 rm -f conftest.err conftest.$ac_objext \
23123       conftest$ac_exeext conftest.$ac_ext
23124 else
23125   cat >conftest.$ac_ext <<_ACEOF
23126 /* confdefs.h.  */
23127 _ACEOF
23128 cat confdefs.h >>conftest.$ac_ext
23129 cat >>conftest.$ac_ext <<_ACEOF
23130 /* end confdefs.h.  */
23131
23132 /* pthread test headers */
23133 #include <pthread.h>
23134 #if HAVE_PTHREADS < 7
23135 #include <errno.h>
23136 #endif
23137 #ifndef NULL
23138 #define NULL (void*)0
23139 #endif
23140
23141 static void *task(p)
23142         void *p;
23143 {
23144         return (void *) (p == NULL);
23145 }
23146
23147
23148 int main(argc, argv)
23149         int argc;
23150         char **argv;
23151 {
23152
23153         /* pthread test function */
23154 #ifndef PTHREAD_CREATE_DETACHED
23155 #define PTHREAD_CREATE_DETACHED 1
23156 #endif
23157         pthread_t t;
23158         int status;
23159         int detach = PTHREAD_CREATE_DETACHED;
23160
23161 #if HAVE_PTHREADS > 4
23162         /* Final pthreads */
23163         pthread_attr_t attr;
23164
23165         status = pthread_attr_init(&attr);
23166         if( status ) return status;
23167
23168 #if HAVE_PTHREADS < 7
23169         status = pthread_attr_setdetachstate(&attr, &detach);
23170         if( status < 0 ) status = errno;
23171 #else
23172         status = pthread_attr_setdetachstate(&attr, detach);
23173 #endif
23174         if( status ) return status;
23175         status = pthread_create( &t, &attr, task, NULL );
23176 #if HAVE_PTHREADS < 7
23177         if( status < 0 ) status = errno;
23178 #endif
23179         if( status ) return status;
23180 #else
23181         /* Draft 4 pthreads */
23182         status = pthread_create( &t, pthread_attr_default, task, NULL );
23183         if( status ) return errno;
23184
23185         /* give thread a chance to complete */
23186         /* it should remain joinable and hence detachable */
23187         sleep( 1 );
23188
23189         status = pthread_detach( &t );
23190         if( status ) return errno;
23191 #endif
23192
23193 #ifdef HAVE_LINUX_THREADS
23194         pthread_kill_other_threads_np();
23195 #endif
23196
23197         return 0;
23198
23199 }
23200
23201 _ACEOF
23202 rm -f conftest$ac_exeext
23203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23204   (eval $ac_link) 2>&5
23205   ac_status=$?
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23209   (eval $ac_try) 2>&5
23210   ac_status=$?
23211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212   (exit $ac_status); }; }; then
23213   ol_cv_pthread_threads=yes
23214 else
23215   echo "$as_me: program exited with status $ac_status" >&5
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23218
23219 ( exit $ac_status )
23220 ol_cv_pthread_threads=no
23221 fi
23222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23223 fi
23224
23225                 # restore the LIBS
23226                 LIBS="$ol_LIBS"
23227
23228 fi
23229 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23230 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23231
23232         if test $ol_cv_pthread_threads = yes ; then
23233                 ol_link_pthreads="-threads"
23234                 ol_link_threads=posix
23235         fi
23236 fi
23237
23238
23239                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23240 if test "$ol_link_threads" = no ; then
23241         # try -lpthreads -lmach -lexc -lc_r
23242         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23243 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23244 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247
23248                 # save the flags
23249                 ol_LIBS="$LIBS"
23250                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23251
23252                 if test "$cross_compiling" = yes; then
23253   cat >conftest.$ac_ext <<_ACEOF
23254 /* confdefs.h.  */
23255 _ACEOF
23256 cat confdefs.h >>conftest.$ac_ext
23257 cat >>conftest.$ac_ext <<_ACEOF
23258 /* end confdefs.h.  */
23259
23260 /* pthread test headers */
23261 #include <pthread.h>
23262 #if HAVE_PTHREADS < 7
23263 #include <errno.h>
23264 #endif
23265 #ifndef NULL
23266 #define NULL (void*)0
23267 #endif
23268
23269 static void *task(p)
23270         void *p;
23271 {
23272         return (void *) (p == NULL);
23273 }
23274
23275 int
23276 main ()
23277 {
23278
23279         /* pthread test function */
23280 #ifndef PTHREAD_CREATE_DETACHED
23281 #define PTHREAD_CREATE_DETACHED 1
23282 #endif
23283         pthread_t t;
23284         int status;
23285         int detach = PTHREAD_CREATE_DETACHED;
23286
23287 #if HAVE_PTHREADS > 4
23288         /* Final pthreads */
23289         pthread_attr_t attr;
23290
23291         status = pthread_attr_init(&attr);
23292         if( status ) return status;
23293
23294 #if HAVE_PTHREADS < 7
23295         status = pthread_attr_setdetachstate(&attr, &detach);
23296         if( status < 0 ) status = errno;
23297 #else
23298         status = pthread_attr_setdetachstate(&attr, detach);
23299 #endif
23300         if( status ) return status;
23301         status = pthread_create( &t, &attr, task, NULL );
23302 #if HAVE_PTHREADS < 7
23303         if( status < 0 ) status = errno;
23304 #endif
23305         if( status ) return status;
23306 #else
23307         /* Draft 4 pthreads */
23308         status = pthread_create( &t, pthread_attr_default, task, NULL );
23309         if( status ) return errno;
23310
23311         /* give thread a chance to complete */
23312         /* it should remain joinable and hence detachable */
23313         sleep( 1 );
23314
23315         status = pthread_detach( &t );
23316         if( status ) return errno;
23317 #endif
23318
23319 #ifdef HAVE_LINUX_THREADS
23320         pthread_kill_other_threads_np();
23321 #endif
23322
23323         return 0;
23324
23325   ;
23326   return 0;
23327 }
23328 _ACEOF
23329 rm -f conftest.$ac_objext conftest$ac_exeext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23331   (eval $ac_link) 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -z "$ac_c_werror_flag"
23339                          || test ! -s conftest.err'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; } &&
23345          { ac_try='test -s conftest$ac_exeext'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; }; then
23351   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23357 fi
23358 rm -f conftest.err conftest.$ac_objext \
23359       conftest$ac_exeext conftest.$ac_ext
23360 else
23361   cat >conftest.$ac_ext <<_ACEOF
23362 /* confdefs.h.  */
23363 _ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h.  */
23367
23368 /* pthread test headers */
23369 #include <pthread.h>
23370 #if HAVE_PTHREADS < 7
23371 #include <errno.h>
23372 #endif
23373 #ifndef NULL
23374 #define NULL (void*)0
23375 #endif
23376
23377 static void *task(p)
23378         void *p;
23379 {
23380         return (void *) (p == NULL);
23381 }
23382
23383
23384 int main(argc, argv)
23385         int argc;
23386         char **argv;
23387 {
23388
23389         /* pthread test function */
23390 #ifndef PTHREAD_CREATE_DETACHED
23391 #define PTHREAD_CREATE_DETACHED 1
23392 #endif
23393         pthread_t t;
23394         int status;
23395         int detach = PTHREAD_CREATE_DETACHED;
23396
23397 #if HAVE_PTHREADS > 4
23398         /* Final pthreads */
23399         pthread_attr_t attr;
23400
23401         status = pthread_attr_init(&attr);
23402         if( status ) return status;
23403
23404 #if HAVE_PTHREADS < 7
23405         status = pthread_attr_setdetachstate(&attr, &detach);
23406         if( status < 0 ) status = errno;
23407 #else
23408         status = pthread_attr_setdetachstate(&attr, detach);
23409 #endif
23410         if( status ) return status;
23411         status = pthread_create( &t, &attr, task, NULL );
23412 #if HAVE_PTHREADS < 7
23413         if( status < 0 ) status = errno;
23414 #endif
23415         if( status ) return status;
23416 #else
23417         /* Draft 4 pthreads */
23418         status = pthread_create( &t, pthread_attr_default, task, NULL );
23419         if( status ) return errno;
23420
23421         /* give thread a chance to complete */
23422         /* it should remain joinable and hence detachable */
23423         sleep( 1 );
23424
23425         status = pthread_detach( &t );
23426         if( status ) return errno;
23427 #endif
23428
23429 #ifdef HAVE_LINUX_THREADS
23430         pthread_kill_other_threads_np();
23431 #endif
23432
23433         return 0;
23434
23435 }
23436
23437 _ACEOF
23438 rm -f conftest$ac_exeext
23439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23440   (eval $ac_link) 2>&5
23441   ac_status=$?
23442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23445   (eval $ac_try) 2>&5
23446   ac_status=$?
23447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448   (exit $ac_status); }; }; then
23449   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23450 else
23451   echo "$as_me: program exited with status $ac_status" >&5
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 ( exit $ac_status )
23456 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23457 fi
23458 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23459 fi
23460
23461                 # restore the LIBS
23462                 LIBS="$ol_LIBS"
23463
23464 fi
23465 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23466 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23467
23468         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23469                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23470                 ol_link_threads=posix
23471         fi
23472 fi
23473
23474                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23475 if test "$ol_link_threads" = no ; then
23476         # try -lpthreads -lmach -lexc
23477         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23478 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23479 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23480   echo $ECHO_N "(cached) $ECHO_C" >&6
23481 else
23482
23483                 # save the flags
23484                 ol_LIBS="$LIBS"
23485                 LIBS="-lpthreads -lmach -lexc $LIBS"
23486
23487                 if test "$cross_compiling" = yes; then
23488   cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h.  */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h.  */
23494
23495 /* pthread test headers */
23496 #include <pthread.h>
23497 #if HAVE_PTHREADS < 7
23498 #include <errno.h>
23499 #endif
23500 #ifndef NULL
23501 #define NULL (void*)0
23502 #endif
23503
23504 static void *task(p)
23505         void *p;
23506 {
23507         return (void *) (p == NULL);
23508 }
23509
23510 int
23511 main ()
23512 {
23513
23514         /* pthread test function */
23515 #ifndef PTHREAD_CREATE_DETACHED
23516 #define PTHREAD_CREATE_DETACHED 1
23517 #endif
23518         pthread_t t;
23519         int status;
23520         int detach = PTHREAD_CREATE_DETACHED;
23521
23522 #if HAVE_PTHREADS > 4
23523         /* Final pthreads */
23524         pthread_attr_t attr;
23525
23526         status = pthread_attr_init(&attr);
23527         if( status ) return status;
23528
23529 #if HAVE_PTHREADS < 7
23530         status = pthread_attr_setdetachstate(&attr, &detach);
23531         if( status < 0 ) status = errno;
23532 #else
23533         status = pthread_attr_setdetachstate(&attr, detach);
23534 #endif
23535         if( status ) return status;
23536         status = pthread_create( &t, &attr, task, NULL );
23537 #if HAVE_PTHREADS < 7
23538         if( status < 0 ) status = errno;
23539 #endif
23540         if( status ) return status;
23541 #else
23542         /* Draft 4 pthreads */
23543         status = pthread_create( &t, pthread_attr_default, task, NULL );
23544         if( status ) return errno;
23545
23546         /* give thread a chance to complete */
23547         /* it should remain joinable and hence detachable */
23548         sleep( 1 );
23549
23550         status = pthread_detach( &t );
23551         if( status ) return errno;
23552 #endif
23553
23554 #ifdef HAVE_LINUX_THREADS
23555         pthread_kill_other_threads_np();
23556 #endif
23557
23558         return 0;
23559
23560   ;
23561   return 0;
23562 }
23563 _ACEOF
23564 rm -f conftest.$ac_objext conftest$ac_exeext
23565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23566   (eval $ac_link) 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } &&
23573          { ac_try='test -z "$ac_c_werror_flag"
23574                          || test ! -s conftest.err'
23575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576   (eval $ac_try) 2>&5
23577   ac_status=$?
23578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579   (exit $ac_status); }; } &&
23580          { ac_try='test -s conftest$ac_exeext'
23581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582   (eval $ac_try) 2>&5
23583   ac_status=$?
23584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585   (exit $ac_status); }; }; then
23586   ol_cv_pthread_lpthreads_lmach_lexc=yes
23587 else
23588   echo "$as_me: failed program was:" >&5
23589 sed 's/^/| /' conftest.$ac_ext >&5
23590
23591 ol_cv_pthread_lpthreads_lmach_lexc=no
23592 fi
23593 rm -f conftest.err conftest.$ac_objext \
23594       conftest$ac_exeext conftest.$ac_ext
23595 else
23596   cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h.  */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h.  */
23602
23603 /* pthread test headers */
23604 #include <pthread.h>
23605 #if HAVE_PTHREADS < 7
23606 #include <errno.h>
23607 #endif
23608 #ifndef NULL
23609 #define NULL (void*)0
23610 #endif
23611
23612 static void *task(p)
23613         void *p;
23614 {
23615         return (void *) (p == NULL);
23616 }
23617
23618
23619 int main(argc, argv)
23620         int argc;
23621         char **argv;
23622 {
23623
23624         /* pthread test function */
23625 #ifndef PTHREAD_CREATE_DETACHED
23626 #define PTHREAD_CREATE_DETACHED 1
23627 #endif
23628         pthread_t t;
23629         int status;
23630         int detach = PTHREAD_CREATE_DETACHED;
23631
23632 #if HAVE_PTHREADS > 4
23633         /* Final pthreads */
23634         pthread_attr_t attr;
23635
23636         status = pthread_attr_init(&attr);
23637         if( status ) return status;
23638
23639 #if HAVE_PTHREADS < 7
23640         status = pthread_attr_setdetachstate(&attr, &detach);
23641         if( status < 0 ) status = errno;
23642 #else
23643         status = pthread_attr_setdetachstate(&attr, detach);
23644 #endif
23645         if( status ) return status;
23646         status = pthread_create( &t, &attr, task, NULL );
23647 #if HAVE_PTHREADS < 7
23648         if( status < 0 ) status = errno;
23649 #endif
23650         if( status ) return status;
23651 #else
23652         /* Draft 4 pthreads */
23653         status = pthread_create( &t, pthread_attr_default, task, NULL );
23654         if( status ) return errno;
23655
23656         /* give thread a chance to complete */
23657         /* it should remain joinable and hence detachable */
23658         sleep( 1 );
23659
23660         status = pthread_detach( &t );
23661         if( status ) return errno;
23662 #endif
23663
23664 #ifdef HAVE_LINUX_THREADS
23665         pthread_kill_other_threads_np();
23666 #endif
23667
23668         return 0;
23669
23670 }
23671
23672 _ACEOF
23673 rm -f conftest$ac_exeext
23674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23675   (eval $ac_link) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23680   (eval $ac_try) 2>&5
23681   ac_status=$?
23682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); }; }; then
23684   ol_cv_pthread_lpthreads_lmach_lexc=yes
23685 else
23686   echo "$as_me: program exited with status $ac_status" >&5
23687 echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 ( exit $ac_status )
23691 ol_cv_pthread_lpthreads_lmach_lexc=no
23692 fi
23693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23694 fi
23695
23696                 # restore the LIBS
23697                 LIBS="$ol_LIBS"
23698
23699 fi
23700 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23701 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23702
23703         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23704                 ol_link_pthreads="-lpthreads -lmach -lexc"
23705                 ol_link_threads=posix
23706         fi
23707 fi
23708
23709                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23710 if test "$ol_link_threads" = no ; then
23711         # try -lpthreads -lexc
23712         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23713 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23714 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23715   echo $ECHO_N "(cached) $ECHO_C" >&6
23716 else
23717
23718                 # save the flags
23719                 ol_LIBS="$LIBS"
23720                 LIBS="-lpthreads -lexc $LIBS"
23721
23722                 if test "$cross_compiling" = yes; then
23723   cat >conftest.$ac_ext <<_ACEOF
23724 /* confdefs.h.  */
23725 _ACEOF
23726 cat confdefs.h >>conftest.$ac_ext
23727 cat >>conftest.$ac_ext <<_ACEOF
23728 /* end confdefs.h.  */
23729
23730 /* pthread test headers */
23731 #include <pthread.h>
23732 #if HAVE_PTHREADS < 7
23733 #include <errno.h>
23734 #endif
23735 #ifndef NULL
23736 #define NULL (void*)0
23737 #endif
23738
23739 static void *task(p)
23740         void *p;
23741 {
23742         return (void *) (p == NULL);
23743 }
23744
23745 int
23746 main ()
23747 {
23748
23749         /* pthread test function */
23750 #ifndef PTHREAD_CREATE_DETACHED
23751 #define PTHREAD_CREATE_DETACHED 1
23752 #endif
23753         pthread_t t;
23754         int status;
23755         int detach = PTHREAD_CREATE_DETACHED;
23756
23757 #if HAVE_PTHREADS > 4
23758         /* Final pthreads */
23759         pthread_attr_t attr;
23760
23761         status = pthread_attr_init(&attr);
23762         if( status ) return status;
23763
23764 #if HAVE_PTHREADS < 7
23765         status = pthread_attr_setdetachstate(&attr, &detach);
23766         if( status < 0 ) status = errno;
23767 #else
23768         status = pthread_attr_setdetachstate(&attr, detach);
23769 #endif
23770         if( status ) return status;
23771         status = pthread_create( &t, &attr, task, NULL );
23772 #if HAVE_PTHREADS < 7
23773         if( status < 0 ) status = errno;
23774 #endif
23775         if( status ) return status;
23776 #else
23777         /* Draft 4 pthreads */
23778         status = pthread_create( &t, pthread_attr_default, task, NULL );
23779         if( status ) return errno;
23780
23781         /* give thread a chance to complete */
23782         /* it should remain joinable and hence detachable */
23783         sleep( 1 );
23784
23785         status = pthread_detach( &t );
23786         if( status ) return errno;
23787 #endif
23788
23789 #ifdef HAVE_LINUX_THREADS
23790         pthread_kill_other_threads_np();
23791 #endif
23792
23793         return 0;
23794
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23801   (eval $ac_link) 2>conftest.er1
23802   ac_status=$?
23803   grep -v '^ *+' conftest.er1 >conftest.err
23804   rm -f conftest.er1
23805   cat conftest.err >&5
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } &&
23808          { ac_try='test -z "$ac_c_werror_flag"
23809                          || test ! -s conftest.err'
23810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811   (eval $ac_try) 2>&5
23812   ac_status=$?
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); }; } &&
23815          { ac_try='test -s conftest$ac_exeext'
23816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817   (eval $ac_try) 2>&5
23818   ac_status=$?
23819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820   (exit $ac_status); }; }; then
23821   ol_cv_pthread_lpthreads_lexc=yes
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826 ol_cv_pthread_lpthreads_lexc=no
23827 fi
23828 rm -f conftest.err conftest.$ac_objext \
23829       conftest$ac_exeext conftest.$ac_ext
23830 else
23831   cat >conftest.$ac_ext <<_ACEOF
23832 /* confdefs.h.  */
23833 _ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h.  */
23837
23838 /* pthread test headers */
23839 #include <pthread.h>
23840 #if HAVE_PTHREADS < 7
23841 #include <errno.h>
23842 #endif
23843 #ifndef NULL
23844 #define NULL (void*)0
23845 #endif
23846
23847 static void *task(p)
23848         void *p;
23849 {
23850         return (void *) (p == NULL);
23851 }
23852
23853
23854 int main(argc, argv)
23855         int argc;
23856         char **argv;
23857 {
23858
23859         /* pthread test function */
23860 #ifndef PTHREAD_CREATE_DETACHED
23861 #define PTHREAD_CREATE_DETACHED 1
23862 #endif
23863         pthread_t t;
23864         int status;
23865         int detach = PTHREAD_CREATE_DETACHED;
23866
23867 #if HAVE_PTHREADS > 4
23868         /* Final pthreads */
23869         pthread_attr_t attr;
23870
23871         status = pthread_attr_init(&attr);
23872         if( status ) return status;
23873
23874 #if HAVE_PTHREADS < 7
23875         status = pthread_attr_setdetachstate(&attr, &detach);
23876         if( status < 0 ) status = errno;
23877 #else
23878         status = pthread_attr_setdetachstate(&attr, detach);
23879 #endif
23880         if( status ) return status;
23881         status = pthread_create( &t, &attr, task, NULL );
23882 #if HAVE_PTHREADS < 7
23883         if( status < 0 ) status = errno;
23884 #endif
23885         if( status ) return status;
23886 #else
23887         /* Draft 4 pthreads */
23888         status = pthread_create( &t, pthread_attr_default, task, NULL );
23889         if( status ) return errno;
23890
23891         /* give thread a chance to complete */
23892         /* it should remain joinable and hence detachable */
23893         sleep( 1 );
23894
23895         status = pthread_detach( &t );
23896         if( status ) return errno;
23897 #endif
23898
23899 #ifdef HAVE_LINUX_THREADS
23900         pthread_kill_other_threads_np();
23901 #endif
23902
23903         return 0;
23904
23905 }
23906
23907 _ACEOF
23908 rm -f conftest$ac_exeext
23909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23910   (eval $ac_link) 2>&5
23911   ac_status=$?
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23915   (eval $ac_try) 2>&5
23916   ac_status=$?
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); }; }; then
23919   ol_cv_pthread_lpthreads_lexc=yes
23920 else
23921   echo "$as_me: program exited with status $ac_status" >&5
23922 echo "$as_me: failed program was:" >&5
23923 sed 's/^/| /' conftest.$ac_ext >&5
23924
23925 ( exit $ac_status )
23926 ol_cv_pthread_lpthreads_lexc=no
23927 fi
23928 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23929 fi
23930
23931                 # restore the LIBS
23932                 LIBS="$ol_LIBS"
23933
23934 fi
23935 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23936 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23937
23938         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23939                 ol_link_pthreads="-lpthreads -lexc"
23940                 ol_link_threads=posix
23941         fi
23942 fi
23943
23944
23945                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23946 if test "$ol_link_threads" = no ; then
23947         # try -lpthreads
23948         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23949 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23950 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23951   echo $ECHO_N "(cached) $ECHO_C" >&6
23952 else
23953
23954                 # save the flags
23955                 ol_LIBS="$LIBS"
23956                 LIBS="-lpthreads $LIBS"
23957
23958                 if test "$cross_compiling" = yes; then
23959   cat >conftest.$ac_ext <<_ACEOF
23960 /* confdefs.h.  */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h.  */
23965
23966 /* pthread test headers */
23967 #include <pthread.h>
23968 #if HAVE_PTHREADS < 7
23969 #include <errno.h>
23970 #endif
23971 #ifndef NULL
23972 #define NULL (void*)0
23973 #endif
23974
23975 static void *task(p)
23976         void *p;
23977 {
23978         return (void *) (p == NULL);
23979 }
23980
23981 int
23982 main ()
23983 {
23984
23985         /* pthread test function */
23986 #ifndef PTHREAD_CREATE_DETACHED
23987 #define PTHREAD_CREATE_DETACHED 1
23988 #endif
23989         pthread_t t;
23990         int status;
23991         int detach = PTHREAD_CREATE_DETACHED;
23992
23993 #if HAVE_PTHREADS > 4
23994         /* Final pthreads */
23995         pthread_attr_t attr;
23996
23997         status = pthread_attr_init(&attr);
23998         if( status ) return status;
23999
24000 #if HAVE_PTHREADS < 7
24001         status = pthread_attr_setdetachstate(&attr, &detach);
24002         if( status < 0 ) status = errno;
24003 #else
24004         status = pthread_attr_setdetachstate(&attr, detach);
24005 #endif
24006         if( status ) return status;
24007         status = pthread_create( &t, &attr, task, NULL );
24008 #if HAVE_PTHREADS < 7
24009         if( status < 0 ) status = errno;
24010 #endif
24011         if( status ) return status;
24012 #else
24013         /* Draft 4 pthreads */
24014         status = pthread_create( &t, pthread_attr_default, task, NULL );
24015         if( status ) return errno;
24016
24017         /* give thread a chance to complete */
24018         /* it should remain joinable and hence detachable */
24019         sleep( 1 );
24020
24021         status = pthread_detach( &t );
24022         if( status ) return errno;
24023 #endif
24024
24025 #ifdef HAVE_LINUX_THREADS
24026         pthread_kill_other_threads_np();
24027 #endif
24028
24029         return 0;
24030
24031   ;
24032   return 0;
24033 }
24034 _ACEOF
24035 rm -f conftest.$ac_objext conftest$ac_exeext
24036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24037   (eval $ac_link) 2>conftest.er1
24038   ac_status=$?
24039   grep -v '^ *+' conftest.er1 >conftest.err
24040   rm -f conftest.er1
24041   cat conftest.err >&5
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); } &&
24044          { ac_try='test -z "$ac_c_werror_flag"
24045                          || test ! -s conftest.err'
24046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047   (eval $ac_try) 2>&5
24048   ac_status=$?
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); }; } &&
24051          { ac_try='test -s conftest$ac_exeext'
24052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053   (eval $ac_try) 2>&5
24054   ac_status=$?
24055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056   (exit $ac_status); }; }; then
24057   ol_cv_pthread_lib_lpthreads=yes
24058 else
24059   echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24061
24062 ol_cv_pthread_lib_lpthreads=no
24063 fi
24064 rm -f conftest.err conftest.$ac_objext \
24065       conftest$ac_exeext conftest.$ac_ext
24066 else
24067   cat >conftest.$ac_ext <<_ACEOF
24068 /* confdefs.h.  */
24069 _ACEOF
24070 cat confdefs.h >>conftest.$ac_ext
24071 cat >>conftest.$ac_ext <<_ACEOF
24072 /* end confdefs.h.  */
24073
24074 /* pthread test headers */
24075 #include <pthread.h>
24076 #if HAVE_PTHREADS < 7
24077 #include <errno.h>
24078 #endif
24079 #ifndef NULL
24080 #define NULL (void*)0
24081 #endif
24082
24083 static void *task(p)
24084         void *p;
24085 {
24086         return (void *) (p == NULL);
24087 }
24088
24089
24090 int main(argc, argv)
24091         int argc;
24092         char **argv;
24093 {
24094
24095         /* pthread test function */
24096 #ifndef PTHREAD_CREATE_DETACHED
24097 #define PTHREAD_CREATE_DETACHED 1
24098 #endif
24099         pthread_t t;
24100         int status;
24101         int detach = PTHREAD_CREATE_DETACHED;
24102
24103 #if HAVE_PTHREADS > 4
24104         /* Final pthreads */
24105         pthread_attr_t attr;
24106
24107         status = pthread_attr_init(&attr);
24108         if( status ) return status;
24109
24110 #if HAVE_PTHREADS < 7
24111         status = pthread_attr_setdetachstate(&attr, &detach);
24112         if( status < 0 ) status = errno;
24113 #else
24114         status = pthread_attr_setdetachstate(&attr, detach);
24115 #endif
24116         if( status ) return status;
24117         status = pthread_create( &t, &attr, task, NULL );
24118 #if HAVE_PTHREADS < 7
24119         if( status < 0 ) status = errno;
24120 #endif
24121         if( status ) return status;
24122 #else
24123         /* Draft 4 pthreads */
24124         status = pthread_create( &t, pthread_attr_default, task, NULL );
24125         if( status ) return errno;
24126
24127         /* give thread a chance to complete */
24128         /* it should remain joinable and hence detachable */
24129         sleep( 1 );
24130
24131         status = pthread_detach( &t );
24132         if( status ) return errno;
24133 #endif
24134
24135 #ifdef HAVE_LINUX_THREADS
24136         pthread_kill_other_threads_np();
24137 #endif
24138
24139         return 0;
24140
24141 }
24142
24143 _ACEOF
24144 rm -f conftest$ac_exeext
24145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24146   (eval $ac_link) 2>&5
24147   ac_status=$?
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24151   (eval $ac_try) 2>&5
24152   ac_status=$?
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); }; }; then
24155   ol_cv_pthread_lib_lpthreads=yes
24156 else
24157   echo "$as_me: program exited with status $ac_status" >&5
24158 echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 ( exit $ac_status )
24162 ol_cv_pthread_lib_lpthreads=no
24163 fi
24164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24165 fi
24166
24167                 # restore the LIBS
24168                 LIBS="$ol_LIBS"
24169
24170 fi
24171 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24172 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24173
24174         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24175                 ol_link_pthreads="-lpthreads"
24176                 ol_link_threads=posix
24177         fi
24178 fi
24179
24180
24181                 if test $ol_link_threads != no ; then
24182                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24183
24184                                                 save_CPPFLAGS="$CPPFLAGS"
24185                         save_LIBS="$LIBS"
24186                         LIBS="$LTHREAD_LIBS $LIBS"
24187
24188
24189
24190
24191 for ac_func in sched_yield pthread_yield thr_yield
24192 do
24193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24194 echo "$as_me:$LINENO: checking for $ac_func" >&5
24195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24196 if eval "test \"\${$as_ac_var+set}\" = set"; then
24197   echo $ECHO_N "(cached) $ECHO_C" >&6
24198 else
24199   cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h.  */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h.  */
24205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24206    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24207 #define $ac_func innocuous_$ac_func
24208
24209 /* System header to define __stub macros and hopefully few prototypes,
24210     which can conflict with char $ac_func (); below.
24211     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24212     <limits.h> exists even on freestanding compilers.  */
24213
24214 #ifdef __STDC__
24215 # include <limits.h>
24216 #else
24217 # include <assert.h>
24218 #endif
24219
24220 #undef $ac_func
24221
24222 /* Override any gcc2 internal prototype to avoid an error.  */
24223 #ifdef __cplusplus
24224 extern "C"
24225 {
24226 #endif
24227 /* We use char because int might match the return type of a gcc2
24228    builtin and then its argument prototype would still apply.  */
24229 char $ac_func ();
24230 /* The GNU C library defines this for functions which it implements
24231     to always fail with ENOSYS.  Some functions are actually named
24232     something starting with __ and the normal name is an alias.  */
24233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24234 choke me
24235 #else
24236 char (*f) () = $ac_func;
24237 #endif
24238 #ifdef __cplusplus
24239 }
24240 #endif
24241
24242 int
24243 main ()
24244 {
24245 return f != $ac_func;
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext conftest$ac_exeext
24251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24252   (eval $ac_link) 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } &&
24259          { ac_try='test -z "$ac_c_werror_flag"
24260                          || test ! -s conftest.err'
24261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24262   (eval $ac_try) 2>&5
24263   ac_status=$?
24264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265   (exit $ac_status); }; } &&
24266          { ac_try='test -s conftest$ac_exeext'
24267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24268   (eval $ac_try) 2>&5
24269   ac_status=$?
24270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24271   (exit $ac_status); }; }; then
24272   eval "$as_ac_var=yes"
24273 else
24274   echo "$as_me: failed program was:" >&5
24275 sed 's/^/| /' conftest.$ac_ext >&5
24276
24277 eval "$as_ac_var=no"
24278 fi
24279 rm -f conftest.err conftest.$ac_objext \
24280       conftest$ac_exeext conftest.$ac_ext
24281 fi
24282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24284 if test `eval echo '${'$as_ac_var'}'` = yes; then
24285   cat >>confdefs.h <<_ACEOF
24286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24287 _ACEOF
24288
24289 fi
24290 done
24291
24292
24293                         if test $ac_cv_func_sched_yield = no &&
24294                            test $ac_cv_func_pthread_yield = no &&
24295                            test $ac_cv_func_thr_yield = no ; then
24296                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24297 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24298 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24299   echo $ECHO_N "(cached) $ECHO_C" >&6
24300 else
24301   ac_check_lib_save_LIBS=$LIBS
24302 LIBS="-lrt  $LIBS"
24303 cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h.  */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h.  */
24309
24310 /* Override any gcc2 internal prototype to avoid an error.  */
24311 #ifdef __cplusplus
24312 extern "C"
24313 #endif
24314 /* We use char because int might match the return type of a gcc2
24315    builtin and then its argument prototype would still apply.  */
24316 char sched_yield ();
24317 int
24318 main ()
24319 {
24320 sched_yield ();
24321   ;
24322   return 0;
24323 }
24324 _ACEOF
24325 rm -f conftest.$ac_objext conftest$ac_exeext
24326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24327   (eval $ac_link) 2>conftest.er1
24328   ac_status=$?
24329   grep -v '^ *+' conftest.er1 >conftest.err
24330   rm -f conftest.er1
24331   cat conftest.err >&5
24332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333   (exit $ac_status); } &&
24334          { ac_try='test -z "$ac_c_werror_flag"
24335                          || test ! -s conftest.err'
24336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24337   (eval $ac_try) 2>&5
24338   ac_status=$?
24339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340   (exit $ac_status); }; } &&
24341          { ac_try='test -s conftest$ac_exeext'
24342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24343   (eval $ac_try) 2>&5
24344   ac_status=$?
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); }; }; then
24347   ac_cv_lib_rt_sched_yield=yes
24348 else
24349   echo "$as_me: failed program was:" >&5
24350 sed 's/^/| /' conftest.$ac_ext >&5
24351
24352 ac_cv_lib_rt_sched_yield=no
24353 fi
24354 rm -f conftest.err conftest.$ac_objext \
24355       conftest$ac_exeext conftest.$ac_ext
24356 LIBS=$ac_check_lib_save_LIBS
24357 fi
24358 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24359 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24360 if test $ac_cv_lib_rt_sched_yield = yes; then
24361   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24362
24363 cat >>confdefs.h <<\_ACEOF
24364 #define HAVE_SCHED_YIELD 1
24365 _ACEOF
24366
24367                                         ac_cv_func_sched_yield=yes
24368 else
24369   ac_cv_func_sched_yield=no
24370 fi
24371
24372                         fi
24373                         if test $ac_cv_func_sched_yield = no &&
24374                            test $ac_cv_func_pthread_yield = no &&
24375                            test "$ac_cv_func_thr_yield" = no ; then
24376                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24377 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24378                         fi
24379
24380
24381
24382 for ac_func in pthread_kill pthread_rwlock_destroy
24383 do
24384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24385 echo "$as_me:$LINENO: checking for $ac_func" >&5
24386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24387 if eval "test \"\${$as_ac_var+set}\" = set"; then
24388   echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390   cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h.  */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h.  */
24396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24398 #define $ac_func innocuous_$ac_func
24399
24400 /* System header to define __stub macros and hopefully few prototypes,
24401     which can conflict with char $ac_func (); below.
24402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24403     <limits.h> exists even on freestanding compilers.  */
24404
24405 #ifdef __STDC__
24406 # include <limits.h>
24407 #else
24408 # include <assert.h>
24409 #endif
24410
24411 #undef $ac_func
24412
24413 /* Override any gcc2 internal prototype to avoid an error.  */
24414 #ifdef __cplusplus
24415 extern "C"
24416 {
24417 #endif
24418 /* We use char because int might match the return type of a gcc2
24419    builtin and then its argument prototype would still apply.  */
24420 char $ac_func ();
24421 /* The GNU C library defines this for functions which it implements
24422     to always fail with ENOSYS.  Some functions are actually named
24423     something starting with __ and the normal name is an alias.  */
24424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24425 choke me
24426 #else
24427 char (*f) () = $ac_func;
24428 #endif
24429 #ifdef __cplusplus
24430 }
24431 #endif
24432
24433 int
24434 main ()
24435 {
24436 return f != $ac_func;
24437   ;
24438   return 0;
24439 }
24440 _ACEOF
24441 rm -f conftest.$ac_objext conftest$ac_exeext
24442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24443   (eval $ac_link) 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } &&
24450          { ac_try='test -z "$ac_c_werror_flag"
24451                          || test ! -s conftest.err'
24452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453   (eval $ac_try) 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); }; } &&
24457          { ac_try='test -s conftest$ac_exeext'
24458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459   (eval $ac_try) 2>&5
24460   ac_status=$?
24461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462   (exit $ac_status); }; }; then
24463   eval "$as_ac_var=yes"
24464 else
24465   echo "$as_me: failed program was:" >&5
24466 sed 's/^/| /' conftest.$ac_ext >&5
24467
24468 eval "$as_ac_var=no"
24469 fi
24470 rm -f conftest.err conftest.$ac_objext \
24471       conftest$ac_exeext conftest.$ac_ext
24472 fi
24473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24475 if test `eval echo '${'$as_ac_var'}'` = yes; then
24476   cat >>confdefs.h <<_ACEOF
24477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24478 _ACEOF
24479
24480 fi
24481 done
24482
24483
24484                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24485 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24486 if test "${ol_cv_func_pthread_detach+set}" = set; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489
24490                                                                 cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496
24497 #include <pthread.h>
24498 #ifndef NULL
24499 #define NULL (void*)0
24500 #endif
24501
24502 int
24503 main ()
24504 {
24505 pthread_detach(NULL);
24506   ;
24507   return 0;
24508 }
24509 _ACEOF
24510 rm -f conftest.$ac_objext conftest$ac_exeext
24511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24512   (eval $ac_link) 2>conftest.er1
24513   ac_status=$?
24514   grep -v '^ *+' conftest.er1 >conftest.err
24515   rm -f conftest.er1
24516   cat conftest.err >&5
24517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518   (exit $ac_status); } &&
24519          { ac_try='test -z "$ac_c_werror_flag"
24520                          || test ! -s conftest.err'
24521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24522   (eval $ac_try) 2>&5
24523   ac_status=$?
24524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525   (exit $ac_status); }; } &&
24526          { ac_try='test -s conftest$ac_exeext'
24527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528   (eval $ac_try) 2>&5
24529   ac_status=$?
24530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531   (exit $ac_status); }; }; then
24532   ol_cv_func_pthread_detach=yes
24533 else
24534   echo "$as_me: failed program was:" >&5
24535 sed 's/^/| /' conftest.$ac_ext >&5
24536
24537 ol_cv_func_pthread_detach=no
24538 fi
24539 rm -f conftest.err conftest.$ac_objext \
24540       conftest$ac_exeext conftest.$ac_ext
24541
24542 fi
24543 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24544 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24545
24546                         if test $ol_cv_func_pthread_detach = no ; then
24547                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24548 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24549    { (exit 1); exit 1; }; }
24550                         fi
24551
24552
24553 cat >>confdefs.h <<\_ACEOF
24554 #define HAVE_PTHREAD_DETACH 1
24555 _ACEOF
24556
24557
24558
24559
24560
24561
24562 for ac_func in \
24563                                 pthread_setconcurrency \
24564                                 pthread_getconcurrency \
24565                                 thr_setconcurrency \
24566                                 thr_getconcurrency \
24567
24568 do
24569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24570 echo "$as_me:$LINENO: checking for $ac_func" >&5
24571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24572 if eval "test \"\${$as_ac_var+set}\" = set"; then
24573   echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575   cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h.  */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h.  */
24581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24583 #define $ac_func innocuous_$ac_func
24584
24585 /* System header to define __stub macros and hopefully few prototypes,
24586     which can conflict with char $ac_func (); below.
24587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24588     <limits.h> exists even on freestanding compilers.  */
24589
24590 #ifdef __STDC__
24591 # include <limits.h>
24592 #else
24593 # include <assert.h>
24594 #endif
24595
24596 #undef $ac_func
24597
24598 /* Override any gcc2 internal prototype to avoid an error.  */
24599 #ifdef __cplusplus
24600 extern "C"
24601 {
24602 #endif
24603 /* We use char because int might match the return type of a gcc2
24604    builtin and then its argument prototype would still apply.  */
24605 char $ac_func ();
24606 /* The GNU C library defines this for functions which it implements
24607     to always fail with ENOSYS.  Some functions are actually named
24608     something starting with __ and the normal name is an alias.  */
24609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24610 choke me
24611 #else
24612 char (*f) () = $ac_func;
24613 #endif
24614 #ifdef __cplusplus
24615 }
24616 #endif
24617
24618 int
24619 main ()
24620 {
24621 return f != $ac_func;
24622   ;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest.$ac_objext conftest$ac_exeext
24627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24628   (eval $ac_link) 2>conftest.er1
24629   ac_status=$?
24630   grep -v '^ *+' conftest.er1 >conftest.err
24631   rm -f conftest.er1
24632   cat conftest.err >&5
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } &&
24635          { ac_try='test -z "$ac_c_werror_flag"
24636                          || test ! -s conftest.err'
24637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638   (eval $ac_try) 2>&5
24639   ac_status=$?
24640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); }; } &&
24642          { ac_try='test -s conftest$ac_exeext'
24643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24644   (eval $ac_try) 2>&5
24645   ac_status=$?
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); }; }; then
24648   eval "$as_ac_var=yes"
24649 else
24650   echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24652
24653 eval "$as_ac_var=no"
24654 fi
24655 rm -f conftest.err conftest.$ac_objext \
24656       conftest$ac_exeext conftest.$ac_ext
24657 fi
24658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24660 if test `eval echo '${'$as_ac_var'}'` = yes; then
24661   cat >>confdefs.h <<_ACEOF
24662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24663 _ACEOF
24664
24665 fi
24666 done
24667
24668
24669
24670
24671 for ac_func in pthread_kill_other_threads_np
24672 do
24673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24674 echo "$as_me:$LINENO: checking for $ac_func" >&5
24675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24676 if eval "test \"\${$as_ac_var+set}\" = set"; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679   cat >conftest.$ac_ext <<_ACEOF
24680 /* confdefs.h.  */
24681 _ACEOF
24682 cat confdefs.h >>conftest.$ac_ext
24683 cat >>conftest.$ac_ext <<_ACEOF
24684 /* end confdefs.h.  */
24685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24687 #define $ac_func innocuous_$ac_func
24688
24689 /* System header to define __stub macros and hopefully few prototypes,
24690     which can conflict with char $ac_func (); below.
24691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24692     <limits.h> exists even on freestanding compilers.  */
24693
24694 #ifdef __STDC__
24695 # include <limits.h>
24696 #else
24697 # include <assert.h>
24698 #endif
24699
24700 #undef $ac_func
24701
24702 /* Override any gcc2 internal prototype to avoid an error.  */
24703 #ifdef __cplusplus
24704 extern "C"
24705 {
24706 #endif
24707 /* We use char because int might match the return type of a gcc2
24708    builtin and then its argument prototype would still apply.  */
24709 char $ac_func ();
24710 /* The GNU C library defines this for functions which it implements
24711     to always fail with ENOSYS.  Some functions are actually named
24712     something starting with __ and the normal name is an alias.  */
24713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24714 choke me
24715 #else
24716 char (*f) () = $ac_func;
24717 #endif
24718 #ifdef __cplusplus
24719 }
24720 #endif
24721
24722 int
24723 main ()
24724 {
24725 return f != $ac_func;
24726   ;
24727   return 0;
24728 }
24729 _ACEOF
24730 rm -f conftest.$ac_objext conftest$ac_exeext
24731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24732   (eval $ac_link) 2>conftest.er1
24733   ac_status=$?
24734   grep -v '^ *+' conftest.er1 >conftest.err
24735   rm -f conftest.er1
24736   cat conftest.err >&5
24737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738   (exit $ac_status); } &&
24739          { ac_try='test -z "$ac_c_werror_flag"
24740                          || test ! -s conftest.err'
24741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742   (eval $ac_try) 2>&5
24743   ac_status=$?
24744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745   (exit $ac_status); }; } &&
24746          { ac_try='test -s conftest$ac_exeext'
24747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748   (eval $ac_try) 2>&5
24749   ac_status=$?
24750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751   (exit $ac_status); }; }; then
24752   eval "$as_ac_var=yes"
24753 else
24754   echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24756
24757 eval "$as_ac_var=no"
24758 fi
24759 rm -f conftest.err conftest.$ac_objext \
24760       conftest$ac_exeext conftest.$ac_ext
24761 fi
24762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24763 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24764 if test `eval echo '${'$as_ac_var'}'` = yes; then
24765   cat >>confdefs.h <<_ACEOF
24766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24767 _ACEOF
24768
24769 fi
24770 done
24771
24772         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24773 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24774 if test "${ol_cv_sys_linux_threads+set}" = set; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24778 fi
24779 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24780 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24781
24782
24783
24784
24785         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24786 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24787 if test "${ol_cv_linux_threads+set}" = set; then
24788   echo $ECHO_N "(cached) $ECHO_C" >&6
24789 else
24790
24791                 if test $ol_cv_header_linux_threads = yes &&
24792                    test $ol_cv_sys_linux_threads = yes; then
24793                         ol_cv_linux_threads=yes
24794                 elif test $ol_cv_header_linux_threads = no &&
24795                      test $ol_cv_sys_linux_threads = no; then
24796                         ol_cv_linux_threads=no
24797                 else
24798                         ol_cv_linux_threads=error
24799                 fi
24800
24801 fi
24802 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24803 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24804
24805
24806                         if test $ol_cv_linux_threads = error; then
24807                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24808 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24809    { (exit 1); exit 1; }; };
24810                         fi
24811
24812                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24813 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24814 if test "${ol_cv_pthread_create_works+set}" = set; then
24815   echo $ECHO_N "(cached) $ECHO_C" >&6
24816 else
24817
24818                         if test "$cross_compiling" = yes; then
24819                                 ol_cv_pthread_create_works=yes
24820 else
24821   cat >conftest.$ac_ext <<_ACEOF
24822 /* confdefs.h.  */
24823 _ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h.  */
24827
24828 /* pthread test headers */
24829 #include <pthread.h>
24830 #if HAVE_PTHREADS < 7
24831 #include <errno.h>
24832 #endif
24833 #ifndef NULL
24834 #define NULL (void*)0
24835 #endif
24836
24837 static void *task(p)
24838         void *p;
24839 {
24840         return (void *) (p == NULL);
24841 }
24842
24843
24844 int main(argc, argv)
24845         int argc;
24846         char **argv;
24847 {
24848
24849         /* pthread test function */
24850 #ifndef PTHREAD_CREATE_DETACHED
24851 #define PTHREAD_CREATE_DETACHED 1
24852 #endif
24853         pthread_t t;
24854         int status;
24855         int detach = PTHREAD_CREATE_DETACHED;
24856
24857 #if HAVE_PTHREADS > 4
24858         /* Final pthreads */
24859         pthread_attr_t attr;
24860
24861         status = pthread_attr_init(&attr);
24862         if( status ) return status;
24863
24864 #if HAVE_PTHREADS < 7
24865         status = pthread_attr_setdetachstate(&attr, &detach);
24866         if( status < 0 ) status = errno;
24867 #else
24868         status = pthread_attr_setdetachstate(&attr, detach);
24869 #endif
24870         if( status ) return status;
24871         status = pthread_create( &t, &attr, task, NULL );
24872 #if HAVE_PTHREADS < 7
24873         if( status < 0 ) status = errno;
24874 #endif
24875         if( status ) return status;
24876 #else
24877         /* Draft 4 pthreads */
24878         status = pthread_create( &t, pthread_attr_default, task, NULL );
24879         if( status ) return errno;
24880
24881         /* give thread a chance to complete */
24882         /* it should remain joinable and hence detachable */
24883         sleep( 1 );
24884
24885         status = pthread_detach( &t );
24886         if( status ) return errno;
24887 #endif
24888
24889 #ifdef HAVE_LINUX_THREADS
24890         pthread_kill_other_threads_np();
24891 #endif
24892
24893         return 0;
24894
24895 }
24896
24897 _ACEOF
24898 rm -f conftest$ac_exeext
24899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24900   (eval $ac_link) 2>&5
24901   ac_status=$?
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905   (eval $ac_try) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); }; }; then
24909   ol_cv_pthread_create_works=yes
24910 else
24911   echo "$as_me: program exited with status $ac_status" >&5
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24914
24915 ( exit $ac_status )
24916 ol_cv_pthread_create_works=no
24917 fi
24918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24919 fi
24920 fi
24921 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24922 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24923
24924                         if test $ol_cv_pthread_create_works = no ; then
24925                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24926 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24927    { (exit 1); exit 1; }; }
24928                         fi
24929
24930                         ol_replace_broken_yield=no
24931
24932                         if test $ol_replace_broken_yield = yes ; then
24933
24934 cat >>confdefs.h <<\_ACEOF
24935 #define REPLACE_BROKEN_YIELD 1
24936 _ACEOF
24937
24938                         fi
24939
24940                                                 if test $ol_with_yielding_select = auto ; then
24941                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24942 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24943 if test "${ol_cv_pthread_select_yields+set}" = set; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946
24947                                 if test "$cross_compiling" = yes; then
24948   ol_cv_pthread_select_yields=cross
24949 else
24950   cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956
24957 #include <sys/types.h>
24958 #include <sys/time.h>
24959 #include <unistd.h>
24960 #include <pthread.h>
24961 #ifndef NULL
24962 #define NULL (void*) 0
24963 #endif
24964
24965 static int fildes[2];
24966
24967 static void *task(p)
24968         void *p;
24969 {
24970         int i;
24971         struct timeval tv;
24972
24973         fd_set rfds;
24974
24975         tv.tv_sec=10;
24976         tv.tv_usec=0;
24977
24978         FD_ZERO(&rfds);
24979         FD_SET(fildes[0], &rfds);
24980
24981         /* we're not interested in any fds */
24982         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24983
24984         if(i < 0) {
24985                 perror("select");
24986                 exit(10);
24987         }
24988
24989         exit(0); /* if we exit here, the select blocked the whole process */
24990 }
24991
24992 int main(argc, argv)
24993         int argc;
24994         char **argv;
24995 {
24996         pthread_t t;
24997
24998         /* create a pipe to select */
24999         if(pipe(&fildes[0])) {
25000                 perror("select");
25001                 exit(1);
25002         }
25003
25004 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25005         (void) pthread_setconcurrency(2);
25006 #else
25007 #ifdef HAVE_THR_SETCONCURRENCY
25008         /* Set Solaris LWP concurrency to 2 */
25009         thr_setconcurrency(2);
25010 #endif
25011 #endif
25012
25013 #if HAVE_PTHREADS < 6
25014         pthread_create(&t, pthread_attr_default, task, NULL);
25015 #else
25016         pthread_create(&t, NULL, task, NULL);
25017 #endif
25018
25019         /* make sure task runs first */
25020 #if HAVE_THR_YIELD
25021         thr_yield();
25022 #elif defined( HAVE_SCHED_YIELD )
25023         sched_yield();
25024 #elif defined( HAVE_PTHREAD_YIELD )
25025         pthread_yield();
25026 #endif
25027
25028         exit(2);
25029 }
25030 _ACEOF
25031 rm -f conftest$ac_exeext
25032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25033   (eval $ac_link) 2>&5
25034   ac_status=$?
25035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25038   (eval $ac_try) 2>&5
25039   ac_status=$?
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); }; }; then
25042   ol_cv_pthread_select_yields=no
25043 else
25044   echo "$as_me: program exited with status $ac_status" >&5
25045 echo "$as_me: failed program was:" >&5
25046 sed 's/^/| /' conftest.$ac_ext >&5
25047
25048 ( exit $ac_status )
25049 ol_cv_pthread_select_yields=yes
25050 fi
25051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25052 fi
25053 fi
25054 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25055 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25056
25057                                 if test $ol_cv_pthread_select_yields = cross ; then
25058                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25059 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25060    { (exit 1); exit 1; }; }
25061                                 fi
25062
25063                                 if test $ol_cv_pthread_select_yields = yes ; then
25064                                         ol_with_yielding_select=yes
25065                                 fi
25066                         fi
25067
25068                                                 CPPFLAGS="$save_CPPFLAGS"
25069                         LIBS="$save_LIBS"
25070                 else
25071                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25072 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25073    { (exit 1); exit 1; }; }
25074                 fi
25075         fi
25076
25077         if test $ol_with_threads = posix ; then
25078                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25079 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25080    { (exit 1); exit 1; }; }
25081         fi
25082         ;;
25083 esac
25084
25085 case $ol_with_threads in auto | yes | mach)
25086
25087
25088
25089 for ac_header in mach/cthreads.h cthreads.h
25090 do
25091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25093   echo "$as_me:$LINENO: checking for $ac_header" >&5
25094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25096   echo $ECHO_N "(cached) $ECHO_C" >&6
25097 fi
25098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25100 else
25101   # Is the header compilable?
25102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25104 cat >conftest.$ac_ext <<_ACEOF
25105 /* confdefs.h.  */
25106 _ACEOF
25107 cat confdefs.h >>conftest.$ac_ext
25108 cat >>conftest.$ac_ext <<_ACEOF
25109 /* end confdefs.h.  */
25110 $ac_includes_default
25111 #include <$ac_header>
25112 _ACEOF
25113 rm -f conftest.$ac_objext
25114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25115   (eval $ac_compile) 2>conftest.er1
25116   ac_status=$?
25117   grep -v '^ *+' conftest.er1 >conftest.err
25118   rm -f conftest.er1
25119   cat conftest.err >&5
25120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121   (exit $ac_status); } &&
25122          { ac_try='test -z "$ac_c_werror_flag"
25123                          || test ! -s conftest.err'
25124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25125   (eval $ac_try) 2>&5
25126   ac_status=$?
25127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128   (exit $ac_status); }; } &&
25129          { ac_try='test -s conftest.$ac_objext'
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   ac_header_compiler=yes
25136 else
25137   echo "$as_me: failed program was:" >&5
25138 sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_header_compiler=no
25141 fi
25142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25144 echo "${ECHO_T}$ac_header_compiler" >&6
25145
25146 # Is the header present?
25147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25149 cat >conftest.$ac_ext <<_ACEOF
25150 /* confdefs.h.  */
25151 _ACEOF
25152 cat confdefs.h >>conftest.$ac_ext
25153 cat >>conftest.$ac_ext <<_ACEOF
25154 /* end confdefs.h.  */
25155 #include <$ac_header>
25156 _ACEOF
25157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25158   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25159   ac_status=$?
25160   grep -v '^ *+' conftest.er1 >conftest.err
25161   rm -f conftest.er1
25162   cat conftest.err >&5
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); } >/dev/null; then
25165   if test -s conftest.err; then
25166     ac_cpp_err=$ac_c_preproc_warn_flag
25167     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25168   else
25169     ac_cpp_err=
25170   fi
25171 else
25172   ac_cpp_err=yes
25173 fi
25174 if test -z "$ac_cpp_err"; then
25175   ac_header_preproc=yes
25176 else
25177   echo "$as_me: failed program was:" >&5
25178 sed 's/^/| /' conftest.$ac_ext >&5
25179
25180   ac_header_preproc=no
25181 fi
25182 rm -f conftest.err conftest.$ac_ext
25183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25184 echo "${ECHO_T}$ac_header_preproc" >&6
25185
25186 # So?  What about this header?
25187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25188   yes:no: )
25189     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25191     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25193     ac_header_preproc=yes
25194     ;;
25195   no:yes:* )
25196     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25198     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25199 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25200     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25202     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25203 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25204     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25206     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25208     (
25209       cat <<\_ASBOX
25210 ## --------------------------------------------- ##
25211 ## Report this to <http://www.openldap.org/its/> ##
25212 ## --------------------------------------------- ##
25213 _ASBOX
25214     ) |
25215       sed "s/^/$as_me: WARNING:     /" >&2
25216     ;;
25217 esac
25218 echo "$as_me:$LINENO: checking for $ac_header" >&5
25219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25221   echo $ECHO_N "(cached) $ECHO_C" >&6
25222 else
25223   eval "$as_ac_Header=\$ac_header_preproc"
25224 fi
25225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25227
25228 fi
25229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25230   cat >>confdefs.h <<_ACEOF
25231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25232 _ACEOF
25233
25234 fi
25235
25236 done
25237
25238         if test $ac_cv_header_mach_cthreads_h = yes ; then
25239                 ol_with_threads=found
25240
25241                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25242 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25243 if test "${ac_cv_func_cthread_fork+set}" = set; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h.  */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h.  */
25252 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25254 #define cthread_fork innocuous_cthread_fork
25255
25256 /* System header to define __stub macros and hopefully few prototypes,
25257     which can conflict with char cthread_fork (); below.
25258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25259     <limits.h> exists even on freestanding compilers.  */
25260
25261 #ifdef __STDC__
25262 # include <limits.h>
25263 #else
25264 # include <assert.h>
25265 #endif
25266
25267 #undef cthread_fork
25268
25269 /* Override any gcc2 internal prototype to avoid an error.  */
25270 #ifdef __cplusplus
25271 extern "C"
25272 {
25273 #endif
25274 /* We use char because int might match the return type of a gcc2
25275    builtin and then its argument prototype would still apply.  */
25276 char cthread_fork ();
25277 /* The GNU C library defines this for functions which it implements
25278     to always fail with ENOSYS.  Some functions are actually named
25279     something starting with __ and the normal name is an alias.  */
25280 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25281 choke me
25282 #else
25283 char (*f) () = cthread_fork;
25284 #endif
25285 #ifdef __cplusplus
25286 }
25287 #endif
25288
25289 int
25290 main ()
25291 {
25292 return f != cthread_fork;
25293   ;
25294   return 0;
25295 }
25296 _ACEOF
25297 rm -f conftest.$ac_objext conftest$ac_exeext
25298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25299   (eval $ac_link) 2>conftest.er1
25300   ac_status=$?
25301   grep -v '^ *+' conftest.er1 >conftest.err
25302   rm -f conftest.er1
25303   cat conftest.err >&5
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); } &&
25306          { ac_try='test -z "$ac_c_werror_flag"
25307                          || test ! -s conftest.err'
25308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309   (eval $ac_try) 2>&5
25310   ac_status=$?
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); }; } &&
25313          { ac_try='test -s conftest$ac_exeext'
25314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315   (eval $ac_try) 2>&5
25316   ac_status=$?
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); }; }; then
25319   ac_cv_func_cthread_fork=yes
25320 else
25321   echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25323
25324 ac_cv_func_cthread_fork=no
25325 fi
25326 rm -f conftest.err conftest.$ac_objext \
25327       conftest$ac_exeext conftest.$ac_ext
25328 fi
25329 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25330 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25331 if test $ac_cv_func_cthread_fork = yes; then
25332   ol_link_threads=yes
25333 fi
25334
25335
25336                 if test $ol_link_threads = no ; then
25337                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25338 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25339 if test "${ol_cv_cthread_all_load+set}" = set; then
25340   echo $ECHO_N "(cached) $ECHO_C" >&6
25341 else
25342
25343                                                                 save_LIBS="$LIBS"
25344                                 LIBS="-all_load $LIBS"
25345                                 cat >conftest.$ac_ext <<_ACEOF
25346 /* confdefs.h.  */
25347 _ACEOF
25348 cat confdefs.h >>conftest.$ac_ext
25349 cat >>conftest.$ac_ext <<_ACEOF
25350 /* end confdefs.h.  */
25351 #include <mach/cthreads.h>
25352 int
25353 main ()
25354 {
25355
25356                                         cthread_fork((void *)0, (void *)0);
25357
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 rm -f conftest.$ac_objext conftest$ac_exeext
25363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25364   (eval $ac_link) 2>conftest.er1
25365   ac_status=$?
25366   grep -v '^ *+' conftest.er1 >conftest.err
25367   rm -f conftest.er1
25368   cat conftest.err >&5
25369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370   (exit $ac_status); } &&
25371          { ac_try='test -z "$ac_c_werror_flag"
25372                          || test ! -s conftest.err'
25373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374   (eval $ac_try) 2>&5
25375   ac_status=$?
25376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377   (exit $ac_status); }; } &&
25378          { ac_try='test -s conftest$ac_exeext'
25379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25380   (eval $ac_try) 2>&5
25381   ac_status=$?
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); }; }; then
25384   ol_cv_cthread_all_load=yes
25385 else
25386   echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25388
25389 ol_cv_cthread_all_load=no
25390 fi
25391 rm -f conftest.err conftest.$ac_objext \
25392       conftest$ac_exeext conftest.$ac_ext
25393                                                                 LIBS="$save_LIBS"
25394
25395 fi
25396 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25397 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25398
25399                         if test $ol_cv_cthread_all_load = yes ; then
25400                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25401                                 ol_link_threads=mach
25402                                 ol_with_threads=found
25403                         fi
25404                 fi
25405
25406         elif test $ac_cv_header_cthreads_h = yes ; then
25407
25408                 ol_with_threads=found
25409
25410                                 save_LIBS="$LIBS"
25411                 LIBS="$LIBS -lthreads"
25412                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25413 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25414 if test "${ac_cv_func_cthread_fork+set}" = set; then
25415   echo $ECHO_N "(cached) $ECHO_C" >&6
25416 else
25417   cat >conftest.$ac_ext <<_ACEOF
25418 /* confdefs.h.  */
25419 _ACEOF
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h.  */
25423 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25425 #define cthread_fork innocuous_cthread_fork
25426
25427 /* System header to define __stub macros and hopefully few prototypes,
25428     which can conflict with char cthread_fork (); below.
25429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25430     <limits.h> exists even on freestanding compilers.  */
25431
25432 #ifdef __STDC__
25433 # include <limits.h>
25434 #else
25435 # include <assert.h>
25436 #endif
25437
25438 #undef cthread_fork
25439
25440 /* Override any gcc2 internal prototype to avoid an error.  */
25441 #ifdef __cplusplus
25442 extern "C"
25443 {
25444 #endif
25445 /* We use char because int might match the return type of a gcc2
25446    builtin and then its argument prototype would still apply.  */
25447 char cthread_fork ();
25448 /* The GNU C library defines this for functions which it implements
25449     to always fail with ENOSYS.  Some functions are actually named
25450     something starting with __ and the normal name is an alias.  */
25451 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25452 choke me
25453 #else
25454 char (*f) () = cthread_fork;
25455 #endif
25456 #ifdef __cplusplus
25457 }
25458 #endif
25459
25460 int
25461 main ()
25462 {
25463 return f != cthread_fork;
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 rm -f conftest.$ac_objext conftest$ac_exeext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25470   (eval $ac_link) 2>conftest.er1
25471   ac_status=$?
25472   grep -v '^ *+' conftest.er1 >conftest.err
25473   rm -f conftest.er1
25474   cat conftest.err >&5
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); } &&
25477          { ac_try='test -z "$ac_c_werror_flag"
25478                          || test ! -s conftest.err'
25479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480   (eval $ac_try) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; } &&
25484          { ac_try='test -s conftest$ac_exeext'
25485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486   (eval $ac_try) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); }; }; then
25490   ac_cv_func_cthread_fork=yes
25491 else
25492   echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ac_cv_func_cthread_fork=no
25496 fi
25497 rm -f conftest.err conftest.$ac_objext \
25498       conftest$ac_exeext conftest.$ac_ext
25499 fi
25500 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25501 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25502 if test $ac_cv_func_cthread_fork = yes; then
25503   ol_link_threads=yes
25504 fi
25505
25506                 LIBS="$save_LIBS"
25507
25508                 if test $ol_link_threads = yes ; then
25509                         LTHREAD_LIBS="-lthreads"
25510                         ol_link_threads=mach
25511                         ol_with_threads=found
25512                 else
25513                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25514 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25515    { (exit 1); exit 1; }; }
25516                 fi
25517
25518         elif test $ol_with_threads = mach ; then
25519                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25520 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25521    { (exit 1); exit 1; }; }
25522         fi
25523
25524         if test $ol_link_threads = mach ; then
25525
25526 cat >>confdefs.h <<\_ACEOF
25527 #define HAVE_MACH_CTHREADS 1
25528 _ACEOF
25529
25530         elif test $ol_with_threads = found ; then
25531                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25532 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25533    { (exit 1); exit 1; }; }
25534         fi
25535         ;;
25536 esac
25537
25538 case $ol_with_threads in auto | yes | pth)
25539
25540
25541 for ac_header in pth.h
25542 do
25543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25545   echo "$as_me:$LINENO: checking for $ac_header" >&5
25546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25548   echo $ECHO_N "(cached) $ECHO_C" >&6
25549 fi
25550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25551 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25552 else
25553   # Is the header compilable?
25554 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25555 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562 $ac_includes_default
25563 #include <$ac_header>
25564 _ACEOF
25565 rm -f conftest.$ac_objext
25566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25567   (eval $ac_compile) 2>conftest.er1
25568   ac_status=$?
25569   grep -v '^ *+' conftest.er1 >conftest.err
25570   rm -f conftest.er1
25571   cat conftest.err >&5
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); } &&
25574          { ac_try='test -z "$ac_c_werror_flag"
25575                          || test ! -s conftest.err'
25576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577   (eval $ac_try) 2>&5
25578   ac_status=$?
25579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580   (exit $ac_status); }; } &&
25581          { ac_try='test -s conftest.$ac_objext'
25582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583   (eval $ac_try) 2>&5
25584   ac_status=$?
25585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586   (exit $ac_status); }; }; then
25587   ac_header_compiler=yes
25588 else
25589   echo "$as_me: failed program was:" >&5
25590 sed 's/^/| /' conftest.$ac_ext >&5
25591
25592 ac_header_compiler=no
25593 fi
25594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25596 echo "${ECHO_T}$ac_header_compiler" >&6
25597
25598 # Is the header present?
25599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25601 cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h.  */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h.  */
25607 #include <$ac_header>
25608 _ACEOF
25609 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25610   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25611   ac_status=$?
25612   grep -v '^ *+' conftest.er1 >conftest.err
25613   rm -f conftest.er1
25614   cat conftest.err >&5
25615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616   (exit $ac_status); } >/dev/null; then
25617   if test -s conftest.err; then
25618     ac_cpp_err=$ac_c_preproc_warn_flag
25619     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25620   else
25621     ac_cpp_err=
25622   fi
25623 else
25624   ac_cpp_err=yes
25625 fi
25626 if test -z "$ac_cpp_err"; then
25627   ac_header_preproc=yes
25628 else
25629   echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25631
25632   ac_header_preproc=no
25633 fi
25634 rm -f conftest.err conftest.$ac_ext
25635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25636 echo "${ECHO_T}$ac_header_preproc" >&6
25637
25638 # So?  What about this header?
25639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25640   yes:no: )
25641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25645     ac_header_preproc=yes
25646     ;;
25647   no:yes:* )
25648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25660     (
25661       cat <<\_ASBOX
25662 ## --------------------------------------------- ##
25663 ## Report this to <http://www.openldap.org/its/> ##
25664 ## --------------------------------------------- ##
25665 _ASBOX
25666     ) |
25667       sed "s/^/$as_me: WARNING:     /" >&2
25668     ;;
25669 esac
25670 echo "$as_me:$LINENO: checking for $ac_header" >&5
25671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25673   echo $ECHO_N "(cached) $ECHO_C" >&6
25674 else
25675   eval "$as_ac_Header=\$ac_header_preproc"
25676 fi
25677 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25678 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25679
25680 fi
25681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25682   cat >>confdefs.h <<_ACEOF
25683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25684 _ACEOF
25685
25686 fi
25687
25688 done
25689
25690
25691         if test $ac_cv_header_pth_h = yes ; then
25692                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25693 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25694 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25695   echo $ECHO_N "(cached) $ECHO_C" >&6
25696 else
25697   ac_check_lib_save_LIBS=$LIBS
25698 LIBS="-lpth  $LIBS"
25699 cat >conftest.$ac_ext <<_ACEOF
25700 /* confdefs.h.  */
25701 _ACEOF
25702 cat confdefs.h >>conftest.$ac_ext
25703 cat >>conftest.$ac_ext <<_ACEOF
25704 /* end confdefs.h.  */
25705
25706 /* Override any gcc2 internal prototype to avoid an error.  */
25707 #ifdef __cplusplus
25708 extern "C"
25709 #endif
25710 /* We use char because int might match the return type of a gcc2
25711    builtin and then its argument prototype would still apply.  */
25712 char pth_version ();
25713 int
25714 main ()
25715 {
25716 pth_version ();
25717   ;
25718   return 0;
25719 }
25720 _ACEOF
25721 rm -f conftest.$ac_objext conftest$ac_exeext
25722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25723   (eval $ac_link) 2>conftest.er1
25724   ac_status=$?
25725   grep -v '^ *+' conftest.er1 >conftest.err
25726   rm -f conftest.er1
25727   cat conftest.err >&5
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); } &&
25730          { ac_try='test -z "$ac_c_werror_flag"
25731                          || test ! -s conftest.err'
25732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25733   (eval $ac_try) 2>&5
25734   ac_status=$?
25735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25736   (exit $ac_status); }; } &&
25737          { ac_try='test -s conftest$ac_exeext'
25738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739   (eval $ac_try) 2>&5
25740   ac_status=$?
25741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742   (exit $ac_status); }; }; then
25743   ac_cv_lib_pth_pth_version=yes
25744 else
25745   echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25747
25748 ac_cv_lib_pth_pth_version=no
25749 fi
25750 rm -f conftest.err conftest.$ac_objext \
25751       conftest$ac_exeext conftest.$ac_ext
25752 LIBS=$ac_check_lib_save_LIBS
25753 fi
25754 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25755 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25756 if test $ac_cv_lib_pth_pth_version = yes; then
25757   have_pth=yes
25758 else
25759   have_pth=no
25760 fi
25761
25762
25763                 if test $have_pth = yes ; then
25764
25765 cat >>confdefs.h <<\_ACEOF
25766 #define HAVE_GNU_PTH 1
25767 _ACEOF
25768
25769                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25770                         ol_link_threads=pth
25771                         ol_with_threads=found
25772
25773                         if test $ol_with_yielding_select = auto ; then
25774                                 ol_with_yielding_select=yes
25775                         fi
25776                 fi
25777         fi
25778         ;;
25779 esac
25780
25781 case $ol_with_threads in auto | yes | lwp)
25782
25783
25784
25785 for ac_header in thread.h synch.h
25786 do
25787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25789   echo "$as_me:$LINENO: checking for $ac_header" >&5
25790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25792   echo $ECHO_N "(cached) $ECHO_C" >&6
25793 fi
25794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25796 else
25797   # Is the header compilable?
25798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25800 cat >conftest.$ac_ext <<_ACEOF
25801 /* confdefs.h.  */
25802 _ACEOF
25803 cat confdefs.h >>conftest.$ac_ext
25804 cat >>conftest.$ac_ext <<_ACEOF
25805 /* end confdefs.h.  */
25806 $ac_includes_default
25807 #include <$ac_header>
25808 _ACEOF
25809 rm -f conftest.$ac_objext
25810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25811   (eval $ac_compile) 2>conftest.er1
25812   ac_status=$?
25813   grep -v '^ *+' conftest.er1 >conftest.err
25814   rm -f conftest.er1
25815   cat conftest.err >&5
25816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25817   (exit $ac_status); } &&
25818          { ac_try='test -z "$ac_c_werror_flag"
25819                          || test ! -s conftest.err'
25820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25821   (eval $ac_try) 2>&5
25822   ac_status=$?
25823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25824   (exit $ac_status); }; } &&
25825          { ac_try='test -s conftest.$ac_objext'
25826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827   (eval $ac_try) 2>&5
25828   ac_status=$?
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); }; }; then
25831   ac_header_compiler=yes
25832 else
25833   echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836 ac_header_compiler=no
25837 fi
25838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25839 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25840 echo "${ECHO_T}$ac_header_compiler" >&6
25841
25842 # Is the header present?
25843 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25845 cat >conftest.$ac_ext <<_ACEOF
25846 /* confdefs.h.  */
25847 _ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h.  */
25851 #include <$ac_header>
25852 _ACEOF
25853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25855   ac_status=$?
25856   grep -v '^ *+' conftest.er1 >conftest.err
25857   rm -f conftest.er1
25858   cat conftest.err >&5
25859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860   (exit $ac_status); } >/dev/null; then
25861   if test -s conftest.err; then
25862     ac_cpp_err=$ac_c_preproc_warn_flag
25863     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25864   else
25865     ac_cpp_err=
25866   fi
25867 else
25868   ac_cpp_err=yes
25869 fi
25870 if test -z "$ac_cpp_err"; then
25871   ac_header_preproc=yes
25872 else
25873   echo "$as_me: failed program was:" >&5
25874 sed 's/^/| /' conftest.$ac_ext >&5
25875
25876   ac_header_preproc=no
25877 fi
25878 rm -f conftest.err conftest.$ac_ext
25879 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25880 echo "${ECHO_T}$ac_header_preproc" >&6
25881
25882 # So?  What about this header?
25883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25884   yes:no: )
25885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25889     ac_header_preproc=yes
25890     ;;
25891   no:yes:* )
25892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25904     (
25905       cat <<\_ASBOX
25906 ## --------------------------------------------- ##
25907 ## Report this to <http://www.openldap.org/its/> ##
25908 ## --------------------------------------------- ##
25909 _ASBOX
25910     ) |
25911       sed "s/^/$as_me: WARNING:     /" >&2
25912     ;;
25913 esac
25914 echo "$as_me:$LINENO: checking for $ac_header" >&5
25915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25917   echo $ECHO_N "(cached) $ECHO_C" >&6
25918 else
25919   eval "$as_ac_Header=\$ac_header_preproc"
25920 fi
25921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25923
25924 fi
25925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25926   cat >>confdefs.h <<_ACEOF
25927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25928 _ACEOF
25929
25930 fi
25931
25932 done
25933
25934         if test $ac_cv_header_thread_h = yes &&
25935            test $ac_cv_header_synch_h = yes ; then
25936                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25937 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25938 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25939   echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941   ac_check_lib_save_LIBS=$LIBS
25942 LIBS="-lthread  $LIBS"
25943 cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949
25950 /* Override any gcc2 internal prototype to avoid an error.  */
25951 #ifdef __cplusplus
25952 extern "C"
25953 #endif
25954 /* We use char because int might match the return type of a gcc2
25955    builtin and then its argument prototype would still apply.  */
25956 char thr_create ();
25957 int
25958 main ()
25959 {
25960 thr_create ();
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext conftest$ac_exeext
25966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25967   (eval $ac_link) 2>conftest.er1
25968   ac_status=$?
25969   grep -v '^ *+' conftest.er1 >conftest.err
25970   rm -f conftest.er1
25971   cat conftest.err >&5
25972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973   (exit $ac_status); } &&
25974          { ac_try='test -z "$ac_c_werror_flag"
25975                          || test ! -s conftest.err'
25976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977   (eval $ac_try) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); }; } &&
25981          { ac_try='test -s conftest$ac_exeext'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; }; then
25987   ac_cv_lib_thread_thr_create=yes
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992 ac_cv_lib_thread_thr_create=no
25993 fi
25994 rm -f conftest.err conftest.$ac_objext \
25995       conftest$ac_exeext conftest.$ac_ext
25996 LIBS=$ac_check_lib_save_LIBS
25997 fi
25998 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25999 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26000 if test $ac_cv_lib_thread_thr_create = yes; then
26001   have_thr=yes
26002 else
26003   have_thr=no
26004 fi
26005
26006
26007                 if test $have_thr = yes ; then
26008
26009 cat >>confdefs.h <<\_ACEOF
26010 #define HAVE_THR 1
26011 _ACEOF
26012
26013                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26014                         ol_link_threads=thr
26015
26016                         if test $ol_with_yielding_select = auto ; then
26017                                 ol_with_yielding_select=yes
26018                         fi
26019
26020
26021
26022 for ac_func in \
26023                                 thr_setconcurrency \
26024                                 thr_getconcurrency \
26025
26026 do
26027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26028 echo "$as_me:$LINENO: checking for $ac_func" >&5
26029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26030 if eval "test \"\${$as_ac_var+set}\" = set"; then
26031   echo $ECHO_N "(cached) $ECHO_C" >&6
26032 else
26033   cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26040    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26041 #define $ac_func innocuous_$ac_func
26042
26043 /* System header to define __stub macros and hopefully few prototypes,
26044     which can conflict with char $ac_func (); below.
26045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26046     <limits.h> exists even on freestanding compilers.  */
26047
26048 #ifdef __STDC__
26049 # include <limits.h>
26050 #else
26051 # include <assert.h>
26052 #endif
26053
26054 #undef $ac_func
26055
26056 /* Override any gcc2 internal prototype to avoid an error.  */
26057 #ifdef __cplusplus
26058 extern "C"
26059 {
26060 #endif
26061 /* We use char because int might match the return type of a gcc2
26062    builtin and then its argument prototype would still apply.  */
26063 char $ac_func ();
26064 /* The GNU C library defines this for functions which it implements
26065     to always fail with ENOSYS.  Some functions are actually named
26066     something starting with __ and the normal name is an alias.  */
26067 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26068 choke me
26069 #else
26070 char (*f) () = $ac_func;
26071 #endif
26072 #ifdef __cplusplus
26073 }
26074 #endif
26075
26076 int
26077 main ()
26078 {
26079 return f != $ac_func;
26080   ;
26081   return 0;
26082 }
26083 _ACEOF
26084 rm -f conftest.$ac_objext conftest$ac_exeext
26085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26086   (eval $ac_link) 2>conftest.er1
26087   ac_status=$?
26088   grep -v '^ *+' conftest.er1 >conftest.err
26089   rm -f conftest.er1
26090   cat conftest.err >&5
26091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092   (exit $ac_status); } &&
26093          { ac_try='test -z "$ac_c_werror_flag"
26094                          || test ! -s conftest.err'
26095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26096   (eval $ac_try) 2>&5
26097   ac_status=$?
26098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099   (exit $ac_status); }; } &&
26100          { ac_try='test -s conftest$ac_exeext'
26101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102   (eval $ac_try) 2>&5
26103   ac_status=$?
26104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105   (exit $ac_status); }; }; then
26106   eval "$as_ac_var=yes"
26107 else
26108   echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26110
26111 eval "$as_ac_var=no"
26112 fi
26113 rm -f conftest.err conftest.$ac_objext \
26114       conftest$ac_exeext conftest.$ac_ext
26115 fi
26116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26118 if test `eval echo '${'$as_ac_var'}'` = yes; then
26119   cat >>confdefs.h <<_ACEOF
26120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26121 _ACEOF
26122
26123 fi
26124 done
26125
26126                 fi
26127         fi
26128
26129
26130 for ac_header in lwp/lwp.h
26131 do
26132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26134   echo "$as_me:$LINENO: checking for $ac_header" >&5
26135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 fi
26139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26141 else
26142   # Is the header compilable?
26143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26145 cat >conftest.$ac_ext <<_ACEOF
26146 /* confdefs.h.  */
26147 _ACEOF
26148 cat confdefs.h >>conftest.$ac_ext
26149 cat >>conftest.$ac_ext <<_ACEOF
26150 /* end confdefs.h.  */
26151 $ac_includes_default
26152 #include <$ac_header>
26153 _ACEOF
26154 rm -f conftest.$ac_objext
26155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26156   (eval $ac_compile) 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } &&
26163          { ac_try='test -z "$ac_c_werror_flag"
26164                          || test ! -s conftest.err'
26165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166   (eval $ac_try) 2>&5
26167   ac_status=$?
26168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169   (exit $ac_status); }; } &&
26170          { ac_try='test -s conftest.$ac_objext'
26171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172   (eval $ac_try) 2>&5
26173   ac_status=$?
26174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175   (exit $ac_status); }; }; then
26176   ac_header_compiler=yes
26177 else
26178   echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26180
26181 ac_header_compiler=no
26182 fi
26183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26184 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26185 echo "${ECHO_T}$ac_header_compiler" >&6
26186
26187 # Is the header present?
26188 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26190 cat >conftest.$ac_ext <<_ACEOF
26191 /* confdefs.h.  */
26192 _ACEOF
26193 cat confdefs.h >>conftest.$ac_ext
26194 cat >>conftest.$ac_ext <<_ACEOF
26195 /* end confdefs.h.  */
26196 #include <$ac_header>
26197 _ACEOF
26198 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26199   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26200   ac_status=$?
26201   grep -v '^ *+' conftest.er1 >conftest.err
26202   rm -f conftest.er1
26203   cat conftest.err >&5
26204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205   (exit $ac_status); } >/dev/null; then
26206   if test -s conftest.err; then
26207     ac_cpp_err=$ac_c_preproc_warn_flag
26208     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26209   else
26210     ac_cpp_err=
26211   fi
26212 else
26213   ac_cpp_err=yes
26214 fi
26215 if test -z "$ac_cpp_err"; then
26216   ac_header_preproc=yes
26217 else
26218   echo "$as_me: failed program was:" >&5
26219 sed 's/^/| /' conftest.$ac_ext >&5
26220
26221   ac_header_preproc=no
26222 fi
26223 rm -f conftest.err conftest.$ac_ext
26224 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26225 echo "${ECHO_T}$ac_header_preproc" >&6
26226
26227 # So?  What about this header?
26228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26229   yes:no: )
26230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26234     ac_header_preproc=yes
26235     ;;
26236   no:yes:* )
26237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26249     (
26250       cat <<\_ASBOX
26251 ## --------------------------------------------- ##
26252 ## Report this to <http://www.openldap.org/its/> ##
26253 ## --------------------------------------------- ##
26254 _ASBOX
26255     ) |
26256       sed "s/^/$as_me: WARNING:     /" >&2
26257     ;;
26258 esac
26259 echo "$as_me:$LINENO: checking for $ac_header" >&5
26260 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26262   echo $ECHO_N "(cached) $ECHO_C" >&6
26263 else
26264   eval "$as_ac_Header=\$ac_header_preproc"
26265 fi
26266 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26268
26269 fi
26270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26271   cat >>confdefs.h <<_ACEOF
26272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26273 _ACEOF
26274
26275 fi
26276
26277 done
26278
26279         if test $ac_cv_header_lwp_lwp_h = yes ; then
26280                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26281 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26282 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26283   echo $ECHO_N "(cached) $ECHO_C" >&6
26284 else
26285   ac_check_lib_save_LIBS=$LIBS
26286 LIBS="-llwp  $LIBS"
26287 cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293
26294 /* Override any gcc2 internal prototype to avoid an error.  */
26295 #ifdef __cplusplus
26296 extern "C"
26297 #endif
26298 /* We use char because int might match the return type of a gcc2
26299    builtin and then its argument prototype would still apply.  */
26300 char lwp_create ();
26301 int
26302 main ()
26303 {
26304 lwp_create ();
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 rm -f conftest.$ac_objext conftest$ac_exeext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26311   (eval $ac_link) 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } &&
26318          { ac_try='test -z "$ac_c_werror_flag"
26319                          || test ! -s conftest.err'
26320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321   (eval $ac_try) 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; } &&
26325          { ac_try='test -s conftest$ac_exeext'
26326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; }; then
26331   ac_cv_lib_lwp_lwp_create=yes
26332 else
26333   echo "$as_me: failed program was:" >&5
26334 sed 's/^/| /' conftest.$ac_ext >&5
26335
26336 ac_cv_lib_lwp_lwp_create=no
26337 fi
26338 rm -f conftest.err conftest.$ac_objext \
26339       conftest$ac_exeext conftest.$ac_ext
26340 LIBS=$ac_check_lib_save_LIBS
26341 fi
26342 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26343 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26344 if test $ac_cv_lib_lwp_lwp_create = yes; then
26345   have_lwp=yes
26346 else
26347   have_lwp=no
26348 fi
26349
26350
26351                 if test $have_lwp = yes ; then
26352
26353 cat >>confdefs.h <<\_ACEOF
26354 #define HAVE_LWP 1
26355 _ACEOF
26356
26357                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26358                         ol_link_threads=lwp
26359
26360                         if test $ol_with_yielding_select = auto ; then
26361                                 ol_with_yielding_select=no
26362                         fi
26363                 fi
26364         fi
26365         ;;
26366 esac
26367
26368 if test $ol_with_yielding_select = yes ; then
26369
26370 cat >>confdefs.h <<\_ACEOF
26371 #define HAVE_YIELDING_SELECT 1
26372 _ACEOF
26373
26374 fi
26375
26376 if test $ol_with_threads = manual ; then
26377                 ol_link_threads=yes
26378
26379         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26380 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26381
26382
26383
26384 for ac_header in pthread.h sched.h
26385 do
26386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26388   echo "$as_me:$LINENO: checking for $ac_header" >&5
26389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26391   echo $ECHO_N "(cached) $ECHO_C" >&6
26392 fi
26393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26395 else
26396   # Is the header compilable?
26397 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26399 cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h.  */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h.  */
26405 $ac_includes_default
26406 #include <$ac_header>
26407 _ACEOF
26408 rm -f conftest.$ac_objext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26410   (eval $ac_compile) 2>conftest.er1
26411   ac_status=$?
26412   grep -v '^ *+' conftest.er1 >conftest.err
26413   rm -f conftest.er1
26414   cat conftest.err >&5
26415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416   (exit $ac_status); } &&
26417          { ac_try='test -z "$ac_c_werror_flag"
26418                          || test ! -s conftest.err'
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); }; } &&
26424          { ac_try='test -s conftest.$ac_objext'
26425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426   (eval $ac_try) 2>&5
26427   ac_status=$?
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); }; }; then
26430   ac_header_compiler=yes
26431 else
26432   echo "$as_me: failed program was:" >&5
26433 sed 's/^/| /' conftest.$ac_ext >&5
26434
26435 ac_header_compiler=no
26436 fi
26437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26439 echo "${ECHO_T}$ac_header_compiler" >&6
26440
26441 # Is the header present?
26442 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26444 cat >conftest.$ac_ext <<_ACEOF
26445 /* confdefs.h.  */
26446 _ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h.  */
26450 #include <$ac_header>
26451 _ACEOF
26452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26454   ac_status=$?
26455   grep -v '^ *+' conftest.er1 >conftest.err
26456   rm -f conftest.er1
26457   cat conftest.err >&5
26458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459   (exit $ac_status); } >/dev/null; then
26460   if test -s conftest.err; then
26461     ac_cpp_err=$ac_c_preproc_warn_flag
26462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26463   else
26464     ac_cpp_err=
26465   fi
26466 else
26467   ac_cpp_err=yes
26468 fi
26469 if test -z "$ac_cpp_err"; then
26470   ac_header_preproc=yes
26471 else
26472   echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475   ac_header_preproc=no
26476 fi
26477 rm -f conftest.err conftest.$ac_ext
26478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26479 echo "${ECHO_T}$ac_header_preproc" >&6
26480
26481 # So?  What about this header?
26482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26483   yes:no: )
26484     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26486     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26488     ac_header_preproc=yes
26489     ;;
26490   no:yes:* )
26491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26493     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26494 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26495     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26497     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26498 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26501     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26503     (
26504       cat <<\_ASBOX
26505 ## --------------------------------------------- ##
26506 ## Report this to <http://www.openldap.org/its/> ##
26507 ## --------------------------------------------- ##
26508 _ASBOX
26509     ) |
26510       sed "s/^/$as_me: WARNING:     /" >&2
26511     ;;
26512 esac
26513 echo "$as_me:$LINENO: checking for $ac_header" >&5
26514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26516   echo $ECHO_N "(cached) $ECHO_C" >&6
26517 else
26518   eval "$as_ac_Header=\$ac_header_preproc"
26519 fi
26520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26522
26523 fi
26524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26525   cat >>confdefs.h <<_ACEOF
26526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26527 _ACEOF
26528
26529 fi
26530
26531 done
26532
26533
26534
26535 for ac_func in sched_yield pthread_yield
26536 do
26537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26538 echo "$as_me:$LINENO: checking for $ac_func" >&5
26539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26540 if eval "test \"\${$as_ac_var+set}\" = set"; then
26541   echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543   cat >conftest.$ac_ext <<_ACEOF
26544 /* confdefs.h.  */
26545 _ACEOF
26546 cat confdefs.h >>conftest.$ac_ext
26547 cat >>conftest.$ac_ext <<_ACEOF
26548 /* end confdefs.h.  */
26549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26551 #define $ac_func innocuous_$ac_func
26552
26553 /* System header to define __stub macros and hopefully few prototypes,
26554     which can conflict with char $ac_func (); below.
26555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26556     <limits.h> exists even on freestanding compilers.  */
26557
26558 #ifdef __STDC__
26559 # include <limits.h>
26560 #else
26561 # include <assert.h>
26562 #endif
26563
26564 #undef $ac_func
26565
26566 /* Override any gcc2 internal prototype to avoid an error.  */
26567 #ifdef __cplusplus
26568 extern "C"
26569 {
26570 #endif
26571 /* We use char because int might match the return type of a gcc2
26572    builtin and then its argument prototype would still apply.  */
26573 char $ac_func ();
26574 /* The GNU C library defines this for functions which it implements
26575     to always fail with ENOSYS.  Some functions are actually named
26576     something starting with __ and the normal name is an alias.  */
26577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26578 choke me
26579 #else
26580 char (*f) () = $ac_func;
26581 #endif
26582 #ifdef __cplusplus
26583 }
26584 #endif
26585
26586 int
26587 main ()
26588 {
26589 return f != $ac_func;
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 rm -f conftest.$ac_objext conftest$ac_exeext
26595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26596   (eval $ac_link) 2>conftest.er1
26597   ac_status=$?
26598   grep -v '^ *+' conftest.er1 >conftest.err
26599   rm -f conftest.er1
26600   cat conftest.err >&5
26601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602   (exit $ac_status); } &&
26603          { ac_try='test -z "$ac_c_werror_flag"
26604                          || test ! -s conftest.err'
26605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26606   (eval $ac_try) 2>&5
26607   ac_status=$?
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); }; } &&
26610          { ac_try='test -s conftest$ac_exeext'
26611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26612   (eval $ac_try) 2>&5
26613   ac_status=$?
26614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615   (exit $ac_status); }; }; then
26616   eval "$as_ac_var=yes"
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621 eval "$as_ac_var=no"
26622 fi
26623 rm -f conftest.err conftest.$ac_objext \
26624       conftest$ac_exeext conftest.$ac_ext
26625 fi
26626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26628 if test `eval echo '${'$as_ac_var'}'` = yes; then
26629   cat >>confdefs.h <<_ACEOF
26630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26631 _ACEOF
26632
26633 fi
26634 done
26635
26636
26637         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26638 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26639 if test "${ol_cv_header_linux_threads+set}" = set; then
26640   echo $ECHO_N "(cached) $ECHO_C" >&6
26641 else
26642   cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648 #include <pthread.h>
26649 _ACEOF
26650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26651   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26652   ol_cv_header_linux_threads=yes
26653 else
26654   ol_cv_header_linux_threads=no
26655 fi
26656 rm -f conftest*
26657
26658
26659 fi
26660 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26661 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26662         if test $ol_cv_header_linux_threads = yes; then
26663
26664 cat >>confdefs.h <<\_ACEOF
26665 #define HAVE_LINUX_THREADS 1
26666 _ACEOF
26667
26668         fi
26669
26670
26671
26672 for ac_header in mach/cthreads.h
26673 do
26674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26676   echo "$as_me:$LINENO: checking for $ac_header" >&5
26677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26679   echo $ECHO_N "(cached) $ECHO_C" >&6
26680 fi
26681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26683 else
26684   # Is the header compilable?
26685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26687 cat >conftest.$ac_ext <<_ACEOF
26688 /* confdefs.h.  */
26689 _ACEOF
26690 cat confdefs.h >>conftest.$ac_ext
26691 cat >>conftest.$ac_ext <<_ACEOF
26692 /* end confdefs.h.  */
26693 $ac_includes_default
26694 #include <$ac_header>
26695 _ACEOF
26696 rm -f conftest.$ac_objext
26697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26698   (eval $ac_compile) 2>conftest.er1
26699   ac_status=$?
26700   grep -v '^ *+' conftest.er1 >conftest.err
26701   rm -f conftest.er1
26702   cat conftest.err >&5
26703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26704   (exit $ac_status); } &&
26705          { ac_try='test -z "$ac_c_werror_flag"
26706                          || test ! -s conftest.err'
26707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708   (eval $ac_try) 2>&5
26709   ac_status=$?
26710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711   (exit $ac_status); }; } &&
26712          { ac_try='test -s conftest.$ac_objext'
26713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714   (eval $ac_try) 2>&5
26715   ac_status=$?
26716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717   (exit $ac_status); }; }; then
26718   ac_header_compiler=yes
26719 else
26720   echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.$ac_ext >&5
26722
26723 ac_header_compiler=no
26724 fi
26725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26727 echo "${ECHO_T}$ac_header_compiler" >&6
26728
26729 # Is the header present?
26730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26732 cat >conftest.$ac_ext <<_ACEOF
26733 /* confdefs.h.  */
26734 _ACEOF
26735 cat confdefs.h >>conftest.$ac_ext
26736 cat >>conftest.$ac_ext <<_ACEOF
26737 /* end confdefs.h.  */
26738 #include <$ac_header>
26739 _ACEOF
26740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26741   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26742   ac_status=$?
26743   grep -v '^ *+' conftest.er1 >conftest.err
26744   rm -f conftest.er1
26745   cat conftest.err >&5
26746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747   (exit $ac_status); } >/dev/null; then
26748   if test -s conftest.err; then
26749     ac_cpp_err=$ac_c_preproc_warn_flag
26750     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26751   else
26752     ac_cpp_err=
26753   fi
26754 else
26755   ac_cpp_err=yes
26756 fi
26757 if test -z "$ac_cpp_err"; then
26758   ac_header_preproc=yes
26759 else
26760   echo "$as_me: failed program was:" >&5
26761 sed 's/^/| /' conftest.$ac_ext >&5
26762
26763   ac_header_preproc=no
26764 fi
26765 rm -f conftest.err conftest.$ac_ext
26766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26767 echo "${ECHO_T}$ac_header_preproc" >&6
26768
26769 # So?  What about this header?
26770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26771   yes:no: )
26772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26776     ac_header_preproc=yes
26777     ;;
26778   no:yes:* )
26779     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26781     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26782 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26783     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26785     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26786 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26787     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26789     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26791     (
26792       cat <<\_ASBOX
26793 ## --------------------------------------------- ##
26794 ## Report this to <http://www.openldap.org/its/> ##
26795 ## --------------------------------------------- ##
26796 _ASBOX
26797     ) |
26798       sed "s/^/$as_me: WARNING:     /" >&2
26799     ;;
26800 esac
26801 echo "$as_me:$LINENO: checking for $ac_header" >&5
26802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26804   echo $ECHO_N "(cached) $ECHO_C" >&6
26805 else
26806   eval "$as_ac_Header=\$ac_header_preproc"
26807 fi
26808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26810
26811 fi
26812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26813   cat >>confdefs.h <<_ACEOF
26814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26815 _ACEOF
26816
26817 fi
26818
26819 done
26820
26821
26822 for ac_header in lwp/lwp.h
26823 do
26824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26826   echo "$as_me:$LINENO: checking for $ac_header" >&5
26827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26829   echo $ECHO_N "(cached) $ECHO_C" >&6
26830 fi
26831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26833 else
26834   # Is the header compilable?
26835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26837 cat >conftest.$ac_ext <<_ACEOF
26838 /* confdefs.h.  */
26839 _ACEOF
26840 cat confdefs.h >>conftest.$ac_ext
26841 cat >>conftest.$ac_ext <<_ACEOF
26842 /* end confdefs.h.  */
26843 $ac_includes_default
26844 #include <$ac_header>
26845 _ACEOF
26846 rm -f conftest.$ac_objext
26847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26848   (eval $ac_compile) 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } &&
26855          { ac_try='test -z "$ac_c_werror_flag"
26856                          || test ! -s conftest.err'
26857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26858   (eval $ac_try) 2>&5
26859   ac_status=$?
26860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26861   (exit $ac_status); }; } &&
26862          { ac_try='test -s conftest.$ac_objext'
26863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864   (eval $ac_try) 2>&5
26865   ac_status=$?
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); }; }; then
26868   ac_header_compiler=yes
26869 else
26870   echo "$as_me: failed program was:" >&5
26871 sed 's/^/| /' conftest.$ac_ext >&5
26872
26873 ac_header_compiler=no
26874 fi
26875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26877 echo "${ECHO_T}$ac_header_compiler" >&6
26878
26879 # Is the header present?
26880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h.  */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h.  */
26888 #include <$ac_header>
26889 _ACEOF
26890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26891   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26892   ac_status=$?
26893   grep -v '^ *+' conftest.er1 >conftest.err
26894   rm -f conftest.er1
26895   cat conftest.err >&5
26896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26897   (exit $ac_status); } >/dev/null; then
26898   if test -s conftest.err; then
26899     ac_cpp_err=$ac_c_preproc_warn_flag
26900     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26901   else
26902     ac_cpp_err=
26903   fi
26904 else
26905   ac_cpp_err=yes
26906 fi
26907 if test -z "$ac_cpp_err"; then
26908   ac_header_preproc=yes
26909 else
26910   echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26912
26913   ac_header_preproc=no
26914 fi
26915 rm -f conftest.err conftest.$ac_ext
26916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26917 echo "${ECHO_T}$ac_header_preproc" >&6
26918
26919 # So?  What about this header?
26920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26921   yes:no: )
26922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26926     ac_header_preproc=yes
26927     ;;
26928   no:yes:* )
26929     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26931     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26932 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26933     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26935     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26936 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26939     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26941     (
26942       cat <<\_ASBOX
26943 ## --------------------------------------------- ##
26944 ## Report this to <http://www.openldap.org/its/> ##
26945 ## --------------------------------------------- ##
26946 _ASBOX
26947     ) |
26948       sed "s/^/$as_me: WARNING:     /" >&2
26949     ;;
26950 esac
26951 echo "$as_me:$LINENO: checking for $ac_header" >&5
26952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26954   echo $ECHO_N "(cached) $ECHO_C" >&6
26955 else
26956   eval "$as_ac_Header=\$ac_header_preproc"
26957 fi
26958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26960
26961 fi
26962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26963   cat >>confdefs.h <<_ACEOF
26964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26965 _ACEOF
26966
26967 fi
26968
26969 done
26970
26971
26972
26973 for ac_header in thread.h synch.h
26974 do
26975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26977   echo "$as_me:$LINENO: checking for $ac_header" >&5
26978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26980   echo $ECHO_N "(cached) $ECHO_C" >&6
26981 fi
26982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26984 else
26985   # Is the header compilable?
26986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26988 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994 $ac_includes_default
26995 #include <$ac_header>
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26999   (eval $ac_compile) 2>conftest.er1
27000   ac_status=$?
27001   grep -v '^ *+' conftest.er1 >conftest.err
27002   rm -f conftest.er1
27003   cat conftest.err >&5
27004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005   (exit $ac_status); } &&
27006          { ac_try='test -z "$ac_c_werror_flag"
27007                          || test ! -s conftest.err'
27008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009   (eval $ac_try) 2>&5
27010   ac_status=$?
27011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012   (exit $ac_status); }; } &&
27013          { ac_try='test -s conftest.$ac_objext'
27014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27015   (eval $ac_try) 2>&5
27016   ac_status=$?
27017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018   (exit $ac_status); }; }; then
27019   ac_header_compiler=yes
27020 else
27021   echo "$as_me: failed program was:" >&5
27022 sed 's/^/| /' conftest.$ac_ext >&5
27023
27024 ac_header_compiler=no
27025 fi
27026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27028 echo "${ECHO_T}$ac_header_compiler" >&6
27029
27030 # Is the header present?
27031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27033 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039 #include <$ac_header>
27040 _ACEOF
27041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } >/dev/null; then
27049   if test -s conftest.err; then
27050     ac_cpp_err=$ac_c_preproc_warn_flag
27051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27052   else
27053     ac_cpp_err=
27054   fi
27055 else
27056   ac_cpp_err=yes
27057 fi
27058 if test -z "$ac_cpp_err"; then
27059   ac_header_preproc=yes
27060 else
27061   echo "$as_me: failed program was:" >&5
27062 sed 's/^/| /' conftest.$ac_ext >&5
27063
27064   ac_header_preproc=no
27065 fi
27066 rm -f conftest.err conftest.$ac_ext
27067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27068 echo "${ECHO_T}$ac_header_preproc" >&6
27069
27070 # So?  What about this header?
27071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27072   yes:no: )
27073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27077     ac_header_preproc=yes
27078     ;;
27079   no:yes:* )
27080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27092     (
27093       cat <<\_ASBOX
27094 ## --------------------------------------------- ##
27095 ## Report this to <http://www.openldap.org/its/> ##
27096 ## --------------------------------------------- ##
27097 _ASBOX
27098     ) |
27099       sed "s/^/$as_me: WARNING:     /" >&2
27100     ;;
27101 esac
27102 echo "$as_me:$LINENO: checking for $ac_header" >&5
27103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27105   echo $ECHO_N "(cached) $ECHO_C" >&6
27106 else
27107   eval "$as_ac_Header=\$ac_header_preproc"
27108 fi
27109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27111
27112 fi
27113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27114   cat >>confdefs.h <<_ACEOF
27115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27116 _ACEOF
27117
27118 fi
27119
27120 done
27121
27122 fi
27123
27124 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27125                         cat >>confdefs.h <<\_ACEOF
27126 #define REENTRANT 1
27127 _ACEOF
27128
27129         cat >>confdefs.h <<\_ACEOF
27130 #define _REENTRANT 1
27131 _ACEOF
27132
27133         cat >>confdefs.h <<\_ACEOF
27134 #define THREAD_SAFE 1
27135 _ACEOF
27136
27137         cat >>confdefs.h <<\_ACEOF
27138 #define _THREAD_SAFE 1
27139 _ACEOF
27140
27141         cat >>confdefs.h <<\_ACEOF
27142 #define THREADSAFE 1
27143 _ACEOF
27144
27145         cat >>confdefs.h <<\_ACEOF
27146 #define _THREADSAFE 1
27147 _ACEOF
27148
27149         cat >>confdefs.h <<\_ACEOF
27150 #define _SGI_MP_SOURCE 1
27151 _ACEOF
27152
27153
27154                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
27155 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27156 if test "${ol_cv_errno_thread_specific+set}" = set; then
27157   echo $ECHO_N "(cached) $ECHO_C" >&6
27158 else
27159
27160                 cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166 #include <errno.h>
27167 int
27168 main ()
27169 {
27170 errno = 0;
27171   ;
27172   return 0;
27173 }
27174 _ACEOF
27175 rm -f conftest.$ac_objext conftest$ac_exeext
27176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27177   (eval $ac_link) 2>conftest.er1
27178   ac_status=$?
27179   grep -v '^ *+' conftest.er1 >conftest.err
27180   rm -f conftest.er1
27181   cat conftest.err >&5
27182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183   (exit $ac_status); } &&
27184          { ac_try='test -z "$ac_c_werror_flag"
27185                          || test ! -s conftest.err'
27186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27187   (eval $ac_try) 2>&5
27188   ac_status=$?
27189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27190   (exit $ac_status); }; } &&
27191          { ac_try='test -s conftest$ac_exeext'
27192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193   (eval $ac_try) 2>&5
27194   ac_status=$?
27195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196   (exit $ac_status); }; }; then
27197   ol_cv_errno_thread_specific=yes
27198 else
27199   echo "$as_me: failed program was:" >&5
27200 sed 's/^/| /' conftest.$ac_ext >&5
27201
27202 ol_cv_errno_thread_specific=no
27203 fi
27204 rm -f conftest.err conftest.$ac_objext \
27205       conftest$ac_exeext conftest.$ac_ext
27206
27207 fi
27208 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27209 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27210
27211                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27212 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27213 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27214   echo $ECHO_N "(cached) $ECHO_C" >&6
27215 else
27216
27217                 cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 #include <netdb.h>
27224 int
27225 main ()
27226 {
27227 h_errno = 0;
27228   ;
27229   return 0;
27230 }
27231 _ACEOF
27232 rm -f conftest.$ac_objext conftest$ac_exeext
27233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27234   (eval $ac_link) 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } &&
27241          { ac_try='test -z "$ac_c_werror_flag"
27242                          || test ! -s conftest.err'
27243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244   (eval $ac_try) 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; } &&
27248          { ac_try='test -s conftest$ac_exeext'
27249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250   (eval $ac_try) 2>&5
27251   ac_status=$?
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); }; }; then
27254   ol_cv_h_errno_thread_specific=yes
27255 else
27256   echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27258
27259 ol_cv_h_errno_thread_specific=no
27260 fi
27261 rm -f conftest.err conftest.$ac_objext \
27262       conftest$ac_exeext conftest.$ac_ext
27263
27264 fi
27265 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27266 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27267
27268         if test $ol_cv_errno_thread_specific != yes ||
27269            test $ol_cv_h_errno_thread_specific != yes ; then
27270                 LIBS="$LTHREAD_LIBS $LIBS"
27271                 LTHREAD_LIBS=""
27272         fi
27273
27274 fi
27275
27276 if test $ol_link_threads = no ; then
27277         if test $ol_with_threads = yes ; then
27278                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27279 echo "$as_me: error: no suitable thread support" >&2;}
27280    { (exit 1); exit 1; }; }
27281         fi
27282
27283         if test $ol_with_threads = auto ; then
27284                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27285 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27286                 ol_with_threads=no
27287         fi
27288
27289
27290 cat >>confdefs.h <<\_ACEOF
27291 #define NO_THREADS 1
27292 _ACEOF
27293
27294         LTHREAD_LIBS=""
27295         BUILD_THREAD=no
27296 else
27297         BUILD_THREAD=yes
27298 fi
27299
27300 if test $ol_link_threads != no ; then
27301
27302 cat >>confdefs.h <<\_ACEOF
27303 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27304 _ACEOF
27305
27306 fi
27307
27308
27309
27310
27311 for ac_func in \
27312         ctime_r                 \
27313         gethostbyname_r gethostbyaddr_r \
27314
27315 do
27316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27317 echo "$as_me:$LINENO: checking for $ac_func" >&5
27318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27319 if eval "test \"\${$as_ac_var+set}\" = set"; then
27320   echo $ECHO_N "(cached) $ECHO_C" >&6
27321 else
27322   cat >conftest.$ac_ext <<_ACEOF
27323 /* confdefs.h.  */
27324 _ACEOF
27325 cat confdefs.h >>conftest.$ac_ext
27326 cat >>conftest.$ac_ext <<_ACEOF
27327 /* end confdefs.h.  */
27328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27330 #define $ac_func innocuous_$ac_func
27331
27332 /* System header to define __stub macros and hopefully few prototypes,
27333     which can conflict with char $ac_func (); below.
27334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27335     <limits.h> exists even on freestanding compilers.  */
27336
27337 #ifdef __STDC__
27338 # include <limits.h>
27339 #else
27340 # include <assert.h>
27341 #endif
27342
27343 #undef $ac_func
27344
27345 /* Override any gcc2 internal prototype to avoid an error.  */
27346 #ifdef __cplusplus
27347 extern "C"
27348 {
27349 #endif
27350 /* We use char because int might match the return type of a gcc2
27351    builtin and then its argument prototype would still apply.  */
27352 char $ac_func ();
27353 /* The GNU C library defines this for functions which it implements
27354     to always fail with ENOSYS.  Some functions are actually named
27355     something starting with __ and the normal name is an alias.  */
27356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27357 choke me
27358 #else
27359 char (*f) () = $ac_func;
27360 #endif
27361 #ifdef __cplusplus
27362 }
27363 #endif
27364
27365 int
27366 main ()
27367 {
27368 return f != $ac_func;
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27375   (eval $ac_link) 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } &&
27382          { ac_try='test -z "$ac_c_werror_flag"
27383                          || test ! -s conftest.err'
27384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385   (eval $ac_try) 2>&5
27386   ac_status=$?
27387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388   (exit $ac_status); }; } &&
27389          { ac_try='test -s conftest$ac_exeext'
27390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27391   (eval $ac_try) 2>&5
27392   ac_status=$?
27393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394   (exit $ac_status); }; }; then
27395   eval "$as_ac_var=yes"
27396 else
27397   echo "$as_me: failed program was:" >&5
27398 sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 eval "$as_ac_var=no"
27401 fi
27402 rm -f conftest.err conftest.$ac_objext \
27403       conftest$ac_exeext conftest.$ac_ext
27404 fi
27405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27407 if test `eval echo '${'$as_ac_var'}'` = yes; then
27408   cat >>confdefs.h <<_ACEOF
27409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27410 _ACEOF
27411
27412 fi
27413 done
27414
27415
27416 if test "$ac_cv_func_ctime_r" = no ; then
27417         ol_cv_func_ctime_r_nargs=0
27418 else
27419         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27420 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27421 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27422   echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424   cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h.  */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h.  */
27430 #include <time.h>
27431 int
27432 main ()
27433 {
27434 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27435   ;
27436   return 0;
27437 }
27438 _ACEOF
27439 rm -f conftest.$ac_objext
27440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27441   (eval $ac_compile) 2>conftest.er1
27442   ac_status=$?
27443   grep -v '^ *+' conftest.er1 >conftest.err
27444   rm -f conftest.er1
27445   cat conftest.err >&5
27446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447   (exit $ac_status); } &&
27448          { ac_try='test -z "$ac_c_werror_flag"
27449                          || test ! -s conftest.err'
27450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451   (eval $ac_try) 2>&5
27452   ac_status=$?
27453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454   (exit $ac_status); }; } &&
27455          { ac_try='test -s conftest.$ac_objext'
27456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457   (eval $ac_try) 2>&5
27458   ac_status=$?
27459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460   (exit $ac_status); }; }; then
27461   ol_cv_func_ctime_r_nargs3=yes
27462 else
27463   echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27465
27466 ol_cv_func_ctime_r_nargs3=no
27467 fi
27468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27469
27470         cat >conftest.$ac_ext <<_ACEOF
27471 /* confdefs.h.  */
27472 _ACEOF
27473 cat confdefs.h >>conftest.$ac_ext
27474 cat >>conftest.$ac_ext <<_ACEOF
27475 /* end confdefs.h.  */
27476 #include <time.h>
27477 int
27478 main ()
27479 {
27480 time_t ti; char *buffer; ctime_r(&ti,buffer);
27481   ;
27482   return 0;
27483 }
27484 _ACEOF
27485 rm -f conftest.$ac_objext
27486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27487   (eval $ac_compile) 2>conftest.er1
27488   ac_status=$?
27489   grep -v '^ *+' conftest.er1 >conftest.err
27490   rm -f conftest.er1
27491   cat conftest.err >&5
27492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493   (exit $ac_status); } &&
27494          { ac_try='test -z "$ac_c_werror_flag"
27495                          || test ! -s conftest.err'
27496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27497   (eval $ac_try) 2>&5
27498   ac_status=$?
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); }; } &&
27501          { ac_try='test -s conftest.$ac_objext'
27502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503   (eval $ac_try) 2>&5
27504   ac_status=$?
27505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506   (exit $ac_status); }; }; then
27507   ol_cv_func_ctime_r_nargs2=yes
27508 else
27509   echo "$as_me: failed program was:" >&5
27510 sed 's/^/| /' conftest.$ac_ext >&5
27511
27512 ol_cv_func_ctime_r_nargs2=no
27513 fi
27514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27515
27516         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27517            test $ol_cv_func_ctime_r_nargs2 = no ; then
27518
27519                 ol_cv_func_ctime_r_nargs=3
27520
27521         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27522              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27523
27524                 ol_cv_func_ctime_r_nargs=2
27525
27526         else
27527                 ol_cv_func_ctime_r_nargs=0
27528         fi
27529
27530 fi
27531 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27532 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27533
27534   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27535
27536 cat >>confdefs.h <<_ACEOF
27537 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27538 _ACEOF
27539
27540   fi
27541
27542 fi
27543
27544 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27545         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27546 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27547 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27548   echo $ECHO_N "(cached) $ECHO_C" >&6
27549 else
27550   cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556 #include <sys/types.h>
27557 #include <sys/socket.h>
27558 #include <netinet/in.h>
27559 #include <netdb.h>
27560 #define BUFSIZE (sizeof(struct hostent)+10)
27561 int
27562 main ()
27563 {
27564 struct hostent hent; char buffer[BUFSIZE];
27565                 int bufsize=BUFSIZE;int h_errno;
27566                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27567                         buffer, bufsize, &h_errno);
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27574   (eval $ac_compile) 2>conftest.er1
27575   ac_status=$?
27576   grep -v '^ *+' conftest.er1 >conftest.err
27577   rm -f conftest.er1
27578   cat conftest.err >&5
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); } &&
27581          { ac_try='test -z "$ac_c_werror_flag"
27582                          || test ! -s conftest.err'
27583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584   (eval $ac_try) 2>&5
27585   ac_status=$?
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); }; } &&
27588          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27594   ol_cv_func_gethostbyname_r_nargs5=yes
27595 else
27596   echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27598
27599 ol_cv_func_gethostbyname_r_nargs5=no
27600 fi
27601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27602
27603         cat >conftest.$ac_ext <<_ACEOF
27604 /* confdefs.h.  */
27605 _ACEOF
27606 cat confdefs.h >>conftest.$ac_ext
27607 cat >>conftest.$ac_ext <<_ACEOF
27608 /* end confdefs.h.  */
27609 #include <sys/types.h>
27610 #include <sys/socket.h>
27611 #include <netinet/in.h>
27612 #include <netdb.h>
27613 #define BUFSIZE (sizeof(struct hostent)+10)
27614 int
27615 main ()
27616 {
27617 struct hostent hent;struct hostent *rhent;
27618                 char buffer[BUFSIZE];
27619                 int bufsize=BUFSIZE;int h_errno;
27620                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27621                         &rhent, &h_errno);
27622   ;
27623   return 0;
27624 }
27625 _ACEOF
27626 rm -f conftest.$ac_objext
27627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27628   (eval $ac_compile) 2>conftest.er1
27629   ac_status=$?
27630   grep -v '^ *+' conftest.er1 >conftest.err
27631   rm -f conftest.er1
27632   cat conftest.err >&5
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); } &&
27635          { ac_try='test -z "$ac_c_werror_flag"
27636                          || test ! -s conftest.err'
27637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638   (eval $ac_try) 2>&5
27639   ac_status=$?
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); }; } &&
27642          { ac_try='test -s conftest.$ac_objext'
27643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27644   (eval $ac_try) 2>&5
27645   ac_status=$?
27646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647   (exit $ac_status); }; }; then
27648   ol_cv_func_gethostbyname_r_nargs6=yes
27649 else
27650   echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27652
27653 ol_cv_func_gethostbyname_r_nargs6=no
27654 fi
27655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27656
27657         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27658            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27659
27660                 ol_cv_func_gethostbyname_r_nargs=5
27661
27662         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27663              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27664
27665                 ol_cv_func_gethostbyname_r_nargs=6
27666
27667         else
27668                 ol_cv_func_gethostbyname_r_nargs=0
27669         fi
27670
27671 fi
27672 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27673 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27674   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27675
27676 cat >>confdefs.h <<_ACEOF
27677 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27678 _ACEOF
27679
27680   fi
27681
27682 else
27683         ol_cv_func_gethostbyname_r_nargs=0
27684 fi
27685
27686 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27687         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27688 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27689 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27690   echo $ECHO_N "(cached) $ECHO_C" >&6
27691 else
27692   cat >conftest.$ac_ext <<_ACEOF
27693 /* confdefs.h.  */
27694 _ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h.  */
27698 #include <sys/types.h>
27699 #include <sys/socket.h>
27700 #include <netinet/in.h>
27701 #include <netdb.h>
27702 #define BUFSIZE (sizeof(struct hostent)+10)
27703 int
27704 main ()
27705 {
27706 struct hostent hent; char buffer[BUFSIZE];
27707             struct in_addr add;
27708             size_t alen=sizeof(struct in_addr);
27709             int bufsize=BUFSIZE;int h_errno;
27710                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27711                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 rm -f conftest.$ac_objext
27717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27718   (eval $ac_compile) 2>conftest.er1
27719   ac_status=$?
27720   grep -v '^ *+' conftest.er1 >conftest.err
27721   rm -f conftest.er1
27722   cat conftest.err >&5
27723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27724   (exit $ac_status); } &&
27725          { ac_try='test -z "$ac_c_werror_flag"
27726                          || test ! -s conftest.err'
27727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728   (eval $ac_try) 2>&5
27729   ac_status=$?
27730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731   (exit $ac_status); }; } &&
27732          { ac_try='test -s conftest.$ac_objext'
27733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734   (eval $ac_try) 2>&5
27735   ac_status=$?
27736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737   (exit $ac_status); }; }; then
27738   ol_cv_func_gethostbyaddr_r_nargs7=yes
27739 else
27740   echo "$as_me: failed program was:" >&5
27741 sed 's/^/| /' conftest.$ac_ext >&5
27742
27743 ol_cv_func_gethostbyaddr_r_nargs7=no
27744 fi
27745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27746
27747         cat >conftest.$ac_ext <<_ACEOF
27748 /* confdefs.h.  */
27749 _ACEOF
27750 cat confdefs.h >>conftest.$ac_ext
27751 cat >>conftest.$ac_ext <<_ACEOF
27752 /* end confdefs.h.  */
27753 #include <sys/types.h>
27754 #include <sys/socket.h>
27755 #include <netinet/in.h>
27756 #include <netdb.h>
27757 #define BUFSIZE (sizeof(struct hostent)+10)
27758 int
27759 main ()
27760 {
27761 struct hostent hent;
27762                 struct hostent *rhent; char buffer[BUFSIZE];
27763                 struct in_addr add;
27764                 size_t alen=sizeof(struct in_addr);
27765                 int bufsize=BUFSIZE;int h_errno;
27766                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27767                         alen, AF_INET, &hent, buffer, bufsize,
27768                         &rhent, &h_errno);
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775   (eval $ac_compile) 2>conftest.er1
27776   ac_status=$?
27777   grep -v '^ *+' conftest.er1 >conftest.err
27778   rm -f conftest.er1
27779   cat conftest.err >&5
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); } &&
27782          { ac_try='test -z "$ac_c_werror_flag"
27783                          || test ! -s conftest.err'
27784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785   (eval $ac_try) 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; } &&
27789          { ac_try='test -s conftest.$ac_objext'
27790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791   (eval $ac_try) 2>&5
27792   ac_status=$?
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); }; }; then
27795   ol_cv_func_gethostbyaddr_r_nargs8=yes
27796 else
27797   echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27799
27800 ol_cv_func_gethostbyaddr_r_nargs8=no
27801 fi
27802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27803
27804         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27805            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27806
27807                 ol_cv_func_gethostbyaddr_r_nargs=7
27808
27809         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27810              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27811
27812                 ol_cv_func_gethostbyaddr_r_nargs=8
27813
27814         else
27815                 ol_cv_func_gethostbyaddr_r_nargs=0
27816         fi
27817
27818 fi
27819 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27820 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27821   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27822
27823 cat >>confdefs.h <<_ACEOF
27824 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27825 _ACEOF
27826
27827   fi
27828
27829 else
27830         ol_cv_func_gethostbyaddr_r_nargs=0
27831 fi
27832
27833 ol_link_bdb=no
27834
27835 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27836         ol_cv_berkeley_db=no
27837
27838 for ac_header in db.h
27839 do
27840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27842   echo "$as_me:$LINENO: checking for $ac_header" >&5
27843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27845   echo $ECHO_N "(cached) $ECHO_C" >&6
27846 fi
27847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27849 else
27850   # Is the header compilable?
27851 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 $ac_includes_default
27860 #include <$ac_header>
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27864   (eval $ac_compile) 2>conftest.er1
27865   ac_status=$?
27866   grep -v '^ *+' conftest.er1 >conftest.err
27867   rm -f conftest.er1
27868   cat conftest.err >&5
27869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870   (exit $ac_status); } &&
27871          { ac_try='test -z "$ac_c_werror_flag"
27872                          || test ! -s conftest.err'
27873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874   (eval $ac_try) 2>&5
27875   ac_status=$?
27876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877   (exit $ac_status); }; } &&
27878          { ac_try='test -s conftest.$ac_objext'
27879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880   (eval $ac_try) 2>&5
27881   ac_status=$?
27882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883   (exit $ac_status); }; }; then
27884   ac_header_compiler=yes
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889 ac_header_compiler=no
27890 fi
27891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27893 echo "${ECHO_T}$ac_header_compiler" >&6
27894
27895 # Is the header present?
27896 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27898 cat >conftest.$ac_ext <<_ACEOF
27899 /* confdefs.h.  */
27900 _ACEOF
27901 cat confdefs.h >>conftest.$ac_ext
27902 cat >>conftest.$ac_ext <<_ACEOF
27903 /* end confdefs.h.  */
27904 #include <$ac_header>
27905 _ACEOF
27906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27908   ac_status=$?
27909   grep -v '^ *+' conftest.er1 >conftest.err
27910   rm -f conftest.er1
27911   cat conftest.err >&5
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); } >/dev/null; then
27914   if test -s conftest.err; then
27915     ac_cpp_err=$ac_c_preproc_warn_flag
27916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27917   else
27918     ac_cpp_err=
27919   fi
27920 else
27921   ac_cpp_err=yes
27922 fi
27923 if test -z "$ac_cpp_err"; then
27924   ac_header_preproc=yes
27925 else
27926   echo "$as_me: failed program was:" >&5
27927 sed 's/^/| /' conftest.$ac_ext >&5
27928
27929   ac_header_preproc=no
27930 fi
27931 rm -f conftest.err conftest.$ac_ext
27932 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27933 echo "${ECHO_T}$ac_header_preproc" >&6
27934
27935 # So?  What about this header?
27936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27937   yes:no: )
27938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27942     ac_header_preproc=yes
27943     ;;
27944   no:yes:* )
27945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27957     (
27958       cat <<\_ASBOX
27959 ## --------------------------------------------- ##
27960 ## Report this to <http://www.openldap.org/its/> ##
27961 ## --------------------------------------------- ##
27962 _ASBOX
27963     ) |
27964       sed "s/^/$as_me: WARNING:     /" >&2
27965     ;;
27966 esac
27967 echo "$as_me:$LINENO: checking for $ac_header" >&5
27968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   eval "$as_ac_Header=\$ac_header_preproc"
27973 fi
27974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27976
27977 fi
27978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27979   cat >>confdefs.h <<_ACEOF
27980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27981 _ACEOF
27982
27983 fi
27984
27985 done
27986
27987 if test $ac_cv_header_db_h = yes; then
27988         ol_cv_lib_db=no
27989
27990 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
27991 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
27992 if test "${ol_cv_bdb_major+set}" = set; then
27993   echo $ECHO_N "(cached) $ECHO_C" >&6
27994 else
27995
27996         ol_cv_bdb_major=0
27997         if test $ol_cv_bdb_major = 0 ; then
27998                 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004
28005 #include <db.h>
28006 #ifndef DB_VERSION_MAJOR
28007 #       define DB_VERSION_MAJOR 1
28008 #endif
28009 #if DB_VERSION_MAJOR == 4
28010 __db_version
28011 #endif
28012
28013 _ACEOF
28014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28015   $EGREP "__db_version" >/dev/null 2>&1; then
28016   ol_cv_bdb_major=4
28017 else
28018   :
28019 fi
28020 rm -f conftest*
28021
28022         fi
28023         if test $ol_cv_bdb_major = 0 ; then
28024                 cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h.  */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h.  */
28030
28031 #include <db.h>
28032 #ifndef DB_VERSION_MAJOR
28033 #       define DB_VERSION_MAJOR 1
28034 #endif
28035 #if DB_VERSION_MAJOR == 3
28036 __db_version
28037 #endif
28038
28039 _ACEOF
28040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28041   $EGREP "__db_version" >/dev/null 2>&1; then
28042   ol_cv_bdb_major=3
28043 else
28044   :
28045 fi
28046 rm -f conftest*
28047
28048         fi
28049         if test $ol_cv_bdb_major = 0 ; then
28050                 cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056
28057 #include <db.h>
28058 #ifndef DB_VERSION_MAJOR
28059 #       define DB_VERSION_MAJOR 1
28060 #endif
28061 #if DB_VERSION_MAJOR == 2
28062 __db_version
28063 #endif
28064
28065 _ACEOF
28066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28067   $EGREP "__db_version" >/dev/null 2>&1; then
28068   ol_cv_bdb_major=2
28069 else
28070   :
28071 fi
28072 rm -f conftest*
28073
28074         fi
28075         if test $ol_cv_bdb_major = 0 ; then
28076                 cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h.  */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h.  */
28082
28083 #include <db.h>
28084 #ifndef DB_VERSION_MAJOR
28085 #       define DB_VERSION_MAJOR 1
28086 #endif
28087 #if DB_VERSION_MAJOR == 1
28088 __db_version
28089 #endif
28090
28091 _ACEOF
28092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28093   $EGREP "__db_version" >/dev/null 2>&1; then
28094   ol_cv_bdb_major=1
28095 else
28096   :
28097 fi
28098 rm -f conftest*
28099
28100         fi
28101
28102         if test $ol_cv_bdb_major = 0 ; then
28103                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
28104 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
28105    { (exit 1); exit 1; }; }
28106         fi
28107
28108 fi
28109 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28110 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28111
28112 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
28113 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
28114 if test "${ol_cv_bdb_minor+set}" = set; then
28115   echo $ECHO_N "(cached) $ECHO_C" >&6
28116 else
28117
28118         ol_cv_bdb_minor=0
28119         if test $ol_cv_bdb_minor = 0 ; then
28120                 cat >conftest.$ac_ext <<_ACEOF
28121 /* confdefs.h.  */
28122 _ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h.  */
28126
28127 #include <db.h>
28128 #ifndef DB_VERSION_MINOR
28129 #       define DB_VERSION_MINOR 0
28130 #endif
28131 #if DB_VERSION_MINOR == 9
28132 __db_version
28133 #endif
28134
28135 _ACEOF
28136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28137   $EGREP "__db_version" >/dev/null 2>&1; then
28138   ol_cv_bdb_minor=9
28139 else
28140   :
28141 fi
28142 rm -f conftest*
28143
28144         fi
28145         if test $ol_cv_bdb_minor = 0 ; then
28146                 cat >conftest.$ac_ext <<_ACEOF
28147 /* confdefs.h.  */
28148 _ACEOF
28149 cat confdefs.h >>conftest.$ac_ext
28150 cat >>conftest.$ac_ext <<_ACEOF
28151 /* end confdefs.h.  */
28152
28153 #include <db.h>
28154 #ifndef DB_VERSION_MINOR
28155 #       define DB_VERSION_MINOR 0
28156 #endif
28157 #if DB_VERSION_MINOR == 8
28158 __db_version
28159 #endif
28160
28161 _ACEOF
28162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28163   $EGREP "__db_version" >/dev/null 2>&1; then
28164   ol_cv_bdb_minor=8
28165 else
28166   :
28167 fi
28168 rm -f conftest*
28169
28170         fi
28171         if test $ol_cv_bdb_minor = 0 ; then
28172                 cat >conftest.$ac_ext <<_ACEOF
28173 /* confdefs.h.  */
28174 _ACEOF
28175 cat confdefs.h >>conftest.$ac_ext
28176 cat >>conftest.$ac_ext <<_ACEOF
28177 /* end confdefs.h.  */
28178
28179 #include <db.h>
28180 #ifndef DB_VERSION_MINOR
28181 #       define DB_VERSION_MINOR 0
28182 #endif
28183 #if DB_VERSION_MINOR == 7
28184 __db_version
28185 #endif
28186
28187 _ACEOF
28188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28189   $EGREP "__db_version" >/dev/null 2>&1; then
28190   ol_cv_bdb_minor=7
28191 else
28192   :
28193 fi
28194 rm -f conftest*
28195
28196         fi
28197         if test $ol_cv_bdb_minor = 0 ; then
28198                 cat >conftest.$ac_ext <<_ACEOF
28199 /* confdefs.h.  */
28200 _ACEOF
28201 cat confdefs.h >>conftest.$ac_ext
28202 cat >>conftest.$ac_ext <<_ACEOF
28203 /* end confdefs.h.  */
28204
28205 #include <db.h>
28206 #ifndef DB_VERSION_MINOR
28207 #       define DB_VERSION_MINOR 0
28208 #endif
28209 #if DB_VERSION_MINOR == 6
28210 __db_version
28211 #endif
28212
28213 _ACEOF
28214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28215   $EGREP "__db_version" >/dev/null 2>&1; then
28216   ol_cv_bdb_minor=6
28217 else
28218   :
28219 fi
28220 rm -f conftest*
28221
28222         fi
28223         if test $ol_cv_bdb_minor = 0 ; then
28224                 cat >conftest.$ac_ext <<_ACEOF
28225 /* confdefs.h.  */
28226 _ACEOF
28227 cat confdefs.h >>conftest.$ac_ext
28228 cat >>conftest.$ac_ext <<_ACEOF
28229 /* end confdefs.h.  */
28230
28231 #include <db.h>
28232 #ifndef DB_VERSION_MINOR
28233 #       define DB_VERSION_MINOR 0
28234 #endif
28235 #if DB_VERSION_MINOR == 5
28236 __db_version
28237 #endif
28238
28239 _ACEOF
28240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28241   $EGREP "__db_version" >/dev/null 2>&1; then
28242   ol_cv_bdb_minor=5
28243 else
28244   :
28245 fi
28246 rm -f conftest*
28247
28248         fi
28249         if test $ol_cv_bdb_minor = 0 ; then
28250                 cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256
28257 #include <db.h>
28258 #ifndef DB_VERSION_MINOR
28259 #       define DB_VERSION_MINOR 0
28260 #endif
28261 #if DB_VERSION_MINOR == 4
28262 __db_version
28263 #endif
28264
28265 _ACEOF
28266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28267   $EGREP "__db_version" >/dev/null 2>&1; then
28268   ol_cv_bdb_minor=4
28269 else
28270   :
28271 fi
28272 rm -f conftest*
28273
28274         fi
28275         if test $ol_cv_bdb_minor = 0 ; then
28276                 cat >conftest.$ac_ext <<_ACEOF
28277 /* confdefs.h.  */
28278 _ACEOF
28279 cat confdefs.h >>conftest.$ac_ext
28280 cat >>conftest.$ac_ext <<_ACEOF
28281 /* end confdefs.h.  */
28282
28283 #include <db.h>
28284 #ifndef DB_VERSION_MINOR
28285 #       define DB_VERSION_MINOR 0
28286 #endif
28287 #if DB_VERSION_MINOR == 3
28288 __db_version
28289 #endif
28290
28291 _ACEOF
28292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28293   $EGREP "__db_version" >/dev/null 2>&1; then
28294   ol_cv_bdb_minor=3
28295 else
28296   :
28297 fi
28298 rm -f conftest*
28299
28300         fi
28301         if test $ol_cv_bdb_minor = 0 ; then
28302                 cat >conftest.$ac_ext <<_ACEOF
28303 /* confdefs.h.  */
28304 _ACEOF
28305 cat confdefs.h >>conftest.$ac_ext
28306 cat >>conftest.$ac_ext <<_ACEOF
28307 /* end confdefs.h.  */
28308
28309 #include <db.h>
28310 #ifndef DB_VERSION_MINOR
28311 #       define DB_VERSION_MINOR 0
28312 #endif
28313 #if DB_VERSION_MINOR == 2
28314 __db_version
28315 #endif
28316
28317 _ACEOF
28318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28319   $EGREP "__db_version" >/dev/null 2>&1; then
28320   ol_cv_bdb_minor=2
28321 else
28322   :
28323 fi
28324 rm -f conftest*
28325
28326         fi
28327         if test $ol_cv_bdb_minor = 0 ; then
28328                 cat >conftest.$ac_ext <<_ACEOF
28329 /* confdefs.h.  */
28330 _ACEOF
28331 cat confdefs.h >>conftest.$ac_ext
28332 cat >>conftest.$ac_ext <<_ACEOF
28333 /* end confdefs.h.  */
28334
28335 #include <db.h>
28336 #ifndef DB_VERSION_MINOR
28337 #       define DB_VERSION_MINOR 0
28338 #endif
28339 #if DB_VERSION_MINOR == 1
28340 __db_version
28341 #endif
28342
28343 _ACEOF
28344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28345   $EGREP "__db_version" >/dev/null 2>&1; then
28346   ol_cv_bdb_minor=1
28347 else
28348   :
28349 fi
28350 rm -f conftest*
28351
28352         fi
28353
28354 fi
28355 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28356 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28357
28358 if test $ol_cv_bdb_major = 4 ; then
28359         if test $ol_cv_bdb_minor = 4 ; then
28360                 if test $ol_cv_lib_db = no ; then
28361         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
28362 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
28363 if test "${ol_cv_db_db44+set}" = set; then
28364   echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366
28367         ol_DB_LIB=-ldb44
28368         ol_LIBS=$LIBS
28369         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28370
28371         cat >conftest.$ac_ext <<_ACEOF
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377
28378 #ifdef HAVE_DB_185_H
28379 # include <db_185.h>
28380 #else
28381 # include <db.h>
28382 #endif
28383
28384 #ifndef DB_VERSION_MAJOR
28385 # define DB_VERSION_MAJOR 1
28386 #endif
28387
28388 #ifndef NULL
28389 #define NULL ((void*)0)
28390 #endif
28391
28392 int
28393 main ()
28394 {
28395
28396 #if DB_VERSION_MAJOR > 1
28397         {
28398                 char *version;
28399                 int major, minor, patch;
28400
28401                 version = db_version( &major, &minor, &patch );
28402
28403                 if( major != DB_VERSION_MAJOR ||
28404                         minor < DB_VERSION_MINOR )
28405                 {
28406                         printf("Berkeley DB version mismatch\n"
28407                                 "\theader: %s\n\tlibrary: %s\n",
28408                                 DB_VERSION_STRING, version);
28409                         return 1;
28410                 }
28411         }
28412 #endif
28413
28414 #if DB_VERSION_MAJOR > 2
28415         db_env_create( NULL, 0 );
28416 #elif DB_VERSION_MAJOR > 1
28417         db_appexit( NULL );
28418 #else
28419         (void) dbopen( NULL, 0, 0, 0, NULL);
28420 #endif
28421
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28428   (eval $ac_link) 2>conftest.er1
28429   ac_status=$?
28430   grep -v '^ *+' conftest.er1 >conftest.err
28431   rm -f conftest.er1
28432   cat conftest.err >&5
28433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28434   (exit $ac_status); } &&
28435          { ac_try='test -z "$ac_c_werror_flag"
28436                          || test ! -s conftest.err'
28437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438   (eval $ac_try) 2>&5
28439   ac_status=$?
28440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441   (exit $ac_status); }; } &&
28442          { ac_try='test -s conftest$ac_exeext'
28443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28444   (eval $ac_try) 2>&5
28445   ac_status=$?
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); }; }; then
28448   ol_cv_db_db44=yes
28449 else
28450   echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28452
28453 ol_cv_db_db44=no
28454 fi
28455 rm -f conftest.err conftest.$ac_objext \
28456       conftest$ac_exeext conftest.$ac_ext
28457
28458         LIBS="$ol_LIBS"
28459
28460 fi
28461 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
28462 echo "${ECHO_T}$ol_cv_db_db44" >&6
28463
28464         if test $ol_cv_db_db44 = yes ; then
28465                 ol_cv_lib_db=-ldb44
28466         fi
28467 fi
28468
28469                 if test $ol_cv_lib_db = no ; then
28470         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
28471 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
28472 if test "${ol_cv_db_db_44+set}" = set; then
28473   echo $ECHO_N "(cached) $ECHO_C" >&6
28474 else
28475
28476         ol_DB_LIB=-ldb-44
28477         ol_LIBS=$LIBS
28478         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28479
28480         cat >conftest.$ac_ext <<_ACEOF
28481 /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486
28487 #ifdef HAVE_DB_185_H
28488 # include <db_185.h>
28489 #else
28490 # include <db.h>
28491 #endif
28492
28493 #ifndef DB_VERSION_MAJOR
28494 # define DB_VERSION_MAJOR 1
28495 #endif
28496
28497 #ifndef NULL
28498 #define NULL ((void*)0)
28499 #endif
28500
28501 int
28502 main ()
28503 {
28504
28505 #if DB_VERSION_MAJOR > 1
28506         {
28507                 char *version;
28508                 int major, minor, patch;
28509
28510                 version = db_version( &major, &minor, &patch );
28511
28512                 if( major != DB_VERSION_MAJOR ||
28513                         minor < DB_VERSION_MINOR )
28514                 {
28515                         printf("Berkeley DB version mismatch\n"
28516                                 "\theader: %s\n\tlibrary: %s\n",
28517                                 DB_VERSION_STRING, version);
28518                         return 1;
28519                 }
28520         }
28521 #endif
28522
28523 #if DB_VERSION_MAJOR > 2
28524         db_env_create( NULL, 0 );
28525 #elif DB_VERSION_MAJOR > 1
28526         db_appexit( NULL );
28527 #else
28528         (void) dbopen( NULL, 0, 0, 0, NULL);
28529 #endif
28530
28531   ;
28532   return 0;
28533 }
28534 _ACEOF
28535 rm -f conftest.$ac_objext conftest$ac_exeext
28536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28537   (eval $ac_link) 2>conftest.er1
28538   ac_status=$?
28539   grep -v '^ *+' conftest.er1 >conftest.err
28540   rm -f conftest.er1
28541   cat conftest.err >&5
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); } &&
28544          { ac_try='test -z "$ac_c_werror_flag"
28545                          || test ! -s conftest.err'
28546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547   (eval $ac_try) 2>&5
28548   ac_status=$?
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); }; } &&
28551          { ac_try='test -s conftest$ac_exeext'
28552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28553   (eval $ac_try) 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; }; then
28557   ol_cv_db_db_44=yes
28558 else
28559   echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28561
28562 ol_cv_db_db_44=no
28563 fi
28564 rm -f conftest.err conftest.$ac_objext \
28565       conftest$ac_exeext conftest.$ac_ext
28566
28567         LIBS="$ol_LIBS"
28568
28569 fi
28570 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
28571 echo "${ECHO_T}$ol_cv_db_db_44" >&6
28572
28573         if test $ol_cv_db_db_44 = yes ; then
28574                 ol_cv_lib_db=-ldb-44
28575         fi
28576 fi
28577
28578                 if test $ol_cv_lib_db = no ; then
28579         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
28580 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
28581 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
28582   echo $ECHO_N "(cached) $ECHO_C" >&6
28583 else
28584
28585         ol_DB_LIB=-ldb-4.4
28586         ol_LIBS=$LIBS
28587         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28588
28589         cat >conftest.$ac_ext <<_ACEOF
28590 /* confdefs.h.  */
28591 _ACEOF
28592 cat confdefs.h >>conftest.$ac_ext
28593 cat >>conftest.$ac_ext <<_ACEOF
28594 /* end confdefs.h.  */
28595
28596 #ifdef HAVE_DB_185_H
28597 # include <db_185.h>
28598 #else
28599 # include <db.h>
28600 #endif
28601
28602 #ifndef DB_VERSION_MAJOR
28603 # define DB_VERSION_MAJOR 1
28604 #endif
28605
28606 #ifndef NULL
28607 #define NULL ((void*)0)
28608 #endif
28609
28610 int
28611 main ()
28612 {
28613
28614 #if DB_VERSION_MAJOR > 1
28615         {
28616                 char *version;
28617                 int major, minor, patch;
28618
28619                 version = db_version( &major, &minor, &patch );
28620
28621                 if( major != DB_VERSION_MAJOR ||
28622                         minor < DB_VERSION_MINOR )
28623                 {
28624                         printf("Berkeley DB version mismatch\n"
28625                                 "\theader: %s\n\tlibrary: %s\n",
28626                                 DB_VERSION_STRING, version);
28627                         return 1;
28628                 }
28629         }
28630 #endif
28631
28632 #if DB_VERSION_MAJOR > 2
28633         db_env_create( NULL, 0 );
28634 #elif DB_VERSION_MAJOR > 1
28635         db_appexit( NULL );
28636 #else
28637         (void) dbopen( NULL, 0, 0, 0, NULL);
28638 #endif
28639
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 rm -f conftest.$ac_objext conftest$ac_exeext
28645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28646   (eval $ac_link) 2>conftest.er1
28647   ac_status=$?
28648   grep -v '^ *+' conftest.er1 >conftest.err
28649   rm -f conftest.er1
28650   cat conftest.err >&5
28651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652   (exit $ac_status); } &&
28653          { ac_try='test -z "$ac_c_werror_flag"
28654                          || test ! -s conftest.err'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; } &&
28660          { ac_try='test -s conftest$ac_exeext'
28661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662   (eval $ac_try) 2>&5
28663   ac_status=$?
28664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665   (exit $ac_status); }; }; then
28666   ol_cv_db_db_4_dot_4=yes
28667 else
28668   echo "$as_me: failed program was:" >&5
28669 sed 's/^/| /' conftest.$ac_ext >&5
28670
28671 ol_cv_db_db_4_dot_4=no
28672 fi
28673 rm -f conftest.err conftest.$ac_objext \
28674       conftest$ac_exeext conftest.$ac_ext
28675
28676         LIBS="$ol_LIBS"
28677
28678 fi
28679 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
28680 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
28681
28682         if test $ol_cv_db_db_4_dot_4 = yes ; then
28683                 ol_cv_lib_db=-ldb-4.4
28684         fi
28685 fi
28686
28687                 if test $ol_cv_lib_db = no ; then
28688         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
28689 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
28690 if test "${ol_cv_db_db_4_4+set}" = set; then
28691   echo $ECHO_N "(cached) $ECHO_C" >&6
28692 else
28693
28694         ol_DB_LIB=-ldb-4-4
28695         ol_LIBS=$LIBS
28696         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28697
28698         cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705 #ifdef HAVE_DB_185_H
28706 # include <db_185.h>
28707 #else
28708 # include <db.h>
28709 #endif
28710
28711 #ifndef DB_VERSION_MAJOR
28712 # define DB_VERSION_MAJOR 1
28713 #endif
28714
28715 #ifndef NULL
28716 #define NULL ((void*)0)
28717 #endif
28718
28719 int
28720 main ()
28721 {
28722
28723 #if DB_VERSION_MAJOR > 1
28724         {
28725                 char *version;
28726                 int major, minor, patch;
28727
28728                 version = db_version( &major, &minor, &patch );
28729
28730                 if( major != DB_VERSION_MAJOR ||
28731                         minor < DB_VERSION_MINOR )
28732                 {
28733                         printf("Berkeley DB version mismatch\n"
28734                                 "\theader: %s\n\tlibrary: %s\n",
28735                                 DB_VERSION_STRING, version);
28736                         return 1;
28737                 }
28738         }
28739 #endif
28740
28741 #if DB_VERSION_MAJOR > 2
28742         db_env_create( NULL, 0 );
28743 #elif DB_VERSION_MAJOR > 1
28744         db_appexit( NULL );
28745 #else
28746         (void) dbopen( NULL, 0, 0, 0, NULL);
28747 #endif
28748
28749   ;
28750   return 0;
28751 }
28752 _ACEOF
28753 rm -f conftest.$ac_objext conftest$ac_exeext
28754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28755   (eval $ac_link) 2>conftest.er1
28756   ac_status=$?
28757   grep -v '^ *+' conftest.er1 >conftest.err
28758   rm -f conftest.er1
28759   cat conftest.err >&5
28760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761   (exit $ac_status); } &&
28762          { ac_try='test -z "$ac_c_werror_flag"
28763                          || test ! -s conftest.err'
28764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28765   (eval $ac_try) 2>&5
28766   ac_status=$?
28767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28768   (exit $ac_status); }; } &&
28769          { ac_try='test -s conftest$ac_exeext'
28770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28771   (eval $ac_try) 2>&5
28772   ac_status=$?
28773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774   (exit $ac_status); }; }; then
28775   ol_cv_db_db_4_4=yes
28776 else
28777   echo "$as_me: failed program was:" >&5
28778 sed 's/^/| /' conftest.$ac_ext >&5
28779
28780 ol_cv_db_db_4_4=no
28781 fi
28782 rm -f conftest.err conftest.$ac_objext \
28783       conftest$ac_exeext conftest.$ac_ext
28784
28785         LIBS="$ol_LIBS"
28786
28787 fi
28788 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
28789 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
28790
28791         if test $ol_cv_db_db_4_4 = yes ; then
28792                 ol_cv_lib_db=-ldb-4-4
28793         fi
28794 fi
28795
28796         elif test $ol_cv_bdb_minor = 3 ; then
28797                 if test $ol_cv_lib_db = no ; then
28798         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
28799 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
28800 if test "${ol_cv_db_db43+set}" = set; then
28801   echo $ECHO_N "(cached) $ECHO_C" >&6
28802 else
28803
28804         ol_DB_LIB=-ldb43
28805         ol_LIBS=$LIBS
28806         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28807
28808         cat >conftest.$ac_ext <<_ACEOF
28809 /* confdefs.h.  */
28810 _ACEOF
28811 cat confdefs.h >>conftest.$ac_ext
28812 cat >>conftest.$ac_ext <<_ACEOF
28813 /* end confdefs.h.  */
28814
28815 #ifdef HAVE_DB_185_H
28816 # include <db_185.h>
28817 #else
28818 # include <db.h>
28819 #endif
28820
28821 #ifndef DB_VERSION_MAJOR
28822 # define DB_VERSION_MAJOR 1
28823 #endif
28824
28825 #ifndef NULL
28826 #define NULL ((void*)0)
28827 #endif
28828
28829 int
28830 main ()
28831 {
28832
28833 #if DB_VERSION_MAJOR > 1
28834         {
28835                 char *version;
28836                 int major, minor, patch;
28837
28838                 version = db_version( &major, &minor, &patch );
28839
28840                 if( major != DB_VERSION_MAJOR ||
28841                         minor < DB_VERSION_MINOR )
28842                 {
28843                         printf("Berkeley DB version mismatch\n"
28844                                 "\theader: %s\n\tlibrary: %s\n",
28845                                 DB_VERSION_STRING, version);
28846                         return 1;
28847                 }
28848         }
28849 #endif
28850
28851 #if DB_VERSION_MAJOR > 2
28852         db_env_create( NULL, 0 );
28853 #elif DB_VERSION_MAJOR > 1
28854         db_appexit( NULL );
28855 #else
28856         (void) dbopen( NULL, 0, 0, 0, NULL);
28857 #endif
28858
28859   ;
28860   return 0;
28861 }
28862 _ACEOF
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865   (eval $ac_link) 2>conftest.er1
28866   ac_status=$?
28867   grep -v '^ *+' conftest.er1 >conftest.err
28868   rm -f conftest.er1
28869   cat conftest.err >&5
28870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871   (exit $ac_status); } &&
28872          { ac_try='test -z "$ac_c_werror_flag"
28873                          || test ! -s conftest.err'
28874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875   (eval $ac_try) 2>&5
28876   ac_status=$?
28877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878   (exit $ac_status); }; } &&
28879          { ac_try='test -s conftest$ac_exeext'
28880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881   (eval $ac_try) 2>&5
28882   ac_status=$?
28883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884   (exit $ac_status); }; }; then
28885   ol_cv_db_db43=yes
28886 else
28887   echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ol_cv_db_db43=no
28891 fi
28892 rm -f conftest.err conftest.$ac_objext \
28893       conftest$ac_exeext conftest.$ac_ext
28894
28895         LIBS="$ol_LIBS"
28896
28897 fi
28898 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28899 echo "${ECHO_T}$ol_cv_db_db43" >&6
28900
28901         if test $ol_cv_db_db43 = yes ; then
28902                 ol_cv_lib_db=-ldb43
28903         fi
28904 fi
28905
28906                 if test $ol_cv_lib_db = no ; then
28907         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28908 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28909 if test "${ol_cv_db_db_43+set}" = set; then
28910   echo $ECHO_N "(cached) $ECHO_C" >&6
28911 else
28912
28913         ol_DB_LIB=-ldb-43
28914         ol_LIBS=$LIBS
28915         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28916
28917         cat >conftest.$ac_ext <<_ACEOF
28918 /* confdefs.h.  */
28919 _ACEOF
28920 cat confdefs.h >>conftest.$ac_ext
28921 cat >>conftest.$ac_ext <<_ACEOF
28922 /* end confdefs.h.  */
28923
28924 #ifdef HAVE_DB_185_H
28925 # include <db_185.h>
28926 #else
28927 # include <db.h>
28928 #endif
28929
28930 #ifndef DB_VERSION_MAJOR
28931 # define DB_VERSION_MAJOR 1
28932 #endif
28933
28934 #ifndef NULL
28935 #define NULL ((void*)0)
28936 #endif
28937
28938 int
28939 main ()
28940 {
28941
28942 #if DB_VERSION_MAJOR > 1
28943         {
28944                 char *version;
28945                 int major, minor, patch;
28946
28947                 version = db_version( &major, &minor, &patch );
28948
28949                 if( major != DB_VERSION_MAJOR ||
28950                         minor < DB_VERSION_MINOR )
28951                 {
28952                         printf("Berkeley DB version mismatch\n"
28953                                 "\theader: %s\n\tlibrary: %s\n",
28954                                 DB_VERSION_STRING, version);
28955                         return 1;
28956                 }
28957         }
28958 #endif
28959
28960 #if DB_VERSION_MAJOR > 2
28961         db_env_create( NULL, 0 );
28962 #elif DB_VERSION_MAJOR > 1
28963         db_appexit( NULL );
28964 #else
28965         (void) dbopen( NULL, 0, 0, 0, NULL);
28966 #endif
28967
28968   ;
28969   return 0;
28970 }
28971 _ACEOF
28972 rm -f conftest.$ac_objext conftest$ac_exeext
28973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28974   (eval $ac_link) 2>conftest.er1
28975   ac_status=$?
28976   grep -v '^ *+' conftest.er1 >conftest.err
28977   rm -f conftest.er1
28978   cat conftest.err >&5
28979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980   (exit $ac_status); } &&
28981          { ac_try='test -z "$ac_c_werror_flag"
28982                          || test ! -s conftest.err'
28983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28984   (eval $ac_try) 2>&5
28985   ac_status=$?
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); }; } &&
28988          { ac_try='test -s conftest$ac_exeext'
28989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990   (eval $ac_try) 2>&5
28991   ac_status=$?
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); }; }; then
28994   ol_cv_db_db_43=yes
28995 else
28996   echo "$as_me: failed program was:" >&5
28997 sed 's/^/| /' conftest.$ac_ext >&5
28998
28999 ol_cv_db_db_43=no
29000 fi
29001 rm -f conftest.err conftest.$ac_objext \
29002       conftest$ac_exeext conftest.$ac_ext
29003
29004         LIBS="$ol_LIBS"
29005
29006 fi
29007 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
29008 echo "${ECHO_T}$ol_cv_db_db_43" >&6
29009
29010         if test $ol_cv_db_db_43 = yes ; then
29011                 ol_cv_lib_db=-ldb-43
29012         fi
29013 fi
29014
29015                 if test $ol_cv_lib_db = no ; then
29016         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
29017 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
29018 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
29019   echo $ECHO_N "(cached) $ECHO_C" >&6
29020 else
29021
29022         ol_DB_LIB=-ldb-4.3
29023         ol_LIBS=$LIBS
29024         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29025
29026         cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h.  */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h.  */
29032
29033 #ifdef HAVE_DB_185_H
29034 # include <db_185.h>
29035 #else
29036 # include <db.h>
29037 #endif
29038
29039 #ifndef DB_VERSION_MAJOR
29040 # define DB_VERSION_MAJOR 1
29041 #endif
29042
29043 #ifndef NULL
29044 #define NULL ((void*)0)
29045 #endif
29046
29047 int
29048 main ()
29049 {
29050
29051 #if DB_VERSION_MAJOR > 1
29052         {
29053                 char *version;
29054                 int major, minor, patch;
29055
29056                 version = db_version( &major, &minor, &patch );
29057
29058                 if( major != DB_VERSION_MAJOR ||
29059                         minor < DB_VERSION_MINOR )
29060                 {
29061                         printf("Berkeley DB version mismatch\n"
29062                                 "\theader: %s\n\tlibrary: %s\n",
29063                                 DB_VERSION_STRING, version);
29064                         return 1;
29065                 }
29066         }
29067 #endif
29068
29069 #if DB_VERSION_MAJOR > 2
29070         db_env_create( NULL, 0 );
29071 #elif DB_VERSION_MAJOR > 1
29072         db_appexit( NULL );
29073 #else
29074         (void) dbopen( NULL, 0, 0, 0, NULL);
29075 #endif
29076
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext conftest$ac_exeext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29083   (eval $ac_link) 2>conftest.er1
29084   ac_status=$?
29085   grep -v '^ *+' conftest.er1 >conftest.err
29086   rm -f conftest.er1
29087   cat conftest.err >&5
29088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089   (exit $ac_status); } &&
29090          { ac_try='test -z "$ac_c_werror_flag"
29091                          || test ! -s conftest.err'
29092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093   (eval $ac_try) 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); }; } &&
29097          { ac_try='test -s conftest$ac_exeext'
29098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099   (eval $ac_try) 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; }; then
29103   ol_cv_db_db_4_dot_3=yes
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ol_cv_db_db_4_dot_3=no
29109 fi
29110 rm -f conftest.err conftest.$ac_objext \
29111       conftest$ac_exeext conftest.$ac_ext
29112
29113         LIBS="$ol_LIBS"
29114
29115 fi
29116 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
29117 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
29118
29119         if test $ol_cv_db_db_4_dot_3 = yes ; then
29120                 ol_cv_lib_db=-ldb-4.3
29121         fi
29122 fi
29123
29124                 if test $ol_cv_lib_db = no ; then
29125         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
29126 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
29127 if test "${ol_cv_db_db_4_3+set}" = set; then
29128   echo $ECHO_N "(cached) $ECHO_C" >&6
29129 else
29130
29131         ol_DB_LIB=-ldb-4-3
29132         ol_LIBS=$LIBS
29133         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29134
29135         cat >conftest.$ac_ext <<_ACEOF
29136 /* confdefs.h.  */
29137 _ACEOF
29138 cat confdefs.h >>conftest.$ac_ext
29139 cat >>conftest.$ac_ext <<_ACEOF
29140 /* end confdefs.h.  */
29141
29142 #ifdef HAVE_DB_185_H
29143 # include <db_185.h>
29144 #else
29145 # include <db.h>
29146 #endif
29147
29148 #ifndef DB_VERSION_MAJOR
29149 # define DB_VERSION_MAJOR 1
29150 #endif
29151
29152 #ifndef NULL
29153 #define NULL ((void*)0)
29154 #endif
29155
29156 int
29157 main ()
29158 {
29159
29160 #if DB_VERSION_MAJOR > 1
29161         {
29162                 char *version;
29163                 int major, minor, patch;
29164
29165                 version = db_version( &major, &minor, &patch );
29166
29167                 if( major != DB_VERSION_MAJOR ||
29168                         minor < DB_VERSION_MINOR )
29169                 {
29170                         printf("Berkeley DB version mismatch\n"
29171                                 "\theader: %s\n\tlibrary: %s\n",
29172                                 DB_VERSION_STRING, version);
29173                         return 1;
29174                 }
29175         }
29176 #endif
29177
29178 #if DB_VERSION_MAJOR > 2
29179         db_env_create( NULL, 0 );
29180 #elif DB_VERSION_MAJOR > 1
29181         db_appexit( NULL );
29182 #else
29183         (void) dbopen( NULL, 0, 0, 0, NULL);
29184 #endif
29185
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192   (eval $ac_link) 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag"
29200                          || test ! -s conftest.err'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; } &&
29206          { ac_try='test -s conftest$ac_exeext'
29207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208   (eval $ac_try) 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ol_cv_db_db_4_3=yes
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217 ol_cv_db_db_4_3=no
29218 fi
29219 rm -f conftest.err conftest.$ac_objext \
29220       conftest$ac_exeext conftest.$ac_ext
29221
29222         LIBS="$ol_LIBS"
29223
29224 fi
29225 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
29226 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
29227
29228         if test $ol_cv_db_db_4_3 = yes ; then
29229                 ol_cv_lib_db=-ldb-4-3
29230         fi
29231 fi
29232
29233         elif test $ol_cv_bdb_minor = 2 ; then
29234                 if test $ol_cv_lib_db = no ; then
29235         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
29236 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
29237 if test "${ol_cv_db_db42+set}" = set; then
29238   echo $ECHO_N "(cached) $ECHO_C" >&6
29239 else
29240
29241         ol_DB_LIB=-ldb42
29242         ol_LIBS=$LIBS
29243         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29244
29245         cat >conftest.$ac_ext <<_ACEOF
29246 /* confdefs.h.  */
29247 _ACEOF
29248 cat confdefs.h >>conftest.$ac_ext
29249 cat >>conftest.$ac_ext <<_ACEOF
29250 /* end confdefs.h.  */
29251
29252 #ifdef HAVE_DB_185_H
29253 # include <db_185.h>
29254 #else
29255 # include <db.h>
29256 #endif
29257
29258 #ifndef DB_VERSION_MAJOR
29259 # define DB_VERSION_MAJOR 1
29260 #endif
29261
29262 #ifndef NULL
29263 #define NULL ((void*)0)
29264 #endif
29265
29266 int
29267 main ()
29268 {
29269
29270 #if DB_VERSION_MAJOR > 1
29271         {
29272                 char *version;
29273                 int major, minor, patch;
29274
29275                 version = db_version( &major, &minor, &patch );
29276
29277                 if( major != DB_VERSION_MAJOR ||
29278                         minor < DB_VERSION_MINOR )
29279                 {
29280                         printf("Berkeley DB version mismatch\n"
29281                                 "\theader: %s\n\tlibrary: %s\n",
29282                                 DB_VERSION_STRING, version);
29283                         return 1;
29284                 }
29285         }
29286 #endif
29287
29288 #if DB_VERSION_MAJOR > 2
29289         db_env_create( NULL, 0 );
29290 #elif DB_VERSION_MAJOR > 1
29291         db_appexit( NULL );
29292 #else
29293         (void) dbopen( NULL, 0, 0, 0, NULL);
29294 #endif
29295
29296   ;
29297   return 0;
29298 }
29299 _ACEOF
29300 rm -f conftest.$ac_objext conftest$ac_exeext
29301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29302   (eval $ac_link) 2>conftest.er1
29303   ac_status=$?
29304   grep -v '^ *+' conftest.er1 >conftest.err
29305   rm -f conftest.er1
29306   cat conftest.err >&5
29307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308   (exit $ac_status); } &&
29309          { ac_try='test -z "$ac_c_werror_flag"
29310                          || test ! -s conftest.err'
29311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312   (eval $ac_try) 2>&5
29313   ac_status=$?
29314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315   (exit $ac_status); }; } &&
29316          { ac_try='test -s conftest$ac_exeext'
29317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318   (eval $ac_try) 2>&5
29319   ac_status=$?
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); }; }; then
29322   ol_cv_db_db42=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 ol_cv_db_db42=no
29328 fi
29329 rm -f conftest.err conftest.$ac_objext \
29330       conftest$ac_exeext conftest.$ac_ext
29331
29332         LIBS="$ol_LIBS"
29333
29334 fi
29335 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
29336 echo "${ECHO_T}$ol_cv_db_db42" >&6
29337
29338         if test $ol_cv_db_db42 = yes ; then
29339                 ol_cv_lib_db=-ldb42
29340         fi
29341 fi
29342
29343                 if test $ol_cv_lib_db = no ; then
29344         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
29345 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
29346 if test "${ol_cv_db_db_42+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349
29350         ol_DB_LIB=-ldb-42
29351         ol_LIBS=$LIBS
29352         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29353
29354         cat >conftest.$ac_ext <<_ACEOF
29355 /* confdefs.h.  */
29356 _ACEOF
29357 cat confdefs.h >>conftest.$ac_ext
29358 cat >>conftest.$ac_ext <<_ACEOF
29359 /* end confdefs.h.  */
29360
29361 #ifdef HAVE_DB_185_H
29362 # include <db_185.h>
29363 #else
29364 # include <db.h>
29365 #endif
29366
29367 #ifndef DB_VERSION_MAJOR
29368 # define DB_VERSION_MAJOR 1
29369 #endif
29370
29371 #ifndef NULL
29372 #define NULL ((void*)0)
29373 #endif
29374
29375 int
29376 main ()
29377 {
29378
29379 #if DB_VERSION_MAJOR > 1
29380         {
29381                 char *version;
29382                 int major, minor, patch;
29383
29384                 version = db_version( &major, &minor, &patch );
29385
29386                 if( major != DB_VERSION_MAJOR ||
29387                         minor < DB_VERSION_MINOR )
29388                 {
29389                         printf("Berkeley DB version mismatch\n"
29390                                 "\theader: %s\n\tlibrary: %s\n",
29391                                 DB_VERSION_STRING, version);
29392                         return 1;
29393                 }
29394         }
29395 #endif
29396
29397 #if DB_VERSION_MAJOR > 2
29398         db_env_create( NULL, 0 );
29399 #elif DB_VERSION_MAJOR > 1
29400         db_appexit( NULL );
29401 #else
29402         (void) dbopen( NULL, 0, 0, 0, NULL);
29403 #endif
29404
29405   ;
29406   return 0;
29407 }
29408 _ACEOF
29409 rm -f conftest.$ac_objext conftest$ac_exeext
29410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29411   (eval $ac_link) 2>conftest.er1
29412   ac_status=$?
29413   grep -v '^ *+' conftest.er1 >conftest.err
29414   rm -f conftest.er1
29415   cat conftest.err >&5
29416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417   (exit $ac_status); } &&
29418          { ac_try='test -z "$ac_c_werror_flag"
29419                          || test ! -s conftest.err'
29420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421   (eval $ac_try) 2>&5
29422   ac_status=$?
29423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424   (exit $ac_status); }; } &&
29425          { ac_try='test -s conftest$ac_exeext'
29426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29427   (eval $ac_try) 2>&5
29428   ac_status=$?
29429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29430   (exit $ac_status); }; }; then
29431   ol_cv_db_db_42=yes
29432 else
29433   echo "$as_me: failed program was:" >&5
29434 sed 's/^/| /' conftest.$ac_ext >&5
29435
29436 ol_cv_db_db_42=no
29437 fi
29438 rm -f conftest.err conftest.$ac_objext \
29439       conftest$ac_exeext conftest.$ac_ext
29440
29441         LIBS="$ol_LIBS"
29442
29443 fi
29444 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
29445 echo "${ECHO_T}$ol_cv_db_db_42" >&6
29446
29447         if test $ol_cv_db_db_42 = yes ; then
29448                 ol_cv_lib_db=-ldb-42
29449         fi
29450 fi
29451
29452                 if test $ol_cv_lib_db = no ; then
29453         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
29454 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
29455 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
29456   echo $ECHO_N "(cached) $ECHO_C" >&6
29457 else
29458
29459         ol_DB_LIB=-ldb-4.2
29460         ol_LIBS=$LIBS
29461         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29462
29463         cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469
29470 #ifdef HAVE_DB_185_H
29471 # include <db_185.h>
29472 #else
29473 # include <db.h>
29474 #endif
29475
29476 #ifndef DB_VERSION_MAJOR
29477 # define DB_VERSION_MAJOR 1
29478 #endif
29479
29480 #ifndef NULL
29481 #define NULL ((void*)0)
29482 #endif
29483
29484 int
29485 main ()
29486 {
29487
29488 #if DB_VERSION_MAJOR > 1
29489         {
29490                 char *version;
29491                 int major, minor, patch;
29492
29493                 version = db_version( &major, &minor, &patch );
29494
29495                 if( major != DB_VERSION_MAJOR ||
29496                         minor < DB_VERSION_MINOR )
29497                 {
29498                         printf("Berkeley DB version mismatch\n"
29499                                 "\theader: %s\n\tlibrary: %s\n",
29500                                 DB_VERSION_STRING, version);
29501                         return 1;
29502                 }
29503         }
29504 #endif
29505
29506 #if DB_VERSION_MAJOR > 2
29507         db_env_create( NULL, 0 );
29508 #elif DB_VERSION_MAJOR > 1
29509         db_appexit( NULL );
29510 #else
29511         (void) dbopen( NULL, 0, 0, 0, NULL);
29512 #endif
29513
29514   ;
29515   return 0;
29516 }
29517 _ACEOF
29518 rm -f conftest.$ac_objext conftest$ac_exeext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29520   (eval $ac_link) 2>conftest.er1
29521   ac_status=$?
29522   grep -v '^ *+' conftest.er1 >conftest.err
29523   rm -f conftest.er1
29524   cat conftest.err >&5
29525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526   (exit $ac_status); } &&
29527          { ac_try='test -z "$ac_c_werror_flag"
29528                          || test ! -s conftest.err'
29529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530   (eval $ac_try) 2>&5
29531   ac_status=$?
29532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533   (exit $ac_status); }; } &&
29534          { ac_try='test -s conftest$ac_exeext'
29535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536   (eval $ac_try) 2>&5
29537   ac_status=$?
29538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539   (exit $ac_status); }; }; then
29540   ol_cv_db_db_4_dot_2=yes
29541 else
29542   echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545 ol_cv_db_db_4_dot_2=no
29546 fi
29547 rm -f conftest.err conftest.$ac_objext \
29548       conftest$ac_exeext conftest.$ac_ext
29549
29550         LIBS="$ol_LIBS"
29551
29552 fi
29553 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
29554 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
29555
29556         if test $ol_cv_db_db_4_dot_2 = yes ; then
29557                 ol_cv_lib_db=-ldb-4.2
29558         fi
29559 fi
29560
29561                 if test $ol_cv_lib_db = no ; then
29562         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
29563 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
29564 if test "${ol_cv_db_db_4_2+set}" = set; then
29565   echo $ECHO_N "(cached) $ECHO_C" >&6
29566 else
29567
29568         ol_DB_LIB=-ldb-4-2
29569         ol_LIBS=$LIBS
29570         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29571
29572         cat >conftest.$ac_ext <<_ACEOF
29573 /* confdefs.h.  */
29574 _ACEOF
29575 cat confdefs.h >>conftest.$ac_ext
29576 cat >>conftest.$ac_ext <<_ACEOF
29577 /* end confdefs.h.  */
29578
29579 #ifdef HAVE_DB_185_H
29580 # include <db_185.h>
29581 #else
29582 # include <db.h>
29583 #endif
29584
29585 #ifndef DB_VERSION_MAJOR
29586 # define DB_VERSION_MAJOR 1
29587 #endif
29588
29589 #ifndef NULL
29590 #define NULL ((void*)0)
29591 #endif
29592
29593 int
29594 main ()
29595 {
29596
29597 #if DB_VERSION_MAJOR > 1
29598         {
29599                 char *version;
29600                 int major, minor, patch;
29601
29602                 version = db_version( &major, &minor, &patch );
29603
29604                 if( major != DB_VERSION_MAJOR ||
29605                         minor < DB_VERSION_MINOR )
29606                 {
29607                         printf("Berkeley DB version mismatch\n"
29608                                 "\theader: %s\n\tlibrary: %s\n",
29609                                 DB_VERSION_STRING, version);
29610                         return 1;
29611                 }
29612         }
29613 #endif
29614
29615 #if DB_VERSION_MAJOR > 2
29616         db_env_create( NULL, 0 );
29617 #elif DB_VERSION_MAJOR > 1
29618         db_appexit( NULL );
29619 #else
29620         (void) dbopen( NULL, 0, 0, 0, NULL);
29621 #endif
29622
29623   ;
29624   return 0;
29625 }
29626 _ACEOF
29627 rm -f conftest.$ac_objext conftest$ac_exeext
29628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29629   (eval $ac_link) 2>conftest.er1
29630   ac_status=$?
29631   grep -v '^ *+' conftest.er1 >conftest.err
29632   rm -f conftest.er1
29633   cat conftest.err >&5
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); } &&
29636          { ac_try='test -z "$ac_c_werror_flag"
29637                          || test ! -s conftest.err'
29638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639   (eval $ac_try) 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; } &&
29643          { ac_try='test -s conftest$ac_exeext'
29644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29645   (eval $ac_try) 2>&5
29646   ac_status=$?
29647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29648   (exit $ac_status); }; }; then
29649   ol_cv_db_db_4_2=yes
29650 else
29651   echo "$as_me: failed program was:" >&5
29652 sed 's/^/| /' conftest.$ac_ext >&5
29653
29654 ol_cv_db_db_4_2=no
29655 fi
29656 rm -f conftest.err conftest.$ac_objext \
29657       conftest$ac_exeext conftest.$ac_ext
29658
29659         LIBS="$ol_LIBS"
29660
29661 fi
29662 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
29663 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
29664
29665         if test $ol_cv_db_db_4_2 = yes ; then
29666                 ol_cv_lib_db=-ldb-4-2
29667         fi
29668 fi
29669
29670         elif test $ol_cv_bdb_minor = 1 ; then
29671                 if test $ol_cv_lib_db = no ; then
29672         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29673 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29674 if test "${ol_cv_db_db41+set}" = set; then
29675   echo $ECHO_N "(cached) $ECHO_C" >&6
29676 else
29677
29678         ol_DB_LIB=-ldb41
29679         ol_LIBS=$LIBS
29680         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29681
29682         cat >conftest.$ac_ext <<_ACEOF
29683 /* confdefs.h.  */
29684 _ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h.  */
29688
29689 #ifdef HAVE_DB_185_H
29690 # include <db_185.h>
29691 #else
29692 # include <db.h>
29693 #endif
29694
29695 #ifndef DB_VERSION_MAJOR
29696 # define DB_VERSION_MAJOR 1
29697 #endif
29698
29699 #ifndef NULL
29700 #define NULL ((void*)0)
29701 #endif
29702
29703 int
29704 main ()
29705 {
29706
29707 #if DB_VERSION_MAJOR > 1
29708         {
29709                 char *version;
29710                 int major, minor, patch;
29711
29712                 version = db_version( &major, &minor, &patch );
29713
29714                 if( major != DB_VERSION_MAJOR ||
29715                         minor < DB_VERSION_MINOR )
29716                 {
29717                         printf("Berkeley DB version mismatch\n"
29718                                 "\theader: %s\n\tlibrary: %s\n",
29719                                 DB_VERSION_STRING, version);
29720                         return 1;
29721                 }
29722         }
29723 #endif
29724
29725 #if DB_VERSION_MAJOR > 2
29726         db_env_create( NULL, 0 );
29727 #elif DB_VERSION_MAJOR > 1
29728         db_appexit( NULL );
29729 #else
29730         (void) dbopen( NULL, 0, 0, 0, NULL);
29731 #endif
29732
29733   ;
29734   return 0;
29735 }
29736 _ACEOF
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29739   (eval $ac_link) 2>conftest.er1
29740   ac_status=$?
29741   grep -v '^ *+' conftest.er1 >conftest.err
29742   rm -f conftest.er1
29743   cat conftest.err >&5
29744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29745   (exit $ac_status); } &&
29746          { ac_try='test -z "$ac_c_werror_flag"
29747                          || test ! -s conftest.err'
29748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29749   (eval $ac_try) 2>&5
29750   ac_status=$?
29751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752   (exit $ac_status); }; } &&
29753          { ac_try='test -s conftest$ac_exeext'
29754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755   (eval $ac_try) 2>&5
29756   ac_status=$?
29757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758   (exit $ac_status); }; }; then
29759   ol_cv_db_db41=yes
29760 else
29761   echo "$as_me: failed program was:" >&5
29762 sed 's/^/| /' conftest.$ac_ext >&5
29763
29764 ol_cv_db_db41=no
29765 fi
29766 rm -f conftest.err conftest.$ac_objext \
29767       conftest$ac_exeext conftest.$ac_ext
29768
29769         LIBS="$ol_LIBS"
29770
29771 fi
29772 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29773 echo "${ECHO_T}$ol_cv_db_db41" >&6
29774
29775         if test $ol_cv_db_db41 = yes ; then
29776                 ol_cv_lib_db=-ldb41
29777         fi
29778 fi
29779
29780                 if test $ol_cv_lib_db = no ; then
29781         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29782 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29783 if test "${ol_cv_db_db_41+set}" = set; then
29784   echo $ECHO_N "(cached) $ECHO_C" >&6
29785 else
29786
29787         ol_DB_LIB=-ldb-41
29788         ol_LIBS=$LIBS
29789         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29790
29791         cat >conftest.$ac_ext <<_ACEOF
29792 /* confdefs.h.  */
29793 _ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h.  */
29797
29798 #ifdef HAVE_DB_185_H
29799 # include <db_185.h>
29800 #else
29801 # include <db.h>
29802 #endif
29803
29804 #ifndef DB_VERSION_MAJOR
29805 # define DB_VERSION_MAJOR 1
29806 #endif
29807
29808 #ifndef NULL
29809 #define NULL ((void*)0)
29810 #endif
29811
29812 int
29813 main ()
29814 {
29815
29816 #if DB_VERSION_MAJOR > 1
29817         {
29818                 char *version;
29819                 int major, minor, patch;
29820
29821                 version = db_version( &major, &minor, &patch );
29822
29823                 if( major != DB_VERSION_MAJOR ||
29824                         minor < DB_VERSION_MINOR )
29825                 {
29826                         printf("Berkeley DB version mismatch\n"
29827                                 "\theader: %s\n\tlibrary: %s\n",
29828                                 DB_VERSION_STRING, version);
29829                         return 1;
29830                 }
29831         }
29832 #endif
29833
29834 #if DB_VERSION_MAJOR > 2
29835         db_env_create( NULL, 0 );
29836 #elif DB_VERSION_MAJOR > 1
29837         db_appexit( NULL );
29838 #else
29839         (void) dbopen( NULL, 0, 0, 0, NULL);
29840 #endif
29841
29842   ;
29843   return 0;
29844 }
29845 _ACEOF
29846 rm -f conftest.$ac_objext conftest$ac_exeext
29847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29848   (eval $ac_link) 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } &&
29855          { ac_try='test -z "$ac_c_werror_flag"
29856                          || test ! -s conftest.err'
29857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29858   (eval $ac_try) 2>&5
29859   ac_status=$?
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); }; } &&
29862          { ac_try='test -s conftest$ac_exeext'
29863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864   (eval $ac_try) 2>&5
29865   ac_status=$?
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); }; }; then
29868   ol_cv_db_db_41=yes
29869 else
29870   echo "$as_me: failed program was:" >&5
29871 sed 's/^/| /' conftest.$ac_ext >&5
29872
29873 ol_cv_db_db_41=no
29874 fi
29875 rm -f conftest.err conftest.$ac_objext \
29876       conftest$ac_exeext conftest.$ac_ext
29877
29878         LIBS="$ol_LIBS"
29879
29880 fi
29881 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29882 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29883
29884         if test $ol_cv_db_db_41 = yes ; then
29885                 ol_cv_lib_db=-ldb-41
29886         fi
29887 fi
29888
29889                 if test $ol_cv_lib_db = no ; then
29890         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29891 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29892 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29893   echo $ECHO_N "(cached) $ECHO_C" >&6
29894 else
29895
29896         ol_DB_LIB=-ldb-4.1
29897         ol_LIBS=$LIBS
29898         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29899
29900         cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h.  */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h.  */
29906
29907 #ifdef HAVE_DB_185_H
29908 # include <db_185.h>
29909 #else
29910 # include <db.h>
29911 #endif
29912
29913 #ifndef DB_VERSION_MAJOR
29914 # define DB_VERSION_MAJOR 1
29915 #endif
29916
29917 #ifndef NULL
29918 #define NULL ((void*)0)
29919 #endif
29920
29921 int
29922 main ()
29923 {
29924
29925 #if DB_VERSION_MAJOR > 1
29926         {
29927                 char *version;
29928                 int major, minor, patch;
29929
29930                 version = db_version( &major, &minor, &patch );
29931
29932                 if( major != DB_VERSION_MAJOR ||
29933                         minor < DB_VERSION_MINOR )
29934                 {
29935                         printf("Berkeley DB version mismatch\n"
29936                                 "\theader: %s\n\tlibrary: %s\n",
29937                                 DB_VERSION_STRING, version);
29938                         return 1;
29939                 }
29940         }
29941 #endif
29942
29943 #if DB_VERSION_MAJOR > 2
29944         db_env_create( NULL, 0 );
29945 #elif DB_VERSION_MAJOR > 1
29946         db_appexit( NULL );
29947 #else
29948         (void) dbopen( NULL, 0, 0, 0, NULL);
29949 #endif
29950
29951   ;
29952   return 0;
29953 }
29954 _ACEOF
29955 rm -f conftest.$ac_objext conftest$ac_exeext
29956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29957   (eval $ac_link) 2>conftest.er1
29958   ac_status=$?
29959   grep -v '^ *+' conftest.er1 >conftest.err
29960   rm -f conftest.er1
29961   cat conftest.err >&5
29962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963   (exit $ac_status); } &&
29964          { ac_try='test -z "$ac_c_werror_flag"
29965                          || test ! -s conftest.err'
29966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967   (eval $ac_try) 2>&5
29968   ac_status=$?
29969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970   (exit $ac_status); }; } &&
29971          { ac_try='test -s conftest$ac_exeext'
29972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29973   (eval $ac_try) 2>&5
29974   ac_status=$?
29975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29976   (exit $ac_status); }; }; then
29977   ol_cv_db_db_4_dot_1=yes
29978 else
29979   echo "$as_me: failed program was:" >&5
29980 sed 's/^/| /' conftest.$ac_ext >&5
29981
29982 ol_cv_db_db_4_dot_1=no
29983 fi
29984 rm -f conftest.err conftest.$ac_objext \
29985       conftest$ac_exeext conftest.$ac_ext
29986
29987         LIBS="$ol_LIBS"
29988
29989 fi
29990 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29991 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29992
29993         if test $ol_cv_db_db_4_dot_1 = yes ; then
29994                 ol_cv_lib_db=-ldb-4.1
29995         fi
29996 fi
29997
29998                 if test $ol_cv_lib_db = no ; then
29999         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
30000 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
30001 if test "${ol_cv_db_db_4_1+set}" = set; then
30002   echo $ECHO_N "(cached) $ECHO_C" >&6
30003 else
30004
30005         ol_DB_LIB=-ldb-4-1
30006         ol_LIBS=$LIBS
30007         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30008
30009         cat >conftest.$ac_ext <<_ACEOF
30010 /* confdefs.h.  */
30011 _ACEOF
30012 cat confdefs.h >>conftest.$ac_ext
30013 cat >>conftest.$ac_ext <<_ACEOF
30014 /* end confdefs.h.  */
30015
30016 #ifdef HAVE_DB_185_H
30017 # include <db_185.h>
30018 #else
30019 # include <db.h>
30020 #endif
30021
30022 #ifndef DB_VERSION_MAJOR
30023 # define DB_VERSION_MAJOR 1
30024 #endif
30025
30026 #ifndef NULL
30027 #define NULL ((void*)0)
30028 #endif
30029
30030 int
30031 main ()
30032 {
30033
30034 #if DB_VERSION_MAJOR > 1
30035         {
30036                 char *version;
30037                 int major, minor, patch;
30038
30039                 version = db_version( &major, &minor, &patch );
30040
30041                 if( major != DB_VERSION_MAJOR ||
30042                         minor < DB_VERSION_MINOR )
30043                 {
30044                         printf("Berkeley DB version mismatch\n"
30045                                 "\theader: %s\n\tlibrary: %s\n",
30046                                 DB_VERSION_STRING, version);
30047                         return 1;
30048                 }
30049         }
30050 #endif
30051
30052 #if DB_VERSION_MAJOR > 2
30053         db_env_create( NULL, 0 );
30054 #elif DB_VERSION_MAJOR > 1
30055         db_appexit( NULL );
30056 #else
30057         (void) dbopen( NULL, 0, 0, 0, NULL);
30058 #endif
30059
30060   ;
30061   return 0;
30062 }
30063 _ACEOF
30064 rm -f conftest.$ac_objext conftest$ac_exeext
30065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30066   (eval $ac_link) 2>conftest.er1
30067   ac_status=$?
30068   grep -v '^ *+' conftest.er1 >conftest.err
30069   rm -f conftest.er1
30070   cat conftest.err >&5
30071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072   (exit $ac_status); } &&
30073          { ac_try='test -z "$ac_c_werror_flag"
30074                          || test ! -s conftest.err'
30075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30076   (eval $ac_try) 2>&5
30077   ac_status=$?
30078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079   (exit $ac_status); }; } &&
30080          { ac_try='test -s conftest$ac_exeext'
30081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30082   (eval $ac_try) 2>&5
30083   ac_status=$?
30084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085   (exit $ac_status); }; }; then
30086   ol_cv_db_db_4_1=yes
30087 else
30088   echo "$as_me: failed program was:" >&5
30089 sed 's/^/| /' conftest.$ac_ext >&5
30090
30091 ol_cv_db_db_4_1=no
30092 fi
30093 rm -f conftest.err conftest.$ac_objext \
30094       conftest$ac_exeext conftest.$ac_ext
30095
30096         LIBS="$ol_LIBS"
30097
30098 fi
30099 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
30100 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
30101
30102         if test $ol_cv_db_db_4_1 = yes ; then
30103                 ol_cv_lib_db=-ldb-4-1
30104         fi
30105 fi
30106
30107         fi
30108         if test $ol_cv_lib_db = no ; then
30109         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
30110 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
30111 if test "${ol_cv_db_db_4+set}" = set; then
30112   echo $ECHO_N "(cached) $ECHO_C" >&6
30113 else
30114
30115         ol_DB_LIB=-ldb-4
30116         ol_LIBS=$LIBS
30117         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30118
30119         cat >conftest.$ac_ext <<_ACEOF
30120 /* confdefs.h.  */
30121 _ACEOF
30122 cat confdefs.h >>conftest.$ac_ext
30123 cat >>conftest.$ac_ext <<_ACEOF
30124 /* end confdefs.h.  */
30125
30126 #ifdef HAVE_DB_185_H
30127 # include <db_185.h>
30128 #else
30129 # include <db.h>
30130 #endif
30131
30132 #ifndef DB_VERSION_MAJOR
30133 # define DB_VERSION_MAJOR 1
30134 #endif
30135
30136 #ifndef NULL
30137 #define NULL ((void*)0)
30138 #endif
30139
30140 int
30141 main ()
30142 {
30143
30144 #if DB_VERSION_MAJOR > 1
30145         {
30146                 char *version;
30147                 int major, minor, patch;
30148
30149                 version = db_version( &major, &minor, &patch );
30150
30151                 if( major != DB_VERSION_MAJOR ||
30152                         minor < DB_VERSION_MINOR )
30153                 {
30154                         printf("Berkeley DB version mismatch\n"
30155                                 "\theader: %s\n\tlibrary: %s\n",
30156                                 DB_VERSION_STRING, version);
30157                         return 1;
30158                 }
30159         }
30160 #endif
30161
30162 #if DB_VERSION_MAJOR > 2
30163         db_env_create( NULL, 0 );
30164 #elif DB_VERSION_MAJOR > 1
30165         db_appexit( NULL );
30166 #else
30167         (void) dbopen( NULL, 0, 0, 0, NULL);
30168 #endif
30169
30170   ;
30171   return 0;
30172 }
30173 _ACEOF
30174 rm -f conftest.$ac_objext conftest$ac_exeext
30175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30176   (eval $ac_link) 2>conftest.er1
30177   ac_status=$?
30178   grep -v '^ *+' conftest.er1 >conftest.err
30179   rm -f conftest.er1
30180   cat conftest.err >&5
30181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182   (exit $ac_status); } &&
30183          { ac_try='test -z "$ac_c_werror_flag"
30184                          || test ! -s conftest.err'
30185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186   (eval $ac_try) 2>&5
30187   ac_status=$?
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); }; } &&
30190          { ac_try='test -s conftest$ac_exeext'
30191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192   (eval $ac_try) 2>&5
30193   ac_status=$?
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); }; }; then
30196   ol_cv_db_db_4=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201 ol_cv_db_db_4=no
30202 fi
30203 rm -f conftest.err conftest.$ac_objext \
30204       conftest$ac_exeext conftest.$ac_ext
30205
30206         LIBS="$ol_LIBS"
30207
30208 fi
30209 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
30210 echo "${ECHO_T}$ol_cv_db_db_4" >&6
30211
30212         if test $ol_cv_db_db_4 = yes ; then
30213                 ol_cv_lib_db=-ldb-4
30214         fi
30215 fi
30216
30217         if test $ol_cv_lib_db = no ; then
30218         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
30219 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
30220 if test "${ol_cv_db_db4+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223
30224         ol_DB_LIB=-ldb4
30225         ol_LIBS=$LIBS
30226         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30227
30228         cat >conftest.$ac_ext <<_ACEOF
30229 /* confdefs.h.  */
30230 _ACEOF
30231 cat confdefs.h >>conftest.$ac_ext
30232 cat >>conftest.$ac_ext <<_ACEOF
30233 /* end confdefs.h.  */
30234
30235 #ifdef HAVE_DB_185_H
30236 # include <db_185.h>
30237 #else
30238 # include <db.h>
30239 #endif
30240
30241 #ifndef DB_VERSION_MAJOR
30242 # define DB_VERSION_MAJOR 1
30243 #endif
30244
30245 #ifndef NULL
30246 #define NULL ((void*)0)
30247 #endif
30248
30249 int
30250 main ()
30251 {
30252
30253 #if DB_VERSION_MAJOR > 1
30254         {
30255                 char *version;
30256                 int major, minor, patch;
30257
30258                 version = db_version( &major, &minor, &patch );
30259
30260                 if( major != DB_VERSION_MAJOR ||
30261                         minor < DB_VERSION_MINOR )
30262                 {
30263                         printf("Berkeley DB version mismatch\n"
30264                                 "\theader: %s\n\tlibrary: %s\n",
30265                                 DB_VERSION_STRING, version);
30266                         return 1;
30267                 }
30268         }
30269 #endif
30270
30271 #if DB_VERSION_MAJOR > 2
30272         db_env_create( NULL, 0 );
30273 #elif DB_VERSION_MAJOR > 1
30274         db_appexit( NULL );
30275 #else
30276         (void) dbopen( NULL, 0, 0, 0, NULL);
30277 #endif
30278
30279   ;
30280   return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285   (eval $ac_link) 2>conftest.er1
30286   ac_status=$?
30287   grep -v '^ *+' conftest.er1 >conftest.err
30288   rm -f conftest.er1
30289   cat conftest.err >&5
30290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291   (exit $ac_status); } &&
30292          { ac_try='test -z "$ac_c_werror_flag"
30293                          || test ! -s conftest.err'
30294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295   (eval $ac_try) 2>&5
30296   ac_status=$?
30297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298   (exit $ac_status); }; } &&
30299          { ac_try='test -s conftest$ac_exeext'
30300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301   (eval $ac_try) 2>&5
30302   ac_status=$?
30303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); }; }; then
30305   ol_cv_db_db4=yes
30306 else
30307   echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30309
30310 ol_cv_db_db4=no
30311 fi
30312 rm -f conftest.err conftest.$ac_objext \
30313       conftest$ac_exeext conftest.$ac_ext
30314
30315         LIBS="$ol_LIBS"
30316
30317 fi
30318 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
30319 echo "${ECHO_T}$ol_cv_db_db4" >&6
30320
30321         if test $ol_cv_db_db4 = yes ; then
30322                 ol_cv_lib_db=-ldb4
30323         fi
30324 fi
30325
30326         if test $ol_cv_lib_db = no ; then
30327         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
30328 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
30329 if test "${ol_cv_db_db+set}" = set; then
30330   echo $ECHO_N "(cached) $ECHO_C" >&6
30331 else
30332
30333         ol_DB_LIB=-ldb
30334         ol_LIBS=$LIBS
30335         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30336
30337         cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343
30344 #ifdef HAVE_DB_185_H
30345 # include <db_185.h>
30346 #else
30347 # include <db.h>
30348 #endif
30349
30350 #ifndef DB_VERSION_MAJOR
30351 # define DB_VERSION_MAJOR 1
30352 #endif
30353
30354 #ifndef NULL
30355 #define NULL ((void*)0)
30356 #endif
30357
30358 int
30359 main ()
30360 {
30361
30362 #if DB_VERSION_MAJOR > 1
30363         {
30364                 char *version;
30365                 int major, minor, patch;
30366
30367                 version = db_version( &major, &minor, &patch );
30368
30369                 if( major != DB_VERSION_MAJOR ||
30370                         minor < DB_VERSION_MINOR )
30371                 {
30372                         printf("Berkeley DB version mismatch\n"
30373                                 "\theader: %s\n\tlibrary: %s\n",
30374                                 DB_VERSION_STRING, version);
30375                         return 1;
30376                 }
30377         }
30378 #endif
30379
30380 #if DB_VERSION_MAJOR > 2
30381         db_env_create( NULL, 0 );
30382 #elif DB_VERSION_MAJOR > 1
30383         db_appexit( NULL );
30384 #else
30385         (void) dbopen( NULL, 0, 0, 0, NULL);
30386 #endif
30387
30388   ;
30389   return 0;
30390 }
30391 _ACEOF
30392 rm -f conftest.$ac_objext conftest$ac_exeext
30393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30394   (eval $ac_link) 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } &&
30401          { ac_try='test -z "$ac_c_werror_flag"
30402                          || test ! -s conftest.err'
30403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404   (eval $ac_try) 2>&5
30405   ac_status=$?
30406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407   (exit $ac_status); }; } &&
30408          { ac_try='test -s conftest$ac_exeext'
30409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30410   (eval $ac_try) 2>&5
30411   ac_status=$?
30412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413   (exit $ac_status); }; }; then
30414   ol_cv_db_db=yes
30415 else
30416   echo "$as_me: failed program was:" >&5
30417 sed 's/^/| /' conftest.$ac_ext >&5
30418
30419 ol_cv_db_db=no
30420 fi
30421 rm -f conftest.err conftest.$ac_objext \
30422       conftest$ac_exeext conftest.$ac_ext
30423
30424         LIBS="$ol_LIBS"
30425
30426 fi
30427 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
30428 echo "${ECHO_T}$ol_cv_db_db" >&6
30429
30430         if test $ol_cv_db_db = yes ; then
30431                 ol_cv_lib_db=-ldb
30432         fi
30433 fi
30434
30435
30436 elif test $ol_cv_bdb_major = 3 ; then
30437         if test $ol_cv_lib_db = no ; then
30438         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
30439 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
30440 if test "${ol_cv_db_db3+set}" = set; then
30441   echo $ECHO_N "(cached) $ECHO_C" >&6
30442 else
30443
30444         ol_DB_LIB=-ldb3
30445         ol_LIBS=$LIBS
30446         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30447
30448         cat >conftest.$ac_ext <<_ACEOF
30449 /* confdefs.h.  */
30450 _ACEOF
30451 cat confdefs.h >>conftest.$ac_ext
30452 cat >>conftest.$ac_ext <<_ACEOF
30453 /* end confdefs.h.  */
30454
30455 #ifdef HAVE_DB_185_H
30456 # include <db_185.h>
30457 #else
30458 # include <db.h>
30459 #endif
30460
30461 #ifndef DB_VERSION_MAJOR
30462 # define DB_VERSION_MAJOR 1
30463 #endif
30464
30465 #ifndef NULL
30466 #define NULL ((void*)0)
30467 #endif
30468
30469 int
30470 main ()
30471 {
30472
30473 #if DB_VERSION_MAJOR > 1
30474         {
30475                 char *version;
30476                 int major, minor, patch;
30477
30478                 version = db_version( &major, &minor, &patch );
30479
30480                 if( major != DB_VERSION_MAJOR ||
30481                         minor < DB_VERSION_MINOR )
30482                 {
30483                         printf("Berkeley DB version mismatch\n"
30484                                 "\theader: %s\n\tlibrary: %s\n",
30485                                 DB_VERSION_STRING, version);
30486                         return 1;
30487                 }
30488         }
30489 #endif
30490
30491 #if DB_VERSION_MAJOR > 2
30492         db_env_create( NULL, 0 );
30493 #elif DB_VERSION_MAJOR > 1
30494         db_appexit( NULL );
30495 #else
30496         (void) dbopen( NULL, 0, 0, 0, NULL);
30497 #endif
30498
30499   ;
30500   return 0;
30501 }
30502 _ACEOF
30503 rm -f conftest.$ac_objext conftest$ac_exeext
30504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30505   (eval $ac_link) 2>conftest.er1
30506   ac_status=$?
30507   grep -v '^ *+' conftest.er1 >conftest.err
30508   rm -f conftest.er1
30509   cat conftest.err >&5
30510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511   (exit $ac_status); } &&
30512          { ac_try='test -z "$ac_c_werror_flag"
30513                          || test ! -s conftest.err'
30514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30515   (eval $ac_try) 2>&5
30516   ac_status=$?
30517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518   (exit $ac_status); }; } &&
30519          { ac_try='test -s conftest$ac_exeext'
30520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30521   (eval $ac_try) 2>&5
30522   ac_status=$?
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); }; }; then
30525   ol_cv_db_db3=yes
30526 else
30527   echo "$as_me: failed program was:" >&5
30528 sed 's/^/| /' conftest.$ac_ext >&5
30529
30530 ol_cv_db_db3=no
30531 fi
30532 rm -f conftest.err conftest.$ac_objext \
30533       conftest$ac_exeext conftest.$ac_ext
30534
30535         LIBS="$ol_LIBS"
30536
30537 fi
30538 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
30539 echo "${ECHO_T}$ol_cv_db_db3" >&6
30540
30541         if test $ol_cv_db_db3 = yes ; then
30542                 ol_cv_lib_db=-ldb3
30543         fi
30544 fi
30545
30546         if test $ol_cv_lib_db = no ; then
30547         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
30548 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
30549 if test "${ol_cv_db_db_3+set}" = set; then
30550   echo $ECHO_N "(cached) $ECHO_C" >&6
30551 else
30552
30553         ol_DB_LIB=-ldb-3
30554         ol_LIBS=$LIBS
30555         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30556
30557         cat >conftest.$ac_ext <<_ACEOF
30558 /* confdefs.h.  */
30559 _ACEOF
30560 cat confdefs.h >>conftest.$ac_ext
30561 cat >>conftest.$ac_ext <<_ACEOF
30562 /* end confdefs.h.  */
30563
30564 #ifdef HAVE_DB_185_H
30565 # include <db_185.h>
30566 #else
30567 # include <db.h>
30568 #endif
30569
30570 #ifndef DB_VERSION_MAJOR
30571 # define DB_VERSION_MAJOR 1
30572 #endif
30573
30574 #ifndef NULL
30575 #define NULL ((void*)0)
30576 #endif
30577
30578 int
30579 main ()
30580 {
30581
30582 #if DB_VERSION_MAJOR > 1
30583         {
30584                 char *version;
30585                 int major, minor, patch;
30586
30587                 version = db_version( &major, &minor, &patch );
30588
30589                 if( major != DB_VERSION_MAJOR ||
30590                         minor < DB_VERSION_MINOR )
30591                 {
30592                         printf("Berkeley DB version mismatch\n"
30593                                 "\theader: %s\n\tlibrary: %s\n",
30594                                 DB_VERSION_STRING, version);
30595                         return 1;
30596                 }
30597         }
30598 #endif
30599
30600 #if DB_VERSION_MAJOR > 2
30601         db_env_create( NULL, 0 );
30602 #elif DB_VERSION_MAJOR > 1
30603         db_appexit( NULL );
30604 #else
30605         (void) dbopen( NULL, 0, 0, 0, NULL);
30606 #endif
30607
30608   ;
30609   return 0;
30610 }
30611 _ACEOF
30612 rm -f conftest.$ac_objext conftest$ac_exeext
30613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30614   (eval $ac_link) 2>conftest.er1
30615   ac_status=$?
30616   grep -v '^ *+' conftest.er1 >conftest.err
30617   rm -f conftest.er1
30618   cat conftest.err >&5
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); } &&
30621          { ac_try='test -z "$ac_c_werror_flag"
30622                          || test ! -s conftest.err'
30623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624   (eval $ac_try) 2>&5
30625   ac_status=$?
30626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627   (exit $ac_status); }; } &&
30628          { ac_try='test -s conftest$ac_exeext'
30629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30630   (eval $ac_try) 2>&5
30631   ac_status=$?
30632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633   (exit $ac_status); }; }; then
30634   ol_cv_db_db_3=yes
30635 else
30636   echo "$as_me: failed program was:" >&5
30637 sed 's/^/| /' conftest.$ac_ext >&5
30638
30639 ol_cv_db_db_3=no
30640 fi
30641 rm -f conftest.err conftest.$ac_objext \
30642       conftest$ac_exeext conftest.$ac_ext
30643
30644         LIBS="$ol_LIBS"
30645
30646 fi
30647 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
30648 echo "${ECHO_T}$ol_cv_db_db_3" >&6
30649
30650         if test $ol_cv_db_db_3 = yes ; then
30651                 ol_cv_lib_db=-ldb-3
30652         fi
30653 fi
30654
30655
30656 elif test $ol_cv_bdb_major = 2 ; then
30657         if test $ol_cv_lib_db = no ; then
30658         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
30659 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
30660 if test "${ol_cv_db_db2+set}" = set; then
30661   echo $ECHO_N "(cached) $ECHO_C" >&6
30662 else
30663
30664         ol_DB_LIB=-ldb2
30665         ol_LIBS=$LIBS
30666         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30667
30668         cat >conftest.$ac_ext <<_ACEOF
30669 /* confdefs.h.  */
30670 _ACEOF
30671 cat confdefs.h >>conftest.$ac_ext
30672 cat >>conftest.$ac_ext <<_ACEOF
30673 /* end confdefs.h.  */
30674
30675 #ifdef HAVE_DB_185_H
30676 # include <db_185.h>
30677 #else
30678 # include <db.h>
30679 #endif
30680
30681 #ifndef DB_VERSION_MAJOR
30682 # define DB_VERSION_MAJOR 1
30683 #endif
30684
30685 #ifndef NULL
30686 #define NULL ((void*)0)
30687 #endif
30688
30689 int
30690 main ()
30691 {
30692
30693 #if DB_VERSION_MAJOR > 1
30694         {
30695                 char *version;
30696                 int major, minor, patch;
30697
30698                 version = db_version( &major, &minor, &patch );
30699
30700                 if( major != DB_VERSION_MAJOR ||
30701                         minor < DB_VERSION_MINOR )
30702                 {
30703                         printf("Berkeley DB version mismatch\n"
30704                                 "\theader: %s\n\tlibrary: %s\n",
30705                                 DB_VERSION_STRING, version);
30706                         return 1;
30707                 }
30708         }
30709 #endif
30710
30711 #if DB_VERSION_MAJOR > 2
30712         db_env_create( NULL, 0 );
30713 #elif DB_VERSION_MAJOR > 1
30714         db_appexit( NULL );
30715 #else
30716         (void) dbopen( NULL, 0, 0, 0, NULL);
30717 #endif
30718
30719   ;
30720   return 0;
30721 }
30722 _ACEOF
30723 rm -f conftest.$ac_objext conftest$ac_exeext
30724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30725   (eval $ac_link) 2>conftest.er1
30726   ac_status=$?
30727   grep -v '^ *+' conftest.er1 >conftest.err
30728   rm -f conftest.er1
30729   cat conftest.err >&5
30730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30731   (exit $ac_status); } &&
30732          { ac_try='test -z "$ac_c_werror_flag"
30733                          || test ! -s conftest.err'
30734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735   (eval $ac_try) 2>&5
30736   ac_status=$?
30737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738   (exit $ac_status); }; } &&
30739          { ac_try='test -s conftest$ac_exeext'
30740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741   (eval $ac_try) 2>&5
30742   ac_status=$?
30743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744   (exit $ac_status); }; }; then
30745   ol_cv_db_db2=yes
30746 else
30747   echo "$as_me: failed program was:" >&5
30748 sed 's/^/| /' conftest.$ac_ext >&5
30749
30750 ol_cv_db_db2=no
30751 fi
30752 rm -f conftest.err conftest.$ac_objext \
30753       conftest$ac_exeext conftest.$ac_ext
30754
30755         LIBS="$ol_LIBS"
30756
30757 fi
30758 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
30759 echo "${ECHO_T}$ol_cv_db_db2" >&6
30760
30761         if test $ol_cv_db_db2 = yes ; then
30762                 ol_cv_lib_db=-ldb2
30763         fi
30764 fi
30765
30766         if test $ol_cv_lib_db = no ; then
30767         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
30768 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
30769 if test "${ol_cv_db_db_2+set}" = set; then
30770   echo $ECHO_N "(cached) $ECHO_C" >&6
30771 else
30772
30773         ol_DB_LIB=-ldb-2
30774         ol_LIBS=$LIBS
30775         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30776
30777         cat >conftest.$ac_ext <<_ACEOF
30778 /* confdefs.h.  */
30779 _ACEOF
30780 cat confdefs.h >>conftest.$ac_ext
30781 cat >>conftest.$ac_ext <<_ACEOF
30782 /* end confdefs.h.  */
30783
30784 #ifdef HAVE_DB_185_H
30785 # include <db_185.h>
30786 #else
30787 # include <db.h>
30788 #endif
30789
30790 #ifndef DB_VERSION_MAJOR
30791 # define DB_VERSION_MAJOR 1
30792 #endif
30793
30794 #ifndef NULL
30795 #define NULL ((void*)0)
30796 #endif
30797
30798 int
30799 main ()
30800 {
30801
30802 #if DB_VERSION_MAJOR > 1
30803         {
30804                 char *version;
30805                 int major, minor, patch;
30806
30807                 version = db_version( &major, &minor, &patch );
30808
30809                 if( major != DB_VERSION_MAJOR ||
30810                         minor < DB_VERSION_MINOR )
30811                 {
30812                         printf("Berkeley DB version mismatch\n"
30813                                 "\theader: %s\n\tlibrary: %s\n",
30814                                 DB_VERSION_STRING, version);
30815                         return 1;
30816                 }
30817         }
30818 #endif
30819
30820 #if DB_VERSION_MAJOR > 2
30821         db_env_create( NULL, 0 );
30822 #elif DB_VERSION_MAJOR > 1
30823         db_appexit( NULL );
30824 #else
30825         (void) dbopen( NULL, 0, 0, 0, NULL);
30826 #endif
30827
30828   ;
30829   return 0;
30830 }
30831 _ACEOF
30832 rm -f conftest.$ac_objext conftest$ac_exeext
30833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30834   (eval $ac_link) 2>conftest.er1
30835   ac_status=$?
30836   grep -v '^ *+' conftest.er1 >conftest.err
30837   rm -f conftest.er1
30838   cat conftest.err >&5
30839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840   (exit $ac_status); } &&
30841          { ac_try='test -z "$ac_c_werror_flag"
30842                          || test ! -s conftest.err'
30843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30844   (eval $ac_try) 2>&5
30845   ac_status=$?
30846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847   (exit $ac_status); }; } &&
30848          { ac_try='test -s conftest$ac_exeext'
30849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30850   (eval $ac_try) 2>&5
30851   ac_status=$?
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); }; }; then
30854   ol_cv_db_db_2=yes
30855 else
30856   echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30858
30859 ol_cv_db_db_2=no
30860 fi
30861 rm -f conftest.err conftest.$ac_objext \
30862       conftest$ac_exeext conftest.$ac_ext
30863
30864         LIBS="$ol_LIBS"
30865
30866 fi
30867 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
30868 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30869
30870         if test $ol_cv_db_db_2 = yes ; then
30871                 ol_cv_lib_db=-ldb-2
30872         fi
30873 fi
30874
30875
30876 elif test $ol_cv_bdb_major = 1 ; then
30877         if test $ol_cv_lib_db = no ; then
30878         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30879 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30880 if test "${ol_cv_db_db1+set}" = set; then
30881   echo $ECHO_N "(cached) $ECHO_C" >&6
30882 else
30883
30884         ol_DB_LIB=-ldb1
30885         ol_LIBS=$LIBS
30886         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30887
30888         cat >conftest.$ac_ext <<_ACEOF
30889 /* confdefs.h.  */
30890 _ACEOF
30891 cat confdefs.h >>conftest.$ac_ext
30892 cat >>conftest.$ac_ext <<_ACEOF
30893 /* end confdefs.h.  */
30894
30895 #ifdef HAVE_DB_185_H
30896 # include <db_185.h>
30897 #else
30898 # include <db.h>
30899 #endif
30900
30901 #ifndef DB_VERSION_MAJOR
30902 # define DB_VERSION_MAJOR 1
30903 #endif
30904
30905 #ifndef NULL
30906 #define NULL ((void*)0)
30907 #endif
30908
30909 int
30910 main ()
30911 {
30912
30913 #if DB_VERSION_MAJOR > 1
30914         {
30915                 char *version;
30916                 int major, minor, patch;
30917
30918                 version = db_version( &major, &minor, &patch );
30919
30920                 if( major != DB_VERSION_MAJOR ||
30921                         minor < DB_VERSION_MINOR )
30922                 {
30923                         printf("Berkeley DB version mismatch\n"
30924                                 "\theader: %s\n\tlibrary: %s\n",
30925                                 DB_VERSION_STRING, version);
30926                         return 1;
30927                 }
30928         }
30929 #endif
30930
30931 #if DB_VERSION_MAJOR > 2
30932         db_env_create( NULL, 0 );
30933 #elif DB_VERSION_MAJOR > 1
30934         db_appexit( NULL );
30935 #else
30936         (void) dbopen( NULL, 0, 0, 0, NULL);
30937 #endif
30938
30939   ;
30940   return 0;
30941 }
30942 _ACEOF
30943 rm -f conftest.$ac_objext conftest$ac_exeext
30944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30945   (eval $ac_link) 2>conftest.er1
30946   ac_status=$?
30947   grep -v '^ *+' conftest.er1 >conftest.err
30948   rm -f conftest.er1
30949   cat conftest.err >&5
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } &&
30952          { ac_try='test -z "$ac_c_werror_flag"
30953                          || test ! -s conftest.err'
30954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30955   (eval $ac_try) 2>&5
30956   ac_status=$?
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); }; } &&
30959          { ac_try='test -s conftest$ac_exeext'
30960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30961   (eval $ac_try) 2>&5
30962   ac_status=$?
30963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30964   (exit $ac_status); }; }; then
30965   ol_cv_db_db1=yes
30966 else
30967   echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30969
30970 ol_cv_db_db1=no
30971 fi
30972 rm -f conftest.err conftest.$ac_objext \
30973       conftest$ac_exeext conftest.$ac_ext
30974
30975         LIBS="$ol_LIBS"
30976
30977 fi
30978 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30979 echo "${ECHO_T}$ol_cv_db_db1" >&6
30980
30981         if test $ol_cv_db_db1 = yes ; then
30982                 ol_cv_lib_db=-ldb1
30983         fi
30984 fi
30985
30986         if test $ol_cv_lib_db = no ; then
30987         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30988 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30989 if test "${ol_cv_db_db_1+set}" = set; then
30990   echo $ECHO_N "(cached) $ECHO_C" >&6
30991 else
30992
30993         ol_DB_LIB=-ldb-1
30994         ol_LIBS=$LIBS
30995         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30996
30997         cat >conftest.$ac_ext <<_ACEOF
30998 /* confdefs.h.  */
30999 _ACEOF
31000 cat confdefs.h >>conftest.$ac_ext
31001 cat >>conftest.$ac_ext <<_ACEOF
31002 /* end confdefs.h.  */
31003
31004 #ifdef HAVE_DB_185_H
31005 # include <db_185.h>
31006 #else
31007 # include <db.h>
31008 #endif
31009
31010 #ifndef DB_VERSION_MAJOR
31011 # define DB_VERSION_MAJOR 1
31012 #endif
31013
31014 #ifndef NULL
31015 #define NULL ((void*)0)
31016 #endif
31017
31018 int
31019 main ()
31020 {
31021
31022 #if DB_VERSION_MAJOR > 1
31023         {
31024                 char *version;
31025                 int major, minor, patch;
31026
31027                 version = db_version( &major, &minor, &patch );
31028
31029                 if( major != DB_VERSION_MAJOR ||
31030                         minor < DB_VERSION_MINOR )
31031                 {
31032                         printf("Berkeley DB version mismatch\n"
31033                                 "\theader: %s\n\tlibrary: %s\n",
31034                                 DB_VERSION_STRING, version);
31035                         return 1;
31036                 }
31037         }
31038 #endif
31039
31040 #if DB_VERSION_MAJOR > 2
31041         db_env_create( NULL, 0 );
31042 #elif DB_VERSION_MAJOR > 1
31043         db_appexit( NULL );
31044 #else
31045         (void) dbopen( NULL, 0, 0, 0, NULL);
31046 #endif
31047
31048   ;
31049   return 0;
31050 }
31051 _ACEOF
31052 rm -f conftest.$ac_objext conftest$ac_exeext
31053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31054   (eval $ac_link) 2>conftest.er1
31055   ac_status=$?
31056   grep -v '^ *+' conftest.er1 >conftest.err
31057   rm -f conftest.er1
31058   cat conftest.err >&5
31059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060   (exit $ac_status); } &&
31061          { ac_try='test -z "$ac_c_werror_flag"
31062                          || test ! -s conftest.err'
31063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064   (eval $ac_try) 2>&5
31065   ac_status=$?
31066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067   (exit $ac_status); }; } &&
31068          { ac_try='test -s conftest$ac_exeext'
31069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070   (eval $ac_try) 2>&5
31071   ac_status=$?
31072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073   (exit $ac_status); }; }; then
31074   ol_cv_db_db_1=yes
31075 else
31076   echo "$as_me: failed program was:" >&5
31077 sed 's/^/| /' conftest.$ac_ext >&5
31078
31079 ol_cv_db_db_1=no
31080 fi
31081 rm -f conftest.err conftest.$ac_objext \
31082       conftest$ac_exeext conftest.$ac_ext
31083
31084         LIBS="$ol_LIBS"
31085
31086 fi
31087 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
31088 echo "${ECHO_T}$ol_cv_db_db_1" >&6
31089
31090         if test $ol_cv_db_db_1 = yes ; then
31091                 ol_cv_lib_db=-ldb-1
31092         fi
31093 fi
31094
31095 fi
31096 if test $ol_cv_lib_db = no ; then
31097         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
31098 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
31099 if test "${ol_cv_db_none+set}" = set; then
31100   echo $ECHO_N "(cached) $ECHO_C" >&6
31101 else
31102
31103         ol_DB_LIB=
31104         ol_LIBS=$LIBS
31105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31106
31107         cat >conftest.$ac_ext <<_ACEOF
31108 /* confdefs.h.  */
31109 _ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h.  */
31113
31114 #ifdef HAVE_DB_185_H
31115 # include <db_185.h>
31116 #else
31117 # include <db.h>
31118 #endif
31119
31120 #ifndef DB_VERSION_MAJOR
31121 # define DB_VERSION_MAJOR 1
31122 #endif
31123
31124 #ifndef NULL
31125 #define NULL ((void*)0)
31126 #endif
31127
31128 int
31129 main ()
31130 {
31131
31132 #if DB_VERSION_MAJOR > 1
31133         {
31134                 char *version;
31135                 int major, minor, patch;
31136
31137                 version = db_version( &major, &minor, &patch );
31138
31139                 if( major != DB_VERSION_MAJOR ||
31140                         minor < DB_VERSION_MINOR )
31141                 {
31142                         printf("Berkeley DB version mismatch\n"
31143                                 "\theader: %s\n\tlibrary: %s\n",
31144                                 DB_VERSION_STRING, version);
31145                         return 1;
31146                 }
31147         }
31148 #endif
31149
31150 #if DB_VERSION_MAJOR > 2
31151         db_env_create( NULL, 0 );
31152 #elif DB_VERSION_MAJOR > 1
31153         db_appexit( NULL );
31154 #else
31155         (void) dbopen( NULL, 0, 0, 0, NULL);
31156 #endif
31157
31158   ;
31159   return 0;
31160 }
31161 _ACEOF
31162 rm -f conftest.$ac_objext conftest$ac_exeext
31163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31164   (eval $ac_link) 2>conftest.er1
31165   ac_status=$?
31166   grep -v '^ *+' conftest.er1 >conftest.err
31167   rm -f conftest.er1
31168   cat conftest.err >&5
31169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170   (exit $ac_status); } &&
31171          { ac_try='test -z "$ac_c_werror_flag"
31172                          || test ! -s conftest.err'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; } &&
31178          { ac_try='test -s conftest$ac_exeext'
31179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31180   (eval $ac_try) 2>&5
31181   ac_status=$?
31182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183   (exit $ac_status); }; }; then
31184   ol_cv_db_none=yes
31185 else
31186   echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31188
31189 ol_cv_db_none=no
31190 fi
31191 rm -f conftest.err conftest.$ac_objext \
31192       conftest$ac_exeext conftest.$ac_ext
31193
31194         LIBS="$ol_LIBS"
31195
31196 fi
31197 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
31198 echo "${ECHO_T}$ol_cv_db_none" >&6
31199
31200         if test $ol_cv_db_none = yes ; then
31201                 ol_cv_lib_db=yes
31202         fi
31203 fi
31204
31205
31206         if test "$ol_cv_lib_db" != no ; then
31207                 ol_cv_berkeley_db=yes
31208                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
31209 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
31210 if test "${ol_cv_berkeley_db_version+set}" = set; then
31211   echo $ECHO_N "(cached) $ECHO_C" >&6
31212 else
31213
31214         ol_LIBS="$LIBS"
31215         LIBS="$LTHREAD_LIBS $LIBS"
31216         if test $ol_cv_lib_db != yes ; then
31217                 LIBS="$ol_cv_lib_db $LIBS"
31218         fi
31219
31220         if test "$cross_compiling" = yes; then
31221   ol_cv_berkeley_db_version=cross
31222 else
31223   cat >conftest.$ac_ext <<_ACEOF
31224 /* confdefs.h.  */
31225 _ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h.  */
31229
31230 #ifdef HAVE_DB_185_H
31231         choke me;
31232 #else
31233 #include <db.h>
31234 #endif
31235 #ifndef DB_VERSION_MAJOR
31236 # define DB_VERSION_MAJOR 1
31237 #endif
31238 #ifndef NULL
31239 #define NULL ((void *)0)
31240 #endif
31241 main()
31242 {
31243 #if DB_VERSION_MAJOR > 1
31244         char *version;
31245         int major, minor, patch;
31246
31247         version = db_version( &major, &minor, &patch );
31248
31249         if( major != DB_VERSION_MAJOR ||
31250                 minor != DB_VERSION_MINOR ||
31251                 patch != DB_VERSION_PATCH )
31252         {
31253                 printf("Berkeley DB version mismatch\n"
31254                         "\theader: %s\n\tlibrary: %s\n",
31255                         DB_VERSION_STRING, version);
31256                 return 1;
31257         }
31258 #endif
31259
31260         return 0;
31261 }
31262 _ACEOF
31263 rm -f conftest$ac_exeext
31264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31265   (eval $ac_link) 2>&5
31266   ac_status=$?
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270   (eval $ac_try) 2>&5
31271   ac_status=$?
31272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273   (exit $ac_status); }; }; then
31274   ol_cv_berkeley_db_version=yes
31275 else
31276   echo "$as_me: program exited with status $ac_status" >&5
31277 echo "$as_me: failed program was:" >&5
31278 sed 's/^/| /' conftest.$ac_ext >&5
31279
31280 ( exit $ac_status )
31281 ol_cv_berkeley_db_version=no
31282 fi
31283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31284 fi
31285
31286         LIBS="$ol_LIBS"
31287
31288 fi
31289 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
31290 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
31291
31292         if test $ol_cv_berkeley_db_version = no ; then
31293                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
31294 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
31295    { (exit 1); exit 1; }; }
31296         fi
31297
31298                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
31299 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
31300 if test "${ol_cv_berkeley_db_thread+set}" = set; then
31301   echo $ECHO_N "(cached) $ECHO_C" >&6
31302 else
31303
31304         ol_LIBS="$LIBS"
31305         LIBS="$LTHREAD_LIBS $LIBS"
31306         if test $ol_cv_lib_db != yes ; then
31307                 LIBS="$ol_cv_lib_db $LIBS"
31308         fi
31309
31310         if test "$cross_compiling" = yes; then
31311   ol_cv_berkeley_db_thread=cross
31312 else
31313   cat >conftest.$ac_ext <<_ACEOF
31314 /* confdefs.h.  */
31315 _ACEOF
31316 cat confdefs.h >>conftest.$ac_ext
31317 cat >>conftest.$ac_ext <<_ACEOF
31318 /* end confdefs.h.  */
31319
31320 #ifdef HAVE_DB_185_H
31321         choke me;
31322 #else
31323 #include <db.h>
31324 #endif
31325 #ifndef NULL
31326 #define NULL ((void *)0)
31327 #endif
31328 main()
31329 {
31330         int rc;
31331         u_int32_t flags = DB_CREATE |
31332 #ifdef DB_PRIVATE
31333                 DB_PRIVATE |
31334 #endif
31335                 DB_THREAD;
31336
31337 #if DB_VERSION_MAJOR > 2
31338         DB_ENV *env = NULL;
31339
31340         rc = db_env_create( &env, 0 );
31341
31342         flags |= DB_INIT_MPOOL;
31343 #ifdef DB_MPOOL_PRIVATE
31344         flags |= DB_MPOOL_PRIVATE;
31345 #endif
31346
31347         if( rc ) {
31348                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31349                 return rc;
31350         }
31351
31352 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
31353         rc = env->open( env, NULL, flags, 0 );
31354 #else
31355         rc = env->open( env, NULL, NULL, flags, 0 );
31356 #endif
31357
31358         if ( rc == 0 ) {
31359                 rc = env->close( env, 0 );
31360         }
31361
31362         if( rc ) {
31363                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
31364                 return rc;
31365         }
31366
31367 #else
31368         DB_ENV env;
31369         memset( &env, '\0', sizeof(env) );
31370
31371         rc = db_appinit( NULL, NULL, &env, flags );
31372
31373         if( rc == 0 ) {
31374                 db_appexit( &env );
31375         }
31376
31377         unlink("__db_mpool.share");
31378         unlink("__db_lock.share");
31379 #endif
31380
31381         return rc;
31382 }
31383 _ACEOF
31384 rm -f conftest$ac_exeext
31385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31386   (eval $ac_link) 2>&5
31387   ac_status=$?
31388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31391   (eval $ac_try) 2>&5
31392   ac_status=$?
31393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31394   (exit $ac_status); }; }; then
31395   ol_cv_berkeley_db_thread=yes
31396 else
31397   echo "$as_me: program exited with status $ac_status" >&5
31398 echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31400
31401 ( exit $ac_status )
31402 ol_cv_berkeley_db_thread=no
31403 fi
31404 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31405 fi
31406
31407         LIBS="$ol_LIBS"
31408
31409 fi
31410 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
31411 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
31412
31413         if test $ol_cv_berkeley_db_thread != no ; then
31414
31415 cat >>confdefs.h <<\_ACEOF
31416 #define HAVE_BERKELEY_DB_THREAD 1
31417 _ACEOF
31418
31419         fi
31420
31421         fi
31422 fi
31423
31424
31425         if test $ol_cv_berkeley_db = no ; then
31426                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
31427 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
31428    { (exit 1); exit 1; }; }
31429         fi
31430
31431
31432 cat >>confdefs.h <<\_ACEOF
31433 #define HAVE_BERKELEY_DB 1
31434 _ACEOF
31435
31436
31437                         if test $ol_cv_lib_db != yes ; then
31438                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
31439         fi
31440
31441         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
31442 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
31443 if test "${ol_cv_bdb_compat+set}" = set; then
31444   echo $ECHO_N "(cached) $ECHO_C" >&6
31445 else
31446
31447         cat >conftest.$ac_ext <<_ACEOF
31448 /* confdefs.h.  */
31449 _ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h.  */
31453
31454 #include <db.h>
31455
31456  /* this check could be improved */
31457 #ifndef DB_VERSION_MAJOR
31458 #       define DB_VERSION_MAJOR 1
31459 #endif
31460 #ifndef DB_VERSION_MINOR
31461 #       define DB_VERSION_MINOR 0
31462 #endif
31463
31464 /* require 4.2 or later */
31465 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
31466         __db_version_compat
31467 #endif
31468
31469 _ACEOF
31470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31471   $EGREP "__db_version_compat" >/dev/null 2>&1; then
31472   ol_cv_bdb_compat=yes
31473 else
31474   ol_cv_bdb_compat=no
31475 fi
31476 rm -f conftest*
31477
31478 fi
31479 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
31480 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
31481
31482
31483         if test $ol_cv_bdb_compat != yes ; then
31484                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
31485 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
31486    { (exit 1); exit 1; }; }
31487         fi
31488
31489         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
31490
31491         ol_link_bdb=yes
31492 fi
31493
31494
31495 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
31496         BUILD_LIBS_DYNAMIC=shared
31497
31498 cat >>confdefs.h <<\_ACEOF
31499 #define LDAP_LIBS_DYNAMIC 1
31500 _ACEOF
31501
31502         LTSTATIC=""
31503 else
31504         BUILD_LIBS_DYNAMIC=static
31505         LTSTATIC="-static"
31506 fi
31507
31508 if test $ol_enable_wrappers != no ; then
31509
31510 for ac_header in tcpd.h
31511 do
31512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31514   echo "$as_me:$LINENO: checking for $ac_header" >&5
31515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31517   echo $ECHO_N "(cached) $ECHO_C" >&6
31518 fi
31519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31521 else
31522   # Is the header compilable?
31523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31525 cat >conftest.$ac_ext <<_ACEOF
31526 /* confdefs.h.  */
31527 _ACEOF
31528 cat confdefs.h >>conftest.$ac_ext
31529 cat >>conftest.$ac_ext <<_ACEOF
31530 /* end confdefs.h.  */
31531 $ac_includes_default
31532 #include <$ac_header>
31533 _ACEOF
31534 rm -f conftest.$ac_objext
31535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31536   (eval $ac_compile) 2>conftest.er1
31537   ac_status=$?
31538   grep -v '^ *+' conftest.er1 >conftest.err
31539   rm -f conftest.er1
31540   cat conftest.err >&5
31541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542   (exit $ac_status); } &&
31543          { ac_try='test -z "$ac_c_werror_flag"
31544                          || test ! -s conftest.err'
31545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31546   (eval $ac_try) 2>&5
31547   ac_status=$?
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; } &&
31550          { ac_try='test -s conftest.$ac_objext'
31551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552   (eval $ac_try) 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; }; then
31556   ac_header_compiler=yes
31557 else
31558   echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560
31561 ac_header_compiler=no
31562 fi
31563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31565 echo "${ECHO_T}$ac_header_compiler" >&6
31566
31567 # Is the header present?
31568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31570 cat >conftest.$ac_ext <<_ACEOF
31571 /* confdefs.h.  */
31572 _ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h.  */
31576 #include <$ac_header>
31577 _ACEOF
31578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31580   ac_status=$?
31581   grep -v '^ *+' conftest.er1 >conftest.err
31582   rm -f conftest.er1
31583   cat conftest.err >&5
31584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31585   (exit $ac_status); } >/dev/null; then
31586   if test -s conftest.err; then
31587     ac_cpp_err=$ac_c_preproc_warn_flag
31588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31589   else
31590     ac_cpp_err=
31591   fi
31592 else
31593   ac_cpp_err=yes
31594 fi
31595 if test -z "$ac_cpp_err"; then
31596   ac_header_preproc=yes
31597 else
31598   echo "$as_me: failed program was:" >&5
31599 sed 's/^/| /' conftest.$ac_ext >&5
31600
31601   ac_header_preproc=no
31602 fi
31603 rm -f conftest.err conftest.$ac_ext
31604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31605 echo "${ECHO_T}$ac_header_preproc" >&6
31606
31607 # So?  What about this header?
31608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31609   yes:no: )
31610     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31614     ac_header_preproc=yes
31615     ;;
31616   no:yes:* )
31617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31619     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31620 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31621     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31623     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31624 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31627     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31629     (
31630       cat <<\_ASBOX
31631 ## --------------------------------------------- ##
31632 ## Report this to <http://www.openldap.org/its/> ##
31633 ## --------------------------------------------- ##
31634 _ASBOX
31635     ) |
31636       sed "s/^/$as_me: WARNING:     /" >&2
31637     ;;
31638 esac
31639 echo "$as_me:$LINENO: checking for $ac_header" >&5
31640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31642   echo $ECHO_N "(cached) $ECHO_C" >&6
31643 else
31644   eval "$as_ac_Header=\$ac_header_preproc"
31645 fi
31646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31648
31649 fi
31650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31651   cat >>confdefs.h <<_ACEOF
31652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31653 _ACEOF
31654
31655                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
31656 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
31657                 save_LIBS="$LIBS"
31658                 LIBS="$LIBS -lwrap"
31659                 cat >conftest.$ac_ext <<_ACEOF
31660 /* confdefs.h.  */
31661 _ACEOF
31662 cat confdefs.h >>conftest.$ac_ext
31663 cat >>conftest.$ac_ext <<_ACEOF
31664 /* end confdefs.h.  */
31665
31666 #include <tcpd.h>
31667 int allow_severity = 0;
31668 int deny_severity  = 0;
31669
31670 struct request_info *req;
31671
31672 int
31673 main ()
31674 {
31675
31676 hosts_access(req)
31677
31678   ;
31679   return 0;
31680 }
31681 _ACEOF
31682 rm -f conftest.$ac_objext conftest$ac_exeext
31683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31684   (eval $ac_link) 2>conftest.er1
31685   ac_status=$?
31686   grep -v '^ *+' conftest.er1 >conftest.err
31687   rm -f conftest.er1
31688   cat conftest.err >&5
31689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690   (exit $ac_status); } &&
31691          { ac_try='test -z "$ac_c_werror_flag"
31692                          || test ! -s conftest.err'
31693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694   (eval $ac_try) 2>&5
31695   ac_status=$?
31696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); }; } &&
31698          { ac_try='test -s conftest$ac_exeext'
31699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31700   (eval $ac_try) 2>&5
31701   ac_status=$?
31702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703   (exit $ac_status); }; }; then
31704   echo "$as_me:$LINENO: result: -lwrap" >&5
31705 echo "${ECHO_T}-lwrap" >&6
31706                 have_wrappers=yes
31707                 LIBS="$save_LIBS"
31708 else
31709   echo "$as_me: failed program was:" >&5
31710 sed 's/^/| /' conftest.$ac_ext >&5
31711
31712
31713                                 LIBS="$LIBS -lnsl"
31714                 cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h.  */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h.  */
31720
31721 #include <tcpd.h>
31722 int allow_severity = 0;
31723 int deny_severity  = 0;
31724
31725 struct request_info *req;
31726
31727 int
31728 main ()
31729 {
31730
31731 hosts_access(req)
31732
31733   ;
31734   return 0;
31735 }
31736 _ACEOF
31737 rm -f conftest.$ac_objext conftest$ac_exeext
31738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31739   (eval $ac_link) 2>conftest.er1
31740   ac_status=$?
31741   grep -v '^ *+' conftest.er1 >conftest.err
31742   rm -f conftest.er1
31743   cat conftest.err >&5
31744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31745   (exit $ac_status); } &&
31746          { ac_try='test -z "$ac_c_werror_flag"
31747                          || test ! -s conftest.err'
31748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31749   (eval $ac_try) 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); }; } &&
31753          { ac_try='test -s conftest$ac_exeext'
31754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31755   (eval $ac_try) 2>&5
31756   ac_status=$?
31757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758   (exit $ac_status); }; }; then
31759   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
31760 echo "${ECHO_T}-lwrap -lnsl" >&6
31761                 have_wrappers=yes
31762                 LIBS="$save_LIBS -lnsl"
31763 else
31764   echo "$as_me: failed program was:" >&5
31765 sed 's/^/| /' conftest.$ac_ext >&5
31766
31767
31768                 echo "$as_me:$LINENO: result: no" >&5
31769 echo "${ECHO_T}no" >&6
31770                 have_wrappers=no
31771                 LIBS=$save_LIBS
31772 fi
31773 rm -f conftest.err conftest.$ac_objext \
31774       conftest$ac_exeext conftest.$ac_ext
31775 fi
31776 rm -f conftest.err conftest.$ac_objext \
31777       conftest$ac_exeext conftest.$ac_ext
31778 else
31779   have_wrappers=no
31780 fi
31781
31782 done
31783
31784
31785         if test $have_wrappers = yes ; then
31786
31787 cat >>confdefs.h <<\_ACEOF
31788 #define HAVE_TCPD 1
31789 _ACEOF
31790
31791                 WRAP_LIBS="-lwrap"
31792         elif test $ol_enable_wrappers = yes ; then
31793                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
31794 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
31795    { (exit 1); exit 1; }; }
31796         else
31797                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
31798 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
31799                 WRAP_LIBS=""
31800         fi
31801 fi
31802
31803 if test $ol_enable_syslog != no ; then
31804         echo "$as_me:$LINENO: checking for openlog" >&5
31805 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
31806 if test "${ac_cv_func_openlog+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809   cat >conftest.$ac_ext <<_ACEOF
31810 /* confdefs.h.  */
31811 _ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h.  */
31815 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
31816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31817 #define openlog innocuous_openlog
31818
31819 /* System header to define __stub macros and hopefully few prototypes,
31820     which can conflict with char openlog (); below.
31821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31822     <limits.h> exists even on freestanding compilers.  */
31823
31824 #ifdef __STDC__
31825 # include <limits.h>
31826 #else
31827 # include <assert.h>
31828 #endif
31829
31830 #undef openlog
31831
31832 /* Override any gcc2 internal prototype to avoid an error.  */
31833 #ifdef __cplusplus
31834 extern "C"
31835 {
31836 #endif
31837 /* We use char because int might match the return type of a gcc2
31838    builtin and then its argument prototype would still apply.  */
31839 char openlog ();
31840 /* The GNU C library defines this for functions which it implements
31841     to always fail with ENOSYS.  Some functions are actually named
31842     something starting with __ and the normal name is an alias.  */
31843 #if defined (__stub_openlog) || defined (__stub___openlog)
31844 choke me
31845 #else
31846 char (*f) () = openlog;
31847 #endif
31848 #ifdef __cplusplus
31849 }
31850 #endif
31851
31852 int
31853 main ()
31854 {
31855 return f != openlog;
31856   ;
31857   return 0;
31858 }
31859 _ACEOF
31860 rm -f conftest.$ac_objext conftest$ac_exeext
31861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31862   (eval $ac_link) 2>conftest.er1
31863   ac_status=$?
31864   grep -v '^ *+' conftest.er1 >conftest.err
31865   rm -f conftest.er1
31866   cat conftest.err >&5
31867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31868   (exit $ac_status); } &&
31869          { ac_try='test -z "$ac_c_werror_flag"
31870                          || test ! -s conftest.err'
31871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31872   (eval $ac_try) 2>&5
31873   ac_status=$?
31874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875   (exit $ac_status); }; } &&
31876          { ac_try='test -s conftest$ac_exeext'
31877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31878   (eval $ac_try) 2>&5
31879   ac_status=$?
31880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881   (exit $ac_status); }; }; then
31882   ac_cv_func_openlog=yes
31883 else
31884   echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31886
31887 ac_cv_func_openlog=no
31888 fi
31889 rm -f conftest.err conftest.$ac_objext \
31890       conftest$ac_exeext conftest.$ac_ext
31891 fi
31892 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
31893 echo "${ECHO_T}$ac_cv_func_openlog" >&6
31894
31895         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
31896                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
31897 echo "$as_me: error: could not find syslog" >&2;}
31898    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
31899         fi
31900         ol_enable_syslog=$ac_cv_func_openlog
31901 fi
31902
31903 ol_link_sql=no
31904 if test $ol_enable_sql != no ; then
31905
31906
31907 for ac_header in sql.h sqlext.h
31908 do
31909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31911   echo "$as_me:$LINENO: checking for $ac_header" >&5
31912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31914   echo $ECHO_N "(cached) $ECHO_C" >&6
31915 fi
31916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31918 else
31919   # Is the header compilable?
31920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31922 cat >conftest.$ac_ext <<_ACEOF
31923 /* confdefs.h.  */
31924 _ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h.  */
31928 $ac_includes_default
31929 #include <$ac_header>
31930 _ACEOF
31931 rm -f conftest.$ac_objext
31932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31933   (eval $ac_compile) 2>conftest.er1
31934   ac_status=$?
31935   grep -v '^ *+' conftest.er1 >conftest.err
31936   rm -f conftest.er1
31937   cat conftest.err >&5
31938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939   (exit $ac_status); } &&
31940          { ac_try='test -z "$ac_c_werror_flag"
31941                          || test ! -s conftest.err'
31942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31943   (eval $ac_try) 2>&5
31944   ac_status=$?
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); }; } &&
31947          { ac_try='test -s conftest.$ac_objext'
31948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949   (eval $ac_try) 2>&5
31950   ac_status=$?
31951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952   (exit $ac_status); }; }; then
31953   ac_header_compiler=yes
31954 else
31955   echo "$as_me: failed program was:" >&5
31956 sed 's/^/| /' conftest.$ac_ext >&5
31957
31958 ac_header_compiler=no
31959 fi
31960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31962 echo "${ECHO_T}$ac_header_compiler" >&6
31963
31964 # Is the header present?
31965 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31967 cat >conftest.$ac_ext <<_ACEOF
31968 /* confdefs.h.  */
31969 _ACEOF
31970 cat confdefs.h >>conftest.$ac_ext
31971 cat >>conftest.$ac_ext <<_ACEOF
31972 /* end confdefs.h.  */
31973 #include <$ac_header>
31974 _ACEOF
31975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31977   ac_status=$?
31978   grep -v '^ *+' conftest.er1 >conftest.err
31979   rm -f conftest.er1
31980   cat conftest.err >&5
31981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982   (exit $ac_status); } >/dev/null; then
31983   if test -s conftest.err; then
31984     ac_cpp_err=$ac_c_preproc_warn_flag
31985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31986   else
31987     ac_cpp_err=
31988   fi
31989 else
31990   ac_cpp_err=yes
31991 fi
31992 if test -z "$ac_cpp_err"; then
31993   ac_header_preproc=yes
31994 else
31995   echo "$as_me: failed program was:" >&5
31996 sed 's/^/| /' conftest.$ac_ext >&5
31997
31998   ac_header_preproc=no
31999 fi
32000 rm -f conftest.err conftest.$ac_ext
32001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32002 echo "${ECHO_T}$ac_header_preproc" >&6
32003
32004 # So?  What about this header?
32005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32006   yes:no: )
32007     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32011     ac_header_preproc=yes
32012     ;;
32013   no:yes:* )
32014     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32016     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32017 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32018     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32020     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32021 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32024     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32026     (
32027       cat <<\_ASBOX
32028 ## --------------------------------------------- ##
32029 ## Report this to <http://www.openldap.org/its/> ##
32030 ## --------------------------------------------- ##
32031 _ASBOX
32032     ) |
32033       sed "s/^/$as_me: WARNING:     /" >&2
32034     ;;
32035 esac
32036 echo "$as_me:$LINENO: checking for $ac_header" >&5
32037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32039   echo $ECHO_N "(cached) $ECHO_C" >&6
32040 else
32041   eval "$as_ac_Header=\$ac_header_preproc"
32042 fi
32043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32045
32046 fi
32047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32048   cat >>confdefs.h <<_ACEOF
32049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32050 _ACEOF
32051
32052 else
32053
32054                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
32055 echo "$as_me: error: could not locate SQL headers" >&2;}
32056    { (exit 1); exit 1; }; }
32057
32058 fi
32059
32060 done
32061
32062
32063         sql_LIBS="$LIBS"
32064         LIBS="$LTHREAD_LIBS"
32065
32066         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
32067 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
32068 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
32069   echo $ECHO_N "(cached) $ECHO_C" >&6
32070 else
32071   ac_check_lib_save_LIBS=$LIBS
32072 LIBS="-liodbc  $LIBS"
32073 cat >conftest.$ac_ext <<_ACEOF
32074 /* confdefs.h.  */
32075 _ACEOF
32076 cat confdefs.h >>conftest.$ac_ext
32077 cat >>conftest.$ac_ext <<_ACEOF
32078 /* end confdefs.h.  */
32079
32080 /* Override any gcc2 internal prototype to avoid an error.  */
32081 #ifdef __cplusplus
32082 extern "C"
32083 #endif
32084 /* We use char because int might match the return type of a gcc2
32085    builtin and then its argument prototype would still apply.  */
32086 char SQLDriverConnect ();
32087 int
32088 main ()
32089 {
32090 SQLDriverConnect ();
32091   ;
32092   return 0;
32093 }
32094 _ACEOF
32095 rm -f conftest.$ac_objext conftest$ac_exeext
32096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32097   (eval $ac_link) 2>conftest.er1
32098   ac_status=$?
32099   grep -v '^ *+' conftest.er1 >conftest.err
32100   rm -f conftest.er1
32101   cat conftest.err >&5
32102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103   (exit $ac_status); } &&
32104          { ac_try='test -z "$ac_c_werror_flag"
32105                          || test ! -s conftest.err'
32106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107   (eval $ac_try) 2>&5
32108   ac_status=$?
32109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110   (exit $ac_status); }; } &&
32111          { ac_try='test -s conftest$ac_exeext'
32112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113   (eval $ac_try) 2>&5
32114   ac_status=$?
32115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116   (exit $ac_status); }; }; then
32117   ac_cv_lib_iodbc_SQLDriverConnect=yes
32118 else
32119   echo "$as_me: failed program was:" >&5
32120 sed 's/^/| /' conftest.$ac_ext >&5
32121
32122 ac_cv_lib_iodbc_SQLDriverConnect=no
32123 fi
32124 rm -f conftest.err conftest.$ac_objext \
32125       conftest$ac_exeext conftest.$ac_ext
32126 LIBS=$ac_check_lib_save_LIBS
32127 fi
32128 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
32129 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
32130 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
32131   have_iodbc=yes
32132 else
32133   have_iodbc=no
32134 fi
32135
32136         if test $have_iodbc = yes ; then
32137                 ol_link_sql="-liodbc"
32138         else
32139                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
32140 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
32141 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
32142   echo $ECHO_N "(cached) $ECHO_C" >&6
32143 else
32144   ac_check_lib_save_LIBS=$LIBS
32145 LIBS="-lodbc  $LIBS"
32146 cat >conftest.$ac_ext <<_ACEOF
32147 /* confdefs.h.  */
32148 _ACEOF
32149 cat confdefs.h >>conftest.$ac_ext
32150 cat >>conftest.$ac_ext <<_ACEOF
32151 /* end confdefs.h.  */
32152
32153 /* Override any gcc2 internal prototype to avoid an error.  */
32154 #ifdef __cplusplus
32155 extern "C"
32156 #endif
32157 /* We use char because int might match the return type of a gcc2
32158    builtin and then its argument prototype would still apply.  */
32159 char SQLDriverConnect ();
32160 int
32161 main ()
32162 {
32163 SQLDriverConnect ();
32164   ;
32165   return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext conftest$ac_exeext
32169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32170   (eval $ac_link) 2>conftest.er1
32171   ac_status=$?
32172   grep -v '^ *+' conftest.er1 >conftest.err
32173   rm -f conftest.er1
32174   cat conftest.err >&5
32175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176   (exit $ac_status); } &&
32177          { ac_try='test -z "$ac_c_werror_flag"
32178                          || test ! -s conftest.err'
32179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180   (eval $ac_try) 2>&5
32181   ac_status=$?
32182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); }; } &&
32184          { ac_try='test -s conftest$ac_exeext'
32185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186   (eval $ac_try) 2>&5
32187   ac_status=$?
32188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189   (exit $ac_status); }; }; then
32190   ac_cv_lib_odbc_SQLDriverConnect=yes
32191 else
32192   echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32194
32195 ac_cv_lib_odbc_SQLDriverConnect=no
32196 fi
32197 rm -f conftest.err conftest.$ac_objext \
32198       conftest$ac_exeext conftest.$ac_ext
32199 LIBS=$ac_check_lib_save_LIBS
32200 fi
32201 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
32202 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
32203 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
32204   have_odbc=yes
32205 else
32206   have_odbc=no
32207 fi
32208
32209                 if test $have_odbc = yes ; then
32210                         ol_link_sql="-lodbc"
32211                 fi
32212         fi
32213
32214         LIBS="$sql_LIBS"
32215
32216         if test $ol_link_sql != no ; then
32217                 SLAPD_SQL_LIBS="$ol_link_sql"
32218
32219         elif test $ol_enable_sql != auto ; then
32220                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
32221 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
32222    { (exit 1); exit 1; }; }
32223         fi
32224 fi
32225
32226 ol_icu=no
32227
32228 for ac_header in unicode/utypes.h
32229 do
32230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32232   echo "$as_me:$LINENO: checking for $ac_header" >&5
32233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32235   echo $ECHO_N "(cached) $ECHO_C" >&6
32236 fi
32237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32239 else
32240   # Is the header compilable?
32241 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32243 cat >conftest.$ac_ext <<_ACEOF
32244 /* confdefs.h.  */
32245 _ACEOF
32246 cat confdefs.h >>conftest.$ac_ext
32247 cat >>conftest.$ac_ext <<_ACEOF
32248 /* end confdefs.h.  */
32249 $ac_includes_default
32250 #include <$ac_header>
32251 _ACEOF
32252 rm -f conftest.$ac_objext
32253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32254   (eval $ac_compile) 2>conftest.er1
32255   ac_status=$?
32256   grep -v '^ *+' conftest.er1 >conftest.err
32257   rm -f conftest.er1
32258   cat conftest.err >&5
32259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260   (exit $ac_status); } &&
32261          { ac_try='test -z "$ac_c_werror_flag"
32262                          || test ! -s conftest.err'
32263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32264   (eval $ac_try) 2>&5
32265   ac_status=$?
32266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267   (exit $ac_status); }; } &&
32268          { ac_try='test -s conftest.$ac_objext'
32269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32270   (eval $ac_try) 2>&5
32271   ac_status=$?
32272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32273   (exit $ac_status); }; }; then
32274   ac_header_compiler=yes
32275 else
32276   echo "$as_me: failed program was:" >&5
32277 sed 's/^/| /' conftest.$ac_ext >&5
32278
32279 ac_header_compiler=no
32280 fi
32281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32282 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32283 echo "${ECHO_T}$ac_header_compiler" >&6
32284
32285 # Is the header present?
32286 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32288 cat >conftest.$ac_ext <<_ACEOF
32289 /* confdefs.h.  */
32290 _ACEOF
32291 cat confdefs.h >>conftest.$ac_ext
32292 cat >>conftest.$ac_ext <<_ACEOF
32293 /* end confdefs.h.  */
32294 #include <$ac_header>
32295 _ACEOF
32296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32297   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32298   ac_status=$?
32299   grep -v '^ *+' conftest.er1 >conftest.err
32300   rm -f conftest.er1
32301   cat conftest.err >&5
32302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303   (exit $ac_status); } >/dev/null; then
32304   if test -s conftest.err; then
32305     ac_cpp_err=$ac_c_preproc_warn_flag
32306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32307   else
32308     ac_cpp_err=
32309   fi
32310 else
32311   ac_cpp_err=yes
32312 fi
32313 if test -z "$ac_cpp_err"; then
32314   ac_header_preproc=yes
32315 else
32316   echo "$as_me: failed program was:" >&5
32317 sed 's/^/| /' conftest.$ac_ext >&5
32318
32319   ac_header_preproc=no
32320 fi
32321 rm -f conftest.err conftest.$ac_ext
32322 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32323 echo "${ECHO_T}$ac_header_preproc" >&6
32324
32325 # So?  What about this header?
32326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32327   yes:no: )
32328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32332     ac_header_preproc=yes
32333     ;;
32334   no:yes:* )
32335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32347     (
32348       cat <<\_ASBOX
32349 ## --------------------------------------------- ##
32350 ## Report this to <http://www.openldap.org/its/> ##
32351 ## --------------------------------------------- ##
32352 _ASBOX
32353     ) |
32354       sed "s/^/$as_me: WARNING:     /" >&2
32355     ;;
32356 esac
32357 echo "$as_me:$LINENO: checking for $ac_header" >&5
32358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32359 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32360   echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362   eval "$as_ac_Header=\$ac_header_preproc"
32363 fi
32364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32365 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32366
32367 fi
32368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32369   cat >>confdefs.h <<_ACEOF
32370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32371 _ACEOF
32372
32373 fi
32374
32375 done
32376
32377 if test $ac_cv_header_unicode_utypes_h = yes ; then
32378                 OL_ICULIBS="-licuuc -licudata"
32379
32380         echo "$as_me:$LINENO: checking for ICU libraries" >&5
32381 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
32382 if test "${ol_cv_lib_icu+set}" = set; then
32383   echo $ECHO_N "(cached) $ECHO_C" >&6
32384 else
32385
32386                 ol_LIBS="$LIBS"
32387                 LIBS="$OL_ICULIBS $LIBS"
32388                 cat >conftest.$ac_ext <<_ACEOF
32389 /* confdefs.h.  */
32390 _ACEOF
32391 cat confdefs.h >>conftest.$ac_ext
32392 cat >>conftest.$ac_ext <<_ACEOF
32393 /* end confdefs.h.  */
32394
32395 #include <unicode/utypes.h>
32396
32397 int
32398 main ()
32399 {
32400
32401 (void) u_errorName(0);
32402
32403   ;
32404   return 0;
32405 }
32406 _ACEOF
32407 rm -f conftest.$ac_objext conftest$ac_exeext
32408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32409   (eval $ac_link) 2>conftest.er1
32410   ac_status=$?
32411   grep -v '^ *+' conftest.er1 >conftest.err
32412   rm -f conftest.er1
32413   cat conftest.err >&5
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); } &&
32416          { ac_try='test -z "$ac_c_werror_flag"
32417                          || test ! -s conftest.err'
32418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419   (eval $ac_try) 2>&5
32420   ac_status=$?
32421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422   (exit $ac_status); }; } &&
32423          { ac_try='test -s conftest$ac_exeext'
32424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425   (eval $ac_try) 2>&5
32426   ac_status=$?
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); }; }; then
32429   ol_cv_lib_icu=yes
32430 else
32431   echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32433
32434 ol_cv_lib_icu=no
32435 fi
32436 rm -f conftest.err conftest.$ac_objext \
32437       conftest$ac_exeext conftest.$ac_ext
32438                 LIBS="$ol_LIBS"
32439
32440 fi
32441 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
32442 echo "${ECHO_T}$ol_cv_lib_icu" >&6
32443
32444         if test $ol_cv_lib_icu != no ; then
32445                 ol_icu="$OL_ICULIBS"
32446
32447 cat >>confdefs.h <<\_ACEOF
32448 #define HAVE_ICU 1
32449 _ACEOF
32450
32451         fi
32452 fi
32453
32454 if test "$ol_icu" = no ; then
32455         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
32456 echo "$as_me: WARNING: ICU not available" >&2;}
32457 else
32458         ICU_LIBS="$ol_icu"
32459 fi
32460 WITH_SASL=no
32461 ol_link_sasl=no
32462 ol_link_spasswd=no
32463 if test $ol_with_cyrus_sasl != no ; then
32464
32465
32466 for ac_header in sasl/sasl.h sasl.h
32467 do
32468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
32475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32477 else
32478   # Is the header compilable?
32479 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32481 cat >conftest.$ac_ext <<_ACEOF
32482 /* confdefs.h.  */
32483 _ACEOF
32484 cat confdefs.h >>conftest.$ac_ext
32485 cat >>conftest.$ac_ext <<_ACEOF
32486 /* end confdefs.h.  */
32487 $ac_includes_default
32488 #include <$ac_header>
32489 _ACEOF
32490 rm -f conftest.$ac_objext
32491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32492   (eval $ac_compile) 2>conftest.er1
32493   ac_status=$?
32494   grep -v '^ *+' conftest.er1 >conftest.err
32495   rm -f conftest.er1
32496   cat conftest.err >&5
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); } &&
32499          { ac_try='test -z "$ac_c_werror_flag"
32500                          || test ! -s conftest.err'
32501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32502   (eval $ac_try) 2>&5
32503   ac_status=$?
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); }; } &&
32506          { ac_try='test -s conftest.$ac_objext'
32507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32508   (eval $ac_try) 2>&5
32509   ac_status=$?
32510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); }; }; then
32512   ac_header_compiler=yes
32513 else
32514   echo "$as_me: failed program was:" >&5
32515 sed 's/^/| /' conftest.$ac_ext >&5
32516
32517 ac_header_compiler=no
32518 fi
32519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32521 echo "${ECHO_T}$ac_header_compiler" >&6
32522
32523 # Is the header present?
32524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32526 cat >conftest.$ac_ext <<_ACEOF
32527 /* confdefs.h.  */
32528 _ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h.  */
32532 #include <$ac_header>
32533 _ACEOF
32534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32536   ac_status=$?
32537   grep -v '^ *+' conftest.er1 >conftest.err
32538   rm -f conftest.er1
32539   cat conftest.err >&5
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); } >/dev/null; then
32542   if test -s conftest.err; then
32543     ac_cpp_err=$ac_c_preproc_warn_flag
32544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32545   else
32546     ac_cpp_err=
32547   fi
32548 else
32549   ac_cpp_err=yes
32550 fi
32551 if test -z "$ac_cpp_err"; then
32552   ac_header_preproc=yes
32553 else
32554   echo "$as_me: failed program was:" >&5
32555 sed 's/^/| /' conftest.$ac_ext >&5
32556
32557   ac_header_preproc=no
32558 fi
32559 rm -f conftest.err conftest.$ac_ext
32560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32561 echo "${ECHO_T}$ac_header_preproc" >&6
32562
32563 # So?  What about this header?
32564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32565   yes:no: )
32566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32570     ac_header_preproc=yes
32571     ;;
32572   no:yes:* )
32573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32585     (
32586       cat <<\_ASBOX
32587 ## --------------------------------------------- ##
32588 ## Report this to <http://www.openldap.org/its/> ##
32589 ## --------------------------------------------- ##
32590 _ASBOX
32591     ) |
32592       sed "s/^/$as_me: WARNING:     /" >&2
32593     ;;
32594 esac
32595 echo "$as_me:$LINENO: checking for $ac_header" >&5
32596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32598   echo $ECHO_N "(cached) $ECHO_C" >&6
32599 else
32600   eval "$as_ac_Header=\$ac_header_preproc"
32601 fi
32602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32604
32605 fi
32606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32607   cat >>confdefs.h <<_ACEOF
32608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32609 _ACEOF
32610
32611 fi
32612
32613 done
32614
32615
32616         if test $ac_cv_header_sasl_sasl_h = yes ||
32617            test $ac_cv_header_sasl_h = yes; then
32618                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
32619 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
32620 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
32621   echo $ECHO_N "(cached) $ECHO_C" >&6
32622 else
32623   ac_check_lib_save_LIBS=$LIBS
32624 LIBS="-lsasl2  $LIBS"
32625 cat >conftest.$ac_ext <<_ACEOF
32626 /* confdefs.h.  */
32627 _ACEOF
32628 cat confdefs.h >>conftest.$ac_ext
32629 cat >>conftest.$ac_ext <<_ACEOF
32630 /* end confdefs.h.  */
32631
32632 /* Override any gcc2 internal prototype to avoid an error.  */
32633 #ifdef __cplusplus
32634 extern "C"
32635 #endif
32636 /* We use char because int might match the return type of a gcc2
32637    builtin and then its argument prototype would still apply.  */
32638 char sasl_client_init ();
32639 int
32640 main ()
32641 {
32642 sasl_client_init ();
32643   ;
32644   return 0;
32645 }
32646 _ACEOF
32647 rm -f conftest.$ac_objext conftest$ac_exeext
32648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32649   (eval $ac_link) 2>conftest.er1
32650   ac_status=$?
32651   grep -v '^ *+' conftest.er1 >conftest.err
32652   rm -f conftest.er1
32653   cat conftest.err >&5
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); } &&
32656          { ac_try='test -z "$ac_c_werror_flag"
32657                          || test ! -s conftest.err'
32658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32659   (eval $ac_try) 2>&5
32660   ac_status=$?
32661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32662   (exit $ac_status); }; } &&
32663          { ac_try='test -s conftest$ac_exeext'
32664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32665   (eval $ac_try) 2>&5
32666   ac_status=$?
32667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32668   (exit $ac_status); }; }; then
32669   ac_cv_lib_sasl2_sasl_client_init=yes
32670 else
32671   echo "$as_me: failed program was:" >&5
32672 sed 's/^/| /' conftest.$ac_ext >&5
32673
32674 ac_cv_lib_sasl2_sasl_client_init=no
32675 fi
32676 rm -f conftest.err conftest.$ac_objext \
32677       conftest$ac_exeext conftest.$ac_ext
32678 LIBS=$ac_check_lib_save_LIBS
32679 fi
32680 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
32681 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
32682 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
32683   ol_link_sasl="-lsasl2"
32684 else
32685   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
32686 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
32687 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
32688   echo $ECHO_N "(cached) $ECHO_C" >&6
32689 else
32690   ac_check_lib_save_LIBS=$LIBS
32691 LIBS="-lsasl  $LIBS"
32692 cat >conftest.$ac_ext <<_ACEOF
32693 /* confdefs.h.  */
32694 _ACEOF
32695 cat confdefs.h >>conftest.$ac_ext
32696 cat >>conftest.$ac_ext <<_ACEOF
32697 /* end confdefs.h.  */
32698
32699 /* Override any gcc2 internal prototype to avoid an error.  */
32700 #ifdef __cplusplus
32701 extern "C"
32702 #endif
32703 /* We use char because int might match the return type of a gcc2
32704    builtin and then its argument prototype would still apply.  */
32705 char sasl_client_init ();
32706 int
32707 main ()
32708 {
32709 sasl_client_init ();
32710   ;
32711   return 0;
32712 }
32713 _ACEOF
32714 rm -f conftest.$ac_objext conftest$ac_exeext
32715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32716   (eval $ac_link) 2>conftest.er1
32717   ac_status=$?
32718   grep -v '^ *+' conftest.er1 >conftest.err
32719   rm -f conftest.er1
32720   cat conftest.err >&5
32721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722   (exit $ac_status); } &&
32723          { ac_try='test -z "$ac_c_werror_flag"
32724                          || test ! -s conftest.err'
32725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32726   (eval $ac_try) 2>&5
32727   ac_status=$?
32728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729   (exit $ac_status); }; } &&
32730          { ac_try='test -s conftest$ac_exeext'
32731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32732   (eval $ac_try) 2>&5
32733   ac_status=$?
32734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32735   (exit $ac_status); }; }; then
32736   ac_cv_lib_sasl_sasl_client_init=yes
32737 else
32738   echo "$as_me: failed program was:" >&5
32739 sed 's/^/| /' conftest.$ac_ext >&5
32740
32741 ac_cv_lib_sasl_sasl_client_init=no
32742 fi
32743 rm -f conftest.err conftest.$ac_objext \
32744       conftest$ac_exeext conftest.$ac_ext
32745 LIBS=$ac_check_lib_save_LIBS
32746 fi
32747 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
32748 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
32749 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
32750   ol_link_sasl="-lsasl"
32751 fi
32752
32753 fi
32754
32755         fi
32756
32757         if test $ol_link_sasl = no ; then
32758                 if test $ol_with_cyrus_sasl != auto ; then
32759                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
32760 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
32761    { (exit 1); exit 1; }; }
32762                 else
32763                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
32764 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
32765                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32766 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32767                         if test $ol_link_tls = no ; then
32768                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32769 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32770                         fi
32771                 fi
32772         else
32773                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
32774 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
32775 if test "${ol_cv_sasl_compat+set}" = set; then
32776   echo $ECHO_N "(cached) $ECHO_C" >&6
32777 else
32778
32779         cat >conftest.$ac_ext <<_ACEOF
32780 /* confdefs.h.  */
32781 _ACEOF
32782 cat confdefs.h >>conftest.$ac_ext
32783 cat >>conftest.$ac_ext <<_ACEOF
32784 /* end confdefs.h.  */
32785
32786 #ifdef HAVE_SASL_SASL_H
32787 #include <sasl/sasl.h>
32788 #else
32789 #include <sasl.h>
32790 #endif
32791
32792 /* Require 2.1.15+ */
32793 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
32794         char *__sasl_compat = "2.2+ or better okay (we guess)";
32795 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
32796         && SASL_VERSION_STEP >=15
32797         char *__sasl_compat = "2.1.15+ or better okay";
32798 #endif
32799
32800 _ACEOF
32801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32802   $EGREP "__sasl_compat" >/dev/null 2>&1; then
32803   ol_cv_sasl_compat=yes
32804 else
32805   ol_cv_sasl_compat=no
32806 fi
32807 rm -f conftest*
32808
32809 fi
32810 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
32811 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
32812
32813                 if test $ol_cv_sasl_compat = no ; then
32814                         ol_link_sasl=no
32815                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
32816 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
32817    { (exit 1); exit 1; }; }
32818                 fi
32819
32820
32821 cat >>confdefs.h <<\_ACEOF
32822 #define HAVE_CYRUS_SASL 1
32823 _ACEOF
32824
32825                 SASL_LIBS="$ol_link_sasl"
32826                 if test $ol_enable_spasswd != no ; then
32827                         ol_link_spasswd=yes
32828                 fi
32829
32830                 ac_save_LIBS="$LIBS"
32831                 LIBS="$LIBS $ol_link_sasl"
32832                 echo "$as_me:$LINENO: checking for sasl_version" >&5
32833 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
32834 if test "${ac_cv_func_sasl_version+set}" = set; then
32835   echo $ECHO_N "(cached) $ECHO_C" >&6
32836 else
32837   cat >conftest.$ac_ext <<_ACEOF
32838 /* confdefs.h.  */
32839 _ACEOF
32840 cat confdefs.h >>conftest.$ac_ext
32841 cat >>conftest.$ac_ext <<_ACEOF
32842 /* end confdefs.h.  */
32843 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
32844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32845 #define sasl_version innocuous_sasl_version
32846
32847 /* System header to define __stub macros and hopefully few prototypes,
32848     which can conflict with char sasl_version (); below.
32849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32850     <limits.h> exists even on freestanding compilers.  */
32851
32852 #ifdef __STDC__
32853 # include <limits.h>
32854 #else
32855 # include <assert.h>
32856 #endif
32857
32858 #undef sasl_version
32859
32860 /* Override any gcc2 internal prototype to avoid an error.  */
32861 #ifdef __cplusplus
32862 extern "C"
32863 {
32864 #endif
32865 /* We use char because int might match the return type of a gcc2
32866    builtin and then its argument prototype would still apply.  */
32867 char sasl_version ();
32868 /* The GNU C library defines this for functions which it implements
32869     to always fail with ENOSYS.  Some functions are actually named
32870     something starting with __ and the normal name is an alias.  */
32871 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
32872 choke me
32873 #else
32874 char (*f) () = sasl_version;
32875 #endif
32876 #ifdef __cplusplus
32877 }
32878 #endif
32879
32880 int
32881 main ()
32882 {
32883 return f != sasl_version;
32884   ;
32885   return 0;
32886 }
32887 _ACEOF
32888 rm -f conftest.$ac_objext conftest$ac_exeext
32889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32890   (eval $ac_link) 2>conftest.er1
32891   ac_status=$?
32892   grep -v '^ *+' conftest.er1 >conftest.err
32893   rm -f conftest.er1
32894   cat conftest.err >&5
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); } &&
32897          { ac_try='test -z "$ac_c_werror_flag"
32898                          || test ! -s conftest.err'
32899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900   (eval $ac_try) 2>&5
32901   ac_status=$?
32902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903   (exit $ac_status); }; } &&
32904          { ac_try='test -s conftest$ac_exeext'
32905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906   (eval $ac_try) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; }; then
32910   ac_cv_func_sasl_version=yes
32911 else
32912   echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32914
32915 ac_cv_func_sasl_version=no
32916 fi
32917 rm -f conftest.err conftest.$ac_objext \
32918       conftest$ac_exeext conftest.$ac_ext
32919 fi
32920 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
32921 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
32922 if test $ac_cv_func_sasl_version = yes; then
32923
32924 cat >>confdefs.h <<\_ACEOF
32925 #define HAVE_SASL_VERSION 1
32926 _ACEOF
32927
32928 fi
32929
32930                 LIBS="$ac_save_LIBS"
32931
32932                 WITH_SASL=yes
32933         fi
32934
32935 else
32936         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
32937 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
32938         if test $ol_link_tls = no ; then
32939                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
32940 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
32941         fi
32942 fi
32943
32944 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
32945         dev=no
32946         if test -r /dev/urandom ; then
32947                 dev="/dev/urandom";
32948         elif test -r /idev/urandom ; then
32949                 dev="/idev/urandom";
32950         elif test -r /dev/srandom ; then
32951                 dev="/dev/srandom";
32952         elif test -r /dev/random ; then
32953                 dev="/dev/random";
32954         elif test -r /idev/random ; then
32955                 dev="/idev/random";
32956         fi
32957
32958         if test $dev != no ; then
32959
32960 cat >>confdefs.h <<_ACEOF
32961 #define URANDOM_DEVICE "$dev"
32962 _ACEOF
32963
32964         fi
32965 fi
32966
32967 ol_link_fetch=no
32968 if test $ol_with_fetch != no ; then
32969         ol_LIBS=$LIBS
32970 LIBS="-lfetch -lcom_err $LIBS"
32971 echo "$as_me:$LINENO: checking fetch(3) library" >&5
32972 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
32973 if test "${ol_cv_lib_fetch+set}" = set; then
32974   echo $ECHO_N "(cached) $ECHO_C" >&6
32975 else
32976
32977         cat >conftest.$ac_ext <<_ACEOF
32978 /* confdefs.h.  */
32979 _ACEOF
32980 cat confdefs.h >>conftest.$ac_ext
32981 cat >>conftest.$ac_ext <<_ACEOF
32982 /* end confdefs.h.  */
32983
32984 #include <sys/param.h>
32985 #include <stdio.h>
32986 #include <fetch.h>
32987 int
32988 main ()
32989 {
32990 struct url *u = fetchParseURL("file:///");
32991   ;
32992   return 0;
32993 }
32994 _ACEOF
32995 rm -f conftest.$ac_objext conftest$ac_exeext
32996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32997   (eval $ac_link) 2>conftest.er1
32998   ac_status=$?
32999   grep -v '^ *+' conftest.er1 >conftest.err
33000   rm -f conftest.er1
33001   cat conftest.err >&5
33002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003   (exit $ac_status); } &&
33004          { ac_try='test -z "$ac_c_werror_flag"
33005                          || test ! -s conftest.err'
33006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33007   (eval $ac_try) 2>&5
33008   ac_status=$?
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); }; } &&
33011          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33017   ol_cv_lib_fetch=yes
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022 ol_cv_lib_fetch=no
33023 fi
33024 rm -f conftest.err conftest.$ac_objext \
33025       conftest$ac_exeext conftest.$ac_ext
33026 fi
33027 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
33028 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
33029 LIBS=$ol_LIBS
33030 if test $ol_cv_lib_fetch != no ; then
33031         ol_link_fetch="-lfetch -lcom_err"
33032
33033 cat >>confdefs.h <<\_ACEOF
33034 #define HAVE_FETCH 1
33035 _ACEOF
33036
33037 fi
33038
33039
33040         if test $ol_cv_lib_fetch != no ; then
33041                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
33042                 ol_link_fetch=freebsd
33043
33044         elif test $ol_with_fetch != auto ; then
33045                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
33046 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
33047    { (exit 1); exit 1; }; }
33048         fi
33049 fi
33050
33051 if test $ol_enable_crypt != no ; then
33052         save_LIBS="$LIBS"
33053         LIBS="$TLS_LIBS $LIBS"
33054
33055         echo "$as_me:$LINENO: checking for crypt" >&5
33056 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
33057 if test "${ac_cv_func_crypt+set}" = set; then
33058   echo $ECHO_N "(cached) $ECHO_C" >&6
33059 else
33060   cat >conftest.$ac_ext <<_ACEOF
33061 /* confdefs.h.  */
33062 _ACEOF
33063 cat confdefs.h >>conftest.$ac_ext
33064 cat >>conftest.$ac_ext <<_ACEOF
33065 /* end confdefs.h.  */
33066 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
33067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33068 #define crypt innocuous_crypt
33069
33070 /* System header to define __stub macros and hopefully few prototypes,
33071     which can conflict with char crypt (); below.
33072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33073     <limits.h> exists even on freestanding compilers.  */
33074
33075 #ifdef __STDC__
33076 # include <limits.h>
33077 #else
33078 # include <assert.h>
33079 #endif
33080
33081 #undef crypt
33082
33083 /* Override any gcc2 internal prototype to avoid an error.  */
33084 #ifdef __cplusplus
33085 extern "C"
33086 {
33087 #endif
33088 /* We use char because int might match the return type of a gcc2
33089    builtin and then its argument prototype would still apply.  */
33090 char crypt ();
33091 /* The GNU C library defines this for functions which it implements
33092     to always fail with ENOSYS.  Some functions are actually named
33093     something starting with __ and the normal name is an alias.  */
33094 #if defined (__stub_crypt) || defined (__stub___crypt)
33095 choke me
33096 #else
33097 char (*f) () = crypt;
33098 #endif
33099 #ifdef __cplusplus
33100 }
33101 #endif
33102
33103 int
33104 main ()
33105 {
33106 return f != crypt;
33107   ;
33108   return 0;
33109 }
33110 _ACEOF
33111 rm -f conftest.$ac_objext conftest$ac_exeext
33112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33113   (eval $ac_link) 2>conftest.er1
33114   ac_status=$?
33115   grep -v '^ *+' conftest.er1 >conftest.err
33116   rm -f conftest.er1
33117   cat conftest.err >&5
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); } &&
33120          { ac_try='test -z "$ac_c_werror_flag"
33121                          || test ! -s conftest.err'
33122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33123   (eval $ac_try) 2>&5
33124   ac_status=$?
33125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33126   (exit $ac_status); }; } &&
33127          { ac_try='test -s conftest$ac_exeext'
33128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33129   (eval $ac_try) 2>&5
33130   ac_status=$?
33131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132   (exit $ac_status); }; }; then
33133   ac_cv_func_crypt=yes
33134 else
33135   echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33137
33138 ac_cv_func_crypt=no
33139 fi
33140 rm -f conftest.err conftest.$ac_objext \
33141       conftest$ac_exeext conftest.$ac_ext
33142 fi
33143 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
33144 echo "${ECHO_T}$ac_cv_func_crypt" >&6
33145 if test $ac_cv_func_crypt = yes; then
33146   have_crypt=yes
33147 else
33148
33149                 LIBS="$save_LIBS"
33150                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
33151 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
33152 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
33153   echo $ECHO_N "(cached) $ECHO_C" >&6
33154 else
33155   ac_check_lib_save_LIBS=$LIBS
33156 LIBS="-lcrypt  $LIBS"
33157 cat >conftest.$ac_ext <<_ACEOF
33158 /* confdefs.h.  */
33159 _ACEOF
33160 cat confdefs.h >>conftest.$ac_ext
33161 cat >>conftest.$ac_ext <<_ACEOF
33162 /* end confdefs.h.  */
33163
33164 /* Override any gcc2 internal prototype to avoid an error.  */
33165 #ifdef __cplusplus
33166 extern "C"
33167 #endif
33168 /* We use char because int might match the return type of a gcc2
33169    builtin and then its argument prototype would still apply.  */
33170 char crypt ();
33171 int
33172 main ()
33173 {
33174 crypt ();
33175   ;
33176   return 0;
33177 }
33178 _ACEOF
33179 rm -f conftest.$ac_objext conftest$ac_exeext
33180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33181   (eval $ac_link) 2>conftest.er1
33182   ac_status=$?
33183   grep -v '^ *+' conftest.er1 >conftest.err
33184   rm -f conftest.er1
33185   cat conftest.err >&5
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); } &&
33188          { ac_try='test -z "$ac_c_werror_flag"
33189                          || test ! -s conftest.err'
33190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191   (eval $ac_try) 2>&5
33192   ac_status=$?
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); }; } &&
33195          { ac_try='test -s conftest$ac_exeext'
33196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33197   (eval $ac_try) 2>&5
33198   ac_status=$?
33199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33200   (exit $ac_status); }; }; then
33201   ac_cv_lib_crypt_crypt=yes
33202 else
33203   echo "$as_me: failed program was:" >&5
33204 sed 's/^/| /' conftest.$ac_ext >&5
33205
33206 ac_cv_lib_crypt_crypt=no
33207 fi
33208 rm -f conftest.err conftest.$ac_objext \
33209       conftest$ac_exeext conftest.$ac_ext
33210 LIBS=$ac_check_lib_save_LIBS
33211 fi
33212 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
33213 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
33214 if test $ac_cv_lib_crypt_crypt = yes; then
33215   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
33216                         have_crypt=yes
33217 else
33218   have_crypt=no
33219 fi
33220
33221 fi
33222
33223
33224         LIBS="$save_LIBS"
33225
33226         if test $have_crypt = yes ; then
33227
33228 cat >>confdefs.h <<\_ACEOF
33229 #define HAVE_CRYPT 1
33230 _ACEOF
33231
33232         else
33233                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
33234 echo "$as_me: WARNING: could not find crypt" >&2;}
33235                 if test $ol_enable_crypt = yes ; then
33236                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
33237 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
33238    { (exit 1); exit 1; }; }
33239                 fi
33240
33241                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
33242 echo "$as_me: WARNING: disabling crypt support" >&2;}
33243                 ol_enable_crypt=no
33244         fi
33245 fi
33246
33247 if test $ol_enable_proctitle != no ; then
33248         echo "$as_me:$LINENO: checking for setproctitle" >&5
33249 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
33250 if test "${ac_cv_func_setproctitle+set}" = set; then
33251   echo $ECHO_N "(cached) $ECHO_C" >&6
33252 else
33253   cat >conftest.$ac_ext <<_ACEOF
33254 /* confdefs.h.  */
33255 _ACEOF
33256 cat confdefs.h >>conftest.$ac_ext
33257 cat >>conftest.$ac_ext <<_ACEOF
33258 /* end confdefs.h.  */
33259 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
33260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33261 #define setproctitle innocuous_setproctitle
33262
33263 /* System header to define __stub macros and hopefully few prototypes,
33264     which can conflict with char setproctitle (); below.
33265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33266     <limits.h> exists even on freestanding compilers.  */
33267
33268 #ifdef __STDC__
33269 # include <limits.h>
33270 #else
33271 # include <assert.h>
33272 #endif
33273
33274 #undef setproctitle
33275
33276 /* Override any gcc2 internal prototype to avoid an error.  */
33277 #ifdef __cplusplus
33278 extern "C"
33279 {
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 setproctitle ();
33284 /* The GNU C library defines this for functions which it implements
33285     to always fail with ENOSYS.  Some functions are actually named
33286     something starting with __ and the normal name is an alias.  */
33287 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
33288 choke me
33289 #else
33290 char (*f) () = setproctitle;
33291 #endif
33292 #ifdef __cplusplus
33293 }
33294 #endif
33295
33296 int
33297 main ()
33298 {
33299 return f != setproctitle;
33300   ;
33301   return 0;
33302 }
33303 _ACEOF
33304 rm -f conftest.$ac_objext conftest$ac_exeext
33305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33306   (eval $ac_link) 2>conftest.er1
33307   ac_status=$?
33308   grep -v '^ *+' conftest.er1 >conftest.err
33309   rm -f conftest.er1
33310   cat conftest.err >&5
33311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312   (exit $ac_status); } &&
33313          { ac_try='test -z "$ac_c_werror_flag"
33314                          || test ! -s conftest.err'
33315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316   (eval $ac_try) 2>&5
33317   ac_status=$?
33318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319   (exit $ac_status); }; } &&
33320          { ac_try='test -s conftest$ac_exeext'
33321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322   (eval $ac_try) 2>&5
33323   ac_status=$?
33324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325   (exit $ac_status); }; }; then
33326   ac_cv_func_setproctitle=yes
33327 else
33328   echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.$ac_ext >&5
33330
33331 ac_cv_func_setproctitle=no
33332 fi
33333 rm -f conftest.err conftest.$ac_objext \
33334       conftest$ac_exeext conftest.$ac_ext
33335 fi
33336 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
33337 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
33338 if test $ac_cv_func_setproctitle = yes; then
33339   have_setproctitle=yes
33340 else
33341
33342                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
33343 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
33344 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
33345   echo $ECHO_N "(cached) $ECHO_C" >&6
33346 else
33347   ac_check_lib_save_LIBS=$LIBS
33348 LIBS="-lutil  $LIBS"
33349 cat >conftest.$ac_ext <<_ACEOF
33350 /* confdefs.h.  */
33351 _ACEOF
33352 cat confdefs.h >>conftest.$ac_ext
33353 cat >>conftest.$ac_ext <<_ACEOF
33354 /* end confdefs.h.  */
33355
33356 /* Override any gcc2 internal prototype to avoid an error.  */
33357 #ifdef __cplusplus
33358 extern "C"
33359 #endif
33360 /* We use char because int might match the return type of a gcc2
33361    builtin and then its argument prototype would still apply.  */
33362 char setproctitle ();
33363 int
33364 main ()
33365 {
33366 setproctitle ();
33367   ;
33368   return 0;
33369 }
33370 _ACEOF
33371 rm -f conftest.$ac_objext conftest$ac_exeext
33372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33373   (eval $ac_link) 2>conftest.er1
33374   ac_status=$?
33375   grep -v '^ *+' conftest.er1 >conftest.err
33376   rm -f conftest.er1
33377   cat conftest.err >&5
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); } &&
33380          { ac_try='test -z "$ac_c_werror_flag"
33381                          || test ! -s conftest.err'
33382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33383   (eval $ac_try) 2>&5
33384   ac_status=$?
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); }; } &&
33387          { ac_try='test -s conftest$ac_exeext'
33388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33389   (eval $ac_try) 2>&5
33390   ac_status=$?
33391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392   (exit $ac_status); }; }; then
33393   ac_cv_lib_util_setproctitle=yes
33394 else
33395   echo "$as_me: failed program was:" >&5
33396 sed 's/^/| /' conftest.$ac_ext >&5
33397
33398 ac_cv_lib_util_setproctitle=no
33399 fi
33400 rm -f conftest.err conftest.$ac_objext \
33401       conftest$ac_exeext conftest.$ac_ext
33402 LIBS=$ac_check_lib_save_LIBS
33403 fi
33404 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
33405 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
33406 if test $ac_cv_lib_util_setproctitle = yes; then
33407   have_setproctitle=yes
33408                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
33409 else
33410   have_setproctitle=no
33411                         case $LIBOBJS in
33412     "setproctitle.$ac_objext"   | \
33413   *" setproctitle.$ac_objext"   | \
33414     "setproctitle.$ac_objext "* | \
33415   *" setproctitle.$ac_objext "* ) ;;
33416   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
33417 esac
33418
33419                         LIBSRCS="$LIBSRCS setproctitle.c"
33420 fi
33421
33422 fi
33423
33424
33425         if test $have_setproctitle = yes ; then
33426
33427 cat >>confdefs.h <<\_ACEOF
33428 #define HAVE_SETPROCTITLE 1
33429 _ACEOF
33430
33431         fi
33432 fi
33433
33434 if test $ol_enable_slp != no ; then
33435
33436 for ac_header in slp.h
33437 do
33438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33440   echo "$as_me:$LINENO: checking for $ac_header" >&5
33441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33443   echo $ECHO_N "(cached) $ECHO_C" >&6
33444 fi
33445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33447 else
33448   # Is the header compilable?
33449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33451 cat >conftest.$ac_ext <<_ACEOF
33452 /* confdefs.h.  */
33453 _ACEOF
33454 cat confdefs.h >>conftest.$ac_ext
33455 cat >>conftest.$ac_ext <<_ACEOF
33456 /* end confdefs.h.  */
33457 $ac_includes_default
33458 #include <$ac_header>
33459 _ACEOF
33460 rm -f conftest.$ac_objext
33461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33462   (eval $ac_compile) 2>conftest.er1
33463   ac_status=$?
33464   grep -v '^ *+' conftest.er1 >conftest.err
33465   rm -f conftest.er1
33466   cat conftest.err >&5
33467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468   (exit $ac_status); } &&
33469          { ac_try='test -z "$ac_c_werror_flag"
33470                          || test ! -s conftest.err'
33471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33472   (eval $ac_try) 2>&5
33473   ac_status=$?
33474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475   (exit $ac_status); }; } &&
33476          { ac_try='test -s conftest.$ac_objext'
33477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478   (eval $ac_try) 2>&5
33479   ac_status=$?
33480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481   (exit $ac_status); }; }; then
33482   ac_header_compiler=yes
33483 else
33484   echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487 ac_header_compiler=no
33488 fi
33489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33490 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33491 echo "${ECHO_T}$ac_header_compiler" >&6
33492
33493 # Is the header present?
33494 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33495 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33496 cat >conftest.$ac_ext <<_ACEOF
33497 /* confdefs.h.  */
33498 _ACEOF
33499 cat confdefs.h >>conftest.$ac_ext
33500 cat >>conftest.$ac_ext <<_ACEOF
33501 /* end confdefs.h.  */
33502 #include <$ac_header>
33503 _ACEOF
33504 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33505   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33506   ac_status=$?
33507   grep -v '^ *+' conftest.er1 >conftest.err
33508   rm -f conftest.er1
33509   cat conftest.err >&5
33510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511   (exit $ac_status); } >/dev/null; then
33512   if test -s conftest.err; then
33513     ac_cpp_err=$ac_c_preproc_warn_flag
33514     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33515   else
33516     ac_cpp_err=
33517   fi
33518 else
33519   ac_cpp_err=yes
33520 fi
33521 if test -z "$ac_cpp_err"; then
33522   ac_header_preproc=yes
33523 else
33524   echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33526
33527   ac_header_preproc=no
33528 fi
33529 rm -f conftest.err conftest.$ac_ext
33530 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33531 echo "${ECHO_T}$ac_header_preproc" >&6
33532
33533 # So?  What about this header?
33534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33535   yes:no: )
33536     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33540     ac_header_preproc=yes
33541     ;;
33542   no:yes:* )
33543     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33545     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33546 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33547     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33549     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33550 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33551     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33553     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33555     (
33556       cat <<\_ASBOX
33557 ## --------------------------------------------- ##
33558 ## Report this to <http://www.openldap.org/its/> ##
33559 ## --------------------------------------------- ##
33560 _ASBOX
33561     ) |
33562       sed "s/^/$as_me: WARNING:     /" >&2
33563     ;;
33564 esac
33565 echo "$as_me:$LINENO: checking for $ac_header" >&5
33566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33568   echo $ECHO_N "(cached) $ECHO_C" >&6
33569 else
33570   eval "$as_ac_Header=\$ac_header_preproc"
33571 fi
33572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33574
33575 fi
33576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33577   cat >>confdefs.h <<_ACEOF
33578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33579 _ACEOF
33580
33581 fi
33582
33583 done
33584
33585
33586         if test $ac_cv_header_slp_h = yes ; then
33587                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
33588 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
33589 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
33590   echo $ECHO_N "(cached) $ECHO_C" >&6
33591 else
33592   ac_check_lib_save_LIBS=$LIBS
33593 LIBS="-lslp  $LIBS"
33594 cat >conftest.$ac_ext <<_ACEOF
33595 /* confdefs.h.  */
33596 _ACEOF
33597 cat confdefs.h >>conftest.$ac_ext
33598 cat >>conftest.$ac_ext <<_ACEOF
33599 /* end confdefs.h.  */
33600
33601 /* Override any gcc2 internal prototype to avoid an error.  */
33602 #ifdef __cplusplus
33603 extern "C"
33604 #endif
33605 /* We use char because int might match the return type of a gcc2
33606    builtin and then its argument prototype would still apply.  */
33607 char SLPOpen ();
33608 int
33609 main ()
33610 {
33611 SLPOpen ();
33612   ;
33613   return 0;
33614 }
33615 _ACEOF
33616 rm -f conftest.$ac_objext conftest$ac_exeext
33617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33618   (eval $ac_link) 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); } &&
33625          { ac_try='test -z "$ac_c_werror_flag"
33626                          || test ! -s conftest.err'
33627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33628   (eval $ac_try) 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); }; } &&
33632          { ac_try='test -s conftest$ac_exeext'
33633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33634   (eval $ac_try) 2>&5
33635   ac_status=$?
33636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33637   (exit $ac_status); }; }; then
33638   ac_cv_lib_slp_SLPOpen=yes
33639 else
33640   echo "$as_me: failed program was:" >&5
33641 sed 's/^/| /' conftest.$ac_ext >&5
33642
33643 ac_cv_lib_slp_SLPOpen=no
33644 fi
33645 rm -f conftest.err conftest.$ac_objext \
33646       conftest$ac_exeext conftest.$ac_ext
33647 LIBS=$ac_check_lib_save_LIBS
33648 fi
33649 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
33650 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
33651 if test $ac_cv_lib_slp_SLPOpen = yes; then
33652   have_slp=yes
33653 else
33654   have_slp=no
33655 fi
33656
33657                 if test $have_slp = yes ; then
33658
33659 cat >>confdefs.h <<\_ACEOF
33660 #define HAVE_SLP 1
33661 _ACEOF
33662
33663                         SLAPD_SLP_LIBS=-lslp
33664                 fi
33665
33666         elif test $ol_enable_slp = yes ; then
33667                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
33668 echo "$as_me: error: SLP not found" >&2;}
33669    { (exit 1); exit 1; }; }
33670         fi
33671 fi
33672
33673
33674 echo "$as_me:$LINENO: checking for mode_t" >&5
33675 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33676 if test "${ac_cv_type_mode_t+set}" = set; then
33677   echo $ECHO_N "(cached) $ECHO_C" >&6
33678 else
33679   cat >conftest.$ac_ext <<_ACEOF
33680 /* confdefs.h.  */
33681 _ACEOF
33682 cat confdefs.h >>conftest.$ac_ext
33683 cat >>conftest.$ac_ext <<_ACEOF
33684 /* end confdefs.h.  */
33685 $ac_includes_default
33686 int
33687 main ()
33688 {
33689 if ((mode_t *) 0)
33690   return 0;
33691 if (sizeof (mode_t))
33692   return 0;
33693   ;
33694   return 0;
33695 }
33696 _ACEOF
33697 rm -f conftest.$ac_objext
33698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33699   (eval $ac_compile) 2>conftest.er1
33700   ac_status=$?
33701   grep -v '^ *+' conftest.er1 >conftest.err
33702   rm -f conftest.er1
33703   cat conftest.err >&5
33704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705   (exit $ac_status); } &&
33706          { ac_try='test -z "$ac_c_werror_flag"
33707                          || test ! -s conftest.err'
33708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709   (eval $ac_try) 2>&5
33710   ac_status=$?
33711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712   (exit $ac_status); }; } &&
33713          { ac_try='test -s conftest.$ac_objext'
33714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33715   (eval $ac_try) 2>&5
33716   ac_status=$?
33717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718   (exit $ac_status); }; }; then
33719   ac_cv_type_mode_t=yes
33720 else
33721   echo "$as_me: failed program was:" >&5
33722 sed 's/^/| /' conftest.$ac_ext >&5
33723
33724 ac_cv_type_mode_t=no
33725 fi
33726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33727 fi
33728 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33729 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33730 if test $ac_cv_type_mode_t = yes; then
33731   :
33732 else
33733
33734 cat >>confdefs.h <<_ACEOF
33735 #define mode_t int
33736 _ACEOF
33737
33738 fi
33739
33740 echo "$as_me:$LINENO: checking for off_t" >&5
33741 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33742 if test "${ac_cv_type_off_t+set}" = set; then
33743   echo $ECHO_N "(cached) $ECHO_C" >&6
33744 else
33745   cat >conftest.$ac_ext <<_ACEOF
33746 /* confdefs.h.  */
33747 _ACEOF
33748 cat confdefs.h >>conftest.$ac_ext
33749 cat >>conftest.$ac_ext <<_ACEOF
33750 /* end confdefs.h.  */
33751 $ac_includes_default
33752 int
33753 main ()
33754 {
33755 if ((off_t *) 0)
33756   return 0;
33757 if (sizeof (off_t))
33758   return 0;
33759   ;
33760   return 0;
33761 }
33762 _ACEOF
33763 rm -f conftest.$ac_objext
33764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33765   (eval $ac_compile) 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } &&
33772          { ac_try='test -z "$ac_c_werror_flag"
33773                          || test ! -s conftest.err'
33774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33775   (eval $ac_try) 2>&5
33776   ac_status=$?
33777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778   (exit $ac_status); }; } &&
33779          { ac_try='test -s conftest.$ac_objext'
33780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33781   (eval $ac_try) 2>&5
33782   ac_status=$?
33783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33784   (exit $ac_status); }; }; then
33785   ac_cv_type_off_t=yes
33786 else
33787   echo "$as_me: failed program was:" >&5
33788 sed 's/^/| /' conftest.$ac_ext >&5
33789
33790 ac_cv_type_off_t=no
33791 fi
33792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33793 fi
33794 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33795 echo "${ECHO_T}$ac_cv_type_off_t" >&6
33796 if test $ac_cv_type_off_t = yes; then
33797   :
33798 else
33799
33800 cat >>confdefs.h <<_ACEOF
33801 #define off_t long
33802 _ACEOF
33803
33804 fi
33805
33806 echo "$as_me:$LINENO: checking for pid_t" >&5
33807 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33808 if test "${ac_cv_type_pid_t+set}" = set; then
33809   echo $ECHO_N "(cached) $ECHO_C" >&6
33810 else
33811   cat >conftest.$ac_ext <<_ACEOF
33812 /* confdefs.h.  */
33813 _ACEOF
33814 cat confdefs.h >>conftest.$ac_ext
33815 cat >>conftest.$ac_ext <<_ACEOF
33816 /* end confdefs.h.  */
33817 $ac_includes_default
33818 int
33819 main ()
33820 {
33821 if ((pid_t *) 0)
33822   return 0;
33823 if (sizeof (pid_t))
33824   return 0;
33825   ;
33826   return 0;
33827 }
33828 _ACEOF
33829 rm -f conftest.$ac_objext
33830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33831   (eval $ac_compile) 2>conftest.er1
33832   ac_status=$?
33833   grep -v '^ *+' conftest.er1 >conftest.err
33834   rm -f conftest.er1
33835   cat conftest.err >&5
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); } &&
33838          { ac_try='test -z "$ac_c_werror_flag"
33839                          || test ! -s conftest.err'
33840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33841   (eval $ac_try) 2>&5
33842   ac_status=$?
33843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33844   (exit $ac_status); }; } &&
33845          { ac_try='test -s conftest.$ac_objext'
33846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33847   (eval $ac_try) 2>&5
33848   ac_status=$?
33849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850   (exit $ac_status); }; }; then
33851   ac_cv_type_pid_t=yes
33852 else
33853   echo "$as_me: failed program was:" >&5
33854 sed 's/^/| /' conftest.$ac_ext >&5
33855
33856 ac_cv_type_pid_t=no
33857 fi
33858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33859 fi
33860 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33862 if test $ac_cv_type_pid_t = yes; then
33863   :
33864 else
33865
33866 cat >>confdefs.h <<_ACEOF
33867 #define pid_t int
33868 _ACEOF
33869
33870 fi
33871
33872 echo "$as_me:$LINENO: checking for ssize_t" >&5
33873 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33874 if test "${ac_cv_type_ssize_t+set}" = set; then
33875   echo $ECHO_N "(cached) $ECHO_C" >&6
33876 else
33877   cat >conftest.$ac_ext <<_ACEOF
33878 /* confdefs.h.  */
33879 _ACEOF
33880 cat confdefs.h >>conftest.$ac_ext
33881 cat >>conftest.$ac_ext <<_ACEOF
33882 /* end confdefs.h.  */
33883 $ac_includes_default
33884 int
33885 main ()
33886 {
33887 if ((ssize_t *) 0)
33888   return 0;
33889 if (sizeof (ssize_t))
33890   return 0;
33891   ;
33892   return 0;
33893 }
33894 _ACEOF
33895 rm -f conftest.$ac_objext
33896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33897   (eval $ac_compile) 2>conftest.er1
33898   ac_status=$?
33899   grep -v '^ *+' conftest.er1 >conftest.err
33900   rm -f conftest.er1
33901   cat conftest.err >&5
33902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903   (exit $ac_status); } &&
33904          { ac_try='test -z "$ac_c_werror_flag"
33905                          || test ! -s conftest.err'
33906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907   (eval $ac_try) 2>&5
33908   ac_status=$?
33909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910   (exit $ac_status); }; } &&
33911          { ac_try='test -s conftest.$ac_objext'
33912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33913   (eval $ac_try) 2>&5
33914   ac_status=$?
33915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916   (exit $ac_status); }; }; then
33917   ac_cv_type_ssize_t=yes
33918 else
33919   echo "$as_me: failed program was:" >&5
33920 sed 's/^/| /' conftest.$ac_ext >&5
33921
33922 ac_cv_type_ssize_t=no
33923 fi
33924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33925 fi
33926 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33927 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33928 if test $ac_cv_type_ssize_t = yes; then
33929   :
33930 else
33931
33932 cat >>confdefs.h <<_ACEOF
33933 #define ssize_t signed int
33934 _ACEOF
33935
33936 fi
33937
33938 echo "$as_me:$LINENO: checking for caddr_t" >&5
33939 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
33940 if test "${ac_cv_type_caddr_t+set}" = set; then
33941   echo $ECHO_N "(cached) $ECHO_C" >&6
33942 else
33943   cat >conftest.$ac_ext <<_ACEOF
33944 /* confdefs.h.  */
33945 _ACEOF
33946 cat confdefs.h >>conftest.$ac_ext
33947 cat >>conftest.$ac_ext <<_ACEOF
33948 /* end confdefs.h.  */
33949 $ac_includes_default
33950 int
33951 main ()
33952 {
33953 if ((caddr_t *) 0)
33954   return 0;
33955 if (sizeof (caddr_t))
33956   return 0;
33957   ;
33958   return 0;
33959 }
33960 _ACEOF
33961 rm -f conftest.$ac_objext
33962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33963   (eval $ac_compile) 2>conftest.er1
33964   ac_status=$?
33965   grep -v '^ *+' conftest.er1 >conftest.err
33966   rm -f conftest.er1
33967   cat conftest.err >&5
33968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969   (exit $ac_status); } &&
33970          { ac_try='test -z "$ac_c_werror_flag"
33971                          || test ! -s conftest.err'
33972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33973   (eval $ac_try) 2>&5
33974   ac_status=$?
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); }; } &&
33977          { ac_try='test -s conftest.$ac_objext'
33978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979   (eval $ac_try) 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); }; }; then
33983   ac_cv_type_caddr_t=yes
33984 else
33985   echo "$as_me: failed program was:" >&5
33986 sed 's/^/| /' conftest.$ac_ext >&5
33987
33988 ac_cv_type_caddr_t=no
33989 fi
33990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33991 fi
33992 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
33993 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
33994 if test $ac_cv_type_caddr_t = yes; then
33995   :
33996 else
33997
33998 cat >>confdefs.h <<_ACEOF
33999 #define caddr_t char *
34000 _ACEOF
34001
34002 fi
34003
34004 echo "$as_me:$LINENO: checking for size_t" >&5
34005 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34006 if test "${ac_cv_type_size_t+set}" = set; then
34007   echo $ECHO_N "(cached) $ECHO_C" >&6
34008 else
34009   cat >conftest.$ac_ext <<_ACEOF
34010 /* confdefs.h.  */
34011 _ACEOF
34012 cat confdefs.h >>conftest.$ac_ext
34013 cat >>conftest.$ac_ext <<_ACEOF
34014 /* end confdefs.h.  */
34015 $ac_includes_default
34016 int
34017 main ()
34018 {
34019 if ((size_t *) 0)
34020   return 0;
34021 if (sizeof (size_t))
34022   return 0;
34023   ;
34024   return 0;
34025 }
34026 _ACEOF
34027 rm -f conftest.$ac_objext
34028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34029   (eval $ac_compile) 2>conftest.er1
34030   ac_status=$?
34031   grep -v '^ *+' conftest.er1 >conftest.err
34032   rm -f conftest.er1
34033   cat conftest.err >&5
34034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035   (exit $ac_status); } &&
34036          { ac_try='test -z "$ac_c_werror_flag"
34037                          || test ! -s conftest.err'
34038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34039   (eval $ac_try) 2>&5
34040   ac_status=$?
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); }; } &&
34043          { ac_try='test -s conftest.$ac_objext'
34044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045   (eval $ac_try) 2>&5
34046   ac_status=$?
34047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048   (exit $ac_status); }; }; then
34049   ac_cv_type_size_t=yes
34050 else
34051   echo "$as_me: failed program was:" >&5
34052 sed 's/^/| /' conftest.$ac_ext >&5
34053
34054 ac_cv_type_size_t=no
34055 fi
34056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34057 fi
34058 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34059 echo "${ECHO_T}$ac_cv_type_size_t" >&6
34060 if test $ac_cv_type_size_t = yes; then
34061   :
34062 else
34063
34064 cat >>confdefs.h <<_ACEOF
34065 #define size_t unsigned
34066 _ACEOF
34067
34068 fi
34069
34070
34071 echo "$as_me:$LINENO: checking for long long" >&5
34072 echo $ECHO_N "checking for long long... $ECHO_C" >&6
34073 if test "${ac_cv_type_long_long+set}" = set; then
34074   echo $ECHO_N "(cached) $ECHO_C" >&6
34075 else
34076   cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082 $ac_includes_default
34083 int
34084 main ()
34085 {
34086 if ((long long *) 0)
34087   return 0;
34088 if (sizeof (long long))
34089   return 0;
34090   ;
34091   return 0;
34092 }
34093 _ACEOF
34094 rm -f conftest.$ac_objext
34095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34096   (eval $ac_compile) 2>conftest.er1
34097   ac_status=$?
34098   grep -v '^ *+' conftest.er1 >conftest.err
34099   rm -f conftest.er1
34100   cat conftest.err >&5
34101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102   (exit $ac_status); } &&
34103          { ac_try='test -z "$ac_c_werror_flag"
34104                          || test ! -s conftest.err'
34105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34106   (eval $ac_try) 2>&5
34107   ac_status=$?
34108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109   (exit $ac_status); }; } &&
34110          { ac_try='test -s conftest.$ac_objext'
34111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34112   (eval $ac_try) 2>&5
34113   ac_status=$?
34114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34115   (exit $ac_status); }; }; then
34116   ac_cv_type_long_long=yes
34117 else
34118   echo "$as_me: failed program was:" >&5
34119 sed 's/^/| /' conftest.$ac_ext >&5
34120
34121 ac_cv_type_long_long=no
34122 fi
34123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34124 fi
34125 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34126 echo "${ECHO_T}$ac_cv_type_long_long" >&6
34127 if test $ac_cv_type_long_long = yes; then
34128
34129 cat >>confdefs.h <<_ACEOF
34130 #define HAVE_LONG_LONG 1
34131 _ACEOF
34132
34133
34134 fi
34135
34136 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
34137 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
34138 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
34139   echo $ECHO_N "(cached) $ECHO_C" >&6
34140 else
34141   cat >conftest.$ac_ext <<_ACEOF
34142 /* confdefs.h.  */
34143 _ACEOF
34144 cat confdefs.h >>conftest.$ac_ext
34145 cat >>conftest.$ac_ext <<_ACEOF
34146 /* end confdefs.h.  */
34147 $ac_includes_default
34148 int
34149 main ()
34150 {
34151 if ((ptrdiff_t *) 0)
34152   return 0;
34153 if (sizeof (ptrdiff_t))
34154   return 0;
34155   ;
34156   return 0;
34157 }
34158 _ACEOF
34159 rm -f conftest.$ac_objext
34160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34161   (eval $ac_compile) 2>conftest.er1
34162   ac_status=$?
34163   grep -v '^ *+' conftest.er1 >conftest.err
34164   rm -f conftest.er1
34165   cat conftest.err >&5
34166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167   (exit $ac_status); } &&
34168          { ac_try='test -z "$ac_c_werror_flag"
34169                          || test ! -s conftest.err'
34170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34171   (eval $ac_try) 2>&5
34172   ac_status=$?
34173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174   (exit $ac_status); }; } &&
34175          { ac_try='test -s conftest.$ac_objext'
34176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34177   (eval $ac_try) 2>&5
34178   ac_status=$?
34179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180   (exit $ac_status); }; }; then
34181   ac_cv_type_ptrdiff_t=yes
34182 else
34183   echo "$as_me: failed program was:" >&5
34184 sed 's/^/| /' conftest.$ac_ext >&5
34185
34186 ac_cv_type_ptrdiff_t=no
34187 fi
34188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34189 fi
34190 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
34191 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
34192 if test $ac_cv_type_ptrdiff_t = yes; then
34193
34194 cat >>confdefs.h <<_ACEOF
34195 #define HAVE_PTRDIFF_T 1
34196 _ACEOF
34197
34198
34199 fi
34200
34201
34202 echo "$as_me:$LINENO: checking for socklen_t" >&5
34203 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
34204 if test "${ac_cv_type_socklen_t+set}" = set; then
34205   echo $ECHO_N "(cached) $ECHO_C" >&6
34206 else
34207   cat >conftest.$ac_ext <<_ACEOF
34208 /* confdefs.h.  */
34209 _ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h.  */
34213 $ac_includes_default
34214 #ifdef HAVE_SYS_SOCKET_H
34215 #include <sys/socket.h>
34216 #endif
34217
34218
34219 int
34220 main ()
34221 {
34222 if ((socklen_t *) 0)
34223   return 0;
34224 if (sizeof (socklen_t))
34225   return 0;
34226   ;
34227   return 0;
34228 }
34229 _ACEOF
34230 rm -f conftest.$ac_objext
34231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34232   (eval $ac_compile) 2>conftest.er1
34233   ac_status=$?
34234   grep -v '^ *+' conftest.er1 >conftest.err
34235   rm -f conftest.er1
34236   cat conftest.err >&5
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); } &&
34239          { ac_try='test -z "$ac_c_werror_flag"
34240                          || test ! -s conftest.err'
34241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34242   (eval $ac_try) 2>&5
34243   ac_status=$?
34244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245   (exit $ac_status); }; } &&
34246          { ac_try='test -s conftest.$ac_objext'
34247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34248   (eval $ac_try) 2>&5
34249   ac_status=$?
34250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251   (exit $ac_status); }; }; then
34252   ac_cv_type_socklen_t=yes
34253 else
34254   echo "$as_me: failed program was:" >&5
34255 sed 's/^/| /' conftest.$ac_ext >&5
34256
34257 ac_cv_type_socklen_t=no
34258 fi
34259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34260 fi
34261 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
34262 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
34263 if test $ac_cv_type_socklen_t = yes; then
34264   :
34265 else
34266
34267 cat >>confdefs.h <<_ACEOF
34268 #define socklen_t int
34269 _ACEOF
34270
34271 fi
34272
34273
34274 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
34275 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
34276 if test "${ac_cv_type_signal+set}" = set; then
34277   echo $ECHO_N "(cached) $ECHO_C" >&6
34278 else
34279   cat >conftest.$ac_ext <<_ACEOF
34280 /* confdefs.h.  */
34281 _ACEOF
34282 cat confdefs.h >>conftest.$ac_ext
34283 cat >>conftest.$ac_ext <<_ACEOF
34284 /* end confdefs.h.  */
34285 #include <sys/types.h>
34286 #include <signal.h>
34287 #ifdef signal
34288 # undef signal
34289 #endif
34290 #ifdef __cplusplus
34291 extern "C" void (*signal (int, void (*)(int)))(int);
34292 #else
34293 void (*signal ()) ();
34294 #endif
34295
34296 int
34297 main ()
34298 {
34299 int i;
34300   ;
34301   return 0;
34302 }
34303 _ACEOF
34304 rm -f conftest.$ac_objext
34305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34306   (eval $ac_compile) 2>conftest.er1
34307   ac_status=$?
34308   grep -v '^ *+' conftest.er1 >conftest.err
34309   rm -f conftest.er1
34310   cat conftest.err >&5
34311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312   (exit $ac_status); } &&
34313          { ac_try='test -z "$ac_c_werror_flag"
34314                          || test ! -s conftest.err'
34315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34316   (eval $ac_try) 2>&5
34317   ac_status=$?
34318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34319   (exit $ac_status); }; } &&
34320          { ac_try='test -s conftest.$ac_objext'
34321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322   (eval $ac_try) 2>&5
34323   ac_status=$?
34324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325   (exit $ac_status); }; }; then
34326   ac_cv_type_signal=void
34327 else
34328   echo "$as_me: failed program was:" >&5
34329 sed 's/^/| /' conftest.$ac_ext >&5
34330
34331 ac_cv_type_signal=int
34332 fi
34333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34334 fi
34335 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
34336 echo "${ECHO_T}$ac_cv_type_signal" >&6
34337
34338 cat >>confdefs.h <<_ACEOF
34339 #define RETSIGTYPE $ac_cv_type_signal
34340 _ACEOF
34341
34342
34343
34344 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
34345 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
34346 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
34347   echo $ECHO_N "(cached) $ECHO_C" >&6
34348 else
34349   cat >conftest.$ac_ext <<_ACEOF
34350 /* confdefs.h.  */
34351 _ACEOF
34352 cat confdefs.h >>conftest.$ac_ext
34353 cat >>conftest.$ac_ext <<_ACEOF
34354 /* end confdefs.h.  */
34355 $ac_includes_default
34356 #include <signal.h>
34357
34358
34359 int
34360 main ()
34361 {
34362 if ((sig_atomic_t *) 0)
34363   return 0;
34364 if (sizeof (sig_atomic_t))
34365   return 0;
34366   ;
34367   return 0;
34368 }
34369 _ACEOF
34370 rm -f conftest.$ac_objext
34371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34372   (eval $ac_compile) 2>conftest.er1
34373   ac_status=$?
34374   grep -v '^ *+' conftest.er1 >conftest.err
34375   rm -f conftest.er1
34376   cat conftest.err >&5
34377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34378   (exit $ac_status); } &&
34379          { ac_try='test -z "$ac_c_werror_flag"
34380                          || test ! -s conftest.err'
34381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34382   (eval $ac_try) 2>&5
34383   ac_status=$?
34384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385   (exit $ac_status); }; } &&
34386          { ac_try='test -s conftest.$ac_objext'
34387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388   (eval $ac_try) 2>&5
34389   ac_status=$?
34390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391   (exit $ac_status); }; }; then
34392   ac_cv_type_sig_atomic_t=yes
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397 ac_cv_type_sig_atomic_t=no
34398 fi
34399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34400 fi
34401 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
34402 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
34403 if test $ac_cv_type_sig_atomic_t = yes; then
34404   :
34405 else
34406
34407 cat >>confdefs.h <<_ACEOF
34408 #define sig_atomic_t int
34409 _ACEOF
34410
34411 fi
34412
34413
34414 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34415 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34416 if test "${ac_cv_type_uid_t+set}" = set; then
34417   echo $ECHO_N "(cached) $ECHO_C" >&6
34418 else
34419   cat >conftest.$ac_ext <<_ACEOF
34420 /* confdefs.h.  */
34421 _ACEOF
34422 cat confdefs.h >>conftest.$ac_ext
34423 cat >>conftest.$ac_ext <<_ACEOF
34424 /* end confdefs.h.  */
34425 #include <sys/types.h>
34426
34427 _ACEOF
34428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34429   $EGREP "uid_t" >/dev/null 2>&1; then
34430   ac_cv_type_uid_t=yes
34431 else
34432   ac_cv_type_uid_t=no
34433 fi
34434 rm -f conftest*
34435
34436 fi
34437 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34438 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34439 if test $ac_cv_type_uid_t = no; then
34440
34441 cat >>confdefs.h <<\_ACEOF
34442 #define uid_t int
34443 _ACEOF
34444
34445
34446 cat >>confdefs.h <<\_ACEOF
34447 #define gid_t int
34448 _ACEOF
34449
34450 fi
34451
34452
34453 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
34454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
34455 if test "${ac_cv_header_time+set}" = set; then
34456   echo $ECHO_N "(cached) $ECHO_C" >&6
34457 else
34458   cat >conftest.$ac_ext <<_ACEOF
34459 /* confdefs.h.  */
34460 _ACEOF
34461 cat confdefs.h >>conftest.$ac_ext
34462 cat >>conftest.$ac_ext <<_ACEOF
34463 /* end confdefs.h.  */
34464 #include <sys/types.h>
34465 #include <sys/time.h>
34466 #include <time.h>
34467
34468 int
34469 main ()
34470 {
34471 if ((struct tm *) 0)
34472 return 0;
34473   ;
34474   return 0;
34475 }
34476 _ACEOF
34477 rm -f conftest.$ac_objext
34478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34479   (eval $ac_compile) 2>conftest.er1
34480   ac_status=$?
34481   grep -v '^ *+' conftest.er1 >conftest.err
34482   rm -f conftest.er1
34483   cat conftest.err >&5
34484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485   (exit $ac_status); } &&
34486          { ac_try='test -z "$ac_c_werror_flag"
34487                          || test ! -s conftest.err'
34488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34489   (eval $ac_try) 2>&5
34490   ac_status=$?
34491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34492   (exit $ac_status); }; } &&
34493          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34499   ac_cv_header_time=yes
34500 else
34501   echo "$as_me: failed program was:" >&5
34502 sed 's/^/| /' conftest.$ac_ext >&5
34503
34504 ac_cv_header_time=no
34505 fi
34506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34507 fi
34508 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
34509 echo "${ECHO_T}$ac_cv_header_time" >&6
34510 if test $ac_cv_header_time = yes; then
34511
34512 cat >>confdefs.h <<\_ACEOF
34513 #define TIME_WITH_SYS_TIME 1
34514 _ACEOF
34515
34516 fi
34517
34518 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34519 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
34520 if test "${ac_cv_struct_tm+set}" = set; then
34521   echo $ECHO_N "(cached) $ECHO_C" >&6
34522 else
34523   cat >conftest.$ac_ext <<_ACEOF
34524 /* confdefs.h.  */
34525 _ACEOF
34526 cat confdefs.h >>conftest.$ac_ext
34527 cat >>conftest.$ac_ext <<_ACEOF
34528 /* end confdefs.h.  */
34529 #include <sys/types.h>
34530 #include <time.h>
34531
34532 int
34533 main ()
34534 {
34535 struct tm *tp; tp->tm_sec;
34536   ;
34537   return 0;
34538 }
34539 _ACEOF
34540 rm -f conftest.$ac_objext
34541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34542   (eval $ac_compile) 2>conftest.er1
34543   ac_status=$?
34544   grep -v '^ *+' conftest.er1 >conftest.err
34545   rm -f conftest.er1
34546   cat conftest.err >&5
34547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34548   (exit $ac_status); } &&
34549          { ac_try='test -z "$ac_c_werror_flag"
34550                          || test ! -s conftest.err'
34551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34552   (eval $ac_try) 2>&5
34553   ac_status=$?
34554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555   (exit $ac_status); }; } &&
34556          { ac_try='test -s conftest.$ac_objext'
34557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34558   (eval $ac_try) 2>&5
34559   ac_status=$?
34560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34561   (exit $ac_status); }; }; then
34562   ac_cv_struct_tm=time.h
34563 else
34564   echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567 ac_cv_struct_tm=sys/time.h
34568 fi
34569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34570 fi
34571 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34572 echo "${ECHO_T}$ac_cv_struct_tm" >&6
34573 if test $ac_cv_struct_tm = sys/time.h; then
34574
34575 cat >>confdefs.h <<\_ACEOF
34576 #define TM_IN_SYS_TIME 1
34577 _ACEOF
34578
34579 fi
34580
34581 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
34582 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
34583 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
34584   echo $ECHO_N "(cached) $ECHO_C" >&6
34585 else
34586   cat >conftest.$ac_ext <<_ACEOF
34587 /* confdefs.h.  */
34588 _ACEOF
34589 cat confdefs.h >>conftest.$ac_ext
34590 cat >>conftest.$ac_ext <<_ACEOF
34591 /* end confdefs.h.  */
34592 $ac_includes_default
34593 int
34594 main ()
34595 {
34596 static struct stat ac_aggr;
34597 if (ac_aggr.st_blksize)
34598 return 0;
34599   ;
34600   return 0;
34601 }
34602 _ACEOF
34603 rm -f conftest.$ac_objext
34604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34605   (eval $ac_compile) 2>conftest.er1
34606   ac_status=$?
34607   grep -v '^ *+' conftest.er1 >conftest.err
34608   rm -f conftest.er1
34609   cat conftest.err >&5
34610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611   (exit $ac_status); } &&
34612          { ac_try='test -z "$ac_c_werror_flag"
34613                          || test ! -s conftest.err'
34614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34615   (eval $ac_try) 2>&5
34616   ac_status=$?
34617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34618   (exit $ac_status); }; } &&
34619          { ac_try='test -s conftest.$ac_objext'
34620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34621   (eval $ac_try) 2>&5
34622   ac_status=$?
34623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34624   (exit $ac_status); }; }; then
34625   ac_cv_member_struct_stat_st_blksize=yes
34626 else
34627   echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34629
34630 cat >conftest.$ac_ext <<_ACEOF
34631 /* confdefs.h.  */
34632 _ACEOF
34633 cat confdefs.h >>conftest.$ac_ext
34634 cat >>conftest.$ac_ext <<_ACEOF
34635 /* end confdefs.h.  */
34636 $ac_includes_default
34637 int
34638 main ()
34639 {
34640 static struct stat ac_aggr;
34641 if (sizeof ac_aggr.st_blksize)
34642 return 0;
34643   ;
34644   return 0;
34645 }
34646 _ACEOF
34647 rm -f conftest.$ac_objext
34648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34649   (eval $ac_compile) 2>conftest.er1
34650   ac_status=$?
34651   grep -v '^ *+' conftest.er1 >conftest.err
34652   rm -f conftest.er1
34653   cat conftest.err >&5
34654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655   (exit $ac_status); } &&
34656          { ac_try='test -z "$ac_c_werror_flag"
34657                          || test ! -s conftest.err'
34658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34659   (eval $ac_try) 2>&5
34660   ac_status=$?
34661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34662   (exit $ac_status); }; } &&
34663          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
34669   ac_cv_member_struct_stat_st_blksize=yes
34670 else
34671   echo "$as_me: failed program was:" >&5
34672 sed 's/^/| /' conftest.$ac_ext >&5
34673
34674 ac_cv_member_struct_stat_st_blksize=no
34675 fi
34676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34677 fi
34678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34679 fi
34680 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
34681 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
34682 if test $ac_cv_member_struct_stat_st_blksize = yes; then
34683
34684 cat >>confdefs.h <<_ACEOF
34685 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
34686 _ACEOF
34687
34688
34689 fi
34690
34691 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
34692 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
34693 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
34694   echo $ECHO_N "(cached) $ECHO_C" >&6
34695 else
34696   cat >conftest.$ac_ext <<_ACEOF
34697 /* confdefs.h.  */
34698 _ACEOF
34699 cat confdefs.h >>conftest.$ac_ext
34700 cat >>conftest.$ac_ext <<_ACEOF
34701 /* end confdefs.h.  */
34702 $ac_includes_default
34703 #include <pwd.h>
34704
34705 int
34706 main ()
34707 {
34708 static struct passwd ac_aggr;
34709 if (ac_aggr.pw_gecos)
34710 return 0;
34711   ;
34712   return 0;
34713 }
34714 _ACEOF
34715 rm -f conftest.$ac_objext
34716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34717   (eval $ac_compile) 2>conftest.er1
34718   ac_status=$?
34719   grep -v '^ *+' conftest.er1 >conftest.err
34720   rm -f conftest.er1
34721   cat conftest.err >&5
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); } &&
34724          { ac_try='test -z "$ac_c_werror_flag"
34725                          || test ! -s conftest.err'
34726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34727   (eval $ac_try) 2>&5
34728   ac_status=$?
34729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730   (exit $ac_status); }; } &&
34731          { ac_try='test -s conftest.$ac_objext'
34732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733   (eval $ac_try) 2>&5
34734   ac_status=$?
34735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736   (exit $ac_status); }; }; then
34737   ac_cv_member_struct_passwd_pw_gecos=yes
34738 else
34739   echo "$as_me: failed program was:" >&5
34740 sed 's/^/| /' conftest.$ac_ext >&5
34741
34742 cat >conftest.$ac_ext <<_ACEOF
34743 /* confdefs.h.  */
34744 _ACEOF
34745 cat confdefs.h >>conftest.$ac_ext
34746 cat >>conftest.$ac_ext <<_ACEOF
34747 /* end confdefs.h.  */
34748 $ac_includes_default
34749 #include <pwd.h>
34750
34751 int
34752 main ()
34753 {
34754 static struct passwd ac_aggr;
34755 if (sizeof ac_aggr.pw_gecos)
34756 return 0;
34757   ;
34758   return 0;
34759 }
34760 _ACEOF
34761 rm -f conftest.$ac_objext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34763   (eval $ac_compile) 2>conftest.er1
34764   ac_status=$?
34765   grep -v '^ *+' conftest.er1 >conftest.err
34766   rm -f conftest.er1
34767   cat conftest.err >&5
34768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769   (exit $ac_status); } &&
34770          { ac_try='test -z "$ac_c_werror_flag"
34771                          || test ! -s conftest.err'
34772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773   (eval $ac_try) 2>&5
34774   ac_status=$?
34775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776   (exit $ac_status); }; } &&
34777          { ac_try='test -s conftest.$ac_objext'
34778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779   (eval $ac_try) 2>&5
34780   ac_status=$?
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); }; }; then
34783   ac_cv_member_struct_passwd_pw_gecos=yes
34784 else
34785   echo "$as_me: failed program was:" >&5
34786 sed 's/^/| /' conftest.$ac_ext >&5
34787
34788 ac_cv_member_struct_passwd_pw_gecos=no
34789 fi
34790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34791 fi
34792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34793 fi
34794 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
34795 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
34796 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
34797
34798 cat >>confdefs.h <<_ACEOF
34799 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
34800 _ACEOF
34801
34802
34803 fi
34804
34805 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
34806 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
34807 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
34808   echo $ECHO_N "(cached) $ECHO_C" >&6
34809 else
34810   cat >conftest.$ac_ext <<_ACEOF
34811 /* confdefs.h.  */
34812 _ACEOF
34813 cat confdefs.h >>conftest.$ac_ext
34814 cat >>conftest.$ac_ext <<_ACEOF
34815 /* end confdefs.h.  */
34816 $ac_includes_default
34817 #include <pwd.h>
34818
34819 int
34820 main ()
34821 {
34822 static struct passwd ac_aggr;
34823 if (ac_aggr.pw_passwd)
34824 return 0;
34825   ;
34826   return 0;
34827 }
34828 _ACEOF
34829 rm -f conftest.$ac_objext
34830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34831   (eval $ac_compile) 2>conftest.er1
34832   ac_status=$?
34833   grep -v '^ *+' conftest.er1 >conftest.err
34834   rm -f conftest.er1
34835   cat conftest.err >&5
34836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34837   (exit $ac_status); } &&
34838          { ac_try='test -z "$ac_c_werror_flag"
34839                          || test ! -s conftest.err'
34840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841   (eval $ac_try) 2>&5
34842   ac_status=$?
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); }; } &&
34845          { ac_try='test -s conftest.$ac_objext'
34846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34847   (eval $ac_try) 2>&5
34848   ac_status=$?
34849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); }; }; then
34851   ac_cv_member_struct_passwd_pw_passwd=yes
34852 else
34853   echo "$as_me: failed program was:" >&5
34854 sed 's/^/| /' conftest.$ac_ext >&5
34855
34856 cat >conftest.$ac_ext <<_ACEOF
34857 /* confdefs.h.  */
34858 _ACEOF
34859 cat confdefs.h >>conftest.$ac_ext
34860 cat >>conftest.$ac_ext <<_ACEOF
34861 /* end confdefs.h.  */
34862 $ac_includes_default
34863 #include <pwd.h>
34864
34865 int
34866 main ()
34867 {
34868 static struct passwd ac_aggr;
34869 if (sizeof ac_aggr.pw_passwd)
34870 return 0;
34871   ;
34872   return 0;
34873 }
34874 _ACEOF
34875 rm -f conftest.$ac_objext
34876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34877   (eval $ac_compile) 2>conftest.er1
34878   ac_status=$?
34879   grep -v '^ *+' conftest.er1 >conftest.err
34880   rm -f conftest.er1
34881   cat conftest.err >&5
34882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883   (exit $ac_status); } &&
34884          { ac_try='test -z "$ac_c_werror_flag"
34885                          || test ! -s conftest.err'
34886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34887   (eval $ac_try) 2>&5
34888   ac_status=$?
34889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34890   (exit $ac_status); }; } &&
34891          { ac_try='test -s conftest.$ac_objext'
34892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34893   (eval $ac_try) 2>&5
34894   ac_status=$?
34895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34896   (exit $ac_status); }; }; then
34897   ac_cv_member_struct_passwd_pw_passwd=yes
34898 else
34899   echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34901
34902 ac_cv_member_struct_passwd_pw_passwd=no
34903 fi
34904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34905 fi
34906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34907 fi
34908 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
34909 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
34910 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
34911
34912 cat >>confdefs.h <<_ACEOF
34913 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
34914 _ACEOF
34915
34916
34917 fi
34918
34919
34920 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
34921 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
34922 if test "${ol_cv_c_upper_lower+set}" = set; then
34923   echo $ECHO_N "(cached) $ECHO_C" >&6
34924 else
34925
34926         if test "$cross_compiling" = yes; then
34927   ol_cv_c_upper_lower=safe
34928 else
34929   cat >conftest.$ac_ext <<_ACEOF
34930 /* confdefs.h.  */
34931 _ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h.  */
34935
34936 #include <ctype.h>
34937 main()
34938 {
34939         if ('C' == toupper('C'))
34940                 exit(0);
34941         else
34942                 exit(1);
34943 }
34944 _ACEOF
34945 rm -f conftest$ac_exeext
34946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34947   (eval $ac_link) 2>&5
34948   ac_status=$?
34949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34952   (eval $ac_try) 2>&5
34953   ac_status=$?
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); }; }; then
34956   ol_cv_c_upper_lower=no
34957 else
34958   echo "$as_me: program exited with status $ac_status" >&5
34959 echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962 ( exit $ac_status )
34963 ol_cv_c_upper_lower=yes
34964 fi
34965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34966 fi
34967 fi
34968 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
34969 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
34970 if test $ol_cv_c_upper_lower != no ; then
34971
34972 cat >>confdefs.h <<\_ACEOF
34973 #define C_UPPER_LOWER 1
34974 _ACEOF
34975
34976 fi
34977
34978 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34979 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
34980 if test "${ac_cv_c_const+set}" = set; then
34981   echo $ECHO_N "(cached) $ECHO_C" >&6
34982 else
34983   cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989
34990 int
34991 main ()
34992 {
34993 /* FIXME: Include the comments suggested by Paul. */
34994 #ifndef __cplusplus
34995   /* Ultrix mips cc rejects this.  */
34996   typedef int charset[2];
34997   const charset x;
34998   /* SunOS 4.1.1 cc rejects this.  */
34999   char const *const *ccp;
35000   char **p;
35001   /* NEC SVR4.0.2 mips cc rejects this.  */
35002   struct point {int x, y;};
35003   static struct point const zero = {0,0};
35004   /* AIX XL C 1.02.0.0 rejects this.
35005      It does not let you subtract one const X* pointer from another in
35006      an arm of an if-expression whose if-part is not a constant
35007      expression */
35008   const char *g = "string";
35009   ccp = &g + (g ? g-g : 0);
35010   /* HPUX 7.0 cc rejects these. */
35011   ++ccp;
35012   p = (char**) ccp;
35013   ccp = (char const *const *) p;
35014   { /* SCO 3.2v4 cc rejects this.  */
35015     char *t;
35016     char const *s = 0 ? (char *) 0 : (char const *) 0;
35017
35018     *t++ = 0;
35019   }
35020   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
35021     int x[] = {25, 17};
35022     const int *foo = &x[0];
35023     ++foo;
35024   }
35025   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35026     typedef const int *iptr;
35027     iptr p = 0;
35028     ++p;
35029   }
35030   { /* AIX XL C 1.02.0.0 rejects this saying
35031        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35032     struct s { int j; const int *ap[3]; };
35033     struct s *b; b->j = 5;
35034   }
35035   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35036     const int foo = 10;
35037   }
35038 #endif
35039
35040   ;
35041   return 0;
35042 }
35043 _ACEOF
35044 rm -f conftest.$ac_objext
35045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35046   (eval $ac_compile) 2>conftest.er1
35047   ac_status=$?
35048   grep -v '^ *+' conftest.er1 >conftest.err
35049   rm -f conftest.er1
35050   cat conftest.err >&5
35051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052   (exit $ac_status); } &&
35053          { ac_try='test -z "$ac_c_werror_flag"
35054                          || test ! -s conftest.err'
35055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35056   (eval $ac_try) 2>&5
35057   ac_status=$?
35058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35059   (exit $ac_status); }; } &&
35060          { ac_try='test -s conftest.$ac_objext'
35061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35062   (eval $ac_try) 2>&5
35063   ac_status=$?
35064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35065   (exit $ac_status); }; }; then
35066   ac_cv_c_const=yes
35067 else
35068   echo "$as_me: failed program was:" >&5
35069 sed 's/^/| /' conftest.$ac_ext >&5
35070
35071 ac_cv_c_const=no
35072 fi
35073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35074 fi
35075 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35076 echo "${ECHO_T}$ac_cv_c_const" >&6
35077 if test $ac_cv_c_const = no; then
35078
35079 cat >>confdefs.h <<\_ACEOF
35080 #define const
35081 _ACEOF
35082
35083 fi
35084
35085 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
35086 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
35087 if test "${ol_cv_c_volatile+set}" = set; then
35088   echo $ECHO_N "(cached) $ECHO_C" >&6
35089 else
35090   cat >conftest.$ac_ext <<_ACEOF
35091 /* confdefs.h.  */
35092 _ACEOF
35093 cat confdefs.h >>conftest.$ac_ext
35094 cat >>conftest.$ac_ext <<_ACEOF
35095 /* end confdefs.h.  */
35096 int x, y, z;
35097 int
35098 main ()
35099 {
35100 volatile int a; int * volatile b = x ? &y : &z;
35101       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
35102       *b = 0;
35103   ;
35104   return 0;
35105 }
35106 _ACEOF
35107 rm -f conftest.$ac_objext
35108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35109   (eval $ac_compile) 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } &&
35116          { ac_try='test -z "$ac_c_werror_flag"
35117                          || test ! -s conftest.err'
35118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35119   (eval $ac_try) 2>&5
35120   ac_status=$?
35121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35122   (exit $ac_status); }; } &&
35123          { ac_try='test -s conftest.$ac_objext'
35124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35125   (eval $ac_try) 2>&5
35126   ac_status=$?
35127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128   (exit $ac_status); }; }; then
35129   ol_cv_c_volatile=yes
35130 else
35131   echo "$as_me: failed program was:" >&5
35132 sed 's/^/| /' conftest.$ac_ext >&5
35133
35134 ol_cv_c_volatile=no
35135 fi
35136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35137 fi
35138 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
35139 echo "${ECHO_T}$ol_cv_c_volatile" >&6
35140   if test $ol_cv_c_volatile = yes; then
35141     :
35142   else
35143
35144 cat >>confdefs.h <<\_ACEOF
35145 #define volatile
35146 _ACEOF
35147
35148   fi
35149
35150
35151 if test $cross_compiling = yes ; then
35152         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
35153 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
35154
35155 cat >>confdefs.h <<\_ACEOF
35156 #define CROSS_COMPILING 1
35157 _ACEOF
35158
35159 else
35160         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
35161 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
35162 if test "${ac_cv_c_bigendian+set}" = set; then
35163   echo $ECHO_N "(cached) $ECHO_C" >&6
35164 else
35165   # See if sys/param.h defines the BYTE_ORDER macro.
35166 cat >conftest.$ac_ext <<_ACEOF
35167 /* confdefs.h.  */
35168 _ACEOF
35169 cat confdefs.h >>conftest.$ac_ext
35170 cat >>conftest.$ac_ext <<_ACEOF
35171 /* end confdefs.h.  */
35172 #include <sys/types.h>
35173 #include <sys/param.h>
35174
35175 int
35176 main ()
35177 {
35178 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
35179  bogus endian macros
35180 #endif
35181
35182   ;
35183   return 0;
35184 }
35185 _ACEOF
35186 rm -f conftest.$ac_objext
35187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35188   (eval $ac_compile) 2>conftest.er1
35189   ac_status=$?
35190   grep -v '^ *+' conftest.er1 >conftest.err
35191   rm -f conftest.er1
35192   cat conftest.err >&5
35193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194   (exit $ac_status); } &&
35195          { ac_try='test -z "$ac_c_werror_flag"
35196                          || test ! -s conftest.err'
35197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198   (eval $ac_try) 2>&5
35199   ac_status=$?
35200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); }; } &&
35202          { ac_try='test -s conftest.$ac_objext'
35203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204   (eval $ac_try) 2>&5
35205   ac_status=$?
35206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207   (exit $ac_status); }; }; then
35208   # It does; now see whether it defined to BIG_ENDIAN or not.
35209 cat >conftest.$ac_ext <<_ACEOF
35210 /* confdefs.h.  */
35211 _ACEOF
35212 cat confdefs.h >>conftest.$ac_ext
35213 cat >>conftest.$ac_ext <<_ACEOF
35214 /* end confdefs.h.  */
35215 #include <sys/types.h>
35216 #include <sys/param.h>
35217
35218 int
35219 main ()
35220 {
35221 #if BYTE_ORDER != BIG_ENDIAN
35222  not big endian
35223 #endif
35224
35225   ;
35226   return 0;
35227 }
35228 _ACEOF
35229 rm -f conftest.$ac_objext
35230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35231   (eval $ac_compile) 2>conftest.er1
35232   ac_status=$?
35233   grep -v '^ *+' conftest.er1 >conftest.err
35234   rm -f conftest.er1
35235   cat conftest.err >&5
35236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237   (exit $ac_status); } &&
35238          { ac_try='test -z "$ac_c_werror_flag"
35239                          || test ! -s conftest.err'
35240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241   (eval $ac_try) 2>&5
35242   ac_status=$?
35243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244   (exit $ac_status); }; } &&
35245          { ac_try='test -s conftest.$ac_objext'
35246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35247   (eval $ac_try) 2>&5
35248   ac_status=$?
35249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35250   (exit $ac_status); }; }; then
35251   ac_cv_c_bigendian=yes
35252 else
35253   echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35255
35256 ac_cv_c_bigendian=no
35257 fi
35258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35259 else
35260   echo "$as_me: failed program was:" >&5
35261 sed 's/^/| /' conftest.$ac_ext >&5
35262
35263 # It does not; compile a test program.
35264 if test "$cross_compiling" = yes; then
35265   # try to guess the endianness by grepping values into an object file
35266   ac_cv_c_bigendian=unknown
35267   cat >conftest.$ac_ext <<_ACEOF
35268 /* confdefs.h.  */
35269 _ACEOF
35270 cat confdefs.h >>conftest.$ac_ext
35271 cat >>conftest.$ac_ext <<_ACEOF
35272 /* end confdefs.h.  */
35273 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
35274 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
35275 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
35276 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
35277 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
35278 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
35279 int
35280 main ()
35281 {
35282  _ascii (); _ebcdic ();
35283   ;
35284   return 0;
35285 }
35286 _ACEOF
35287 rm -f conftest.$ac_objext
35288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35289   (eval $ac_compile) 2>conftest.er1
35290   ac_status=$?
35291   grep -v '^ *+' conftest.er1 >conftest.err
35292   rm -f conftest.er1
35293   cat conftest.err >&5
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); } &&
35296          { ac_try='test -z "$ac_c_werror_flag"
35297                          || test ! -s conftest.err'
35298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299   (eval $ac_try) 2>&5
35300   ac_status=$?
35301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302   (exit $ac_status); }; } &&
35303          { ac_try='test -s conftest.$ac_objext'
35304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35305   (eval $ac_try) 2>&5
35306   ac_status=$?
35307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308   (exit $ac_status); }; }; then
35309   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
35310   ac_cv_c_bigendian=yes
35311 fi
35312 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
35313   if test "$ac_cv_c_bigendian" = unknown; then
35314     ac_cv_c_bigendian=no
35315   else
35316     # finding both strings is unlikely to happen, but who knows?
35317     ac_cv_c_bigendian=unknown
35318   fi
35319 fi
35320 else
35321   echo "$as_me: failed program was:" >&5
35322 sed 's/^/| /' conftest.$ac_ext >&5
35323
35324 fi
35325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35326 else
35327   cat >conftest.$ac_ext <<_ACEOF
35328 /* confdefs.h.  */
35329 _ACEOF
35330 cat confdefs.h >>conftest.$ac_ext
35331 cat >>conftest.$ac_ext <<_ACEOF
35332 /* end confdefs.h.  */
35333 int
35334 main ()
35335 {
35336   /* Are we little or big endian?  From Harbison&Steele.  */
35337   union
35338   {
35339     long l;
35340     char c[sizeof (long)];
35341   } u;
35342   u.l = 1;
35343   exit (u.c[sizeof (long) - 1] == 1);
35344 }
35345 _ACEOF
35346 rm -f conftest$ac_exeext
35347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35348   (eval $ac_link) 2>&5
35349   ac_status=$?
35350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353   (eval $ac_try) 2>&5
35354   ac_status=$?
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); }; }; then
35357   ac_cv_c_bigendian=no
35358 else
35359   echo "$as_me: program exited with status $ac_status" >&5
35360 echo "$as_me: failed program was:" >&5
35361 sed 's/^/| /' conftest.$ac_ext >&5
35362
35363 ( exit $ac_status )
35364 ac_cv_c_bigendian=yes
35365 fi
35366 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35367 fi
35368 fi
35369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35370 fi
35371 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
35372 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
35373 case $ac_cv_c_bigendian in
35374   yes)
35375
35376 cat >>confdefs.h <<\_ACEOF
35377 #define WORDS_BIGENDIAN 1
35378 _ACEOF
35379  ;;
35380   no)
35381      ;;
35382   *)
35383     { { echo "$as_me:$LINENO: error: unknown endianness
35384 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
35385 echo "$as_me: error: unknown endianness
35386 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
35387    { (exit 1); exit 1; }; } ;;
35388 esac
35389
35390 fi
35391
35392 echo "$as_me:$LINENO: checking for short" >&5
35393 echo $ECHO_N "checking for short... $ECHO_C" >&6
35394 if test "${ac_cv_type_short+set}" = set; then
35395   echo $ECHO_N "(cached) $ECHO_C" >&6
35396 else
35397   cat >conftest.$ac_ext <<_ACEOF
35398 /* confdefs.h.  */
35399 _ACEOF
35400 cat confdefs.h >>conftest.$ac_ext
35401 cat >>conftest.$ac_ext <<_ACEOF
35402 /* end confdefs.h.  */
35403 $ac_includes_default
35404 int
35405 main ()
35406 {
35407 if ((short *) 0)
35408   return 0;
35409 if (sizeof (short))
35410   return 0;
35411   ;
35412   return 0;
35413 }
35414 _ACEOF
35415 rm -f conftest.$ac_objext
35416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35417   (eval $ac_compile) 2>conftest.er1
35418   ac_status=$?
35419   grep -v '^ *+' conftest.er1 >conftest.err
35420   rm -f conftest.er1
35421   cat conftest.err >&5
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } &&
35424          { ac_try='test -z "$ac_c_werror_flag"
35425                          || test ! -s conftest.err'
35426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427   (eval $ac_try) 2>&5
35428   ac_status=$?
35429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430   (exit $ac_status); }; } &&
35431          { ac_try='test -s conftest.$ac_objext'
35432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433   (eval $ac_try) 2>&5
35434   ac_status=$?
35435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436   (exit $ac_status); }; }; then
35437   ac_cv_type_short=yes
35438 else
35439   echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35441
35442 ac_cv_type_short=no
35443 fi
35444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35445 fi
35446 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
35447 echo "${ECHO_T}$ac_cv_type_short" >&6
35448
35449 echo "$as_me:$LINENO: checking size of short" >&5
35450 echo $ECHO_N "checking size of short... $ECHO_C" >&6
35451 if test "${ac_cv_sizeof_short+set}" = set; then
35452   echo $ECHO_N "(cached) $ECHO_C" >&6
35453 else
35454   if test "$ac_cv_type_short" = yes; then
35455   # The cast to unsigned long works around a bug in the HP C Compiler
35456   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35457   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35458   # This bug is HP SR number 8606223364.
35459   if test "$cross_compiling" = yes; then
35460   # Depending upon the size, compute the lo and hi bounds.
35461 cat >conftest.$ac_ext <<_ACEOF
35462 /* confdefs.h.  */
35463 _ACEOF
35464 cat confdefs.h >>conftest.$ac_ext
35465 cat >>conftest.$ac_ext <<_ACEOF
35466 /* end confdefs.h.  */
35467 $ac_includes_default
35468 int
35469 main ()
35470 {
35471 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
35472 test_array [0] = 0
35473
35474   ;
35475   return 0;
35476 }
35477 _ACEOF
35478 rm -f conftest.$ac_objext
35479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35480   (eval $ac_compile) 2>conftest.er1
35481   ac_status=$?
35482   grep -v '^ *+' conftest.er1 >conftest.err
35483   rm -f conftest.er1
35484   cat conftest.err >&5
35485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486   (exit $ac_status); } &&
35487          { ac_try='test -z "$ac_c_werror_flag"
35488                          || test ! -s conftest.err'
35489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35490   (eval $ac_try) 2>&5
35491   ac_status=$?
35492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493   (exit $ac_status); }; } &&
35494          { ac_try='test -s conftest.$ac_objext'
35495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35496   (eval $ac_try) 2>&5
35497   ac_status=$?
35498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35499   (exit $ac_status); }; }; then
35500   ac_lo=0 ac_mid=0
35501   while :; do
35502     cat >conftest.$ac_ext <<_ACEOF
35503 /* confdefs.h.  */
35504 _ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h.  */
35508 $ac_includes_default
35509 int
35510 main ()
35511 {
35512 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35513 test_array [0] = 0
35514
35515   ;
35516   return 0;
35517 }
35518 _ACEOF
35519 rm -f conftest.$ac_objext
35520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35521   (eval $ac_compile) 2>conftest.er1
35522   ac_status=$?
35523   grep -v '^ *+' conftest.er1 >conftest.err
35524   rm -f conftest.er1
35525   cat conftest.err >&5
35526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35527   (exit $ac_status); } &&
35528          { ac_try='test -z "$ac_c_werror_flag"
35529                          || test ! -s conftest.err'
35530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35531   (eval $ac_try) 2>&5
35532   ac_status=$?
35533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534   (exit $ac_status); }; } &&
35535          { ac_try='test -s conftest.$ac_objext'
35536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35537   (eval $ac_try) 2>&5
35538   ac_status=$?
35539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35540   (exit $ac_status); }; }; then
35541   ac_hi=$ac_mid; break
35542 else
35543   echo "$as_me: failed program was:" >&5
35544 sed 's/^/| /' conftest.$ac_ext >&5
35545
35546 ac_lo=`expr $ac_mid + 1`
35547                     if test $ac_lo -le $ac_mid; then
35548                       ac_lo= ac_hi=
35549                       break
35550                     fi
35551                     ac_mid=`expr 2 '*' $ac_mid + 1`
35552 fi
35553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35554   done
35555 else
35556   echo "$as_me: failed program was:" >&5
35557 sed 's/^/| /' conftest.$ac_ext >&5
35558
35559 cat >conftest.$ac_ext <<_ACEOF
35560 /* confdefs.h.  */
35561 _ACEOF
35562 cat confdefs.h >>conftest.$ac_ext
35563 cat >>conftest.$ac_ext <<_ACEOF
35564 /* end confdefs.h.  */
35565 $ac_includes_default
35566 int
35567 main ()
35568 {
35569 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
35570 test_array [0] = 0
35571
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext
35577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35578   (eval $ac_compile) 2>conftest.er1
35579   ac_status=$?
35580   grep -v '^ *+' conftest.er1 >conftest.err
35581   rm -f conftest.er1
35582   cat conftest.err >&5
35583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584   (exit $ac_status); } &&
35585          { ac_try='test -z "$ac_c_werror_flag"
35586                          || test ! -s conftest.err'
35587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35588   (eval $ac_try) 2>&5
35589   ac_status=$?
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); }; } &&
35592          { ac_try='test -s conftest.$ac_objext'
35593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594   (eval $ac_try) 2>&5
35595   ac_status=$?
35596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597   (exit $ac_status); }; }; then
35598   ac_hi=-1 ac_mid=-1
35599   while :; do
35600     cat >conftest.$ac_ext <<_ACEOF
35601 /* confdefs.h.  */
35602 _ACEOF
35603 cat confdefs.h >>conftest.$ac_ext
35604 cat >>conftest.$ac_ext <<_ACEOF
35605 /* end confdefs.h.  */
35606 $ac_includes_default
35607 int
35608 main ()
35609 {
35610 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
35611 test_array [0] = 0
35612
35613   ;
35614   return 0;
35615 }
35616 _ACEOF
35617 rm -f conftest.$ac_objext
35618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35619   (eval $ac_compile) 2>conftest.er1
35620   ac_status=$?
35621   grep -v '^ *+' conftest.er1 >conftest.err
35622   rm -f conftest.er1
35623   cat conftest.err >&5
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); } &&
35626          { ac_try='test -z "$ac_c_werror_flag"
35627                          || test ! -s conftest.err'
35628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35629   (eval $ac_try) 2>&5
35630   ac_status=$?
35631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632   (exit $ac_status); }; } &&
35633          { ac_try='test -s conftest.$ac_objext'
35634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35635   (eval $ac_try) 2>&5
35636   ac_status=$?
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); }; }; then
35639   ac_lo=$ac_mid; break
35640 else
35641   echo "$as_me: failed program was:" >&5
35642 sed 's/^/| /' conftest.$ac_ext >&5
35643
35644 ac_hi=`expr '(' $ac_mid ')' - 1`
35645                        if test $ac_mid -le $ac_hi; then
35646                          ac_lo= ac_hi=
35647                          break
35648                        fi
35649                        ac_mid=`expr 2 '*' $ac_mid`
35650 fi
35651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35652   done
35653 else
35654   echo "$as_me: failed program was:" >&5
35655 sed 's/^/| /' conftest.$ac_ext >&5
35656
35657 ac_lo= ac_hi=
35658 fi
35659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35660 fi
35661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35662 # Binary search between lo and hi bounds.
35663 while test "x$ac_lo" != "x$ac_hi"; do
35664   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35665   cat >conftest.$ac_ext <<_ACEOF
35666 /* confdefs.h.  */
35667 _ACEOF
35668 cat confdefs.h >>conftest.$ac_ext
35669 cat >>conftest.$ac_ext <<_ACEOF
35670 /* end confdefs.h.  */
35671 $ac_includes_default
35672 int
35673 main ()
35674 {
35675 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
35676 test_array [0] = 0
35677
35678   ;
35679   return 0;
35680 }
35681 _ACEOF
35682 rm -f conftest.$ac_objext
35683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35684   (eval $ac_compile) 2>conftest.er1
35685   ac_status=$?
35686   grep -v '^ *+' conftest.er1 >conftest.err
35687   rm -f conftest.er1
35688   cat conftest.err >&5
35689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35690   (exit $ac_status); } &&
35691          { ac_try='test -z "$ac_c_werror_flag"
35692                          || test ! -s conftest.err'
35693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694   (eval $ac_try) 2>&5
35695   ac_status=$?
35696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697   (exit $ac_status); }; } &&
35698          { ac_try='test -s conftest.$ac_objext'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; }; then
35704   ac_hi=$ac_mid
35705 else
35706   echo "$as_me: failed program was:" >&5
35707 sed 's/^/| /' conftest.$ac_ext >&5
35708
35709 ac_lo=`expr '(' $ac_mid ')' + 1`
35710 fi
35711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35712 done
35713 case $ac_lo in
35714 ?*) ac_cv_sizeof_short=$ac_lo;;
35715 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35716 See \`config.log' for more details." >&5
35717 echo "$as_me: error: cannot compute sizeof (short), 77
35718 See \`config.log' for more details." >&2;}
35719    { (exit 1); exit 1; }; } ;;
35720 esac
35721 else
35722   if test "$cross_compiling" = yes; then
35723   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35724 See \`config.log' for more details." >&5
35725 echo "$as_me: error: cannot run test program while cross compiling
35726 See \`config.log' for more details." >&2;}
35727    { (exit 1); exit 1; }; }
35728 else
35729   cat >conftest.$ac_ext <<_ACEOF
35730 /* confdefs.h.  */
35731 _ACEOF
35732 cat confdefs.h >>conftest.$ac_ext
35733 cat >>conftest.$ac_ext <<_ACEOF
35734 /* end confdefs.h.  */
35735 $ac_includes_default
35736 long longval () { return (long) (sizeof (short)); }
35737 unsigned long ulongval () { return (long) (sizeof (short)); }
35738 #include <stdio.h>
35739 #include <stdlib.h>
35740 int
35741 main ()
35742 {
35743
35744   FILE *f = fopen ("conftest.val", "w");
35745   if (! f)
35746     exit (1);
35747   if (((long) (sizeof (short))) < 0)
35748     {
35749       long i = longval ();
35750       if (i != ((long) (sizeof (short))))
35751         exit (1);
35752       fprintf (f, "%ld\n", i);
35753     }
35754   else
35755     {
35756       unsigned long i = ulongval ();
35757       if (i != ((long) (sizeof (short))))
35758         exit (1);
35759       fprintf (f, "%lu\n", i);
35760     }
35761   exit (ferror (f) || fclose (f) != 0);
35762
35763   ;
35764   return 0;
35765 }
35766 _ACEOF
35767 rm -f conftest$ac_exeext
35768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35769   (eval $ac_link) 2>&5
35770   ac_status=$?
35771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774   (eval $ac_try) 2>&5
35775   ac_status=$?
35776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777   (exit $ac_status); }; }; then
35778   ac_cv_sizeof_short=`cat conftest.val`
35779 else
35780   echo "$as_me: program exited with status $ac_status" >&5
35781 echo "$as_me: failed program was:" >&5
35782 sed 's/^/| /' conftest.$ac_ext >&5
35783
35784 ( exit $ac_status )
35785 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
35786 See \`config.log' for more details." >&5
35787 echo "$as_me: error: cannot compute sizeof (short), 77
35788 See \`config.log' for more details." >&2;}
35789    { (exit 1); exit 1; }; }
35790 fi
35791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35792 fi
35793 fi
35794 rm -f conftest.val
35795 else
35796   ac_cv_sizeof_short=0
35797 fi
35798 fi
35799 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
35800 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
35801 cat >>confdefs.h <<_ACEOF
35802 #define SIZEOF_SHORT $ac_cv_sizeof_short
35803 _ACEOF
35804
35805
35806 echo "$as_me:$LINENO: checking for int" >&5
35807 echo $ECHO_N "checking for int... $ECHO_C" >&6
35808 if test "${ac_cv_type_int+set}" = set; then
35809   echo $ECHO_N "(cached) $ECHO_C" >&6
35810 else
35811   cat >conftest.$ac_ext <<_ACEOF
35812 /* confdefs.h.  */
35813 _ACEOF
35814 cat confdefs.h >>conftest.$ac_ext
35815 cat >>conftest.$ac_ext <<_ACEOF
35816 /* end confdefs.h.  */
35817 $ac_includes_default
35818 int
35819 main ()
35820 {
35821 if ((int *) 0)
35822   return 0;
35823 if (sizeof (int))
35824   return 0;
35825   ;
35826   return 0;
35827 }
35828 _ACEOF
35829 rm -f conftest.$ac_objext
35830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35831   (eval $ac_compile) 2>conftest.er1
35832   ac_status=$?
35833   grep -v '^ *+' conftest.er1 >conftest.err
35834   rm -f conftest.er1
35835   cat conftest.err >&5
35836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35837   (exit $ac_status); } &&
35838          { ac_try='test -z "$ac_c_werror_flag"
35839                          || test ! -s conftest.err'
35840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35841   (eval $ac_try) 2>&5
35842   ac_status=$?
35843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35844   (exit $ac_status); }; } &&
35845          { ac_try='test -s conftest.$ac_objext'
35846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847   (eval $ac_try) 2>&5
35848   ac_status=$?
35849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850   (exit $ac_status); }; }; then
35851   ac_cv_type_int=yes
35852 else
35853   echo "$as_me: failed program was:" >&5
35854 sed 's/^/| /' conftest.$ac_ext >&5
35855
35856 ac_cv_type_int=no
35857 fi
35858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35859 fi
35860 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35861 echo "${ECHO_T}$ac_cv_type_int" >&6
35862
35863 echo "$as_me:$LINENO: checking size of int" >&5
35864 echo $ECHO_N "checking size of int... $ECHO_C" >&6
35865 if test "${ac_cv_sizeof_int+set}" = set; then
35866   echo $ECHO_N "(cached) $ECHO_C" >&6
35867 else
35868   if test "$ac_cv_type_int" = yes; then
35869   # The cast to unsigned long works around a bug in the HP C Compiler
35870   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35871   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35872   # This bug is HP SR number 8606223364.
35873   if test "$cross_compiling" = yes; then
35874   # Depending upon the size, compute the lo and hi bounds.
35875 cat >conftest.$ac_ext <<_ACEOF
35876 /* confdefs.h.  */
35877 _ACEOF
35878 cat confdefs.h >>conftest.$ac_ext
35879 cat >>conftest.$ac_ext <<_ACEOF
35880 /* end confdefs.h.  */
35881 $ac_includes_default
35882 int
35883 main ()
35884 {
35885 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
35886 test_array [0] = 0
35887
35888   ;
35889   return 0;
35890 }
35891 _ACEOF
35892 rm -f conftest.$ac_objext
35893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35894   (eval $ac_compile) 2>conftest.er1
35895   ac_status=$?
35896   grep -v '^ *+' conftest.er1 >conftest.err
35897   rm -f conftest.er1
35898   cat conftest.err >&5
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); } &&
35901          { ac_try='test -z "$ac_c_werror_flag"
35902                          || test ! -s conftest.err'
35903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904   (eval $ac_try) 2>&5
35905   ac_status=$?
35906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907   (exit $ac_status); }; } &&
35908          { ac_try='test -s conftest.$ac_objext'
35909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910   (eval $ac_try) 2>&5
35911   ac_status=$?
35912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913   (exit $ac_status); }; }; then
35914   ac_lo=0 ac_mid=0
35915   while :; do
35916     cat >conftest.$ac_ext <<_ACEOF
35917 /* confdefs.h.  */
35918 _ACEOF
35919 cat confdefs.h >>conftest.$ac_ext
35920 cat >>conftest.$ac_ext <<_ACEOF
35921 /* end confdefs.h.  */
35922 $ac_includes_default
35923 int
35924 main ()
35925 {
35926 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
35927 test_array [0] = 0
35928
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext
35934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35935   (eval $ac_compile) 2>conftest.er1
35936   ac_status=$?
35937   grep -v '^ *+' conftest.er1 >conftest.err
35938   rm -f conftest.er1
35939   cat conftest.err >&5
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); } &&
35942          { ac_try='test -z "$ac_c_werror_flag"
35943                          || test ! -s conftest.err'
35944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945   (eval $ac_try) 2>&5
35946   ac_status=$?
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); }; } &&
35949          { ac_try='test -s conftest.$ac_objext'
35950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951   (eval $ac_try) 2>&5
35952   ac_status=$?
35953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954   (exit $ac_status); }; }; then
35955   ac_hi=$ac_mid; break
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ac_lo=`expr $ac_mid + 1`
35961                     if test $ac_lo -le $ac_mid; then
35962                       ac_lo= ac_hi=
35963                       break
35964                     fi
35965                     ac_mid=`expr 2 '*' $ac_mid + 1`
35966 fi
35967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35968   done
35969 else
35970   echo "$as_me: failed program was:" >&5
35971 sed 's/^/| /' conftest.$ac_ext >&5
35972
35973 cat >conftest.$ac_ext <<_ACEOF
35974 /* confdefs.h.  */
35975 _ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h.  */
35979 $ac_includes_default
35980 int
35981 main ()
35982 {
35983 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
35984 test_array [0] = 0
35985
35986   ;
35987   return 0;
35988 }
35989 _ACEOF
35990 rm -f conftest.$ac_objext
35991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35992   (eval $ac_compile) 2>conftest.er1
35993   ac_status=$?
35994   grep -v '^ *+' conftest.er1 >conftest.err
35995   rm -f conftest.er1
35996   cat conftest.err >&5
35997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35998   (exit $ac_status); } &&
35999          { ac_try='test -z "$ac_c_werror_flag"
36000                          || test ! -s conftest.err'
36001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36002   (eval $ac_try) 2>&5
36003   ac_status=$?
36004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005   (exit $ac_status); }; } &&
36006          { ac_try='test -s conftest.$ac_objext'
36007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36008   (eval $ac_try) 2>&5
36009   ac_status=$?
36010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36011   (exit $ac_status); }; }; then
36012   ac_hi=-1 ac_mid=-1
36013   while :; do
36014     cat >conftest.$ac_ext <<_ACEOF
36015 /* confdefs.h.  */
36016 _ACEOF
36017 cat confdefs.h >>conftest.$ac_ext
36018 cat >>conftest.$ac_ext <<_ACEOF
36019 /* end confdefs.h.  */
36020 $ac_includes_default
36021 int
36022 main ()
36023 {
36024 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
36025 test_array [0] = 0
36026
36027   ;
36028   return 0;
36029 }
36030 _ACEOF
36031 rm -f conftest.$ac_objext
36032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36033   (eval $ac_compile) 2>conftest.er1
36034   ac_status=$?
36035   grep -v '^ *+' conftest.er1 >conftest.err
36036   rm -f conftest.er1
36037   cat conftest.err >&5
36038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36039   (exit $ac_status); } &&
36040          { ac_try='test -z "$ac_c_werror_flag"
36041                          || test ! -s conftest.err'
36042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36043   (eval $ac_try) 2>&5
36044   ac_status=$?
36045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36046   (exit $ac_status); }; } &&
36047          { ac_try='test -s conftest.$ac_objext'
36048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36049   (eval $ac_try) 2>&5
36050   ac_status=$?
36051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052   (exit $ac_status); }; }; then
36053   ac_lo=$ac_mid; break
36054 else
36055   echo "$as_me: failed program was:" >&5
36056 sed 's/^/| /' conftest.$ac_ext >&5
36057
36058 ac_hi=`expr '(' $ac_mid ')' - 1`
36059                        if test $ac_mid -le $ac_hi; then
36060                          ac_lo= ac_hi=
36061                          break
36062                        fi
36063                        ac_mid=`expr 2 '*' $ac_mid`
36064 fi
36065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36066   done
36067 else
36068   echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36070
36071 ac_lo= ac_hi=
36072 fi
36073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36074 fi
36075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36076 # Binary search between lo and hi bounds.
36077 while test "x$ac_lo" != "x$ac_hi"; do
36078   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36079   cat >conftest.$ac_ext <<_ACEOF
36080 /* confdefs.h.  */
36081 _ACEOF
36082 cat confdefs.h >>conftest.$ac_ext
36083 cat >>conftest.$ac_ext <<_ACEOF
36084 /* end confdefs.h.  */
36085 $ac_includes_default
36086 int
36087 main ()
36088 {
36089 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
36090 test_array [0] = 0
36091
36092   ;
36093   return 0;
36094 }
36095 _ACEOF
36096 rm -f conftest.$ac_objext
36097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36098   (eval $ac_compile) 2>conftest.er1
36099   ac_status=$?
36100   grep -v '^ *+' conftest.er1 >conftest.err
36101   rm -f conftest.er1
36102   cat conftest.err >&5
36103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104   (exit $ac_status); } &&
36105          { ac_try='test -z "$ac_c_werror_flag"
36106                          || test ! -s conftest.err'
36107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36108   (eval $ac_try) 2>&5
36109   ac_status=$?
36110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111   (exit $ac_status); }; } &&
36112          { ac_try='test -s conftest.$ac_objext'
36113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114   (eval $ac_try) 2>&5
36115   ac_status=$?
36116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117   (exit $ac_status); }; }; then
36118   ac_hi=$ac_mid
36119 else
36120   echo "$as_me: failed program was:" >&5
36121 sed 's/^/| /' conftest.$ac_ext >&5
36122
36123 ac_lo=`expr '(' $ac_mid ')' + 1`
36124 fi
36125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36126 done
36127 case $ac_lo in
36128 ?*) ac_cv_sizeof_int=$ac_lo;;
36129 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36130 See \`config.log' for more details." >&5
36131 echo "$as_me: error: cannot compute sizeof (int), 77
36132 See \`config.log' for more details." >&2;}
36133    { (exit 1); exit 1; }; } ;;
36134 esac
36135 else
36136   if test "$cross_compiling" = yes; then
36137   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36138 See \`config.log' for more details." >&5
36139 echo "$as_me: error: cannot run test program while cross compiling
36140 See \`config.log' for more details." >&2;}
36141    { (exit 1); exit 1; }; }
36142 else
36143   cat >conftest.$ac_ext <<_ACEOF
36144 /* confdefs.h.  */
36145 _ACEOF
36146 cat confdefs.h >>conftest.$ac_ext
36147 cat >>conftest.$ac_ext <<_ACEOF
36148 /* end confdefs.h.  */
36149 $ac_includes_default
36150 long longval () { return (long) (sizeof (int)); }
36151 unsigned long ulongval () { return (long) (sizeof (int)); }
36152 #include <stdio.h>
36153 #include <stdlib.h>
36154 int
36155 main ()
36156 {
36157
36158   FILE *f = fopen ("conftest.val", "w");
36159   if (! f)
36160     exit (1);
36161   if (((long) (sizeof (int))) < 0)
36162     {
36163       long i = longval ();
36164       if (i != ((long) (sizeof (int))))
36165         exit (1);
36166       fprintf (f, "%ld\n", i);
36167     }
36168   else
36169     {
36170       unsigned long i = ulongval ();
36171       if (i != ((long) (sizeof (int))))
36172         exit (1);
36173       fprintf (f, "%lu\n", i);
36174     }
36175   exit (ferror (f) || fclose (f) != 0);
36176
36177   ;
36178   return 0;
36179 }
36180 _ACEOF
36181 rm -f conftest$ac_exeext
36182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36183   (eval $ac_link) 2>&5
36184   ac_status=$?
36185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188   (eval $ac_try) 2>&5
36189   ac_status=$?
36190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191   (exit $ac_status); }; }; then
36192   ac_cv_sizeof_int=`cat conftest.val`
36193 else
36194   echo "$as_me: program exited with status $ac_status" >&5
36195 echo "$as_me: failed program was:" >&5
36196 sed 's/^/| /' conftest.$ac_ext >&5
36197
36198 ( exit $ac_status )
36199 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
36200 See \`config.log' for more details." >&5
36201 echo "$as_me: error: cannot compute sizeof (int), 77
36202 See \`config.log' for more details." >&2;}
36203    { (exit 1); exit 1; }; }
36204 fi
36205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36206 fi
36207 fi
36208 rm -f conftest.val
36209 else
36210   ac_cv_sizeof_int=0
36211 fi
36212 fi
36213 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36214 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
36215 cat >>confdefs.h <<_ACEOF
36216 #define SIZEOF_INT $ac_cv_sizeof_int
36217 _ACEOF
36218
36219
36220 echo "$as_me:$LINENO: checking for long" >&5
36221 echo $ECHO_N "checking for long... $ECHO_C" >&6
36222 if test "${ac_cv_type_long+set}" = set; then
36223   echo $ECHO_N "(cached) $ECHO_C" >&6
36224 else
36225   cat >conftest.$ac_ext <<_ACEOF
36226 /* confdefs.h.  */
36227 _ACEOF
36228 cat confdefs.h >>conftest.$ac_ext
36229 cat >>conftest.$ac_ext <<_ACEOF
36230 /* end confdefs.h.  */
36231 $ac_includes_default
36232 int
36233 main ()
36234 {
36235 if ((long *) 0)
36236   return 0;
36237 if (sizeof (long))
36238   return 0;
36239   ;
36240   return 0;
36241 }
36242 _ACEOF
36243 rm -f conftest.$ac_objext
36244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36245   (eval $ac_compile) 2>conftest.er1
36246   ac_status=$?
36247   grep -v '^ *+' conftest.er1 >conftest.err
36248   rm -f conftest.er1
36249   cat conftest.err >&5
36250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36251   (exit $ac_status); } &&
36252          { ac_try='test -z "$ac_c_werror_flag"
36253                          || test ! -s conftest.err'
36254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36255   (eval $ac_try) 2>&5
36256   ac_status=$?
36257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258   (exit $ac_status); }; } &&
36259          { ac_try='test -s conftest.$ac_objext'
36260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36261   (eval $ac_try) 2>&5
36262   ac_status=$?
36263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264   (exit $ac_status); }; }; then
36265   ac_cv_type_long=yes
36266 else
36267   echo "$as_me: failed program was:" >&5
36268 sed 's/^/| /' conftest.$ac_ext >&5
36269
36270 ac_cv_type_long=no
36271 fi
36272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36273 fi
36274 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
36275 echo "${ECHO_T}$ac_cv_type_long" >&6
36276
36277 echo "$as_me:$LINENO: checking size of long" >&5
36278 echo $ECHO_N "checking size of long... $ECHO_C" >&6
36279 if test "${ac_cv_sizeof_long+set}" = set; then
36280   echo $ECHO_N "(cached) $ECHO_C" >&6
36281 else
36282   if test "$ac_cv_type_long" = yes; then
36283   # The cast to unsigned long works around a bug in the HP C Compiler
36284   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36285   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36286   # This bug is HP SR number 8606223364.
36287   if test "$cross_compiling" = yes; then
36288   # Depending upon the size, compute the lo and hi bounds.
36289 cat >conftest.$ac_ext <<_ACEOF
36290 /* confdefs.h.  */
36291 _ACEOF
36292 cat confdefs.h >>conftest.$ac_ext
36293 cat >>conftest.$ac_ext <<_ACEOF
36294 /* end confdefs.h.  */
36295 $ac_includes_default
36296 int
36297 main ()
36298 {
36299 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
36300 test_array [0] = 0
36301
36302   ;
36303   return 0;
36304 }
36305 _ACEOF
36306 rm -f conftest.$ac_objext
36307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36308   (eval $ac_compile) 2>conftest.er1
36309   ac_status=$?
36310   grep -v '^ *+' conftest.er1 >conftest.err
36311   rm -f conftest.er1
36312   cat conftest.err >&5
36313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36314   (exit $ac_status); } &&
36315          { ac_try='test -z "$ac_c_werror_flag"
36316                          || test ! -s conftest.err'
36317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318   (eval $ac_try) 2>&5
36319   ac_status=$?
36320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321   (exit $ac_status); }; } &&
36322          { ac_try='test -s conftest.$ac_objext'
36323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36324   (eval $ac_try) 2>&5
36325   ac_status=$?
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); }; }; then
36328   ac_lo=0 ac_mid=0
36329   while :; do
36330     cat >conftest.$ac_ext <<_ACEOF
36331 /* confdefs.h.  */
36332 _ACEOF
36333 cat confdefs.h >>conftest.$ac_ext
36334 cat >>conftest.$ac_ext <<_ACEOF
36335 /* end confdefs.h.  */
36336 $ac_includes_default
36337 int
36338 main ()
36339 {
36340 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36341 test_array [0] = 0
36342
36343   ;
36344   return 0;
36345 }
36346 _ACEOF
36347 rm -f conftest.$ac_objext
36348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36349   (eval $ac_compile) 2>conftest.er1
36350   ac_status=$?
36351   grep -v '^ *+' conftest.er1 >conftest.err
36352   rm -f conftest.er1
36353   cat conftest.err >&5
36354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355   (exit $ac_status); } &&
36356          { ac_try='test -z "$ac_c_werror_flag"
36357                          || test ! -s conftest.err'
36358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359   (eval $ac_try) 2>&5
36360   ac_status=$?
36361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362   (exit $ac_status); }; } &&
36363          { ac_try='test -s conftest.$ac_objext'
36364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365   (eval $ac_try) 2>&5
36366   ac_status=$?
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); }; }; then
36369   ac_hi=$ac_mid; break
36370 else
36371   echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374 ac_lo=`expr $ac_mid + 1`
36375                     if test $ac_lo -le $ac_mid; then
36376                       ac_lo= ac_hi=
36377                       break
36378                     fi
36379                     ac_mid=`expr 2 '*' $ac_mid + 1`
36380 fi
36381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36382   done
36383 else
36384   echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36386
36387 cat >conftest.$ac_ext <<_ACEOF
36388 /* confdefs.h.  */
36389 _ACEOF
36390 cat confdefs.h >>conftest.$ac_ext
36391 cat >>conftest.$ac_ext <<_ACEOF
36392 /* end confdefs.h.  */
36393 $ac_includes_default
36394 int
36395 main ()
36396 {
36397 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
36398 test_array [0] = 0
36399
36400   ;
36401   return 0;
36402 }
36403 _ACEOF
36404 rm -f conftest.$ac_objext
36405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36406   (eval $ac_compile) 2>conftest.er1
36407   ac_status=$?
36408   grep -v '^ *+' conftest.er1 >conftest.err
36409   rm -f conftest.er1
36410   cat conftest.err >&5
36411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36412   (exit $ac_status); } &&
36413          { ac_try='test -z "$ac_c_werror_flag"
36414                          || test ! -s conftest.err'
36415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36416   (eval $ac_try) 2>&5
36417   ac_status=$?
36418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36419   (exit $ac_status); }; } &&
36420          { ac_try='test -s conftest.$ac_objext'
36421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36422   (eval $ac_try) 2>&5
36423   ac_status=$?
36424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36425   (exit $ac_status); }; }; then
36426   ac_hi=-1 ac_mid=-1
36427   while :; do
36428     cat >conftest.$ac_ext <<_ACEOF
36429 /* confdefs.h.  */
36430 _ACEOF
36431 cat confdefs.h >>conftest.$ac_ext
36432 cat >>conftest.$ac_ext <<_ACEOF
36433 /* end confdefs.h.  */
36434 $ac_includes_default
36435 int
36436 main ()
36437 {
36438 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
36439 test_array [0] = 0
36440
36441   ;
36442   return 0;
36443 }
36444 _ACEOF
36445 rm -f conftest.$ac_objext
36446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36447   (eval $ac_compile) 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } &&
36454          { ac_try='test -z "$ac_c_werror_flag"
36455                          || test ! -s conftest.err'
36456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457   (eval $ac_try) 2>&5
36458   ac_status=$?
36459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460   (exit $ac_status); }; } &&
36461          { ac_try='test -s conftest.$ac_objext'
36462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463   (eval $ac_try) 2>&5
36464   ac_status=$?
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); }; }; then
36467   ac_lo=$ac_mid; break
36468 else
36469   echo "$as_me: failed program was:" >&5
36470 sed 's/^/| /' conftest.$ac_ext >&5
36471
36472 ac_hi=`expr '(' $ac_mid ')' - 1`
36473                        if test $ac_mid -le $ac_hi; then
36474                          ac_lo= ac_hi=
36475                          break
36476                        fi
36477                        ac_mid=`expr 2 '*' $ac_mid`
36478 fi
36479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36480   done
36481 else
36482   echo "$as_me: failed program was:" >&5
36483 sed 's/^/| /' conftest.$ac_ext >&5
36484
36485 ac_lo= ac_hi=
36486 fi
36487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36488 fi
36489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36490 # Binary search between lo and hi bounds.
36491 while test "x$ac_lo" != "x$ac_hi"; do
36492   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36493   cat >conftest.$ac_ext <<_ACEOF
36494 /* confdefs.h.  */
36495 _ACEOF
36496 cat confdefs.h >>conftest.$ac_ext
36497 cat >>conftest.$ac_ext <<_ACEOF
36498 /* end confdefs.h.  */
36499 $ac_includes_default
36500 int
36501 main ()
36502 {
36503 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
36504 test_array [0] = 0
36505
36506   ;
36507   return 0;
36508 }
36509 _ACEOF
36510 rm -f conftest.$ac_objext
36511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36512   (eval $ac_compile) 2>conftest.er1
36513   ac_status=$?
36514   grep -v '^ *+' conftest.er1 >conftest.err
36515   rm -f conftest.er1
36516   cat conftest.err >&5
36517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518   (exit $ac_status); } &&
36519          { ac_try='test -z "$ac_c_werror_flag"
36520                          || test ! -s conftest.err'
36521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36522   (eval $ac_try) 2>&5
36523   ac_status=$?
36524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36525   (exit $ac_status); }; } &&
36526          { ac_try='test -s conftest.$ac_objext'
36527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36528   (eval $ac_try) 2>&5
36529   ac_status=$?
36530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36531   (exit $ac_status); }; }; then
36532   ac_hi=$ac_mid
36533 else
36534   echo "$as_me: failed program was:" >&5
36535 sed 's/^/| /' conftest.$ac_ext >&5
36536
36537 ac_lo=`expr '(' $ac_mid ')' + 1`
36538 fi
36539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36540 done
36541 case $ac_lo in
36542 ?*) ac_cv_sizeof_long=$ac_lo;;
36543 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36544 See \`config.log' for more details." >&5
36545 echo "$as_me: error: cannot compute sizeof (long), 77
36546 See \`config.log' for more details." >&2;}
36547    { (exit 1); exit 1; }; } ;;
36548 esac
36549 else
36550   if test "$cross_compiling" = yes; then
36551   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36552 See \`config.log' for more details." >&5
36553 echo "$as_me: error: cannot run test program while cross compiling
36554 See \`config.log' for more details." >&2;}
36555    { (exit 1); exit 1; }; }
36556 else
36557   cat >conftest.$ac_ext <<_ACEOF
36558 /* confdefs.h.  */
36559 _ACEOF
36560 cat confdefs.h >>conftest.$ac_ext
36561 cat >>conftest.$ac_ext <<_ACEOF
36562 /* end confdefs.h.  */
36563 $ac_includes_default
36564 long longval () { return (long) (sizeof (long)); }
36565 unsigned long ulongval () { return (long) (sizeof (long)); }
36566 #include <stdio.h>
36567 #include <stdlib.h>
36568 int
36569 main ()
36570 {
36571
36572   FILE *f = fopen ("conftest.val", "w");
36573   if (! f)
36574     exit (1);
36575   if (((long) (sizeof (long))) < 0)
36576     {
36577       long i = longval ();
36578       if (i != ((long) (sizeof (long))))
36579         exit (1);
36580       fprintf (f, "%ld\n", i);
36581     }
36582   else
36583     {
36584       unsigned long i = ulongval ();
36585       if (i != ((long) (sizeof (long))))
36586         exit (1);
36587       fprintf (f, "%lu\n", i);
36588     }
36589   exit (ferror (f) || fclose (f) != 0);
36590
36591   ;
36592   return 0;
36593 }
36594 _ACEOF
36595 rm -f conftest$ac_exeext
36596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36597   (eval $ac_link) 2>&5
36598   ac_status=$?
36599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36602   (eval $ac_try) 2>&5
36603   ac_status=$?
36604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36605   (exit $ac_status); }; }; then
36606   ac_cv_sizeof_long=`cat conftest.val`
36607 else
36608   echo "$as_me: program exited with status $ac_status" >&5
36609 echo "$as_me: failed program was:" >&5
36610 sed 's/^/| /' conftest.$ac_ext >&5
36611
36612 ( exit $ac_status )
36613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
36614 See \`config.log' for more details." >&5
36615 echo "$as_me: error: cannot compute sizeof (long), 77
36616 See \`config.log' for more details." >&2;}
36617    { (exit 1); exit 1; }; }
36618 fi
36619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36620 fi
36621 fi
36622 rm -f conftest.val
36623 else
36624   ac_cv_sizeof_long=0
36625 fi
36626 fi
36627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
36628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
36629 cat >>confdefs.h <<_ACEOF
36630 #define SIZEOF_LONG $ac_cv_sizeof_long
36631 _ACEOF
36632
36633
36634 echo "$as_me:$LINENO: checking for long long" >&5
36635 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36636 if test "${ac_cv_type_long_long+set}" = set; then
36637   echo $ECHO_N "(cached) $ECHO_C" >&6
36638 else
36639   cat >conftest.$ac_ext <<_ACEOF
36640 /* confdefs.h.  */
36641 _ACEOF
36642 cat confdefs.h >>conftest.$ac_ext
36643 cat >>conftest.$ac_ext <<_ACEOF
36644 /* end confdefs.h.  */
36645 $ac_includes_default
36646 int
36647 main ()
36648 {
36649 if ((long long *) 0)
36650   return 0;
36651 if (sizeof (long long))
36652   return 0;
36653   ;
36654   return 0;
36655 }
36656 _ACEOF
36657 rm -f conftest.$ac_objext
36658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36659   (eval $ac_compile) 2>conftest.er1
36660   ac_status=$?
36661   grep -v '^ *+' conftest.er1 >conftest.err
36662   rm -f conftest.er1
36663   cat conftest.err >&5
36664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665   (exit $ac_status); } &&
36666          { ac_try='test -z "$ac_c_werror_flag"
36667                          || test ! -s conftest.err'
36668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36669   (eval $ac_try) 2>&5
36670   ac_status=$?
36671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36672   (exit $ac_status); }; } &&
36673          { ac_try='test -s conftest.$ac_objext'
36674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36675   (eval $ac_try) 2>&5
36676   ac_status=$?
36677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36678   (exit $ac_status); }; }; then
36679   ac_cv_type_long_long=yes
36680 else
36681   echo "$as_me: failed program was:" >&5
36682 sed 's/^/| /' conftest.$ac_ext >&5
36683
36684 ac_cv_type_long_long=no
36685 fi
36686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36687 fi
36688 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36689 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36690
36691 echo "$as_me:$LINENO: checking size of long long" >&5
36692 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36693 if test "${ac_cv_sizeof_long_long+set}" = set; then
36694   echo $ECHO_N "(cached) $ECHO_C" >&6
36695 else
36696   if test "$ac_cv_type_long_long" = yes; then
36697   # The cast to unsigned long works around a bug in the HP C Compiler
36698   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36699   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36700   # This bug is HP SR number 8606223364.
36701   if test "$cross_compiling" = yes; then
36702   # Depending upon the size, compute the lo and hi bounds.
36703 cat >conftest.$ac_ext <<_ACEOF
36704 /* confdefs.h.  */
36705 _ACEOF
36706 cat confdefs.h >>conftest.$ac_ext
36707 cat >>conftest.$ac_ext <<_ACEOF
36708 /* end confdefs.h.  */
36709 $ac_includes_default
36710 int
36711 main ()
36712 {
36713 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36714 test_array [0] = 0
36715
36716   ;
36717   return 0;
36718 }
36719 _ACEOF
36720 rm -f conftest.$ac_objext
36721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36722   (eval $ac_compile) 2>conftest.er1
36723   ac_status=$?
36724   grep -v '^ *+' conftest.er1 >conftest.err
36725   rm -f conftest.er1
36726   cat conftest.err >&5
36727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728   (exit $ac_status); } &&
36729          { ac_try='test -z "$ac_c_werror_flag"
36730                          || test ! -s conftest.err'
36731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36732   (eval $ac_try) 2>&5
36733   ac_status=$?
36734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735   (exit $ac_status); }; } &&
36736          { ac_try='test -s conftest.$ac_objext'
36737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36738   (eval $ac_try) 2>&5
36739   ac_status=$?
36740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36741   (exit $ac_status); }; }; then
36742   ac_lo=0 ac_mid=0
36743   while :; do
36744     cat >conftest.$ac_ext <<_ACEOF
36745 /* confdefs.h.  */
36746 _ACEOF
36747 cat confdefs.h >>conftest.$ac_ext
36748 cat >>conftest.$ac_ext <<_ACEOF
36749 /* end confdefs.h.  */
36750 $ac_includes_default
36751 int
36752 main ()
36753 {
36754 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36755 test_array [0] = 0
36756
36757   ;
36758   return 0;
36759 }
36760 _ACEOF
36761 rm -f conftest.$ac_objext
36762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36763   (eval $ac_compile) 2>conftest.er1
36764   ac_status=$?
36765   grep -v '^ *+' conftest.er1 >conftest.err
36766   rm -f conftest.er1
36767   cat conftest.err >&5
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); } &&
36770          { ac_try='test -z "$ac_c_werror_flag"
36771                          || test ! -s conftest.err'
36772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36773   (eval $ac_try) 2>&5
36774   ac_status=$?
36775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776   (exit $ac_status); }; } &&
36777          { ac_try='test -s conftest.$ac_objext'
36778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36779   (eval $ac_try) 2>&5
36780   ac_status=$?
36781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36782   (exit $ac_status); }; }; then
36783   ac_hi=$ac_mid; break
36784 else
36785   echo "$as_me: failed program was:" >&5
36786 sed 's/^/| /' conftest.$ac_ext >&5
36787
36788 ac_lo=`expr $ac_mid + 1`
36789                     if test $ac_lo -le $ac_mid; then
36790                       ac_lo= ac_hi=
36791                       break
36792                     fi
36793                     ac_mid=`expr 2 '*' $ac_mid + 1`
36794 fi
36795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36796   done
36797 else
36798   echo "$as_me: failed program was:" >&5
36799 sed 's/^/| /' conftest.$ac_ext >&5
36800
36801 cat >conftest.$ac_ext <<_ACEOF
36802 /* confdefs.h.  */
36803 _ACEOF
36804 cat confdefs.h >>conftest.$ac_ext
36805 cat >>conftest.$ac_ext <<_ACEOF
36806 /* end confdefs.h.  */
36807 $ac_includes_default
36808 int
36809 main ()
36810 {
36811 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36812 test_array [0] = 0
36813
36814   ;
36815   return 0;
36816 }
36817 _ACEOF
36818 rm -f conftest.$ac_objext
36819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36820   (eval $ac_compile) 2>conftest.er1
36821   ac_status=$?
36822   grep -v '^ *+' conftest.er1 >conftest.err
36823   rm -f conftest.er1
36824   cat conftest.err >&5
36825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826   (exit $ac_status); } &&
36827          { ac_try='test -z "$ac_c_werror_flag"
36828                          || test ! -s conftest.err'
36829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36830   (eval $ac_try) 2>&5
36831   ac_status=$?
36832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36833   (exit $ac_status); }; } &&
36834          { ac_try='test -s conftest.$ac_objext'
36835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36836   (eval $ac_try) 2>&5
36837   ac_status=$?
36838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36839   (exit $ac_status); }; }; then
36840   ac_hi=-1 ac_mid=-1
36841   while :; do
36842     cat >conftest.$ac_ext <<_ACEOF
36843 /* confdefs.h.  */
36844 _ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h.  */
36848 $ac_includes_default
36849 int
36850 main ()
36851 {
36852 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36853 test_array [0] = 0
36854
36855   ;
36856   return 0;
36857 }
36858 _ACEOF
36859 rm -f conftest.$ac_objext
36860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36861   (eval $ac_compile) 2>conftest.er1
36862   ac_status=$?
36863   grep -v '^ *+' conftest.er1 >conftest.err
36864   rm -f conftest.er1
36865   cat conftest.err >&5
36866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36867   (exit $ac_status); } &&
36868          { ac_try='test -z "$ac_c_werror_flag"
36869                          || test ! -s conftest.err'
36870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36871   (eval $ac_try) 2>&5
36872   ac_status=$?
36873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36874   (exit $ac_status); }; } &&
36875          { ac_try='test -s conftest.$ac_objext'
36876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877   (eval $ac_try) 2>&5
36878   ac_status=$?
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); }; }; then
36881   ac_lo=$ac_mid; break
36882 else
36883   echo "$as_me: failed program was:" >&5
36884 sed 's/^/| /' conftest.$ac_ext >&5
36885
36886 ac_hi=`expr '(' $ac_mid ')' - 1`
36887                        if test $ac_mid -le $ac_hi; then
36888                          ac_lo= ac_hi=
36889                          break
36890                        fi
36891                        ac_mid=`expr 2 '*' $ac_mid`
36892 fi
36893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36894   done
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899 ac_lo= ac_hi=
36900 fi
36901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36902 fi
36903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36904 # Binary search between lo and hi bounds.
36905 while test "x$ac_lo" != "x$ac_hi"; do
36906   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36907   cat >conftest.$ac_ext <<_ACEOF
36908 /* confdefs.h.  */
36909 _ACEOF
36910 cat confdefs.h >>conftest.$ac_ext
36911 cat >>conftest.$ac_ext <<_ACEOF
36912 /* end confdefs.h.  */
36913 $ac_includes_default
36914 int
36915 main ()
36916 {
36917 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36918 test_array [0] = 0
36919
36920   ;
36921   return 0;
36922 }
36923 _ACEOF
36924 rm -f conftest.$ac_objext
36925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36926   (eval $ac_compile) 2>conftest.er1
36927   ac_status=$?
36928   grep -v '^ *+' conftest.er1 >conftest.err
36929   rm -f conftest.er1
36930   cat conftest.err >&5
36931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36932   (exit $ac_status); } &&
36933          { ac_try='test -z "$ac_c_werror_flag"
36934                          || test ! -s conftest.err'
36935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36936   (eval $ac_try) 2>&5
36937   ac_status=$?
36938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939   (exit $ac_status); }; } &&
36940          { ac_try='test -s conftest.$ac_objext'
36941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36942   (eval $ac_try) 2>&5
36943   ac_status=$?
36944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36945   (exit $ac_status); }; }; then
36946   ac_hi=$ac_mid
36947 else
36948   echo "$as_me: failed program was:" >&5
36949 sed 's/^/| /' conftest.$ac_ext >&5
36950
36951 ac_lo=`expr '(' $ac_mid ')' + 1`
36952 fi
36953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36954 done
36955 case $ac_lo in
36956 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36957 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36958 See \`config.log' for more details." >&5
36959 echo "$as_me: error: cannot compute sizeof (long long), 77
36960 See \`config.log' for more details." >&2;}
36961    { (exit 1); exit 1; }; } ;;
36962 esac
36963 else
36964   if test "$cross_compiling" = yes; then
36965   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36966 See \`config.log' for more details." >&5
36967 echo "$as_me: error: cannot run test program while cross compiling
36968 See \`config.log' for more details." >&2;}
36969    { (exit 1); exit 1; }; }
36970 else
36971   cat >conftest.$ac_ext <<_ACEOF
36972 /* confdefs.h.  */
36973 _ACEOF
36974 cat confdefs.h >>conftest.$ac_ext
36975 cat >>conftest.$ac_ext <<_ACEOF
36976 /* end confdefs.h.  */
36977 $ac_includes_default
36978 long longval () { return (long) (sizeof (long long)); }
36979 unsigned long ulongval () { return (long) (sizeof (long long)); }
36980 #include <stdio.h>
36981 #include <stdlib.h>
36982 int
36983 main ()
36984 {
36985
36986   FILE *f = fopen ("conftest.val", "w");
36987   if (! f)
36988     exit (1);
36989   if (((long) (sizeof (long long))) < 0)
36990     {
36991       long i = longval ();
36992       if (i != ((long) (sizeof (long long))))
36993         exit (1);
36994       fprintf (f, "%ld\n", i);
36995     }
36996   else
36997     {
36998       unsigned long i = ulongval ();
36999       if (i != ((long) (sizeof (long long))))
37000         exit (1);
37001       fprintf (f, "%lu\n", i);
37002     }
37003   exit (ferror (f) || fclose (f) != 0);
37004
37005   ;
37006   return 0;
37007 }
37008 _ACEOF
37009 rm -f conftest$ac_exeext
37010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37011   (eval $ac_link) 2>&5
37012   ac_status=$?
37013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37016   (eval $ac_try) 2>&5
37017   ac_status=$?
37018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); }; }; then
37020   ac_cv_sizeof_long_long=`cat conftest.val`
37021 else
37022   echo "$as_me: program exited with status $ac_status" >&5
37023 echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026 ( exit $ac_status )
37027 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
37028 See \`config.log' for more details." >&5
37029 echo "$as_me: error: cannot compute sizeof (long long), 77
37030 See \`config.log' for more details." >&2;}
37031    { (exit 1); exit 1; }; }
37032 fi
37033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37034 fi
37035 fi
37036 rm -f conftest.val
37037 else
37038   ac_cv_sizeof_long_long=0
37039 fi
37040 fi
37041 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
37042 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
37043 cat >>confdefs.h <<_ACEOF
37044 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
37045 _ACEOF
37046
37047
37048 echo "$as_me:$LINENO: checking for wchar_t" >&5
37049 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
37050 if test "${ac_cv_type_wchar_t+set}" = set; then
37051   echo $ECHO_N "(cached) $ECHO_C" >&6
37052 else
37053   cat >conftest.$ac_ext <<_ACEOF
37054 /* confdefs.h.  */
37055 _ACEOF
37056 cat confdefs.h >>conftest.$ac_ext
37057 cat >>conftest.$ac_ext <<_ACEOF
37058 /* end confdefs.h.  */
37059 $ac_includes_default
37060 int
37061 main ()
37062 {
37063 if ((wchar_t *) 0)
37064   return 0;
37065 if (sizeof (wchar_t))
37066   return 0;
37067   ;
37068   return 0;
37069 }
37070 _ACEOF
37071 rm -f conftest.$ac_objext
37072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37073   (eval $ac_compile) 2>conftest.er1
37074   ac_status=$?
37075   grep -v '^ *+' conftest.er1 >conftest.err
37076   rm -f conftest.er1
37077   cat conftest.err >&5
37078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079   (exit $ac_status); } &&
37080          { ac_try='test -z "$ac_c_werror_flag"
37081                          || test ! -s conftest.err'
37082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37083   (eval $ac_try) 2>&5
37084   ac_status=$?
37085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37086   (exit $ac_status); }; } &&
37087          { ac_try='test -s conftest.$ac_objext'
37088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37089   (eval $ac_try) 2>&5
37090   ac_status=$?
37091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37092   (exit $ac_status); }; }; then
37093   ac_cv_type_wchar_t=yes
37094 else
37095   echo "$as_me: failed program was:" >&5
37096 sed 's/^/| /' conftest.$ac_ext >&5
37097
37098 ac_cv_type_wchar_t=no
37099 fi
37100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37101 fi
37102 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
37103 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
37104
37105 echo "$as_me:$LINENO: checking size of wchar_t" >&5
37106 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
37107 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
37108   echo $ECHO_N "(cached) $ECHO_C" >&6
37109 else
37110   if test "$ac_cv_type_wchar_t" = yes; then
37111   # The cast to unsigned long works around a bug in the HP C Compiler
37112   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37113   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37114   # This bug is HP SR number 8606223364.
37115   if test "$cross_compiling" = yes; then
37116   # Depending upon the size, compute the lo and hi bounds.
37117 cat >conftest.$ac_ext <<_ACEOF
37118 /* confdefs.h.  */
37119 _ACEOF
37120 cat confdefs.h >>conftest.$ac_ext
37121 cat >>conftest.$ac_ext <<_ACEOF
37122 /* end confdefs.h.  */
37123 $ac_includes_default
37124 int
37125 main ()
37126 {
37127 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
37128 test_array [0] = 0
37129
37130   ;
37131   return 0;
37132 }
37133 _ACEOF
37134 rm -f conftest.$ac_objext
37135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37136   (eval $ac_compile) 2>conftest.er1
37137   ac_status=$?
37138   grep -v '^ *+' conftest.er1 >conftest.err
37139   rm -f conftest.er1
37140   cat conftest.err >&5
37141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); } &&
37143          { ac_try='test -z "$ac_c_werror_flag"
37144                          || test ! -s conftest.err'
37145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37146   (eval $ac_try) 2>&5
37147   ac_status=$?
37148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149   (exit $ac_status); }; } &&
37150          { ac_try='test -s conftest.$ac_objext'
37151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152   (eval $ac_try) 2>&5
37153   ac_status=$?
37154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155   (exit $ac_status); }; }; then
37156   ac_lo=0 ac_mid=0
37157   while :; do
37158     cat >conftest.$ac_ext <<_ACEOF
37159 /* confdefs.h.  */
37160 _ACEOF
37161 cat confdefs.h >>conftest.$ac_ext
37162 cat >>conftest.$ac_ext <<_ACEOF
37163 /* end confdefs.h.  */
37164 $ac_includes_default
37165 int
37166 main ()
37167 {
37168 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37169 test_array [0] = 0
37170
37171   ;
37172   return 0;
37173 }
37174 _ACEOF
37175 rm -f conftest.$ac_objext
37176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37177   (eval $ac_compile) 2>conftest.er1
37178   ac_status=$?
37179   grep -v '^ *+' conftest.er1 >conftest.err
37180   rm -f conftest.er1
37181   cat conftest.err >&5
37182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37183   (exit $ac_status); } &&
37184          { ac_try='test -z "$ac_c_werror_flag"
37185                          || test ! -s conftest.err'
37186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37187   (eval $ac_try) 2>&5
37188   ac_status=$?
37189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37190   (exit $ac_status); }; } &&
37191          { ac_try='test -s conftest.$ac_objext'
37192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37193   (eval $ac_try) 2>&5
37194   ac_status=$?
37195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37196   (exit $ac_status); }; }; then
37197   ac_hi=$ac_mid; break
37198 else
37199   echo "$as_me: failed program was:" >&5
37200 sed 's/^/| /' conftest.$ac_ext >&5
37201
37202 ac_lo=`expr $ac_mid + 1`
37203                     if test $ac_lo -le $ac_mid; then
37204                       ac_lo= ac_hi=
37205                       break
37206                     fi
37207                     ac_mid=`expr 2 '*' $ac_mid + 1`
37208 fi
37209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37210   done
37211 else
37212   echo "$as_me: failed program was:" >&5
37213 sed 's/^/| /' conftest.$ac_ext >&5
37214
37215 cat >conftest.$ac_ext <<_ACEOF
37216 /* confdefs.h.  */
37217 _ACEOF
37218 cat confdefs.h >>conftest.$ac_ext
37219 cat >>conftest.$ac_ext <<_ACEOF
37220 /* end confdefs.h.  */
37221 $ac_includes_default
37222 int
37223 main ()
37224 {
37225 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
37226 test_array [0] = 0
37227
37228   ;
37229   return 0;
37230 }
37231 _ACEOF
37232 rm -f conftest.$ac_objext
37233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37234   (eval $ac_compile) 2>conftest.er1
37235   ac_status=$?
37236   grep -v '^ *+' conftest.er1 >conftest.err
37237   rm -f conftest.er1
37238   cat conftest.err >&5
37239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240   (exit $ac_status); } &&
37241          { ac_try='test -z "$ac_c_werror_flag"
37242                          || test ! -s conftest.err'
37243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244   (eval $ac_try) 2>&5
37245   ac_status=$?
37246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247   (exit $ac_status); }; } &&
37248          { ac_try='test -s conftest.$ac_objext'
37249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37250   (eval $ac_try) 2>&5
37251   ac_status=$?
37252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37253   (exit $ac_status); }; }; then
37254   ac_hi=-1 ac_mid=-1
37255   while :; do
37256     cat >conftest.$ac_ext <<_ACEOF
37257 /* confdefs.h.  */
37258 _ACEOF
37259 cat confdefs.h >>conftest.$ac_ext
37260 cat >>conftest.$ac_ext <<_ACEOF
37261 /* end confdefs.h.  */
37262 $ac_includes_default
37263 int
37264 main ()
37265 {
37266 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
37267 test_array [0] = 0
37268
37269   ;
37270   return 0;
37271 }
37272 _ACEOF
37273 rm -f conftest.$ac_objext
37274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37275   (eval $ac_compile) 2>conftest.er1
37276   ac_status=$?
37277   grep -v '^ *+' conftest.er1 >conftest.err
37278   rm -f conftest.er1
37279   cat conftest.err >&5
37280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281   (exit $ac_status); } &&
37282          { ac_try='test -z "$ac_c_werror_flag"
37283                          || test ! -s conftest.err'
37284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37285   (eval $ac_try) 2>&5
37286   ac_status=$?
37287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288   (exit $ac_status); }; } &&
37289          { ac_try='test -s conftest.$ac_objext'
37290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291   (eval $ac_try) 2>&5
37292   ac_status=$?
37293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294   (exit $ac_status); }; }; then
37295   ac_lo=$ac_mid; break
37296 else
37297   echo "$as_me: failed program was:" >&5
37298 sed 's/^/| /' conftest.$ac_ext >&5
37299
37300 ac_hi=`expr '(' $ac_mid ')' - 1`
37301                        if test $ac_mid -le $ac_hi; then
37302                          ac_lo= ac_hi=
37303                          break
37304                        fi
37305                        ac_mid=`expr 2 '*' $ac_mid`
37306 fi
37307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37308   done
37309 else
37310   echo "$as_me: failed program was:" >&5
37311 sed 's/^/| /' conftest.$ac_ext >&5
37312
37313 ac_lo= ac_hi=
37314 fi
37315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37316 fi
37317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37318 # Binary search between lo and hi bounds.
37319 while test "x$ac_lo" != "x$ac_hi"; do
37320   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37321   cat >conftest.$ac_ext <<_ACEOF
37322 /* confdefs.h.  */
37323 _ACEOF
37324 cat confdefs.h >>conftest.$ac_ext
37325 cat >>conftest.$ac_ext <<_ACEOF
37326 /* end confdefs.h.  */
37327 $ac_includes_default
37328 int
37329 main ()
37330 {
37331 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
37332 test_array [0] = 0
37333
37334   ;
37335   return 0;
37336 }
37337 _ACEOF
37338 rm -f conftest.$ac_objext
37339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37340   (eval $ac_compile) 2>conftest.er1
37341   ac_status=$?
37342   grep -v '^ *+' conftest.er1 >conftest.err
37343   rm -f conftest.er1
37344   cat conftest.err >&5
37345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37346   (exit $ac_status); } &&
37347          { ac_try='test -z "$ac_c_werror_flag"
37348                          || test ! -s conftest.err'
37349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350   (eval $ac_try) 2>&5
37351   ac_status=$?
37352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353   (exit $ac_status); }; } &&
37354          { ac_try='test -s conftest.$ac_objext'
37355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37356   (eval $ac_try) 2>&5
37357   ac_status=$?
37358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359   (exit $ac_status); }; }; then
37360   ac_hi=$ac_mid
37361 else
37362   echo "$as_me: failed program was:" >&5
37363 sed 's/^/| /' conftest.$ac_ext >&5
37364
37365 ac_lo=`expr '(' $ac_mid ')' + 1`
37366 fi
37367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37368 done
37369 case $ac_lo in
37370 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
37371 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37372 See \`config.log' for more details." >&5
37373 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37374 See \`config.log' for more details." >&2;}
37375    { (exit 1); exit 1; }; } ;;
37376 esac
37377 else
37378   if test "$cross_compiling" = yes; then
37379   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37380 See \`config.log' for more details." >&5
37381 echo "$as_me: error: cannot run test program while cross compiling
37382 See \`config.log' for more details." >&2;}
37383    { (exit 1); exit 1; }; }
37384 else
37385   cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391 $ac_includes_default
37392 long longval () { return (long) (sizeof (wchar_t)); }
37393 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
37394 #include <stdio.h>
37395 #include <stdlib.h>
37396 int
37397 main ()
37398 {
37399
37400   FILE *f = fopen ("conftest.val", "w");
37401   if (! f)
37402     exit (1);
37403   if (((long) (sizeof (wchar_t))) < 0)
37404     {
37405       long i = longval ();
37406       if (i != ((long) (sizeof (wchar_t))))
37407         exit (1);
37408       fprintf (f, "%ld\n", i);
37409     }
37410   else
37411     {
37412       unsigned long i = ulongval ();
37413       if (i != ((long) (sizeof (wchar_t))))
37414         exit (1);
37415       fprintf (f, "%lu\n", i);
37416     }
37417   exit (ferror (f) || fclose (f) != 0);
37418
37419   ;
37420   return 0;
37421 }
37422 _ACEOF
37423 rm -f conftest$ac_exeext
37424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37425   (eval $ac_link) 2>&5
37426   ac_status=$?
37427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37430   (eval $ac_try) 2>&5
37431   ac_status=$?
37432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433   (exit $ac_status); }; }; then
37434   ac_cv_sizeof_wchar_t=`cat conftest.val`
37435 else
37436   echo "$as_me: program exited with status $ac_status" >&5
37437 echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440 ( exit $ac_status )
37441 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
37442 See \`config.log' for more details." >&5
37443 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
37444 See \`config.log' for more details." >&2;}
37445    { (exit 1); exit 1; }; }
37446 fi
37447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37448 fi
37449 fi
37450 rm -f conftest.val
37451 else
37452   ac_cv_sizeof_wchar_t=0
37453 fi
37454 fi
37455 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
37456 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
37457 cat >>confdefs.h <<_ACEOF
37458 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
37459 _ACEOF
37460
37461
37462
37463 if test "$ac_cv_sizeof_int" -lt 4 ; then
37464         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
37465 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
37466
37467
37468 cat >>confdefs.h <<\_ACEOF
37469 #define LBER_INT_T long
37470 _ACEOF
37471
37472 else
37473
37474 cat >>confdefs.h <<\_ACEOF
37475 #define LBER_INT_T int
37476 _ACEOF
37477
37478 fi
37479
37480
37481 cat >>confdefs.h <<\_ACEOF
37482 #define LBER_LEN_T long
37483 _ACEOF
37484
37485
37486 cat >>confdefs.h <<\_ACEOF
37487 #define LBER_SOCKET_T int
37488 _ACEOF
37489
37490
37491 cat >>confdefs.h <<\_ACEOF
37492 #define LBER_TAG_T long
37493 _ACEOF
37494
37495
37496 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
37497         if test $ac_cv_sizeof_long_long -gt 4 ; then
37498                 ol_with_mp=longlong
37499
37500 cat >>confdefs.h <<\_ACEOF
37501 #define USE_MP_LONG_LONG 1
37502 _ACEOF
37503
37504         elif test $ol_with_mp = longlong ; then
37505                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
37506 echo "$as_me: error: long long unusable for multiple precision" >&2;}
37507    { (exit 1); exit 1; }; }
37508         fi
37509 fi
37510 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
37511         if test $ac_cv_sizeof_long -gt 4 ; then
37512                 ol_with_mp=long
37513
37514 cat >>confdefs.h <<\_ACEOF
37515 #define USE_MP_LONG 1
37516 _ACEOF
37517
37518         elif test $ol_with_mp = long ; then
37519                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
37520 echo "$as_me: error: long unusable for multiple precision" >&2;}
37521    { (exit 1); exit 1; }; }
37522         fi
37523 fi
37524 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
37525
37526 for ac_header in openssl/bn.h
37527 do
37528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37530   echo "$as_me:$LINENO: checking for $ac_header" >&5
37531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37533   echo $ECHO_N "(cached) $ECHO_C" >&6
37534 fi
37535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37537 else
37538   # Is the header compilable?
37539 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37540 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37541 cat >conftest.$ac_ext <<_ACEOF
37542 /* confdefs.h.  */
37543 _ACEOF
37544 cat confdefs.h >>conftest.$ac_ext
37545 cat >>conftest.$ac_ext <<_ACEOF
37546 /* end confdefs.h.  */
37547 $ac_includes_default
37548 #include <$ac_header>
37549 _ACEOF
37550 rm -f conftest.$ac_objext
37551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37552   (eval $ac_compile) 2>conftest.er1
37553   ac_status=$?
37554   grep -v '^ *+' conftest.er1 >conftest.err
37555   rm -f conftest.er1
37556   cat conftest.err >&5
37557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37558   (exit $ac_status); } &&
37559          { ac_try='test -z "$ac_c_werror_flag"
37560                          || test ! -s conftest.err'
37561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562   (eval $ac_try) 2>&5
37563   ac_status=$?
37564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565   (exit $ac_status); }; } &&
37566          { ac_try='test -s conftest.$ac_objext'
37567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37568   (eval $ac_try) 2>&5
37569   ac_status=$?
37570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37571   (exit $ac_status); }; }; then
37572   ac_header_compiler=yes
37573 else
37574   echo "$as_me: failed program was:" >&5
37575 sed 's/^/| /' conftest.$ac_ext >&5
37576
37577 ac_header_compiler=no
37578 fi
37579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37581 echo "${ECHO_T}$ac_header_compiler" >&6
37582
37583 # Is the header present?
37584 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37586 cat >conftest.$ac_ext <<_ACEOF
37587 /* confdefs.h.  */
37588 _ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h.  */
37592 #include <$ac_header>
37593 _ACEOF
37594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37596   ac_status=$?
37597   grep -v '^ *+' conftest.er1 >conftest.err
37598   rm -f conftest.er1
37599   cat conftest.err >&5
37600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37601   (exit $ac_status); } >/dev/null; then
37602   if test -s conftest.err; then
37603     ac_cpp_err=$ac_c_preproc_warn_flag
37604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37605   else
37606     ac_cpp_err=
37607   fi
37608 else
37609   ac_cpp_err=yes
37610 fi
37611 if test -z "$ac_cpp_err"; then
37612   ac_header_preproc=yes
37613 else
37614   echo "$as_me: failed program was:" >&5
37615 sed 's/^/| /' conftest.$ac_ext >&5
37616
37617   ac_header_preproc=no
37618 fi
37619 rm -f conftest.err conftest.$ac_ext
37620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37621 echo "${ECHO_T}$ac_header_preproc" >&6
37622
37623 # So?  What about this header?
37624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37625   yes:no: )
37626     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37630     ac_header_preproc=yes
37631     ;;
37632   no:yes:* )
37633     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37635     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37636 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37637     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37639     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37640 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37643     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37645     (
37646       cat <<\_ASBOX
37647 ## --------------------------------------------- ##
37648 ## Report this to <http://www.openldap.org/its/> ##
37649 ## --------------------------------------------- ##
37650 _ASBOX
37651     ) |
37652       sed "s/^/$as_me: WARNING:     /" >&2
37653     ;;
37654 esac
37655 echo "$as_me:$LINENO: checking for $ac_header" >&5
37656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37658   echo $ECHO_N "(cached) $ECHO_C" >&6
37659 else
37660   eval "$as_ac_Header=\$ac_header_preproc"
37661 fi
37662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37663 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37664
37665 fi
37666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37667   cat >>confdefs.h <<_ACEOF
37668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37669 _ACEOF
37670
37671 fi
37672
37673 done
37674
37675
37676 for ac_header in openssl/crypto.h
37677 do
37678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37679 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37680   echo "$as_me:$LINENO: checking for $ac_header" >&5
37681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37683   echo $ECHO_N "(cached) $ECHO_C" >&6
37684 fi
37685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37686 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37687 else
37688   # Is the header compilable?
37689 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37690 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37691 cat >conftest.$ac_ext <<_ACEOF
37692 /* confdefs.h.  */
37693 _ACEOF
37694 cat confdefs.h >>conftest.$ac_ext
37695 cat >>conftest.$ac_ext <<_ACEOF
37696 /* end confdefs.h.  */
37697 $ac_includes_default
37698 #include <$ac_header>
37699 _ACEOF
37700 rm -f conftest.$ac_objext
37701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37702   (eval $ac_compile) 2>conftest.er1
37703   ac_status=$?
37704   grep -v '^ *+' conftest.er1 >conftest.err
37705   rm -f conftest.er1
37706   cat conftest.err >&5
37707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37708   (exit $ac_status); } &&
37709          { ac_try='test -z "$ac_c_werror_flag"
37710                          || test ! -s conftest.err'
37711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37712   (eval $ac_try) 2>&5
37713   ac_status=$?
37714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37715   (exit $ac_status); }; } &&
37716          { ac_try='test -s conftest.$ac_objext'
37717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37718   (eval $ac_try) 2>&5
37719   ac_status=$?
37720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721   (exit $ac_status); }; }; then
37722   ac_header_compiler=yes
37723 else
37724   echo "$as_me: failed program was:" >&5
37725 sed 's/^/| /' conftest.$ac_ext >&5
37726
37727 ac_header_compiler=no
37728 fi
37729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37731 echo "${ECHO_T}$ac_header_compiler" >&6
37732
37733 # Is the header present?
37734 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37736 cat >conftest.$ac_ext <<_ACEOF
37737 /* confdefs.h.  */
37738 _ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h.  */
37742 #include <$ac_header>
37743 _ACEOF
37744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37746   ac_status=$?
37747   grep -v '^ *+' conftest.er1 >conftest.err
37748   rm -f conftest.er1
37749   cat conftest.err >&5
37750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751   (exit $ac_status); } >/dev/null; then
37752   if test -s conftest.err; then
37753     ac_cpp_err=$ac_c_preproc_warn_flag
37754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37755   else
37756     ac_cpp_err=
37757   fi
37758 else
37759   ac_cpp_err=yes
37760 fi
37761 if test -z "$ac_cpp_err"; then
37762   ac_header_preproc=yes
37763 else
37764   echo "$as_me: failed program was:" >&5
37765 sed 's/^/| /' conftest.$ac_ext >&5
37766
37767   ac_header_preproc=no
37768 fi
37769 rm -f conftest.err conftest.$ac_ext
37770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37771 echo "${ECHO_T}$ac_header_preproc" >&6
37772
37773 # So?  What about this header?
37774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37775   yes:no: )
37776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37780     ac_header_preproc=yes
37781     ;;
37782   no:yes:* )
37783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37795     (
37796       cat <<\_ASBOX
37797 ## --------------------------------------------- ##
37798 ## Report this to <http://www.openldap.org/its/> ##
37799 ## --------------------------------------------- ##
37800 _ASBOX
37801     ) |
37802       sed "s/^/$as_me: WARNING:     /" >&2
37803     ;;
37804 esac
37805 echo "$as_me:$LINENO: checking for $ac_header" >&5
37806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37808   echo $ECHO_N "(cached) $ECHO_C" >&6
37809 else
37810   eval "$as_ac_Header=\$ac_header_preproc"
37811 fi
37812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37814
37815 fi
37816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37817   cat >>confdefs.h <<_ACEOF
37818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37819 _ACEOF
37820
37821 fi
37822
37823 done
37824
37825         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
37826                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
37827                 test "$ol_with_tls" = "found" ; then
37828                 ol_with_mp=bignum
37829
37830 cat >>confdefs.h <<\_ACEOF
37831 #define USE_MP_BIGNUM 1
37832 _ACEOF
37833
37834         elif test $ol_with_mp = bignum ; then
37835                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
37836 echo "$as_me: error: bignum not available" >&2;}
37837    { (exit 1); exit 1; }; }
37838         fi
37839 fi
37840 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
37841
37842 for ac_header in gmp.h
37843 do
37844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37846   echo "$as_me:$LINENO: checking for $ac_header" >&5
37847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37849   echo $ECHO_N "(cached) $ECHO_C" >&6
37850 fi
37851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37853 else
37854   # Is the header compilable?
37855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37857 cat >conftest.$ac_ext <<_ACEOF
37858 /* confdefs.h.  */
37859 _ACEOF
37860 cat confdefs.h >>conftest.$ac_ext
37861 cat >>conftest.$ac_ext <<_ACEOF
37862 /* end confdefs.h.  */
37863 $ac_includes_default
37864 #include <$ac_header>
37865 _ACEOF
37866 rm -f conftest.$ac_objext
37867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37868   (eval $ac_compile) 2>conftest.er1
37869   ac_status=$?
37870   grep -v '^ *+' conftest.er1 >conftest.err
37871   rm -f conftest.er1
37872   cat conftest.err >&5
37873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874   (exit $ac_status); } &&
37875          { ac_try='test -z "$ac_c_werror_flag"
37876                          || test ! -s conftest.err'
37877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37878   (eval $ac_try) 2>&5
37879   ac_status=$?
37880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37881   (exit $ac_status); }; } &&
37882          { ac_try='test -s conftest.$ac_objext'
37883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37884   (eval $ac_try) 2>&5
37885   ac_status=$?
37886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37887   (exit $ac_status); }; }; then
37888   ac_header_compiler=yes
37889 else
37890   echo "$as_me: failed program was:" >&5
37891 sed 's/^/| /' conftest.$ac_ext >&5
37892
37893 ac_header_compiler=no
37894 fi
37895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37896 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37897 echo "${ECHO_T}$ac_header_compiler" >&6
37898
37899 # Is the header present?
37900 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37902 cat >conftest.$ac_ext <<_ACEOF
37903 /* confdefs.h.  */
37904 _ACEOF
37905 cat confdefs.h >>conftest.$ac_ext
37906 cat >>conftest.$ac_ext <<_ACEOF
37907 /* end confdefs.h.  */
37908 #include <$ac_header>
37909 _ACEOF
37910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37911   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37912   ac_status=$?
37913   grep -v '^ *+' conftest.er1 >conftest.err
37914   rm -f conftest.er1
37915   cat conftest.err >&5
37916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917   (exit $ac_status); } >/dev/null; then
37918   if test -s conftest.err; then
37919     ac_cpp_err=$ac_c_preproc_warn_flag
37920     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37921   else
37922     ac_cpp_err=
37923   fi
37924 else
37925   ac_cpp_err=yes
37926 fi
37927 if test -z "$ac_cpp_err"; then
37928   ac_header_preproc=yes
37929 else
37930   echo "$as_me: failed program was:" >&5
37931 sed 's/^/| /' conftest.$ac_ext >&5
37932
37933   ac_header_preproc=no
37934 fi
37935 rm -f conftest.err conftest.$ac_ext
37936 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37937 echo "${ECHO_T}$ac_header_preproc" >&6
37938
37939 # So?  What about this header?
37940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37941   yes:no: )
37942     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37946     ac_header_preproc=yes
37947     ;;
37948   no:yes:* )
37949     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37951     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37952 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37953     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37955     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37956 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37957     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37959     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37961     (
37962       cat <<\_ASBOX
37963 ## --------------------------------------------- ##
37964 ## Report this to <http://www.openldap.org/its/> ##
37965 ## --------------------------------------------- ##
37966 _ASBOX
37967     ) |
37968       sed "s/^/$as_me: WARNING:     /" >&2
37969     ;;
37970 esac
37971 echo "$as_me:$LINENO: checking for $ac_header" >&5
37972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37974   echo $ECHO_N "(cached) $ECHO_C" >&6
37975 else
37976   eval "$as_ac_Header=\$ac_header_preproc"
37977 fi
37978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37979 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37980
37981 fi
37982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37983   cat >>confdefs.h <<_ACEOF
37984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37985 _ACEOF
37986
37987 fi
37988
37989 done
37990
37991
37992 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
37993 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
37994 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
37995   echo $ECHO_N "(cached) $ECHO_C" >&6
37996 else
37997   ac_check_lib_save_LIBS=$LIBS
37998 LIBS="-lgmp  $LIBS"
37999 cat >conftest.$ac_ext <<_ACEOF
38000 /* confdefs.h.  */
38001 _ACEOF
38002 cat confdefs.h >>conftest.$ac_ext
38003 cat >>conftest.$ac_ext <<_ACEOF
38004 /* end confdefs.h.  */
38005
38006 /* Override any gcc2 internal prototype to avoid an error.  */
38007 #ifdef __cplusplus
38008 extern "C"
38009 #endif
38010 /* We use char because int might match the return type of a gcc2
38011    builtin and then its argument prototype would still apply.  */
38012 char __gmpz_add_ui ();
38013 int
38014 main ()
38015 {
38016 __gmpz_add_ui ();
38017   ;
38018   return 0;
38019 }
38020 _ACEOF
38021 rm -f conftest.$ac_objext conftest$ac_exeext
38022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38023   (eval $ac_link) 2>conftest.er1
38024   ac_status=$?
38025   grep -v '^ *+' conftest.er1 >conftest.err
38026   rm -f conftest.er1
38027   cat conftest.err >&5
38028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029   (exit $ac_status); } &&
38030          { ac_try='test -z "$ac_c_werror_flag"
38031                          || test ! -s conftest.err'
38032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38033   (eval $ac_try) 2>&5
38034   ac_status=$?
38035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38036   (exit $ac_status); }; } &&
38037          { ac_try='test -s conftest$ac_exeext'
38038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039   (eval $ac_try) 2>&5
38040   ac_status=$?
38041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042   (exit $ac_status); }; }; then
38043   ac_cv_lib_gmp___gmpz_add_ui=yes
38044 else
38045   echo "$as_me: failed program was:" >&5
38046 sed 's/^/| /' conftest.$ac_ext >&5
38047
38048 ac_cv_lib_gmp___gmpz_add_ui=no
38049 fi
38050 rm -f conftest.err conftest.$ac_objext \
38051       conftest$ac_exeext conftest.$ac_ext
38052 LIBS=$ac_check_lib_save_LIBS
38053 fi
38054 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
38055 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
38056 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
38057   cat >>confdefs.h <<_ACEOF
38058 #define HAVE_LIBGMP 1
38059 _ACEOF
38060
38061   LIBS="-lgmp $LIBS"
38062
38063 fi
38064
38065         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
38066
38067 cat >>confdefs.h <<\_ACEOF
38068 #define USE_MP_GMP 1
38069 _ACEOF
38070
38071                 ol_with_mp=gmp
38072         elif test $ol_with_mp = gmp ; then
38073                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
38074 echo "$as_me: error: gmp not available" >&2;}
38075    { (exit 1); exit 1; }; }
38076         fi
38077 fi
38078 if test $ol_with_mp = auto ; then
38079         ol_with_mp=no
38080 fi
38081
38082 echo "$as_me:$LINENO: checking for working memcmp" >&5
38083 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
38084 if test "${ac_cv_func_memcmp_working+set}" = set; then
38085   echo $ECHO_N "(cached) $ECHO_C" >&6
38086 else
38087   if test "$cross_compiling" = yes; then
38088   ac_cv_func_memcmp_working=no
38089 else
38090   cat >conftest.$ac_ext <<_ACEOF
38091 /* confdefs.h.  */
38092 _ACEOF
38093 cat confdefs.h >>conftest.$ac_ext
38094 cat >>conftest.$ac_ext <<_ACEOF
38095 /* end confdefs.h.  */
38096 $ac_includes_default
38097 int
38098 main ()
38099 {
38100
38101   /* Some versions of memcmp are not 8-bit clean.  */
38102   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
38103   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
38104     exit (1);
38105
38106   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
38107      or more and with at least one buffer not starting on a 4-byte boundary.
38108      William Lewis provided this test program.   */
38109   {
38110     char foo[21];
38111     char bar[21];
38112     int i;
38113     for (i = 0; i < 4; i++)
38114       {
38115         char *a = foo + i;
38116         char *b = bar + i;
38117         strcpy (a, "--------01111111");
38118         strcpy (b, "--------10000000");
38119         if (memcmp (a, b, 16) >= 0)
38120           exit (1);
38121       }
38122     exit (0);
38123   }
38124
38125   ;
38126   return 0;
38127 }
38128 _ACEOF
38129 rm -f conftest$ac_exeext
38130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38131   (eval $ac_link) 2>&5
38132   ac_status=$?
38133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38134   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38136   (eval $ac_try) 2>&5
38137   ac_status=$?
38138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38139   (exit $ac_status); }; }; then
38140   ac_cv_func_memcmp_working=yes
38141 else
38142   echo "$as_me: program exited with status $ac_status" >&5
38143 echo "$as_me: failed program was:" >&5
38144 sed 's/^/| /' conftest.$ac_ext >&5
38145
38146 ( exit $ac_status )
38147 ac_cv_func_memcmp_working=no
38148 fi
38149 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38150 fi
38151 fi
38152 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
38153 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
38154 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
38155     "memcmp.$ac_objext"   | \
38156   *" memcmp.$ac_objext"   | \
38157     "memcmp.$ac_objext "* | \
38158   *" memcmp.$ac_objext "* ) ;;
38159   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
38160 esac
38161
38162
38163
38164 if test $ac_cv_func_memcmp_working = no ; then
38165
38166 cat >>confdefs.h <<\_ACEOF
38167 #define NEED_MEMCMP_REPLACEMENT 1
38168 _ACEOF
38169
38170 fi
38171
38172
38173 for ac_func in strftime
38174 do
38175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38176 echo "$as_me:$LINENO: checking for $ac_func" >&5
38177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38178 if eval "test \"\${$as_ac_var+set}\" = set"; then
38179   echo $ECHO_N "(cached) $ECHO_C" >&6
38180 else
38181   cat >conftest.$ac_ext <<_ACEOF
38182 /* confdefs.h.  */
38183 _ACEOF
38184 cat confdefs.h >>conftest.$ac_ext
38185 cat >>conftest.$ac_ext <<_ACEOF
38186 /* end confdefs.h.  */
38187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38189 #define $ac_func innocuous_$ac_func
38190
38191 /* System header to define __stub macros and hopefully few prototypes,
38192     which can conflict with char $ac_func (); below.
38193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38194     <limits.h> exists even on freestanding compilers.  */
38195
38196 #ifdef __STDC__
38197 # include <limits.h>
38198 #else
38199 # include <assert.h>
38200 #endif
38201
38202 #undef $ac_func
38203
38204 /* Override any gcc2 internal prototype to avoid an error.  */
38205 #ifdef __cplusplus
38206 extern "C"
38207 {
38208 #endif
38209 /* We use char because int might match the return type of a gcc2
38210    builtin and then its argument prototype would still apply.  */
38211 char $ac_func ();
38212 /* The GNU C library defines this for functions which it implements
38213     to always fail with ENOSYS.  Some functions are actually named
38214     something starting with __ and the normal name is an alias.  */
38215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38216 choke me
38217 #else
38218 char (*f) () = $ac_func;
38219 #endif
38220 #ifdef __cplusplus
38221 }
38222 #endif
38223
38224 int
38225 main ()
38226 {
38227 return f != $ac_func;
38228   ;
38229   return 0;
38230 }
38231 _ACEOF
38232 rm -f conftest.$ac_objext conftest$ac_exeext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234   (eval $ac_link) 2>conftest.er1
38235   ac_status=$?
38236   grep -v '^ *+' conftest.er1 >conftest.err
38237   rm -f conftest.er1
38238   cat conftest.err >&5
38239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240   (exit $ac_status); } &&
38241          { ac_try='test -z "$ac_c_werror_flag"
38242                          || test ! -s conftest.err'
38243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244   (eval $ac_try) 2>&5
38245   ac_status=$?
38246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247   (exit $ac_status); }; } &&
38248          { ac_try='test -s conftest$ac_exeext'
38249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250   (eval $ac_try) 2>&5
38251   ac_status=$?
38252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253   (exit $ac_status); }; }; then
38254   eval "$as_ac_var=yes"
38255 else
38256   echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38258
38259 eval "$as_ac_var=no"
38260 fi
38261 rm -f conftest.err conftest.$ac_objext \
38262       conftest$ac_exeext conftest.$ac_ext
38263 fi
38264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38266 if test `eval echo '${'$as_ac_var'}'` = yes; then
38267   cat >>confdefs.h <<_ACEOF
38268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38269 _ACEOF
38270
38271 else
38272   # strftime is in -lintl on SCO UNIX.
38273 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
38274 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
38275 if test "${ac_cv_lib_intl_strftime+set}" = set; then
38276   echo $ECHO_N "(cached) $ECHO_C" >&6
38277 else
38278   ac_check_lib_save_LIBS=$LIBS
38279 LIBS="-lintl  $LIBS"
38280 cat >conftest.$ac_ext <<_ACEOF
38281 /* confdefs.h.  */
38282 _ACEOF
38283 cat confdefs.h >>conftest.$ac_ext
38284 cat >>conftest.$ac_ext <<_ACEOF
38285 /* end confdefs.h.  */
38286
38287 /* Override any gcc2 internal prototype to avoid an error.  */
38288 #ifdef __cplusplus
38289 extern "C"
38290 #endif
38291 /* We use char because int might match the return type of a gcc2
38292    builtin and then its argument prototype would still apply.  */
38293 char strftime ();
38294 int
38295 main ()
38296 {
38297 strftime ();
38298   ;
38299   return 0;
38300 }
38301 _ACEOF
38302 rm -f conftest.$ac_objext conftest$ac_exeext
38303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38304   (eval $ac_link) 2>conftest.er1
38305   ac_status=$?
38306   grep -v '^ *+' conftest.er1 >conftest.err
38307   rm -f conftest.er1
38308   cat conftest.err >&5
38309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310   (exit $ac_status); } &&
38311          { ac_try='test -z "$ac_c_werror_flag"
38312                          || test ! -s conftest.err'
38313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38314   (eval $ac_try) 2>&5
38315   ac_status=$?
38316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317   (exit $ac_status); }; } &&
38318          { ac_try='test -s conftest$ac_exeext'
38319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38320   (eval $ac_try) 2>&5
38321   ac_status=$?
38322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323   (exit $ac_status); }; }; then
38324   ac_cv_lib_intl_strftime=yes
38325 else
38326   echo "$as_me: failed program was:" >&5
38327 sed 's/^/| /' conftest.$ac_ext >&5
38328
38329 ac_cv_lib_intl_strftime=no
38330 fi
38331 rm -f conftest.err conftest.$ac_objext \
38332       conftest$ac_exeext conftest.$ac_ext
38333 LIBS=$ac_check_lib_save_LIBS
38334 fi
38335 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
38336 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
38337 if test $ac_cv_lib_intl_strftime = yes; then
38338   cat >>confdefs.h <<\_ACEOF
38339 #define HAVE_STRFTIME 1
38340 _ACEOF
38341
38342 LIBS="-lintl $LIBS"
38343 fi
38344
38345 fi
38346 done
38347
38348
38349 echo "$as_me:$LINENO: checking for inet_aton()" >&5
38350 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
38351 if test "${ol_cv_func_inet_aton+set}" = set; then
38352   echo $ECHO_N "(cached) $ECHO_C" >&6
38353 else
38354   cat >conftest.$ac_ext <<_ACEOF
38355 /* confdefs.h.  */
38356 _ACEOF
38357 cat confdefs.h >>conftest.$ac_ext
38358 cat >>conftest.$ac_ext <<_ACEOF
38359 /* end confdefs.h.  */
38360
38361 #ifdef HAVE_SYS_TYPES_H
38362 #       include <sys/types.h>
38363 #endif
38364 #ifdef HAVE_SYS_SOCKET_H
38365 #       include <sys/socket.h>
38366 #       ifdef HAVE_SYS_SELECT_H
38367 #               include <sys/select.h>
38368 #       endif
38369 #       include <netinet/in.h>
38370 #       ifdef HAVE_ARPA_INET_H
38371 #               include <arpa/inet.h>
38372 #       endif
38373 #endif
38374
38375 int
38376 main ()
38377 {
38378 struct in_addr in;
38379 int rc = inet_aton( "255.255.255.255", &in );
38380   ;
38381   return 0;
38382 }
38383 _ACEOF
38384 rm -f conftest.$ac_objext conftest$ac_exeext
38385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38386   (eval $ac_link) 2>conftest.er1
38387   ac_status=$?
38388   grep -v '^ *+' conftest.er1 >conftest.err
38389   rm -f conftest.er1
38390   cat conftest.err >&5
38391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392   (exit $ac_status); } &&
38393          { ac_try='test -z "$ac_c_werror_flag"
38394                          || test ! -s conftest.err'
38395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38396   (eval $ac_try) 2>&5
38397   ac_status=$?
38398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399   (exit $ac_status); }; } &&
38400          { ac_try='test -s conftest$ac_exeext'
38401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38402   (eval $ac_try) 2>&5
38403   ac_status=$?
38404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405   (exit $ac_status); }; }; then
38406   ol_cv_func_inet_aton=yes
38407 else
38408   echo "$as_me: failed program was:" >&5
38409 sed 's/^/| /' conftest.$ac_ext >&5
38410
38411 ol_cv_func_inet_aton=no
38412 fi
38413 rm -f conftest.err conftest.$ac_objext \
38414       conftest$ac_exeext conftest.$ac_ext
38415 fi
38416 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
38417 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
38418   if test $ol_cv_func_inet_aton != no; then
38419
38420 cat >>confdefs.h <<\_ACEOF
38421 #define HAVE_INET_ATON 1
38422 _ACEOF
38423
38424   fi
38425
38426
38427 echo "$as_me:$LINENO: checking for _spawnlp" >&5
38428 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
38429 if test "${ac_cv_func__spawnlp+set}" = set; then
38430   echo $ECHO_N "(cached) $ECHO_C" >&6
38431 else
38432   cat >conftest.$ac_ext <<_ACEOF
38433 /* confdefs.h.  */
38434 _ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h.  */
38438 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
38439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38440 #define _spawnlp innocuous__spawnlp
38441
38442 /* System header to define __stub macros and hopefully few prototypes,
38443     which can conflict with char _spawnlp (); below.
38444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38445     <limits.h> exists even on freestanding compilers.  */
38446
38447 #ifdef __STDC__
38448 # include <limits.h>
38449 #else
38450 # include <assert.h>
38451 #endif
38452
38453 #undef _spawnlp
38454
38455 /* Override any gcc2 internal prototype to avoid an error.  */
38456 #ifdef __cplusplus
38457 extern "C"
38458 {
38459 #endif
38460 /* We use char because int might match the return type of a gcc2
38461    builtin and then its argument prototype would still apply.  */
38462 char _spawnlp ();
38463 /* The GNU C library defines this for functions which it implements
38464     to always fail with ENOSYS.  Some functions are actually named
38465     something starting with __ and the normal name is an alias.  */
38466 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
38467 choke me
38468 #else
38469 char (*f) () = _spawnlp;
38470 #endif
38471 #ifdef __cplusplus
38472 }
38473 #endif
38474
38475 int
38476 main ()
38477 {
38478 return f != _spawnlp;
38479   ;
38480   return 0;
38481 }
38482 _ACEOF
38483 rm -f conftest.$ac_objext conftest$ac_exeext
38484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38485   (eval $ac_link) 2>conftest.er1
38486   ac_status=$?
38487   grep -v '^ *+' conftest.er1 >conftest.err
38488   rm -f conftest.er1
38489   cat conftest.err >&5
38490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38491   (exit $ac_status); } &&
38492          { ac_try='test -z "$ac_c_werror_flag"
38493                          || test ! -s conftest.err'
38494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38495   (eval $ac_try) 2>&5
38496   ac_status=$?
38497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38498   (exit $ac_status); }; } &&
38499          { ac_try='test -s conftest$ac_exeext'
38500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38501   (eval $ac_try) 2>&5
38502   ac_status=$?
38503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504   (exit $ac_status); }; }; then
38505   ac_cv_func__spawnlp=yes
38506 else
38507   echo "$as_me: failed program was:" >&5
38508 sed 's/^/| /' conftest.$ac_ext >&5
38509
38510 ac_cv_func__spawnlp=no
38511 fi
38512 rm -f conftest.err conftest.$ac_objext \
38513       conftest$ac_exeext conftest.$ac_ext
38514 fi
38515 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
38516 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
38517 if test $ac_cv_func__spawnlp = yes; then
38518
38519 cat >>confdefs.h <<\_ACEOF
38520 #define HAVE_SPAWNLP 1
38521 _ACEOF
38522
38523 fi
38524
38525
38526 echo "$as_me:$LINENO: checking for _snprintf" >&5
38527 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
38528 if test "${ac_cv_func__snprintf+set}" = set; then
38529   echo $ECHO_N "(cached) $ECHO_C" >&6
38530 else
38531   cat >conftest.$ac_ext <<_ACEOF
38532 /* confdefs.h.  */
38533 _ACEOF
38534 cat confdefs.h >>conftest.$ac_ext
38535 cat >>conftest.$ac_ext <<_ACEOF
38536 /* end confdefs.h.  */
38537 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
38538    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38539 #define _snprintf innocuous__snprintf
38540
38541 /* System header to define __stub macros and hopefully few prototypes,
38542     which can conflict with char _snprintf (); below.
38543     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38544     <limits.h> exists even on freestanding compilers.  */
38545
38546 #ifdef __STDC__
38547 # include <limits.h>
38548 #else
38549 # include <assert.h>
38550 #endif
38551
38552 #undef _snprintf
38553
38554 /* Override any gcc2 internal prototype to avoid an error.  */
38555 #ifdef __cplusplus
38556 extern "C"
38557 {
38558 #endif
38559 /* We use char because int might match the return type of a gcc2
38560    builtin and then its argument prototype would still apply.  */
38561 char _snprintf ();
38562 /* The GNU C library defines this for functions which it implements
38563     to always fail with ENOSYS.  Some functions are actually named
38564     something starting with __ and the normal name is an alias.  */
38565 #if defined (__stub__snprintf) || defined (__stub____snprintf)
38566 choke me
38567 #else
38568 char (*f) () = _snprintf;
38569 #endif
38570 #ifdef __cplusplus
38571 }
38572 #endif
38573
38574 int
38575 main ()
38576 {
38577 return f != _snprintf;
38578   ;
38579   return 0;
38580 }
38581 _ACEOF
38582 rm -f conftest.$ac_objext conftest$ac_exeext
38583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38584   (eval $ac_link) 2>conftest.er1
38585   ac_status=$?
38586   grep -v '^ *+' conftest.er1 >conftest.err
38587   rm -f conftest.er1
38588   cat conftest.err >&5
38589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590   (exit $ac_status); } &&
38591          { ac_try='test -z "$ac_c_werror_flag"
38592                          || test ! -s conftest.err'
38593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594   (eval $ac_try) 2>&5
38595   ac_status=$?
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); }; } &&
38598          { ac_try='test -s conftest$ac_exeext'
38599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600   (eval $ac_try) 2>&5
38601   ac_status=$?
38602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603   (exit $ac_status); }; }; then
38604   ac_cv_func__snprintf=yes
38605 else
38606   echo "$as_me: failed program was:" >&5
38607 sed 's/^/| /' conftest.$ac_ext >&5
38608
38609 ac_cv_func__snprintf=no
38610 fi
38611 rm -f conftest.err conftest.$ac_objext \
38612       conftest$ac_exeext conftest.$ac_ext
38613 fi
38614 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
38615 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
38616 if test $ac_cv_func__snprintf = yes; then
38617   ac_cv_func_snprintf=yes
38618
38619 cat >>confdefs.h <<\_ACEOF
38620 #define snprintf _snprintf
38621 _ACEOF
38622
38623
38624 fi
38625
38626
38627 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
38628 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
38629 if test "${ac_cv_func__vsnprintf+set}" = set; then
38630   echo $ECHO_N "(cached) $ECHO_C" >&6
38631 else
38632   cat >conftest.$ac_ext <<_ACEOF
38633 /* confdefs.h.  */
38634 _ACEOF
38635 cat confdefs.h >>conftest.$ac_ext
38636 cat >>conftest.$ac_ext <<_ACEOF
38637 /* end confdefs.h.  */
38638 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
38639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38640 #define _vsnprintf innocuous__vsnprintf
38641
38642 /* System header to define __stub macros and hopefully few prototypes,
38643     which can conflict with char _vsnprintf (); below.
38644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38645     <limits.h> exists even on freestanding compilers.  */
38646
38647 #ifdef __STDC__
38648 # include <limits.h>
38649 #else
38650 # include <assert.h>
38651 #endif
38652
38653 #undef _vsnprintf
38654
38655 /* Override any gcc2 internal prototype to avoid an error.  */
38656 #ifdef __cplusplus
38657 extern "C"
38658 {
38659 #endif
38660 /* We use char because int might match the return type of a gcc2
38661    builtin and then its argument prototype would still apply.  */
38662 char _vsnprintf ();
38663 /* The GNU C library defines this for functions which it implements
38664     to always fail with ENOSYS.  Some functions are actually named
38665     something starting with __ and the normal name is an alias.  */
38666 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
38667 choke me
38668 #else
38669 char (*f) () = _vsnprintf;
38670 #endif
38671 #ifdef __cplusplus
38672 }
38673 #endif
38674
38675 int
38676 main ()
38677 {
38678 return f != _vsnprintf;
38679   ;
38680   return 0;
38681 }
38682 _ACEOF
38683 rm -f conftest.$ac_objext conftest$ac_exeext
38684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38685   (eval $ac_link) 2>conftest.er1
38686   ac_status=$?
38687   grep -v '^ *+' conftest.er1 >conftest.err
38688   rm -f conftest.er1
38689   cat conftest.err >&5
38690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38691   (exit $ac_status); } &&
38692          { ac_try='test -z "$ac_c_werror_flag"
38693                          || test ! -s conftest.err'
38694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38695   (eval $ac_try) 2>&5
38696   ac_status=$?
38697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38698   (exit $ac_status); }; } &&
38699          { ac_try='test -s conftest$ac_exeext'
38700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38701   (eval $ac_try) 2>&5
38702   ac_status=$?
38703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38704   (exit $ac_status); }; }; then
38705   ac_cv_func__vsnprintf=yes
38706 else
38707   echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38709
38710 ac_cv_func__vsnprintf=no
38711 fi
38712 rm -f conftest.err conftest.$ac_objext \
38713       conftest$ac_exeext conftest.$ac_ext
38714 fi
38715 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
38716 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
38717 if test $ac_cv_func__vsnprintf = yes; then
38718   ac_cv_func_vsnprintf=yes
38719
38720 cat >>confdefs.h <<\_ACEOF
38721 #define vsnprintf _vsnprintf
38722 _ACEOF
38723
38724
38725 fi
38726
38727
38728
38729 for ac_func in vprintf
38730 do
38731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38732 echo "$as_me:$LINENO: checking for $ac_func" >&5
38733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38734 if eval "test \"\${$as_ac_var+set}\" = set"; then
38735   echo $ECHO_N "(cached) $ECHO_C" >&6
38736 else
38737   cat >conftest.$ac_ext <<_ACEOF
38738 /* confdefs.h.  */
38739 _ACEOF
38740 cat confdefs.h >>conftest.$ac_ext
38741 cat >>conftest.$ac_ext <<_ACEOF
38742 /* end confdefs.h.  */
38743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38745 #define $ac_func innocuous_$ac_func
38746
38747 /* System header to define __stub macros and hopefully few prototypes,
38748     which can conflict with char $ac_func (); below.
38749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38750     <limits.h> exists even on freestanding compilers.  */
38751
38752 #ifdef __STDC__
38753 # include <limits.h>
38754 #else
38755 # include <assert.h>
38756 #endif
38757
38758 #undef $ac_func
38759
38760 /* Override any gcc2 internal prototype to avoid an error.  */
38761 #ifdef __cplusplus
38762 extern "C"
38763 {
38764 #endif
38765 /* We use char because int might match the return type of a gcc2
38766    builtin and then its argument prototype would still apply.  */
38767 char $ac_func ();
38768 /* The GNU C library defines this for functions which it implements
38769     to always fail with ENOSYS.  Some functions are actually named
38770     something starting with __ and the normal name is an alias.  */
38771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38772 choke me
38773 #else
38774 char (*f) () = $ac_func;
38775 #endif
38776 #ifdef __cplusplus
38777 }
38778 #endif
38779
38780 int
38781 main ()
38782 {
38783 return f != $ac_func;
38784   ;
38785   return 0;
38786 }
38787 _ACEOF
38788 rm -f conftest.$ac_objext conftest$ac_exeext
38789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38790   (eval $ac_link) 2>conftest.er1
38791   ac_status=$?
38792   grep -v '^ *+' conftest.er1 >conftest.err
38793   rm -f conftest.er1
38794   cat conftest.err >&5
38795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38796   (exit $ac_status); } &&
38797          { ac_try='test -z "$ac_c_werror_flag"
38798                          || test ! -s conftest.err'
38799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800   (eval $ac_try) 2>&5
38801   ac_status=$?
38802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803   (exit $ac_status); }; } &&
38804          { ac_try='test -s conftest$ac_exeext'
38805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38806   (eval $ac_try) 2>&5
38807   ac_status=$?
38808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38809   (exit $ac_status); }; }; then
38810   eval "$as_ac_var=yes"
38811 else
38812   echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.$ac_ext >&5
38814
38815 eval "$as_ac_var=no"
38816 fi
38817 rm -f conftest.err conftest.$ac_objext \
38818       conftest$ac_exeext conftest.$ac_ext
38819 fi
38820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38821 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38822 if test `eval echo '${'$as_ac_var'}'` = yes; then
38823   cat >>confdefs.h <<_ACEOF
38824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38825 _ACEOF
38826
38827 echo "$as_me:$LINENO: checking for _doprnt" >&5
38828 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
38829 if test "${ac_cv_func__doprnt+set}" = set; then
38830   echo $ECHO_N "(cached) $ECHO_C" >&6
38831 else
38832   cat >conftest.$ac_ext <<_ACEOF
38833 /* confdefs.h.  */
38834 _ACEOF
38835 cat confdefs.h >>conftest.$ac_ext
38836 cat >>conftest.$ac_ext <<_ACEOF
38837 /* end confdefs.h.  */
38838 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
38839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38840 #define _doprnt innocuous__doprnt
38841
38842 /* System header to define __stub macros and hopefully few prototypes,
38843     which can conflict with char _doprnt (); below.
38844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38845     <limits.h> exists even on freestanding compilers.  */
38846
38847 #ifdef __STDC__
38848 # include <limits.h>
38849 #else
38850 # include <assert.h>
38851 #endif
38852
38853 #undef _doprnt
38854
38855 /* Override any gcc2 internal prototype to avoid an error.  */
38856 #ifdef __cplusplus
38857 extern "C"
38858 {
38859 #endif
38860 /* We use char because int might match the return type of a gcc2
38861    builtin and then its argument prototype would still apply.  */
38862 char _doprnt ();
38863 /* The GNU C library defines this for functions which it implements
38864     to always fail with ENOSYS.  Some functions are actually named
38865     something starting with __ and the normal name is an alias.  */
38866 #if defined (__stub__doprnt) || defined (__stub____doprnt)
38867 choke me
38868 #else
38869 char (*f) () = _doprnt;
38870 #endif
38871 #ifdef __cplusplus
38872 }
38873 #endif
38874
38875 int
38876 main ()
38877 {
38878 return f != _doprnt;
38879   ;
38880   return 0;
38881 }
38882 _ACEOF
38883 rm -f conftest.$ac_objext conftest$ac_exeext
38884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38885   (eval $ac_link) 2>conftest.er1
38886   ac_status=$?
38887   grep -v '^ *+' conftest.er1 >conftest.err
38888   rm -f conftest.er1
38889   cat conftest.err >&5
38890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891   (exit $ac_status); } &&
38892          { ac_try='test -z "$ac_c_werror_flag"
38893                          || test ! -s conftest.err'
38894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38895   (eval $ac_try) 2>&5
38896   ac_status=$?
38897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38898   (exit $ac_status); }; } &&
38899          { ac_try='test -s conftest$ac_exeext'
38900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38901   (eval $ac_try) 2>&5
38902   ac_status=$?
38903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38904   (exit $ac_status); }; }; then
38905   ac_cv_func__doprnt=yes
38906 else
38907   echo "$as_me: failed program was:" >&5
38908 sed 's/^/| /' conftest.$ac_ext >&5
38909
38910 ac_cv_func__doprnt=no
38911 fi
38912 rm -f conftest.err conftest.$ac_objext \
38913       conftest$ac_exeext conftest.$ac_ext
38914 fi
38915 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
38916 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
38917 if test $ac_cv_func__doprnt = yes; then
38918
38919 cat >>confdefs.h <<\_ACEOF
38920 #define HAVE_DOPRNT 1
38921 _ACEOF
38922
38923 fi
38924
38925 fi
38926 done
38927
38928
38929
38930 if test $ac_cv_func_vprintf = yes ; then
38931
38932
38933 for ac_func in snprintf vsnprintf
38934 do
38935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38936 echo "$as_me:$LINENO: checking for $ac_func" >&5
38937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38938 if eval "test \"\${$as_ac_var+set}\" = set"; then
38939   echo $ECHO_N "(cached) $ECHO_C" >&6
38940 else
38941   cat >conftest.$ac_ext <<_ACEOF
38942 /* confdefs.h.  */
38943 _ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h.  */
38947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38949 #define $ac_func innocuous_$ac_func
38950
38951 /* System header to define __stub macros and hopefully few prototypes,
38952     which can conflict with char $ac_func (); below.
38953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38954     <limits.h> exists even on freestanding compilers.  */
38955
38956 #ifdef __STDC__
38957 # include <limits.h>
38958 #else
38959 # include <assert.h>
38960 #endif
38961
38962 #undef $ac_func
38963
38964 /* Override any gcc2 internal prototype to avoid an error.  */
38965 #ifdef __cplusplus
38966 extern "C"
38967 {
38968 #endif
38969 /* We use char because int might match the return type of a gcc2
38970    builtin and then its argument prototype would still apply.  */
38971 char $ac_func ();
38972 /* The GNU C library defines this for functions which it implements
38973     to always fail with ENOSYS.  Some functions are actually named
38974     something starting with __ and the normal name is an alias.  */
38975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38976 choke me
38977 #else
38978 char (*f) () = $ac_func;
38979 #endif
38980 #ifdef __cplusplus
38981 }
38982 #endif
38983
38984 int
38985 main ()
38986 {
38987 return f != $ac_func;
38988   ;
38989   return 0;
38990 }
38991 _ACEOF
38992 rm -f conftest.$ac_objext conftest$ac_exeext
38993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38994   (eval $ac_link) 2>conftest.er1
38995   ac_status=$?
38996   grep -v '^ *+' conftest.er1 >conftest.err
38997   rm -f conftest.er1
38998   cat conftest.err >&5
38999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39000   (exit $ac_status); } &&
39001          { ac_try='test -z "$ac_c_werror_flag"
39002                          || test ! -s conftest.err'
39003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39004   (eval $ac_try) 2>&5
39005   ac_status=$?
39006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007   (exit $ac_status); }; } &&
39008          { ac_try='test -s conftest$ac_exeext'
39009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39010   (eval $ac_try) 2>&5
39011   ac_status=$?
39012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39013   (exit $ac_status); }; }; then
39014   eval "$as_ac_var=yes"
39015 else
39016   echo "$as_me: failed program was:" >&5
39017 sed 's/^/| /' conftest.$ac_ext >&5
39018
39019 eval "$as_ac_var=no"
39020 fi
39021 rm -f conftest.err conftest.$ac_objext \
39022       conftest$ac_exeext conftest.$ac_ext
39023 fi
39024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39026 if test `eval echo '${'$as_ac_var'}'` = yes; then
39027   cat >>confdefs.h <<_ACEOF
39028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39029 _ACEOF
39030
39031 fi
39032 done
39033
39034 fi
39035
39036
39037
39038
39039
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051
39052
39053
39054
39055
39056
39057
39058
39059
39060
39061
39062
39063
39064
39065
39066
39067
39068
39069
39070
39071
39072
39073
39074
39075
39076
39077
39078
39079
39080
39081
39082
39083
39084
39085
39086
39087
39088
39089
39090 for ac_func in \
39091         bcopy                   \
39092         closesocket             \
39093         chroot                  \
39094         endgrent                \
39095         endpwent                \
39096         fcntl                   \
39097         flock                   \
39098         fstat                   \
39099         getdtablesize   \
39100         getgrgid                \
39101         gethostname             \
39102         getpass                 \
39103         getpassphrase   \
39104         getpwuid                \
39105         getpwnam                \
39106         getspnam                \
39107         gettimeofday    \
39108         initgroups              \
39109         inet_ntoa_b             \
39110         lockf                   \
39111         memcpy                  \
39112         memmove                 \
39113         memrchr                 \
39114         mkstemp                 \
39115         mktemp                  \
39116         pipe                    \
39117         read                    \
39118         recv                    \
39119         recvfrom                \
39120         setpwfile               \
39121         setgid                  \
39122         setegid                 \
39123         setsid                  \
39124         setuid                  \
39125         seteuid                 \
39126         signal                  \
39127         strdup                  \
39128         strpbrk                 \
39129         strrchr                 \
39130         strsep                  \
39131         strstr                  \
39132         strtol                  \
39133         strtoul                 \
39134         strtoq                  \
39135         strtouq                 \
39136         strtoll                 \
39137         strspn                  \
39138         sysconf                 \
39139         waitpid                 \
39140         wait4                   \
39141         write                   \
39142         send                    \
39143         sendmsg                 \
39144         sendto                  \
39145
39146 do
39147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39148 echo "$as_me:$LINENO: checking for $ac_func" >&5
39149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39150 if eval "test \"\${$as_ac_var+set}\" = set"; then
39151   echo $ECHO_N "(cached) $ECHO_C" >&6
39152 else
39153   cat >conftest.$ac_ext <<_ACEOF
39154 /* confdefs.h.  */
39155 _ACEOF
39156 cat confdefs.h >>conftest.$ac_ext
39157 cat >>conftest.$ac_ext <<_ACEOF
39158 /* end confdefs.h.  */
39159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39161 #define $ac_func innocuous_$ac_func
39162
39163 /* System header to define __stub macros and hopefully few prototypes,
39164     which can conflict with char $ac_func (); below.
39165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39166     <limits.h> exists even on freestanding compilers.  */
39167
39168 #ifdef __STDC__
39169 # include <limits.h>
39170 #else
39171 # include <assert.h>
39172 #endif
39173
39174 #undef $ac_func
39175
39176 /* Override any gcc2 internal prototype to avoid an error.  */
39177 #ifdef __cplusplus
39178 extern "C"
39179 {
39180 #endif
39181 /* We use char because int might match the return type of a gcc2
39182    builtin and then its argument prototype would still apply.  */
39183 char $ac_func ();
39184 /* The GNU C library defines this for functions which it implements
39185     to always fail with ENOSYS.  Some functions are actually named
39186     something starting with __ and the normal name is an alias.  */
39187 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39188 choke me
39189 #else
39190 char (*f) () = $ac_func;
39191 #endif
39192 #ifdef __cplusplus
39193 }
39194 #endif
39195
39196 int
39197 main ()
39198 {
39199 return f != $ac_func;
39200   ;
39201   return 0;
39202 }
39203 _ACEOF
39204 rm -f conftest.$ac_objext conftest$ac_exeext
39205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39206   (eval $ac_link) 2>conftest.er1
39207   ac_status=$?
39208   grep -v '^ *+' conftest.er1 >conftest.err
39209   rm -f conftest.er1
39210   cat conftest.err >&5
39211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212   (exit $ac_status); } &&
39213          { ac_try='test -z "$ac_c_werror_flag"
39214                          || test ! -s conftest.err'
39215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216   (eval $ac_try) 2>&5
39217   ac_status=$?
39218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219   (exit $ac_status); }; } &&
39220          { ac_try='test -s conftest$ac_exeext'
39221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39222   (eval $ac_try) 2>&5
39223   ac_status=$?
39224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39225   (exit $ac_status); }; }; then
39226   eval "$as_ac_var=yes"
39227 else
39228   echo "$as_me: failed program was:" >&5
39229 sed 's/^/| /' conftest.$ac_ext >&5
39230
39231 eval "$as_ac_var=no"
39232 fi
39233 rm -f conftest.err conftest.$ac_objext \
39234       conftest$ac_exeext conftest.$ac_ext
39235 fi
39236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39237 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39238 if test `eval echo '${'$as_ac_var'}'` = yes; then
39239   cat >>confdefs.h <<_ACEOF
39240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39241 _ACEOF
39242
39243 fi
39244 done
39245
39246
39247
39248
39249 for ac_func in getopt getpeereid
39250 do
39251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39252 echo "$as_me:$LINENO: checking for $ac_func" >&5
39253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39254 if eval "test \"\${$as_ac_var+set}\" = set"; then
39255   echo $ECHO_N "(cached) $ECHO_C" >&6
39256 else
39257   cat >conftest.$ac_ext <<_ACEOF
39258 /* confdefs.h.  */
39259 _ACEOF
39260 cat confdefs.h >>conftest.$ac_ext
39261 cat >>conftest.$ac_ext <<_ACEOF
39262 /* end confdefs.h.  */
39263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39265 #define $ac_func innocuous_$ac_func
39266
39267 /* System header to define __stub macros and hopefully few prototypes,
39268     which can conflict with char $ac_func (); below.
39269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39270     <limits.h> exists even on freestanding compilers.  */
39271
39272 #ifdef __STDC__
39273 # include <limits.h>
39274 #else
39275 # include <assert.h>
39276 #endif
39277
39278 #undef $ac_func
39279
39280 /* Override any gcc2 internal prototype to avoid an error.  */
39281 #ifdef __cplusplus
39282 extern "C"
39283 {
39284 #endif
39285 /* We use char because int might match the return type of a gcc2
39286    builtin and then its argument prototype would still apply.  */
39287 char $ac_func ();
39288 /* The GNU C library defines this for functions which it implements
39289     to always fail with ENOSYS.  Some functions are actually named
39290     something starting with __ and the normal name is an alias.  */
39291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39292 choke me
39293 #else
39294 char (*f) () = $ac_func;
39295 #endif
39296 #ifdef __cplusplus
39297 }
39298 #endif
39299
39300 int
39301 main ()
39302 {
39303 return f != $ac_func;
39304   ;
39305   return 0;
39306 }
39307 _ACEOF
39308 rm -f conftest.$ac_objext conftest$ac_exeext
39309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39310   (eval $ac_link) 2>conftest.er1
39311   ac_status=$?
39312   grep -v '^ *+' conftest.er1 >conftest.err
39313   rm -f conftest.er1
39314   cat conftest.err >&5
39315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316   (exit $ac_status); } &&
39317          { ac_try='test -z "$ac_c_werror_flag"
39318                          || test ! -s conftest.err'
39319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39320   (eval $ac_try) 2>&5
39321   ac_status=$?
39322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39323   (exit $ac_status); }; } &&
39324          { ac_try='test -s conftest$ac_exeext'
39325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39326   (eval $ac_try) 2>&5
39327   ac_status=$?
39328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39329   (exit $ac_status); }; }; then
39330   eval "$as_ac_var=yes"
39331 else
39332   echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.$ac_ext >&5
39334
39335 eval "$as_ac_var=no"
39336 fi
39337 rm -f conftest.err conftest.$ac_objext \
39338       conftest$ac_exeext conftest.$ac_ext
39339 fi
39340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39342 if test `eval echo '${'$as_ac_var'}'` = yes; then
39343   cat >>confdefs.h <<_ACEOF
39344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39345 _ACEOF
39346
39347 else
39348   case $LIBOBJS in
39349     "$ac_func.$ac_objext"   | \
39350   *" $ac_func.$ac_objext"   | \
39351     "$ac_func.$ac_objext "* | \
39352   *" $ac_func.$ac_objext "* ) ;;
39353   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39354 esac
39355
39356 fi
39357 done
39358
39359
39360
39361 if test "$ac_cv_func_getopt" != yes; then
39362         LIBSRCS="$LIBSRCS getopt.c"
39363 fi
39364
39365 if test "$ac_cv_func_getpeereid" != yes; then
39366
39367 for ac_func in getpeerucred
39368 do
39369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39370 echo "$as_me:$LINENO: checking for $ac_func" >&5
39371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39372 if eval "test \"\${$as_ac_var+set}\" = set"; then
39373   echo $ECHO_N "(cached) $ECHO_C" >&6
39374 else
39375   cat >conftest.$ac_ext <<_ACEOF
39376 /* confdefs.h.  */
39377 _ACEOF
39378 cat confdefs.h >>conftest.$ac_ext
39379 cat >>conftest.$ac_ext <<_ACEOF
39380 /* end confdefs.h.  */
39381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39383 #define $ac_func innocuous_$ac_func
39384
39385 /* System header to define __stub macros and hopefully few prototypes,
39386     which can conflict with char $ac_func (); below.
39387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39388     <limits.h> exists even on freestanding compilers.  */
39389
39390 #ifdef __STDC__
39391 # include <limits.h>
39392 #else
39393 # include <assert.h>
39394 #endif
39395
39396 #undef $ac_func
39397
39398 /* Override any gcc2 internal prototype to avoid an error.  */
39399 #ifdef __cplusplus
39400 extern "C"
39401 {
39402 #endif
39403 /* We use char because int might match the return type of a gcc2
39404    builtin and then its argument prototype would still apply.  */
39405 char $ac_func ();
39406 /* The GNU C library defines this for functions which it implements
39407     to always fail with ENOSYS.  Some functions are actually named
39408     something starting with __ and the normal name is an alias.  */
39409 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39410 choke me
39411 #else
39412 char (*f) () = $ac_func;
39413 #endif
39414 #ifdef __cplusplus
39415 }
39416 #endif
39417
39418 int
39419 main ()
39420 {
39421 return f != $ac_func;
39422   ;
39423   return 0;
39424 }
39425 _ACEOF
39426 rm -f conftest.$ac_objext conftest$ac_exeext
39427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39428   (eval $ac_link) 2>conftest.er1
39429   ac_status=$?
39430   grep -v '^ *+' conftest.er1 >conftest.err
39431   rm -f conftest.er1
39432   cat conftest.err >&5
39433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39434   (exit $ac_status); } &&
39435          { ac_try='test -z "$ac_c_werror_flag"
39436                          || test ! -s conftest.err'
39437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39438   (eval $ac_try) 2>&5
39439   ac_status=$?
39440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39441   (exit $ac_status); }; } &&
39442          { ac_try='test -s conftest$ac_exeext'
39443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39444   (eval $ac_try) 2>&5
39445   ac_status=$?
39446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39447   (exit $ac_status); }; }; then
39448   eval "$as_ac_var=yes"
39449 else
39450   echo "$as_me: failed program was:" >&5
39451 sed 's/^/| /' conftest.$ac_ext >&5
39452
39453 eval "$as_ac_var=no"
39454 fi
39455 rm -f conftest.err conftest.$ac_objext \
39456       conftest$ac_exeext conftest.$ac_ext
39457 fi
39458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39459 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39460 if test `eval echo '${'$as_ac_var'}'` = yes; then
39461   cat >>confdefs.h <<_ACEOF
39462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39463 _ACEOF
39464
39465 fi
39466 done
39467
39468         if test "$ac_cv_func_getpeerucred" != yes ; then
39469                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
39470 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
39471 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
39472   echo $ECHO_N "(cached) $ECHO_C" >&6
39473 else
39474   cat >conftest.$ac_ext <<_ACEOF
39475 /* confdefs.h.  */
39476 _ACEOF
39477 cat confdefs.h >>conftest.$ac_ext
39478 cat >>conftest.$ac_ext <<_ACEOF
39479 /* end confdefs.h.  */
39480 $ac_includes_default
39481 #ifdef HAVE_SYS_SOCKET_H
39482 #include <sys/socket.h>
39483 #endif
39484
39485 int
39486 main ()
39487 {
39488 static struct msghdr ac_aggr;
39489 if (ac_aggr.msg_accrightslen)
39490 return 0;
39491   ;
39492   return 0;
39493 }
39494 _ACEOF
39495 rm -f conftest.$ac_objext
39496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39497   (eval $ac_compile) 2>conftest.er1
39498   ac_status=$?
39499   grep -v '^ *+' conftest.er1 >conftest.err
39500   rm -f conftest.er1
39501   cat conftest.err >&5
39502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503   (exit $ac_status); } &&
39504          { ac_try='test -z "$ac_c_werror_flag"
39505                          || test ! -s conftest.err'
39506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39507   (eval $ac_try) 2>&5
39508   ac_status=$?
39509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510   (exit $ac_status); }; } &&
39511          { ac_try='test -s conftest.$ac_objext'
39512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39513   (eval $ac_try) 2>&5
39514   ac_status=$?
39515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39516   (exit $ac_status); }; }; then
39517   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39518 else
39519   echo "$as_me: failed program was:" >&5
39520 sed 's/^/| /' conftest.$ac_ext >&5
39521
39522 cat >conftest.$ac_ext <<_ACEOF
39523 /* confdefs.h.  */
39524 _ACEOF
39525 cat confdefs.h >>conftest.$ac_ext
39526 cat >>conftest.$ac_ext <<_ACEOF
39527 /* end confdefs.h.  */
39528 $ac_includes_default
39529 #ifdef HAVE_SYS_SOCKET_H
39530 #include <sys/socket.h>
39531 #endif
39532
39533 int
39534 main ()
39535 {
39536 static struct msghdr ac_aggr;
39537 if (sizeof ac_aggr.msg_accrightslen)
39538 return 0;
39539   ;
39540   return 0;
39541 }
39542 _ACEOF
39543 rm -f conftest.$ac_objext
39544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39545   (eval $ac_compile) 2>conftest.er1
39546   ac_status=$?
39547   grep -v '^ *+' conftest.er1 >conftest.err
39548   rm -f conftest.er1
39549   cat conftest.err >&5
39550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39551   (exit $ac_status); } &&
39552          { ac_try='test -z "$ac_c_werror_flag"
39553                          || test ! -s conftest.err'
39554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39555   (eval $ac_try) 2>&5
39556   ac_status=$?
39557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39558   (exit $ac_status); }; } &&
39559          { ac_try='test -s conftest.$ac_objext'
39560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39561   (eval $ac_try) 2>&5
39562   ac_status=$?
39563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39564   (exit $ac_status); }; }; then
39565   ac_cv_member_struct_msghdr_msg_accrightslen=yes
39566 else
39567   echo "$as_me: failed program was:" >&5
39568 sed 's/^/| /' conftest.$ac_ext >&5
39569
39570 ac_cv_member_struct_msghdr_msg_accrightslen=no
39571 fi
39572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39573 fi
39574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39575 fi
39576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
39577 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
39578 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
39579
39580 cat >>confdefs.h <<_ACEOF
39581 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
39582 _ACEOF
39583
39584
39585 fi
39586
39587                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
39588                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
39589 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
39590 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
39591   echo $ECHO_N "(cached) $ECHO_C" >&6
39592 else
39593   cat >conftest.$ac_ext <<_ACEOF
39594 /* confdefs.h.  */
39595 _ACEOF
39596 cat confdefs.h >>conftest.$ac_ext
39597 cat >>conftest.$ac_ext <<_ACEOF
39598 /* end confdefs.h.  */
39599 $ac_includes_default
39600 #ifdef HAVE_SYS_SOCKET_H
39601 #include <sys/socket.h>
39602 #endif
39603
39604 int
39605 main ()
39606 {
39607 static struct msghdr ac_aggr;
39608 if (ac_aggr.msg_control)
39609 return 0;
39610   ;
39611   return 0;
39612 }
39613 _ACEOF
39614 rm -f conftest.$ac_objext
39615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39616   (eval $ac_compile) 2>conftest.er1
39617   ac_status=$?
39618   grep -v '^ *+' conftest.er1 >conftest.err
39619   rm -f conftest.er1
39620   cat conftest.err >&5
39621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39622   (exit $ac_status); } &&
39623          { ac_try='test -z "$ac_c_werror_flag"
39624                          || test ! -s conftest.err'
39625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39626   (eval $ac_try) 2>&5
39627   ac_status=$?
39628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39629   (exit $ac_status); }; } &&
39630          { ac_try='test -s conftest.$ac_objext'
39631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39632   (eval $ac_try) 2>&5
39633   ac_status=$?
39634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39635   (exit $ac_status); }; }; then
39636   ac_cv_member_struct_msghdr_msg_control=yes
39637 else
39638   echo "$as_me: failed program was:" >&5
39639 sed 's/^/| /' conftest.$ac_ext >&5
39640
39641 cat >conftest.$ac_ext <<_ACEOF
39642 /* confdefs.h.  */
39643 _ACEOF
39644 cat confdefs.h >>conftest.$ac_ext
39645 cat >>conftest.$ac_ext <<_ACEOF
39646 /* end confdefs.h.  */
39647 $ac_includes_default
39648 #ifdef HAVE_SYS_SOCKET_H
39649 #include <sys/socket.h>
39650 #endif
39651
39652 int
39653 main ()
39654 {
39655 static struct msghdr ac_aggr;
39656 if (sizeof ac_aggr.msg_control)
39657 return 0;
39658   ;
39659   return 0;
39660 }
39661 _ACEOF
39662 rm -f conftest.$ac_objext
39663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39664   (eval $ac_compile) 2>conftest.er1
39665   ac_status=$?
39666   grep -v '^ *+' conftest.er1 >conftest.err
39667   rm -f conftest.er1
39668   cat conftest.err >&5
39669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670   (exit $ac_status); } &&
39671          { ac_try='test -z "$ac_c_werror_flag"
39672                          || test ! -s conftest.err'
39673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39674   (eval $ac_try) 2>&5
39675   ac_status=$?
39676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39677   (exit $ac_status); }; } &&
39678          { ac_try='test -s conftest.$ac_objext'
39679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39680   (eval $ac_try) 2>&5
39681   ac_status=$?
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); }; }; then
39684   ac_cv_member_struct_msghdr_msg_control=yes
39685 else
39686   echo "$as_me: failed program was:" >&5
39687 sed 's/^/| /' conftest.$ac_ext >&5
39688
39689 ac_cv_member_struct_msghdr_msg_control=no
39690 fi
39691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39692 fi
39693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39694 fi
39695 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
39696 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
39697 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
39698
39699 cat >>confdefs.h <<_ACEOF
39700 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
39701 _ACEOF
39702
39703
39704 fi
39705
39706                 fi
39707         fi
39708         LIBSRCS="$LIBSRCS getpeereid.c"
39709 fi
39710
39711 if test "$ac_cv_func_snprintf" != yes ||
39712    test "$ac_cv_func_vsnprintf" != yes; then
39713         if test "$ac_cv_func_snprintf" != yes; then
39714
39715 cat >>confdefs.h <<\_ACEOF
39716 #define snprintf ber_pvt_snprintf
39717 _ACEOF
39718
39719         fi
39720         if test "$ac_cv_func_vsnprintf" != yes; then
39721
39722 cat >>confdefs.h <<\_ACEOF
39723 #define vsnprintf ber_pvt_vsnprintf
39724 _ACEOF
39725
39726         fi
39727 fi
39728
39729
39730 if test "$ol_enable_slapi" != no ; then
39731
39732 for ac_header in ltdl.h
39733 do
39734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39736   echo "$as_me:$LINENO: checking for $ac_header" >&5
39737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39739   echo $ECHO_N "(cached) $ECHO_C" >&6
39740 fi
39741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39743 else
39744   # Is the header compilable?
39745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39747 cat >conftest.$ac_ext <<_ACEOF
39748 /* confdefs.h.  */
39749 _ACEOF
39750 cat confdefs.h >>conftest.$ac_ext
39751 cat >>conftest.$ac_ext <<_ACEOF
39752 /* end confdefs.h.  */
39753 $ac_includes_default
39754 #include <$ac_header>
39755 _ACEOF
39756 rm -f conftest.$ac_objext
39757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39758   (eval $ac_compile) 2>conftest.er1
39759   ac_status=$?
39760   grep -v '^ *+' conftest.er1 >conftest.err
39761   rm -f conftest.er1
39762   cat conftest.err >&5
39763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); } &&
39765          { ac_try='test -z "$ac_c_werror_flag"
39766                          || test ! -s conftest.err'
39767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39768   (eval $ac_try) 2>&5
39769   ac_status=$?
39770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39771   (exit $ac_status); }; } &&
39772          { ac_try='test -s conftest.$ac_objext'
39773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39774   (eval $ac_try) 2>&5
39775   ac_status=$?
39776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39777   (exit $ac_status); }; }; then
39778   ac_header_compiler=yes
39779 else
39780   echo "$as_me: failed program was:" >&5
39781 sed 's/^/| /' conftest.$ac_ext >&5
39782
39783 ac_header_compiler=no
39784 fi
39785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39787 echo "${ECHO_T}$ac_header_compiler" >&6
39788
39789 # Is the header present?
39790 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39792 cat >conftest.$ac_ext <<_ACEOF
39793 /* confdefs.h.  */
39794 _ACEOF
39795 cat confdefs.h >>conftest.$ac_ext
39796 cat >>conftest.$ac_ext <<_ACEOF
39797 /* end confdefs.h.  */
39798 #include <$ac_header>
39799 _ACEOF
39800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39802   ac_status=$?
39803   grep -v '^ *+' conftest.er1 >conftest.err
39804   rm -f conftest.er1
39805   cat conftest.err >&5
39806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39807   (exit $ac_status); } >/dev/null; then
39808   if test -s conftest.err; then
39809     ac_cpp_err=$ac_c_preproc_warn_flag
39810     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39811   else
39812     ac_cpp_err=
39813   fi
39814 else
39815   ac_cpp_err=yes
39816 fi
39817 if test -z "$ac_cpp_err"; then
39818   ac_header_preproc=yes
39819 else
39820   echo "$as_me: failed program was:" >&5
39821 sed 's/^/| /' conftest.$ac_ext >&5
39822
39823   ac_header_preproc=no
39824 fi
39825 rm -f conftest.err conftest.$ac_ext
39826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39827 echo "${ECHO_T}$ac_header_preproc" >&6
39828
39829 # So?  What about this header?
39830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39831   yes:no: )
39832     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39833 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39834     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39835 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39836     ac_header_preproc=yes
39837     ;;
39838   no:yes:* )
39839     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39840 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39841     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39842 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39843     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39844 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39845     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39846 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39847     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39848 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39849     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39850 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39851     (
39852       cat <<\_ASBOX
39853 ## --------------------------------------------- ##
39854 ## Report this to <http://www.openldap.org/its/> ##
39855 ## --------------------------------------------- ##
39856 _ASBOX
39857     ) |
39858       sed "s/^/$as_me: WARNING:     /" >&2
39859     ;;
39860 esac
39861 echo "$as_me:$LINENO: checking for $ac_header" >&5
39862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39864   echo $ECHO_N "(cached) $ECHO_C" >&6
39865 else
39866   eval "$as_ac_Header=\$ac_header_preproc"
39867 fi
39868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39870
39871 fi
39872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39873   cat >>confdefs.h <<_ACEOF
39874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39875 _ACEOF
39876
39877 fi
39878
39879 done
39880
39881
39882         if test $ac_cv_header_ltdl_h != yes ; then
39883                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
39884 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
39885    { (exit 1); exit 1; }; }
39886         fi
39887         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
39888 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
39889 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
39890   echo $ECHO_N "(cached) $ECHO_C" >&6
39891 else
39892   ac_check_lib_save_LIBS=$LIBS
39893 LIBS="-lltdl  $LIBS"
39894 cat >conftest.$ac_ext <<_ACEOF
39895 /* confdefs.h.  */
39896 _ACEOF
39897 cat confdefs.h >>conftest.$ac_ext
39898 cat >>conftest.$ac_ext <<_ACEOF
39899 /* end confdefs.h.  */
39900
39901 /* Override any gcc2 internal prototype to avoid an error.  */
39902 #ifdef __cplusplus
39903 extern "C"
39904 #endif
39905 /* We use char because int might match the return type of a gcc2
39906    builtin and then its argument prototype would still apply.  */
39907 char lt_dlinit ();
39908 int
39909 main ()
39910 {
39911 lt_dlinit ();
39912   ;
39913   return 0;
39914 }
39915 _ACEOF
39916 rm -f conftest.$ac_objext conftest$ac_exeext
39917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39918   (eval $ac_link) 2>conftest.er1
39919   ac_status=$?
39920   grep -v '^ *+' conftest.er1 >conftest.err
39921   rm -f conftest.er1
39922   cat conftest.err >&5
39923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39924   (exit $ac_status); } &&
39925          { ac_try='test -z "$ac_c_werror_flag"
39926                          || test ! -s conftest.err'
39927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39928   (eval $ac_try) 2>&5
39929   ac_status=$?
39930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39931   (exit $ac_status); }; } &&
39932          { ac_try='test -s conftest$ac_exeext'
39933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39934   (eval $ac_try) 2>&5
39935   ac_status=$?
39936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937   (exit $ac_status); }; }; then
39938   ac_cv_lib_ltdl_lt_dlinit=yes
39939 else
39940   echo "$as_me: failed program was:" >&5
39941 sed 's/^/| /' conftest.$ac_ext >&5
39942
39943 ac_cv_lib_ltdl_lt_dlinit=no
39944 fi
39945 rm -f conftest.err conftest.$ac_objext \
39946       conftest$ac_exeext conftest.$ac_ext
39947 LIBS=$ac_check_lib_save_LIBS
39948 fi
39949 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
39950 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
39951 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
39952
39953                 SLAPI_LIBS=-lltdl
39954                 LIBSLAPI=libslapi.a
39955                 LIBSLAPITOOLS=../libslapi.a
39956
39957 cat >>confdefs.h <<\_ACEOF
39958 #define HAVE_LIBLTDL 1
39959 _ACEOF
39960
39961
39962 else
39963   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
39964 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
39965    { (exit 1); exit 1; }; }
39966 fi
39967
39968
39969
39970 cat >>confdefs.h <<\_ACEOF
39971 #define LDAP_SLAPI 1
39972 _ACEOF
39973
39974 fi
39975
39976 if test "$ol_enable_debug" != no ; then
39977         if test "$ol_enable_debug" = traditional; then
39978
39979 cat >>confdefs.h <<\_ACEOF
39980 #define OLD_DEBUG 1
39981 _ACEOF
39982
39983         fi
39984
39985 cat >>confdefs.h <<\_ACEOF
39986 #define LDAP_DEBUG 1
39987 _ACEOF
39988
39989 fi
39990 if test "$ol_enable_syslog" = yes ; then
39991
39992 cat >>confdefs.h <<\_ACEOF
39993 #define LDAP_SYSLOG 1
39994 _ACEOF
39995
39996 fi
39997 if test "$ol_link_kbind" != no ; then
39998
39999 cat >>confdefs.h <<\_ACEOF
40000 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
40001 _ACEOF
40002
40003 fi
40004 if test "$ol_enable_proctitle" != no ; then
40005
40006 cat >>confdefs.h <<\_ACEOF
40007 #define LDAP_PROCTITLE 1
40008 _ACEOF
40009
40010 fi
40011 if test "$ol_enable_referrals" != no ; then
40012
40013 cat >>confdefs.h <<\_ACEOF
40014 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
40015 _ACEOF
40016
40017 fi
40018 if test "$ol_enable_local" != no; then
40019
40020 cat >>confdefs.h <<\_ACEOF
40021 #define LDAP_PF_LOCAL 1
40022 _ACEOF
40023
40024 fi
40025 if test "$ol_link_ipv6" != no; then
40026
40027 cat >>confdefs.h <<\_ACEOF
40028 #define LDAP_PF_INET6 1
40029 _ACEOF
40030
40031 fi
40032 if test "$ol_enable_cleartext" != no ; then
40033
40034 cat >>confdefs.h <<\_ACEOF
40035 #define SLAPD_CLEARTEXT 1
40036 _ACEOF
40037
40038 fi
40039 if test "$ol_enable_crypt" != no ; then
40040
40041 cat >>confdefs.h <<\_ACEOF
40042 #define SLAPD_CRYPT 1
40043 _ACEOF
40044
40045 fi
40046 if test "$ol_link_spasswd" != no ; then
40047
40048 cat >>confdefs.h <<\_ACEOF
40049 #define SLAPD_SPASSWD 1
40050 _ACEOF
40051
40052 fi
40053 if test "$ol_enable_rlookups" != no ; then
40054
40055 cat >>confdefs.h <<\_ACEOF
40056 #define SLAPD_RLOOKUPS 1
40057 _ACEOF
40058
40059 fi
40060 if test "$ol_enable_aci" != no ; then
40061         if test $ol_enable_dynacl = no ; then
40062                 ol_enable_dynacl=yes
40063                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
40064 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
40065         fi
40066         if test "$ol_enable_aci" = mod ; then
40067                 MFLAG=SLAPD_MOD_DYNAMIC
40068                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
40069 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
40070    { (exit 1); exit 1; }; }
40071         else
40072                 MFLAG=SLAPD_MOD_STATIC
40073         fi
40074         WITH_ACI_ENABLED=$ol_enable_aci
40075
40076 cat >>confdefs.h <<_ACEOF
40077 #define SLAPD_ACI_ENABLED $MFLAG
40078 _ACEOF
40079
40080 else
40081         WITH_ACI_ENABLED=no
40082 fi
40083 if test "$ol_enable_dynacl" != no ; then
40084
40085 cat >>confdefs.h <<\_ACEOF
40086 #define SLAP_DYNACL 1
40087 _ACEOF
40088
40089 fi
40090
40091 if test "$ol_link_modules" != no ; then
40092
40093 cat >>confdefs.h <<\_ACEOF
40094 #define SLAPD_MODULES 1
40095 _ACEOF
40096
40097         BUILD_SLAPD=yes
40098         SLAPD_MODULES_LDFLAGS="-dlopen self"
40099 fi
40100
40101
40102 cat >>confdefs.h <<\_ACEOF
40103 #define SLAPD_MOD_STATIC 1
40104 _ACEOF
40105
40106
40107 cat >>confdefs.h <<\_ACEOF
40108 #define SLAPD_MOD_DYNAMIC 2
40109 _ACEOF
40110
40111
40112 if test "$ol_enable_monitor" != no ; then
40113         BUILD_SLAPD=yes
40114         BUILD_MONITOR=$ol_enable_monitor
40115         if test "$ol_enable_monitor" = mod ; then
40116                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
40117                 MFLAG=SLAPD_MOD_DYNAMIC
40118         else
40119                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
40120                 MFLAG=SLAPD_MOD_STATIC
40121         fi
40122
40123 cat >>confdefs.h <<_ACEOF
40124 #define SLAPD_MONITOR $MFLAG
40125 _ACEOF
40126
40127 fi
40128
40129 if test "$ol_enable_bdb" != no ; then
40130         BUILD_SLAPD=yes
40131         BUILD_BDB=$ol_enable_bdb
40132         if test "$ol_enable_bdb" = mod ; then
40133                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
40134                 MFLAG=SLAPD_MOD_DYNAMIC
40135         else
40136                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
40137                 MFLAG=SLAPD_MOD_STATIC
40138         fi
40139
40140 cat >>confdefs.h <<_ACEOF
40141 #define SLAPD_BDB $MFLAG
40142 _ACEOF
40143
40144 fi
40145
40146 if test "$ol_enable_dnssrv" != no ; then
40147         BUILD_SLAPD=yes
40148         BUILD_DNSSRV=$ol_enable_dnssrv
40149         if test "$ol_enable_dnssrv" = mod ; then
40150                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
40151                 MFLAG=SLAPD_MOD_DYNAMIC
40152         else
40153                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
40154                 MFLAG=SLAPD_MOD_STATIC
40155         fi
40156
40157 cat >>confdefs.h <<_ACEOF
40158 #define SLAPD_DNSSRV $MFLAG
40159 _ACEOF
40160
40161 fi
40162
40163 if test "$ol_enable_hdb" != no ; then
40164         BUILD_SLAPD=yes
40165         BUILD_HDB=$ol_enable_hdb
40166         if test "$ol_enable_hdb" = mod ; then
40167                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
40168                 MFLAG=SLAPD_MOD_DYNAMIC
40169         else
40170                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
40171                 MFLAG=SLAPD_MOD_STATIC
40172         fi
40173
40174 cat >>confdefs.h <<_ACEOF
40175 #define SLAPD_HDB $MFLAG
40176 _ACEOF
40177
40178 fi
40179
40180 if test "$ol_enable_ldap" != no ; then
40181         BUILD_SLAPD=yes
40182         BUILD_LDAP=$ol_enable_ldap
40183         if test "$ol_enable_ldap" = mod ; then
40184                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
40185                 MFLAG=SLAPD_MOD_DYNAMIC
40186         else
40187                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
40188                 MFLAG=SLAPD_MOD_STATIC
40189         fi
40190
40191 cat >>confdefs.h <<_ACEOF
40192 #define SLAPD_LDAP $MFLAG
40193 _ACEOF
40194
40195 fi
40196
40197 if test "$ol_enable_meta" != no ; then
40198         BUILD_SLAPD=yes
40199         BUILD_META=$ol_enable_meta
40200         BUILD_REWRITE=yes
40201         if test "$ol_enable_meta" = mod ; then
40202                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
40203                 MFLAG=SLAPD_MOD_DYNAMIC
40204         else
40205                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
40206                 MFLAG=SLAPD_MOD_STATIC
40207         fi
40208
40209 cat >>confdefs.h <<_ACEOF
40210 #define SLAPD_META $MFLAG
40211 _ACEOF
40212
40213 fi
40214
40215 if test "$ol_enable_null" != no ; then
40216         BUILD_SLAPD=yes
40217         BUILD_NULL=$ol_enable_null
40218         if test "$ol_enable_null" = mod ; then
40219                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
40220                 MFLAG=SLAPD_MOD_DYNAMIC
40221         else
40222                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
40223                 MFLAG=SLAPD_MOD_STATIC
40224         fi
40225
40226 cat >>confdefs.h <<_ACEOF
40227 #define SLAPD_NULL $MFLAG
40228 _ACEOF
40229
40230 fi
40231
40232 if test "$ol_enable_passwd" != no ; then
40233         BUILD_SLAPD=yes
40234         BUILD_PASSWD=$ol_enable_passwd
40235         if test "$ol_enable_passwd" = mod ; then
40236                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
40237                 MFLAG=SLAPD_MOD_DYNAMIC
40238         else
40239                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
40240                 MFLAG=SLAPD_MOD_STATIC
40241         fi
40242
40243 cat >>confdefs.h <<_ACEOF
40244 #define SLAPD_PASSWD $MFLAG
40245 _ACEOF
40246
40247 fi
40248
40249 if test "$ol_link_perl" != no ; then
40250         BUILD_SLAPD=yes
40251         BUILD_PERL=$ol_enable_perl
40252         if test "$ol_enable_perl" = mod ; then
40253                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
40254                 MFLAG=SLAPD_MOD_DYNAMIC
40255         else
40256                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
40257                 MFLAG=SLAPD_MOD_STATIC
40258         fi
40259
40260 cat >>confdefs.h <<_ACEOF
40261 #define SLAPD_PERL $MFLAG
40262 _ACEOF
40263
40264 fi
40265
40266 if test "$ol_enable_relay" != no ; then
40267         BUILD_SLAPD=yes
40268         BUILD_RELAY=$ol_enable_relay
40269         if test "$ol_enable_relay" = mod ; then
40270                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
40271                 MFLAG=SLAPD_MOD_DYNAMIC
40272         else
40273                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
40274                 MFLAG=SLAPD_MOD_STATIC
40275         fi
40276
40277 cat >>confdefs.h <<_ACEOF
40278 #define SLAPD_RELAY $MFLAG
40279 _ACEOF
40280
40281 fi
40282
40283 if test "$ol_enable_shell" != no ; then
40284         if test "$ol_link_threads" != no ; then
40285                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
40286 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
40287         fi
40288         BUILD_SLAPD=yes
40289         BUILD_SHELL=$ol_enable_shell
40290         if test "$ol_enable_shell" = mod ; then
40291                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
40292                 MFLAG=SLAPD_MOD_DYNAMIC
40293         else
40294                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
40295                 MFLAG=SLAPD_MOD_STATIC
40296         fi
40297
40298 cat >>confdefs.h <<_ACEOF
40299 #define SLAPD_SHELL $MFLAG
40300 _ACEOF
40301
40302 fi
40303
40304 if test "$ol_link_sql" != no ; then
40305         BUILD_SLAPD=yes
40306         BUILD_SQL=$ol_enable_sql
40307         if test "$ol_enable_sql" = mod; then
40308                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
40309                 MFLAG=SLAPD_MOD_DYNAMIC
40310         else
40311                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
40312                 MFLAG=SLAPD_MOD_STATIC
40313         fi
40314
40315 cat >>confdefs.h <<_ACEOF
40316 #define SLAPD_SQL $MFLAG
40317 _ACEOF
40318
40319 fi
40320
40321 if test "$ol_enable_accesslog" != no ; then
40322         BUILD_ACCESSLOG=$ol_enable_accesslog
40323         if test "$ol_enable_accesslog" = mod ; then
40324                 MFLAG=SLAPD_MOD_DYNAMIC
40325                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
40326         else
40327                 MFLAG=SLAPD_MOD_STATIC
40328                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
40329         fi
40330
40331 cat >>confdefs.h <<_ACEOF
40332 #define SLAPD_OVER_ACCESSLOG $MFLAG
40333 _ACEOF
40334
40335 fi
40336
40337 if test "$ol_enable_auditlog" != no ; then
40338         BUILD_AUDITLOG=$ol_enable_auditlog
40339         if test "$ol_enable_auditlog" = mod ; then
40340                 MFLAG=SLAPD_MOD_DYNAMIC
40341                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
40342         else
40343                 MFLAG=SLAPD_MOD_STATIC
40344                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
40345         fi
40346
40347 cat >>confdefs.h <<_ACEOF
40348 #define SLAPD_OVER_AUDITLOG $MFLAG
40349 _ACEOF
40350
40351 fi
40352
40353 if test "$ol_enable_constraint" != no ; then
40354         BUILD_CONSTRAINT=$ol_enable_constraint
40355         if test "$ol_enable_constraint" = mod ; then
40356                 MFLAG=SLAPD_MOD_DYNAMIC
40357                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
40358         else
40359                 MFLAG=SLAPD_MOD_STATIC
40360                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
40361         fi
40362
40363 cat >>confdefs.h <<_ACEOF
40364 #define SLAPD_OVER_CONSTRAINT $MFLAG
40365 _ACEOF
40366
40367 fi
40368
40369 if test "$ol_enable_dds" != no ; then
40370         BUILD_DDS=$ol_enable_dds
40371         if test "$ol_enable_dds" = mod ; then
40372                 MFLAG=SLAPD_MOD_DYNAMIC
40373                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
40374         else
40375                 MFLAG=SLAPD_MOD_STATIC
40376                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
40377         fi
40378
40379 cat >>confdefs.h <<_ACEOF
40380 #define SLAPD_OVER_DDS $MFLAG
40381 _ACEOF
40382
40383 fi
40384
40385 if test "$ol_enable_denyop" != no ; then
40386         BUILD_DENYOP=$ol_enable_denyop
40387         if test "$ol_enable_denyop" = mod ; then
40388                 MFLAG=SLAPD_MOD_DYNAMIC
40389                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
40390         else
40391                 MFLAG=SLAPD_MOD_STATIC
40392                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
40393         fi
40394
40395 cat >>confdefs.h <<_ACEOF
40396 #define SLAPD_OVER_DENYOP $MFLAG
40397 _ACEOF
40398
40399 fi
40400
40401 if test "$ol_enable_dyngroup" != no ; then
40402         BUILD_DYNGROUP=$ol_enable_dyngroup
40403         if test "$ol_enable_dyngroup" = mod ; then
40404                 MFLAG=SLAPD_MOD_DYNAMIC
40405                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
40406         else
40407                 MFLAG=SLAPD_MOD_STATIC
40408                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
40409         fi
40410
40411 cat >>confdefs.h <<_ACEOF
40412 #define SLAPD_OVER_DYNGROUP $MFLAG
40413 _ACEOF
40414
40415 fi
40416
40417 if test "$ol_enable_dynlist" != no ; then
40418         BUILD_DYNLIST=$ol_enable_dynlist
40419         if test "$ol_enable_dynlist" = mod ; then
40420                 MFLAG=SLAPD_MOD_DYNAMIC
40421                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
40422         else
40423                 MFLAG=SLAPD_MOD_STATIC
40424                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
40425         fi
40426
40427 cat >>confdefs.h <<_ACEOF
40428 #define SLAPD_OVER_DYNLIST $MFLAG
40429 _ACEOF
40430
40431 fi
40432
40433 if test "$ol_enable_lastmod" != no ; then
40434         BUILD_LASTMOD=$ol_enable_lastmod
40435         if test "$ol_enable_lastmod" = mod ; then
40436                 MFLAG=SLAPD_MOD_DYNAMIC
40437                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
40438         else
40439                 MFLAG=SLAPD_MOD_STATIC
40440                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
40441         fi
40442
40443 cat >>confdefs.h <<_ACEOF
40444 #define SLAPD_OVER_LASTMOD $MFLAG
40445 _ACEOF
40446
40447 fi
40448
40449 if test "$ol_enable_ppolicy" != no ; then
40450         BUILD_PPOLICY=$ol_enable_ppolicy
40451         if test "$ol_enable_ppolicy" = mod ; then
40452                 MFLAG=SLAPD_MOD_DYNAMIC
40453                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
40454         else
40455                 MFLAG=SLAPD_MOD_STATIC
40456                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
40457         fi
40458
40459 cat >>confdefs.h <<_ACEOF
40460 #define SLAPD_OVER_PPOLICY $MFLAG
40461 _ACEOF
40462
40463 fi
40464
40465 if test "$ol_enable_proxycache" != no ; then
40466         BUILD_PROXYCACHE=$ol_enable_proxycache
40467         if test "$ol_enable_proxycache" = mod ; then
40468                 MFLAG=SLAPD_MOD_DYNAMIC
40469                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
40470         else
40471                 MFLAG=SLAPD_MOD_STATIC
40472                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
40473         fi
40474
40475 cat >>confdefs.h <<_ACEOF
40476 #define SLAPD_OVER_PROXYCACHE $MFLAG
40477 _ACEOF
40478
40479 fi
40480
40481 if test "$ol_enable_refint" != no ; then
40482         BUILD_REFINT=$ol_enable_refint
40483         if test "$ol_enable_refint" = mod ; then
40484                 MFLAG=SLAPD_MOD_DYNAMIC
40485                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
40486         else
40487                 MFLAG=SLAPD_MOD_STATIC
40488                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
40489         fi
40490
40491 cat >>confdefs.h <<_ACEOF
40492 #define SLAPD_OVER_REFINT $MFLAG
40493 _ACEOF
40494
40495 fi
40496
40497 if test "$ol_enable_retcode" != no ; then
40498         BUILD_RETCODE=$ol_enable_retcode
40499         if test "$ol_enable_retcode" = mod ; then
40500                 MFLAG=SLAPD_MOD_DYNAMIC
40501                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
40502         else
40503                 MFLAG=SLAPD_MOD_STATIC
40504                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
40505         fi
40506
40507 cat >>confdefs.h <<_ACEOF
40508 #define SLAPD_OVER_RETCODE $MFLAG
40509 _ACEOF
40510
40511 fi
40512
40513 if test "$ol_enable_rwm" != no ; then
40514         BUILD_REWRITE=yes
40515         BUILD_RWM=$ol_enable_rwm
40516         if test "$ol_enable_rwm" = mod ; then
40517                 MFLAG=SLAPD_MOD_DYNAMIC
40518                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
40519         else
40520                 MFLAG=SLAPD_MOD_STATIC
40521                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
40522         fi
40523
40524 cat >>confdefs.h <<_ACEOF
40525 #define SLAPD_OVER_RWM $MFLAG
40526 _ACEOF
40527
40528 fi
40529
40530 if test "$ol_enable_seqmod" != no ; then
40531         BUILD_SEQMOD=$ol_enable_seqmod
40532         if test "$ol_enable_seqmod" = mod ; then
40533                 MFLAG=SLAPD_MOD_DYNAMIC
40534                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
40535         else
40536                 MFLAG=SLAPD_MOD_STATIC
40537                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
40538         fi
40539
40540 cat >>confdefs.h <<_ACEOF
40541 #define SLAPD_OVER_SEQMOD $MFLAG
40542 _ACEOF
40543
40544 fi
40545
40546 if test "$ol_enable_syncprov" != no ; then
40547         BUILD_SYNCPROV=$ol_enable_syncprov
40548         if test "$ol_enable_syncprov" = mod ; then
40549                 MFLAG=SLAPD_MOD_DYNAMIC
40550                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
40551         else
40552                 MFLAG=SLAPD_MOD_STATIC
40553                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
40554         fi
40555
40556 cat >>confdefs.h <<_ACEOF
40557 #define SLAPD_OVER_SYNCPROV $MFLAG
40558 _ACEOF
40559
40560 fi
40561
40562 if test "$ol_enable_translucent" != no ; then
40563         BUILD_TRANSLUCENT=$ol_enable_translucent
40564         if test "$ol_enable_translucent" = mod ; then
40565                 MFLAG=SLAPD_MOD_DYNAMIC
40566                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
40567         else
40568                 MFLAG=SLAPD_MOD_STATIC
40569                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
40570         fi
40571
40572 cat >>confdefs.h <<_ACEOF
40573 #define SLAPD_OVER_TRANSLUCENT $MFLAG
40574 _ACEOF
40575
40576 fi
40577
40578 if test "$ol_enable_unique" != no ; then
40579         BUILD_UNIQUE=$ol_enable_unique
40580         if test "$ol_enable_unique" = mod ; then
40581                 MFLAG=SLAPD_MOD_DYNAMIC
40582                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
40583         else
40584                 MFLAG=SLAPD_MOD_STATIC
40585                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
40586         fi
40587
40588 cat >>confdefs.h <<_ACEOF
40589 #define SLAPD_OVER_UNIQUE $MFLAG
40590 _ACEOF
40591
40592 fi
40593
40594 if test "$ol_enable_valsort" != no ; then
40595         BUILD_VALSORT=$ol_enable_valsort
40596         if test "$ol_enable_valsort" = mod ; then
40597                 MFLAG=SLAPD_MOD_DYNAMIC
40598                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
40599         else
40600                 MFLAG=SLAPD_MOD_STATIC
40601                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
40602         fi
40603
40604 cat >>confdefs.h <<_ACEOF
40605 #define SLAPD_OVER_VALSORT $MFLAG
40606 _ACEOF
40607
40608 fi
40609
40610 if test "$ol_enable_slurpd" != no &&
40611    test "$ol_link_threads" != no &&
40612    test $BUILD_SLAPD = yes ; then
40613         BUILD_SLURPD=yes
40614 fi
40615
40616 if test "$ol_enable_rewrite" != no ; then
40617
40618 cat >>confdefs.h <<\_ACEOF
40619 #define ENABLE_REWRITE 1
40620 _ACEOF
40621
40622         BUILD_REWRITE=yes
40623 fi
40624
40625 if test "$ol_enable_slapi" != no ; then
40626
40627 cat >>confdefs.h <<\_ACEOF
40628 #define ENABLE_SLAPI 1
40629 _ACEOF
40630
40631         BUILD_SLAPI=yes
40632         SLAPD_SLAPI_DEPEND=libslapi.a
40633 fi
40634
40635
40636
40637 if test "$ac_cv_mingw32" = yes ; then
40638         PLAT=NT
40639         SLAPD_MODULES_LDFLAGS=
40640 else
40641         PLAT=UNIX
40642 fi
40643
40644
40645
40646
40647
40648
40649
40650
40651
40652
40653
40654
40655
40656
40657
40658
40659
40660
40661
40662
40663
40664
40665
40666
40667
40668
40669
40670
40671
40672
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688
40689
40690
40691
40692
40693
40694
40695
40696
40697
40698
40699
40700
40701
40702
40703
40704
40705
40706
40707
40708
40709
40710
40711
40712
40713
40714
40715
40716
40717
40718
40719
40720
40721
40722
40723
40724
40725
40726
40727
40728 # Check whether --with-xxinstall or --without-xxinstall was given.
40729 if test "${with_xxinstall+set}" = set; then
40730   withval="$with_xxinstall"
40731
40732 fi;
40733
40734
40735                                                                                                                                                                                                                                                                                                                                                                                                       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"
40736
40737
40738           ac_config_commands="$ac_config_commands default"
40739
40740
40741
40742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
40743 # Let make expand exec_prefix.
40744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40745
40746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40748 # trailing colons and then remove the whole line if VPATH becomes empty
40749 # (actually we leave an empty line to preserve line numbers).
40750 if test "x$srcdir" = x.; then
40751   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40752 s/:*\$(srcdir):*/:/;
40753 s/:*\${srcdir}:*/:/;
40754 s/:*@srcdir@:*/:/;
40755 s/^\([^=]*=[     ]*\):*/\1/;
40756 s/:*$//;
40757 s/^[^=]*=[       ]*$//;
40758 }'
40759 fi
40760
40761 DEFS=-DHAVE_CONFIG_H
40762
40763 ac_libobjs=
40764 ac_ltlibobjs=
40765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40766   # 1. Remove the extension, and $U if already installed.
40767   ac_i=`echo "$ac_i" |
40768          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
40769   # 2. Add them.
40770   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40771   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40772 done
40773 LIBOBJS=$ac_libobjs
40774
40775 LTLIBOBJS=$ac_ltlibobjs
40776
40777
40778 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
40779   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
40780 Usually this means the macro was only invoked conditionally." >&5
40781 echo "$as_me: error: conditional \"AMDEP\" was never defined.
40782 Usually this means the macro was only invoked conditionally." >&2;}
40783    { (exit 1); exit 1; }; }
40784 fi
40785 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40786   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40787 Usually this means the macro was only invoked conditionally." >&5
40788 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40789 Usually this means the macro was only invoked conditionally." >&2;}
40790    { (exit 1); exit 1; }; }
40791 fi
40792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
40793   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
40794 Usually this means the macro was only invoked conditionally." >&5
40795 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
40796 Usually this means the macro was only invoked conditionally." >&2;}
40797    { (exit 1); exit 1; }; }
40798 fi
40799
40800 : ${CONFIG_STATUS=./config.status}
40801 ac_clean_files_save=$ac_clean_files
40802 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40803 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40804 echo "$as_me: creating $CONFIG_STATUS" >&6;}
40805 cat >$CONFIG_STATUS <<_ACEOF
40806 #! $SHELL
40807 # Generated by $as_me.
40808 # Run this file to recreate the current configuration.
40809 # Compiler output produced by configure, useful for debugging
40810 # configure, is in config.log if it exists.
40811
40812 debug=false
40813 ac_cs_recheck=false
40814 ac_cs_silent=false
40815 SHELL=\${CONFIG_SHELL-$SHELL}
40816 _ACEOF
40817
40818 cat >>$CONFIG_STATUS <<\_ACEOF
40819 ## --------------------- ##
40820 ## M4sh Initialization.  ##
40821 ## --------------------- ##
40822
40823 # Be Bourne compatible
40824 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40825   emulate sh
40826   NULLCMD=:
40827   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40828   # is contrary to our usage.  Disable this feature.
40829   alias -g '${1+"$@"}'='"$@"'
40830 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40831   set -o posix
40832 fi
40833 DUALCASE=1; export DUALCASE # for MKS sh
40834
40835 # Support unset when possible.
40836 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
40837   as_unset=unset
40838 else
40839   as_unset=false
40840 fi
40841
40842
40843 # Work around bugs in pre-3.0 UWIN ksh.
40844 $as_unset ENV MAIL MAILPATH
40845 PS1='$ '
40846 PS2='> '
40847 PS4='+ '
40848
40849 # NLS nuisances.
40850 for as_var in \
40851   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40852   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40853   LC_TELEPHONE LC_TIME
40854 do
40855   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
40856     eval $as_var=C; export $as_var
40857   else
40858     $as_unset $as_var
40859   fi
40860 done
40861
40862 # Required to use basename.
40863 if expr a : '\(a\)' >/dev/null 2>&1; then
40864   as_expr=expr
40865 else
40866   as_expr=false
40867 fi
40868
40869 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40870   as_basename=basename
40871 else
40872   as_basename=false
40873 fi
40874
40875
40876 # Name of the executable.
40877 as_me=`$as_basename "$0" ||
40878 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40879          X"$0" : 'X\(//\)$' \| \
40880          X"$0" : 'X\(/\)$' \| \
40881          .     : '\(.\)' 2>/dev/null ||
40882 echo X/"$0" |
40883     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40884           /^X\/\(\/\/\)$/{ s//\1/; q; }
40885           /^X\/\(\/\).*/{ s//\1/; q; }
40886           s/.*/./; q'`
40887
40888
40889 # PATH needs CR, and LINENO needs CR and PATH.
40890 # Avoid depending upon Character Ranges.
40891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40894 as_cr_digits='0123456789'
40895 as_cr_alnum=$as_cr_Letters$as_cr_digits
40896
40897 # The user is always right.
40898 if test "${PATH_SEPARATOR+set}" != set; then
40899   echo "#! /bin/sh" >conf$$.sh
40900   echo  "exit 0"   >>conf$$.sh
40901   chmod +x conf$$.sh
40902   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40903     PATH_SEPARATOR=';'
40904   else
40905     PATH_SEPARATOR=:
40906   fi
40907   rm -f conf$$.sh
40908 fi
40909
40910
40911   as_lineno_1=$LINENO
40912   as_lineno_2=$LINENO
40913   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40914   test "x$as_lineno_1" != "x$as_lineno_2" &&
40915   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
40916   # Find who we are.  Look in the path if we contain no path at all
40917   # relative or not.
40918   case $0 in
40919     *[\\/]* ) as_myself=$0 ;;
40920     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40921 for as_dir in $PATH
40922 do
40923   IFS=$as_save_IFS
40924   test -z "$as_dir" && as_dir=.
40925   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40926 done
40927
40928        ;;
40929   esac
40930   # We did not find ourselves, most probably we were run as `sh COMMAND'
40931   # in which case we are not to be found in the path.
40932   if test "x$as_myself" = x; then
40933     as_myself=$0
40934   fi
40935   if test ! -f "$as_myself"; then
40936     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40937 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40938    { (exit 1); exit 1; }; }
40939   fi
40940   case $CONFIG_SHELL in
40941   '')
40942     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40943 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40944 do
40945   IFS=$as_save_IFS
40946   test -z "$as_dir" && as_dir=.
40947   for as_base in sh bash ksh sh5; do
40948          case $as_dir in
40949          /*)
40950            if ("$as_dir/$as_base" -c '
40951   as_lineno_1=$LINENO
40952   as_lineno_2=$LINENO
40953   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40954   test "x$as_lineno_1" != "x$as_lineno_2" &&
40955   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
40956              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40957              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40958              CONFIG_SHELL=$as_dir/$as_base
40959              export CONFIG_SHELL
40960              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40961            fi;;
40962          esac
40963        done
40964 done
40965 ;;
40966   esac
40967
40968   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40969   # uniformly replaced by the line number.  The first 'sed' inserts a
40970   # line-number line before each line; the second 'sed' does the real
40971   # work.  The second script uses 'N' to pair each line-number line
40972   # with the numbered line, and appends trailing '-' during
40973   # substitution so that $LINENO is not a special case at line end.
40974   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40975   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
40976   sed '=' <$as_myself |
40977     sed '
40978       N
40979       s,$,-,
40980       : loop
40981       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40982       t loop
40983       s,-$,,
40984       s,^['$as_cr_digits']*\n,,
40985     ' >$as_me.lineno &&
40986   chmod +x $as_me.lineno ||
40987     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40988 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40989    { (exit 1); exit 1; }; }
40990
40991   # Don't try to exec as it changes $[0], causing all sort of problems
40992   # (the dirname of $[0] is not the place where we might find the
40993   # original and so on.  Autoconf is especially sensible to this).
40994   . ./$as_me.lineno
40995   # Exit status is that of the last command.
40996   exit
40997 }
40998
40999
41000 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41001   *c*,-n*) ECHO_N= ECHO_C='
41002 ' ECHO_T='      ' ;;
41003   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41004   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41005 esac
41006
41007 if expr a : '\(a\)' >/dev/null 2>&1; then
41008   as_expr=expr
41009 else
41010   as_expr=false
41011 fi
41012
41013 rm -f conf$$ conf$$.exe conf$$.file
41014 echo >conf$$.file
41015 if ln -s conf$$.file conf$$ 2>/dev/null; then
41016   # We could just check for DJGPP; but this test a) works b) is more generic
41017   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41018   if test -f conf$$.exe; then
41019     # Don't use ln at all; we don't have any links
41020     as_ln_s='cp -p'
41021   else
41022     as_ln_s='ln -s'
41023   fi
41024 elif ln conf$$.file conf$$ 2>/dev/null; then
41025   as_ln_s=ln
41026 else
41027   as_ln_s='cp -p'
41028 fi
41029 rm -f conf$$ conf$$.exe conf$$.file
41030
41031 if mkdir -p . 2>/dev/null; then
41032   as_mkdir_p=:
41033 else
41034   test -d ./-p && rmdir ./-p
41035   as_mkdir_p=false
41036 fi
41037
41038 as_executable_p="test -f"
41039
41040 # Sed expression to map a string onto a valid CPP name.
41041 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41042
41043 # Sed expression to map a string onto a valid variable name.
41044 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41045
41046
41047 # IFS
41048 # We need space, tab and new line, in precisely that order.
41049 as_nl='
41050 '
41051 IFS="   $as_nl"
41052
41053 # CDPATH.
41054 $as_unset CDPATH
41055
41056 exec 6>&1
41057
41058 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41059 # report actual input values of CONFIG_FILES etc. instead of their
41060 # values after options handling.  Logging --version etc. is OK.
41061 exec 5>>config.log
41062 {
41063   echo
41064   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41065 ## Running $as_me. ##
41066 _ASBOX
41067 } >&5
41068 cat >&5 <<_CSEOF
41069
41070 This file was extended by $as_me, which was
41071 generated by GNU Autoconf 2.59.  Invocation command line was
41072
41073   CONFIG_FILES    = $CONFIG_FILES
41074   CONFIG_HEADERS  = $CONFIG_HEADERS
41075   CONFIG_LINKS    = $CONFIG_LINKS
41076   CONFIG_COMMANDS = $CONFIG_COMMANDS
41077   $ $0 $@
41078
41079 _CSEOF
41080 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41081 echo >&5
41082 _ACEOF
41083
41084 # Files that config.status was made for.
41085 if test -n "$ac_config_files"; then
41086   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41087 fi
41088
41089 if test -n "$ac_config_headers"; then
41090   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41091 fi
41092
41093 if test -n "$ac_config_links"; then
41094   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41095 fi
41096
41097 if test -n "$ac_config_commands"; then
41098   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41099 fi
41100
41101 cat >>$CONFIG_STATUS <<\_ACEOF
41102
41103 ac_cs_usage="\
41104 \`$as_me' instantiates files from templates according to the
41105 current configuration.
41106
41107 Usage: $0 [OPTIONS] [FILE]...
41108
41109   -h, --help       print this help, then exit
41110   -V, --version    print version number, then exit
41111   -q, --quiet      do not print progress messages
41112   -d, --debug      don't remove temporary files
41113       --recheck    update $as_me by reconfiguring in the same conditions
41114   --file=FILE[:TEMPLATE]
41115                    instantiate the configuration file FILE
41116   --header=FILE[:TEMPLATE]
41117                    instantiate the configuration header FILE
41118
41119 Configuration files:
41120 $config_files
41121
41122 Configuration headers:
41123 $config_headers
41124
41125 Configuration commands:
41126 $config_commands
41127
41128 Report bugs to <bug-autoconf@gnu.org>."
41129 _ACEOF
41130
41131 cat >>$CONFIG_STATUS <<_ACEOF
41132 ac_cs_version="\\
41133 config.status
41134 configured by $0, generated by GNU Autoconf 2.59,
41135   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41136
41137 Copyright (C) 2003 Free Software Foundation, Inc.
41138 This config.status script is free software; the Free Software Foundation
41139 gives unlimited permission to copy, distribute and modify it."
41140 srcdir=$srcdir
41141 INSTALL="$INSTALL"
41142 _ACEOF
41143
41144 cat >>$CONFIG_STATUS <<\_ACEOF
41145 # If no file are specified by the user, then we need to provide default
41146 # value.  By we need to know if files were specified by the user.
41147 ac_need_defaults=:
41148 while test $# != 0
41149 do
41150   case $1 in
41151   --*=*)
41152     ac_option=`expr "x$1" : 'x\([^=]*\)='`
41153     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41154     ac_shift=:
41155     ;;
41156   -*)
41157     ac_option=$1
41158     ac_optarg=$2
41159     ac_shift=shift
41160     ;;
41161   *) # This is not an option, so the user has probably given explicit
41162      # arguments.
41163      ac_option=$1
41164      ac_need_defaults=false;;
41165   esac
41166
41167   case $ac_option in
41168   # Handling of the options.
41169 _ACEOF
41170 cat >>$CONFIG_STATUS <<\_ACEOF
41171   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41172     ac_cs_recheck=: ;;
41173   --version | --vers* | -V )
41174     echo "$ac_cs_version"; exit 0 ;;
41175   --he | --h)
41176     # Conflict between --help and --header
41177     { { echo "$as_me:$LINENO: error: ambiguous option: $1
41178 Try \`$0 --help' for more information." >&5
41179 echo "$as_me: error: ambiguous option: $1
41180 Try \`$0 --help' for more information." >&2;}
41181    { (exit 1); exit 1; }; };;
41182   --help | --hel | -h )
41183     echo "$ac_cs_usage"; exit 0 ;;
41184   --debug | --d* | -d )
41185     debug=: ;;
41186   --file | --fil | --fi | --f )
41187     $ac_shift
41188     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41189     ac_need_defaults=false;;
41190   --header | --heade | --head | --hea )
41191     $ac_shift
41192     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41193     ac_need_defaults=false;;
41194   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41195   | -silent | --silent | --silen | --sile | --sil | --si | --s)
41196     ac_cs_silent=: ;;
41197
41198   # This is an error.
41199   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41200 Try \`$0 --help' for more information." >&5
41201 echo "$as_me: error: unrecognized option: $1
41202 Try \`$0 --help' for more information." >&2;}
41203    { (exit 1); exit 1; }; } ;;
41204
41205   *) ac_config_targets="$ac_config_targets $1" ;;
41206
41207   esac
41208   shift
41209 done
41210
41211 ac_configure_extra_args=
41212
41213 if $ac_cs_silent; then
41214   exec 6>/dev/null
41215   ac_configure_extra_args="$ac_configure_extra_args --silent"
41216 fi
41217
41218 _ACEOF
41219 cat >>$CONFIG_STATUS <<_ACEOF
41220 if \$ac_cs_recheck; then
41221   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41222   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41223 fi
41224
41225 _ACEOF
41226
41227 cat >>$CONFIG_STATUS <<_ACEOF
41228 #
41229 # INIT-COMMANDS section.
41230 #
41231
41232 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41233
41234 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
41235 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
41236
41237
41238 _ACEOF
41239
41240
41241
41242 cat >>$CONFIG_STATUS <<\_ACEOF
41243 for ac_config_target in $ac_config_targets
41244 do
41245   case "$ac_config_target" in
41246   # Handling of arguments.
41247   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
41248   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
41249   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
41250   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
41251   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
41252   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
41253   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
41254   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
41255   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
41256   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
41257   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
41258   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41259   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
41260   "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" ;;
41261   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41262   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41263   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
41264   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
41265   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
41266   "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" ;;
41267   "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" ;;
41268   "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" ;;
41269   "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" ;;
41270   "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" ;;
41271   "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" ;;
41272   "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" ;;
41273   "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" ;;
41274   "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" ;;
41275   "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" ;;
41276   "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" ;;
41277   "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" ;;
41278   "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" ;;
41279   "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" ;;
41280   "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" ;;
41281   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
41282   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
41283   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
41284   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
41285   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
41286   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
41287   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41288   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
41289   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
41290   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
41291   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41292 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41293    { (exit 1); exit 1; }; };;
41294   esac
41295 done
41296
41297 # If the user did not use the arguments to specify the items to instantiate,
41298 # then the envvar interface is used.  Set only those that are not.
41299 # We use the long form for the default assignment because of an extremely
41300 # bizarre bug on SunOS 4.1.3.
41301 if $ac_need_defaults; then
41302   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41303   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41304   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41305 fi
41306
41307 # Have a temporary directory for convenience.  Make it in the build tree
41308 # simply because there is no reason to put it here, and in addition,
41309 # creating and moving files from /tmp can sometimes cause problems.
41310 # Create a temporary directory, and hook for its removal unless debugging.
41311 $debug ||
41312 {
41313   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41314   trap '{ (exit 1); exit 1; }' 1 2 13 15
41315 }
41316
41317 # Create a (secure) tmp directory for tmp files.
41318
41319 {
41320   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41321   test -n "$tmp" && test -d "$tmp"
41322 }  ||
41323 {
41324   tmp=./confstat$$-$RANDOM
41325   (umask 077 && mkdir $tmp)
41326 } ||
41327 {
41328    echo "$me: cannot create a temporary directory in ." >&2
41329    { (exit 1); exit 1; }
41330 }
41331
41332 _ACEOF
41333
41334 cat >>$CONFIG_STATUS <<_ACEOF
41335
41336 #
41337 # CONFIG_FILES section.
41338 #
41339
41340 # No need to generate the scripts if there are no CONFIG_FILES.
41341 # This happens for instance when ./config.status config.h
41342 if test -n "\$CONFIG_FILES"; then
41343   # Protect against being on the right side of a sed subst in config.status.
41344   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41345    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41346 s,@SHELL@,$SHELL,;t t
41347 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41348 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41349 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41350 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41351 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41352 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41353 s,@exec_prefix@,$exec_prefix,;t t
41354 s,@prefix@,$prefix,;t t
41355 s,@program_transform_name@,$program_transform_name,;t t
41356 s,@bindir@,$bindir,;t t
41357 s,@sbindir@,$sbindir,;t t
41358 s,@libexecdir@,$libexecdir,;t t
41359 s,@datadir@,$datadir,;t t
41360 s,@sysconfdir@,$sysconfdir,;t t
41361 s,@sharedstatedir@,$sharedstatedir,;t t
41362 s,@localstatedir@,$localstatedir,;t t
41363 s,@libdir@,$libdir,;t t
41364 s,@includedir@,$includedir,;t t
41365 s,@oldincludedir@,$oldincludedir,;t t
41366 s,@infodir@,$infodir,;t t
41367 s,@mandir@,$mandir,;t t
41368 s,@build_alias@,$build_alias,;t t
41369 s,@host_alias@,$host_alias,;t t
41370 s,@target_alias@,$target_alias,;t t
41371 s,@DEFS@,$DEFS,;t t
41372 s,@ECHO_C@,$ECHO_C,;t t
41373 s,@ECHO_N@,$ECHO_N,;t t
41374 s,@ECHO_T@,$ECHO_T,;t t
41375 s,@LIBS@,$LIBS,;t t
41376 s,@build@,$build,;t t
41377 s,@build_cpu@,$build_cpu,;t t
41378 s,@build_vendor@,$build_vendor,;t t
41379 s,@build_os@,$build_os,;t t
41380 s,@host@,$host,;t t
41381 s,@host_cpu@,$host_cpu,;t t
41382 s,@host_vendor@,$host_vendor,;t t
41383 s,@host_os@,$host_os,;t t
41384 s,@target@,$target,;t t
41385 s,@target_cpu@,$target_cpu,;t t
41386 s,@target_vendor@,$target_vendor,;t t
41387 s,@target_os@,$target_os,;t t
41388 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41389 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41390 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41391 s,@CYGPATH_W@,$CYGPATH_W,;t t
41392 s,@PACKAGE@,$PACKAGE,;t t
41393 s,@VERSION@,$VERSION,;t t
41394 s,@ACLOCAL@,$ACLOCAL,;t t
41395 s,@AUTOCONF@,$AUTOCONF,;t t
41396 s,@AUTOMAKE@,$AUTOMAKE,;t t
41397 s,@AUTOHEADER@,$AUTOHEADER,;t t
41398 s,@MAKEINFO@,$MAKEINFO,;t t
41399 s,@install_sh@,$install_sh,;t t
41400 s,@STRIP@,$STRIP,;t t
41401 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
41402 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
41403 s,@mkdir_p@,$mkdir_p,;t t
41404 s,@AWK@,$AWK,;t t
41405 s,@SET_MAKE@,$SET_MAKE,;t t
41406 s,@am__leading_dot@,$am__leading_dot,;t t
41407 s,@AMTAR@,$AMTAR,;t t
41408 s,@am__tar@,$am__tar,;t t
41409 s,@am__untar@,$am__untar,;t t
41410 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
41411 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
41412 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
41413 s,@top_builddir@,$top_builddir,;t t
41414 s,@ldap_subdir@,$ldap_subdir,;t t
41415 s,@CC@,$CC,;t t
41416 s,@AR@,$AR,;t t
41417 s,@CFLAGS@,$CFLAGS,;t t
41418 s,@LDFLAGS@,$LDFLAGS,;t t
41419 s,@CPPFLAGS@,$CPPFLAGS,;t t
41420 s,@ac_ct_CC@,$ac_ct_CC,;t t
41421 s,@EXEEXT@,$EXEEXT,;t t
41422 s,@OBJEXT@,$OBJEXT,;t t
41423 s,@DEPDIR@,$DEPDIR,;t t
41424 s,@am__include@,$am__include,;t t
41425 s,@am__quote@,$am__quote,;t t
41426 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
41427 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
41428 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
41429 s,@CCDEPMODE@,$CCDEPMODE,;t t
41430 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
41431 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
41432 s,@EGREP@,$EGREP,;t t
41433 s,@LN_S@,$LN_S,;t t
41434 s,@ECHO@,$ECHO,;t t
41435 s,@ac_ct_AR@,$ac_ct_AR,;t t
41436 s,@RANLIB@,$RANLIB,;t t
41437 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41438 s,@DLLTOOL@,$DLLTOOL,;t t
41439 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
41440 s,@AS@,$AS,;t t
41441 s,@ac_ct_AS@,$ac_ct_AS,;t t
41442 s,@OBJDUMP@,$OBJDUMP,;t t
41443 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
41444 s,@CPP@,$CPP,;t t
41445 s,@LIBTOOL@,$LIBTOOL,;t t
41446 s,@PERLBIN@,$PERLBIN,;t t
41447 s,@OL_MKDEP@,$OL_MKDEP,;t t
41448 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
41449 s,@LTSTATIC@,$LTSTATIC,;t t
41450 s,@LIBOBJS@,$LIBOBJS,;t t
41451 s,@LIBSRCS@,$LIBSRCS,;t t
41452 s,@PLAT@,$PLAT,;t t
41453 s,@WITH_SASL@,$WITH_SASL,;t t
41454 s,@WITH_TLS@,$WITH_TLS,;t t
41455 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
41456 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
41457 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
41458 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
41459 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
41460 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
41461 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
41462 s,@BUILD_BDB@,$BUILD_BDB,;t t
41463 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
41464 s,@BUILD_HDB@,$BUILD_HDB,;t t
41465 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
41466 s,@BUILD_META@,$BUILD_META,;t t
41467 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
41468 s,@BUILD_NULL@,$BUILD_NULL,;t t
41469 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
41470 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
41471 s,@BUILD_PERL@,$BUILD_PERL,;t t
41472 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
41473 s,@BUILD_SQL@,$BUILD_SQL,;t t
41474 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
41475 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
41476 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
41477 s,@BUILD_DDS@,$BUILD_DDS,;t t
41478 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
41479 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
41480 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
41481 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
41482 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
41483 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
41484 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
41485 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
41486 s,@BUILD_RWM@,$BUILD_RWM,;t t
41487 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
41488 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
41489 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
41490 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
41491 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
41492 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
41493 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
41494 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
41495 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
41496 s,@BDB_LIBS@,$BDB_LIBS,;t t
41497 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
41498 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
41499 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
41500 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
41501 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
41502 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
41503 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
41504 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
41505 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
41506 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
41507 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
41508 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
41509 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
41510 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
41511 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
41512 s,@SASL_LIBS@,$SASL_LIBS,;t t
41513 s,@TLS_LIBS@,$TLS_LIBS,;t t
41514 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
41515 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
41516 s,@LIBSLAPI@,$LIBSLAPI,;t t
41517 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
41518 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
41519 s,@ICU_LIBS@,$ICU_LIBS,;t t
41520 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
41521 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
41522 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
41523 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
41524 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
41525 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
41526 CEOF
41527
41528 _ACEOF
41529
41530   cat >>$CONFIG_STATUS <<\_ACEOF
41531   # Split the substitutions into bite-sized pieces for seds with
41532   # small command number limits, like on Digital OSF/1 and HP-UX.
41533   ac_max_sed_lines=48
41534   ac_sed_frag=1 # Number of current file.
41535   ac_beg=1 # First line for current file.
41536   ac_end=$ac_max_sed_lines # Line after last line for current file.
41537   ac_more_lines=:
41538   ac_sed_cmds=
41539   while $ac_more_lines; do
41540     if test $ac_beg -gt 1; then
41541       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41542     else
41543       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
41544     fi
41545     if test ! -s $tmp/subs.frag; then
41546       ac_more_lines=false
41547     else
41548       # The purpose of the label and of the branching condition is to
41549       # speed up the sed processing (if there are no `@' at all, there
41550       # is no need to browse any of the substitutions).
41551       # These are the two extra sed commands mentioned above.
41552       (echo ':t
41553   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
41554       if test -z "$ac_sed_cmds"; then
41555         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
41556       else
41557         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
41558       fi
41559       ac_sed_frag=`expr $ac_sed_frag + 1`
41560       ac_beg=$ac_end
41561       ac_end=`expr $ac_end + $ac_max_sed_lines`
41562     fi
41563   done
41564   if test -z "$ac_sed_cmds"; then
41565     ac_sed_cmds=cat
41566   fi
41567 fi # test -n "$CONFIG_FILES"
41568
41569 _ACEOF
41570 cat >>$CONFIG_STATUS <<\_ACEOF
41571 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
41572   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41573   case $ac_file in
41574   - | *:- | *:-:* ) # input from stdin
41575         cat >$tmp/stdin
41576         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41577         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41578   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41579         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41580   * )   ac_file_in=$ac_file.in ;;
41581   esac
41582
41583   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41584   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41586          X"$ac_file" : 'X\(//\)[^/]' \| \
41587          X"$ac_file" : 'X\(//\)$' \| \
41588          X"$ac_file" : 'X\(/\)' \| \
41589          .     : '\(.\)' 2>/dev/null ||
41590 echo X"$ac_file" |
41591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41593           /^X\(\/\/\)$/{ s//\1/; q; }
41594           /^X\(\/\).*/{ s//\1/; q; }
41595           s/.*/./; q'`
41596   { if $as_mkdir_p; then
41597     mkdir -p "$ac_dir"
41598   else
41599     as_dir="$ac_dir"
41600     as_dirs=
41601     while test ! -d "$as_dir"; do
41602       as_dirs="$as_dir $as_dirs"
41603       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41604 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41605          X"$as_dir" : 'X\(//\)[^/]' \| \
41606          X"$as_dir" : 'X\(//\)$' \| \
41607          X"$as_dir" : 'X\(/\)' \| \
41608          .     : '\(.\)' 2>/dev/null ||
41609 echo X"$as_dir" |
41610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41611           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41612           /^X\(\/\/\)$/{ s//\1/; q; }
41613           /^X\(\/\).*/{ s//\1/; q; }
41614           s/.*/./; q'`
41615     done
41616     test ! -n "$as_dirs" || mkdir $as_dirs
41617   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41618 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41619    { (exit 1); exit 1; }; }; }
41620
41621   ac_builddir=.
41622
41623 if test "$ac_dir" != .; then
41624   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41625   # A "../" for each directory in $ac_dir_suffix.
41626   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41627 else
41628   ac_dir_suffix= ac_top_builddir=
41629 fi
41630
41631 case $srcdir in
41632   .)  # No --srcdir option.  We are building in place.
41633     ac_srcdir=.
41634     if test -z "$ac_top_builddir"; then
41635        ac_top_srcdir=.
41636     else
41637        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41638     fi ;;
41639   [\\/]* | ?:[\\/]* )  # Absolute path.
41640     ac_srcdir=$srcdir$ac_dir_suffix;
41641     ac_top_srcdir=$srcdir ;;
41642   *) # Relative path.
41643     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41644     ac_top_srcdir=$ac_top_builddir$srcdir ;;
41645 esac
41646
41647 # Do not use `cd foo && pwd` to compute absolute paths, because
41648 # the directories may not exist.
41649 case `pwd` in
41650 .) ac_abs_builddir="$ac_dir";;
41651 *)
41652   case "$ac_dir" in
41653   .) ac_abs_builddir=`pwd`;;
41654   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41655   *) ac_abs_builddir=`pwd`/"$ac_dir";;
41656   esac;;
41657 esac
41658 case $ac_abs_builddir in
41659 .) ac_abs_top_builddir=${ac_top_builddir}.;;
41660 *)
41661   case ${ac_top_builddir}. in
41662   .) ac_abs_top_builddir=$ac_abs_builddir;;
41663   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41664   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41665   esac;;
41666 esac
41667 case $ac_abs_builddir in
41668 .) ac_abs_srcdir=$ac_srcdir;;
41669 *)
41670   case $ac_srcdir in
41671   .) ac_abs_srcdir=$ac_abs_builddir;;
41672   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41673   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41674   esac;;
41675 esac
41676 case $ac_abs_builddir in
41677 .) ac_abs_top_srcdir=$ac_top_srcdir;;
41678 *)
41679   case $ac_top_srcdir in
41680   .) ac_abs_top_srcdir=$ac_abs_builddir;;
41681   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41682   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41683   esac;;
41684 esac
41685
41686
41687   case $INSTALL in
41688   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41689   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
41690   esac
41691
41692   if test x"$ac_file" != x-; then
41693     { echo "$as_me:$LINENO: creating $ac_file" >&5
41694 echo "$as_me: creating $ac_file" >&6;}
41695     rm -f "$ac_file"
41696   fi
41697   # Let's still pretend it is `configure' which instantiates (i.e., don't
41698   # use $as_me), people would be surprised to read:
41699   #    /* config.h.  Generated by config.status.  */
41700   if test x"$ac_file" = x-; then
41701     configure_input=
41702   else
41703     configure_input="$ac_file.  "
41704   fi
41705   configure_input=$configure_input"Generated from `echo $ac_file_in |
41706                                      sed 's,.*/,,'` by configure."
41707
41708   # First look for the input files in the build tree, otherwise in the
41709   # src tree.
41710   ac_file_inputs=`IFS=:
41711     for f in $ac_file_in; do
41712       case $f in
41713       -) echo $tmp/stdin ;;
41714       [\\/$]*)
41715          # Absolute (can't be DOS-style, as IFS=:)
41716          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41717 echo "$as_me: error: cannot find input file: $f" >&2;}
41718    { (exit 1); exit 1; }; }
41719          echo "$f";;
41720       *) # Relative
41721          if test -f "$f"; then
41722            # Build tree
41723            echo "$f"
41724          elif test -f "$srcdir/$f"; then
41725            # Source tree
41726            echo "$srcdir/$f"
41727          else
41728            # /dev/null tree
41729            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41730 echo "$as_me: error: cannot find input file: $f" >&2;}
41731    { (exit 1); exit 1; }; }
41732          fi;;
41733       esac
41734     done` || { (exit 1); exit 1; }
41735 _ACEOF
41736 cat >>$CONFIG_STATUS <<_ACEOF
41737   sed "$ac_vpsub
41738 $extrasub
41739 _ACEOF
41740 cat >>$CONFIG_STATUS <<\_ACEOF
41741 :t
41742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41743 s,@configure_input@,$configure_input,;t t
41744 s,@srcdir@,$ac_srcdir,;t t
41745 s,@abs_srcdir@,$ac_abs_srcdir,;t t
41746 s,@top_srcdir@,$ac_top_srcdir,;t t
41747 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41748 s,@builddir@,$ac_builddir,;t t
41749 s,@abs_builddir@,$ac_abs_builddir,;t t
41750 s,@top_builddir@,$ac_top_builddir,;t t
41751 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41752 s,@INSTALL@,$ac_INSTALL,;t t
41753 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41754   rm -f $tmp/stdin
41755   if test x"$ac_file" != x-; then
41756     mv $tmp/out $ac_file
41757   else
41758     cat $tmp/out
41759     rm -f $tmp/out
41760   fi
41761
41762 done
41763 _ACEOF
41764 cat >>$CONFIG_STATUS <<\_ACEOF
41765
41766 #
41767 # CONFIG_HEADER section.
41768 #
41769
41770 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41771 # NAME is the cpp macro being defined and VALUE is the value it is being given.
41772 #
41773 # ac_d sets the value in "#define NAME VALUE" lines.
41774 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
41775 ac_dB='[         ].*$,\1#\2'
41776 ac_dC=' '
41777 ac_dD=',;t'
41778 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
41779 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
41780 ac_uB='$,\1#\2define\3'
41781 ac_uC=' '
41782 ac_uD=',;t'
41783
41784 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
41785   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
41786   case $ac_file in
41787   - | *:- | *:-:* ) # input from stdin
41788         cat >$tmp/stdin
41789         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41790         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41791   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41792         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
41793   * )   ac_file_in=$ac_file.in ;;
41794   esac
41795
41796   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41797 echo "$as_me: creating $ac_file" >&6;}
41798
41799   # First look for the input files in the build tree, otherwise in the
41800   # src tree.
41801   ac_file_inputs=`IFS=:
41802     for f in $ac_file_in; do
41803       case $f in
41804       -) echo $tmp/stdin ;;
41805       [\\/$]*)
41806          # Absolute (can't be DOS-style, as IFS=:)
41807          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41808 echo "$as_me: error: cannot find input file: $f" >&2;}
41809    { (exit 1); exit 1; }; }
41810          # Do quote $f, to prevent DOS paths from being IFS'd.
41811          echo "$f";;
41812       *) # Relative
41813          if test -f "$f"; then
41814            # Build tree
41815            echo "$f"
41816          elif test -f "$srcdir/$f"; then
41817            # Source tree
41818            echo "$srcdir/$f"
41819          else
41820            # /dev/null tree
41821            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
41822 echo "$as_me: error: cannot find input file: $f" >&2;}
41823    { (exit 1); exit 1; }; }
41824          fi;;
41825       esac
41826     done` || { (exit 1); exit 1; }
41827   # Remove the trailing spaces.
41828   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
41829
41830 _ACEOF
41831
41832 # Transform confdefs.h into two sed scripts, `conftest.defines' and
41833 # `conftest.undefs', that substitutes the proper values into
41834 # config.h.in to produce config.h.  The first handles `#define'
41835 # templates, and the second `#undef' templates.
41836 # And first: Protect against being on the right side of a sed subst in
41837 # config.status.  Protect against being in an unquoted here document
41838 # in config.status.
41839 rm -f conftest.defines conftest.undefs
41840 # Using a here document instead of a string reduces the quoting nightmare.
41841 # Putting comments in sed scripts is not portable.
41842 #
41843 # `end' is used to avoid that the second main sed command (meant for
41844 # 0-ary CPP macros) applies to n-ary macro definitions.
41845 # See the Autoconf documentation for `clear'.
41846 cat >confdef2sed.sed <<\_ACEOF
41847 s/[\\&,]/\\&/g
41848 s,[\\$`],\\&,g
41849 t clear
41850 : clear
41851 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
41852 t end
41853 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
41854 : end
41855 _ACEOF
41856 # If some macros were called several times there might be several times
41857 # the same #defines, which is useless.  Nevertheless, we may not want to
41858 # sort them, since we want the *last* AC-DEFINE to be honored.
41859 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41860 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41861 rm -f confdef2sed.sed
41862
41863 # This sed command replaces #undef with comments.  This is necessary, for
41864 # example, in the case of _POSIX_SOURCE, which is predefined and required
41865 # on some systems where configure will not decide to define it.
41866 cat >>conftest.undefs <<\_ACEOF
41867 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
41868 _ACEOF
41869
41870 # Break up conftest.defines because some shells have a limit on the size
41871 # of here documents, and old seds have small limits too (100 cmds).
41872 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
41873 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
41874 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41875 echo '  :' >>$CONFIG_STATUS
41876 rm -f conftest.tail
41877 while grep . conftest.defines >/dev/null
41878 do
41879   # Write a limited-size here document to $tmp/defines.sed.
41880   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41881   # Speed up: don't consider the non `#define' lines.
41882   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
41883   # Work around the forget-to-reset-the-flag bug.
41884   echo 't clr' >>$CONFIG_STATUS
41885   echo ': clr' >>$CONFIG_STATUS
41886   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41887   echo 'CEOF
41888   sed -f $tmp/defines.sed $tmp/in >$tmp/out
41889   rm -f $tmp/in
41890   mv $tmp/out $tmp/in
41891 ' >>$CONFIG_STATUS
41892   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41893   rm -f conftest.defines
41894   mv conftest.tail conftest.defines
41895 done
41896 rm -f conftest.defines
41897 echo '  fi # grep' >>$CONFIG_STATUS
41898 echo >>$CONFIG_STATUS
41899
41900 # Break up conftest.undefs because some shells have a limit on the size
41901 # of here documents, and old seds have small limits too (100 cmds).
41902 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
41903 rm -f conftest.tail
41904 while grep . conftest.undefs >/dev/null
41905 do
41906   # Write a limited-size here document to $tmp/undefs.sed.
41907   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41908   # Speed up: don't consider the non `#undef'
41909   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
41910   # Work around the forget-to-reset-the-flag bug.
41911   echo 't clr' >>$CONFIG_STATUS
41912   echo ': clr' >>$CONFIG_STATUS
41913   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
41914   echo 'CEOF
41915   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41916   rm -f $tmp/in
41917   mv $tmp/out $tmp/in
41918 ' >>$CONFIG_STATUS
41919   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41920   rm -f conftest.undefs
41921   mv conftest.tail conftest.undefs
41922 done
41923 rm -f conftest.undefs
41924
41925 cat >>$CONFIG_STATUS <<\_ACEOF
41926   # Let's still pretend it is `configure' which instantiates (i.e., don't
41927   # use $as_me), people would be surprised to read:
41928   #    /* config.h.  Generated by config.status.  */
41929   if test x"$ac_file" = x-; then
41930     echo "/* Generated by configure.  */" >$tmp/config.h
41931   else
41932     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
41933   fi
41934   cat $tmp/in >>$tmp/config.h
41935   rm -f $tmp/in
41936   if test x"$ac_file" != x-; then
41937     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41938       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41939 echo "$as_me: $ac_file is unchanged" >&6;}
41940     else
41941       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41942 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41943          X"$ac_file" : 'X\(//\)[^/]' \| \
41944          X"$ac_file" : 'X\(//\)$' \| \
41945          X"$ac_file" : 'X\(/\)' \| \
41946          .     : '\(.\)' 2>/dev/null ||
41947 echo X"$ac_file" |
41948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41950           /^X\(\/\/\)$/{ s//\1/; q; }
41951           /^X\(\/\).*/{ s//\1/; q; }
41952           s/.*/./; q'`
41953       { if $as_mkdir_p; then
41954     mkdir -p "$ac_dir"
41955   else
41956     as_dir="$ac_dir"
41957     as_dirs=
41958     while test ! -d "$as_dir"; do
41959       as_dirs="$as_dir $as_dirs"
41960       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41961 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41962          X"$as_dir" : 'X\(//\)[^/]' \| \
41963          X"$as_dir" : 'X\(//\)$' \| \
41964          X"$as_dir" : 'X\(/\)' \| \
41965          .     : '\(.\)' 2>/dev/null ||
41966 echo X"$as_dir" |
41967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41969           /^X\(\/\/\)$/{ s//\1/; q; }
41970           /^X\(\/\).*/{ s//\1/; q; }
41971           s/.*/./; q'`
41972     done
41973     test ! -n "$as_dirs" || mkdir $as_dirs
41974   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41975 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41976    { (exit 1); exit 1; }; }; }
41977
41978       rm -f $ac_file
41979       mv $tmp/config.h $ac_file
41980     fi
41981   else
41982     cat $tmp/config.h
41983     rm -f $tmp/config.h
41984   fi
41985 # Compute $ac_file's index in $config_headers.
41986 _am_stamp_count=1
41987 for _am_header in $config_headers :; do
41988   case $_am_header in
41989     $ac_file | $ac_file:* )
41990       break ;;
41991     * )
41992       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41993   esac
41994 done
41995 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
41996 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41997          X$ac_file : 'X\(//\)[^/]' \| \
41998          X$ac_file : 'X\(//\)$' \| \
41999          X$ac_file : 'X\(/\)' \| \
42000          .     : '\(.\)' 2>/dev/null ||
42001 echo X$ac_file |
42002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42004           /^X\(\/\/\)$/{ s//\1/; q; }
42005           /^X\(\/\).*/{ s//\1/; q; }
42006           s/.*/./; q'`/stamp-h$_am_stamp_count
42007 done
42008 _ACEOF
42009 cat >>$CONFIG_STATUS <<\_ACEOF
42010
42011 #
42012 # CONFIG_COMMANDS section.
42013 #
42014 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42015   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42016   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42017   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42018 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42019          X"$ac_dest" : 'X\(//\)[^/]' \| \
42020          X"$ac_dest" : 'X\(//\)$' \| \
42021          X"$ac_dest" : 'X\(/\)' \| \
42022          .     : '\(.\)' 2>/dev/null ||
42023 echo X"$ac_dest" |
42024     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42025           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42026           /^X\(\/\/\)$/{ s//\1/; q; }
42027           /^X\(\/\).*/{ s//\1/; q; }
42028           s/.*/./; q'`
42029   { if $as_mkdir_p; then
42030     mkdir -p "$ac_dir"
42031   else
42032     as_dir="$ac_dir"
42033     as_dirs=
42034     while test ! -d "$as_dir"; do
42035       as_dirs="$as_dir $as_dirs"
42036       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42037 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42038          X"$as_dir" : 'X\(//\)[^/]' \| \
42039          X"$as_dir" : 'X\(//\)$' \| \
42040          X"$as_dir" : 'X\(/\)' \| \
42041          .     : '\(.\)' 2>/dev/null ||
42042 echo X"$as_dir" |
42043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42044           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42045           /^X\(\/\/\)$/{ s//\1/; q; }
42046           /^X\(\/\).*/{ s//\1/; q; }
42047           s/.*/./; q'`
42048     done
42049     test ! -n "$as_dirs" || mkdir $as_dirs
42050   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42051 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42052    { (exit 1); exit 1; }; }; }
42053
42054   ac_builddir=.
42055
42056 if test "$ac_dir" != .; then
42057   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42058   # A "../" for each directory in $ac_dir_suffix.
42059   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42060 else
42061   ac_dir_suffix= ac_top_builddir=
42062 fi
42063
42064 case $srcdir in
42065   .)  # No --srcdir option.  We are building in place.
42066     ac_srcdir=.
42067     if test -z "$ac_top_builddir"; then
42068        ac_top_srcdir=.
42069     else
42070        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42071     fi ;;
42072   [\\/]* | ?:[\\/]* )  # Absolute path.
42073     ac_srcdir=$srcdir$ac_dir_suffix;
42074     ac_top_srcdir=$srcdir ;;
42075   *) # Relative path.
42076     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42077     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42078 esac
42079
42080 # Do not use `cd foo && pwd` to compute absolute paths, because
42081 # the directories may not exist.
42082 case `pwd` in
42083 .) ac_abs_builddir="$ac_dir";;
42084 *)
42085   case "$ac_dir" in
42086   .) ac_abs_builddir=`pwd`;;
42087   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42088   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42089   esac;;
42090 esac
42091 case $ac_abs_builddir in
42092 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42093 *)
42094   case ${ac_top_builddir}. in
42095   .) ac_abs_top_builddir=$ac_abs_builddir;;
42096   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42097   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42098   esac;;
42099 esac
42100 case $ac_abs_builddir in
42101 .) ac_abs_srcdir=$ac_srcdir;;
42102 *)
42103   case $ac_srcdir in
42104   .) ac_abs_srcdir=$ac_abs_builddir;;
42105   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42106   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42107   esac;;
42108 esac
42109 case $ac_abs_builddir in
42110 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42111 *)
42112   case $ac_top_srcdir in
42113   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42114   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42115   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42116   esac;;
42117 esac
42118
42119
42120   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42121 echo "$as_me: executing $ac_dest commands" >&6;}
42122   case $ac_dest in
42123     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
42124   # Strip MF so we end up with the name of the file.
42125   mf=`echo "$mf" | sed -e 's/:.*$//'`
42126   # Check whether this is an Automake generated Makefile or not.
42127   # We used to match only the files named `Makefile.in', but
42128   # some people rename them; so instead we look at the file content.
42129   # Grep'ing the first line is not enough: some people post-process
42130   # each Makefile.in and add a new line on top of each file to say so.
42131   # So let's grep whole file.
42132   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
42133     dirpart=`(dirname "$mf") 2>/dev/null ||
42134 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42135          X"$mf" : 'X\(//\)[^/]' \| \
42136          X"$mf" : 'X\(//\)$' \| \
42137          X"$mf" : 'X\(/\)' \| \
42138          .     : '\(.\)' 2>/dev/null ||
42139 echo X"$mf" |
42140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42141           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42142           /^X\(\/\/\)$/{ s//\1/; q; }
42143           /^X\(\/\).*/{ s//\1/; q; }
42144           s/.*/./; q'`
42145   else
42146     continue
42147   fi
42148   # Extract the definition of DEPDIR, am__include, and am__quote
42149   # from the Makefile without running `make'.
42150   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
42151   test -z "$DEPDIR" && continue
42152   am__include=`sed -n 's/^am__include = //p' < "$mf"`
42153   test -z "am__include" && continue
42154   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
42155   # When using ansi2knr, U may be empty or an underscore; expand it
42156   U=`sed -n 's/^U = //p' < "$mf"`
42157   # Find all dependency output files, they are included files with
42158   # $(DEPDIR) in their names.  We invoke sed twice because it is the
42159   # simplest approach to changing $(DEPDIR) to its actual value in the
42160   # expansion.
42161   for file in `sed -n "
42162     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42163        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42164     # Make sure the directory exists.
42165     test -f "$dirpart/$file" && continue
42166     fdir=`(dirname "$file") 2>/dev/null ||
42167 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42168          X"$file" : 'X\(//\)[^/]' \| \
42169          X"$file" : 'X\(//\)$' \| \
42170          X"$file" : 'X\(/\)' \| \
42171          .     : '\(.\)' 2>/dev/null ||
42172 echo X"$file" |
42173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42174           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42175           /^X\(\/\/\)$/{ s//\1/; q; }
42176           /^X\(\/\).*/{ s//\1/; q; }
42177           s/.*/./; q'`
42178     { if $as_mkdir_p; then
42179     mkdir -p $dirpart/$fdir
42180   else
42181     as_dir=$dirpart/$fdir
42182     as_dirs=
42183     while test ! -d "$as_dir"; do
42184       as_dirs="$as_dir $as_dirs"
42185       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42186 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42187          X"$as_dir" : 'X\(//\)[^/]' \| \
42188          X"$as_dir" : 'X\(//\)$' \| \
42189          X"$as_dir" : 'X\(/\)' \| \
42190          .     : '\(.\)' 2>/dev/null ||
42191 echo X"$as_dir" |
42192     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42193           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42194           /^X\(\/\/\)$/{ s//\1/; q; }
42195           /^X\(\/\).*/{ s//\1/; q; }
42196           s/.*/./; q'`
42197     done
42198     test ! -n "$as_dirs" || mkdir $as_dirs
42199   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
42200 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
42201    { (exit 1); exit 1; }; }; }
42202
42203     # echo "creating $dirpart/$file"
42204     echo '# dummy' > "$dirpart/$file"
42205   done
42206 done
42207  ;;
42208     default )
42209 chmod +x tests/run
42210 date > stamp-h
42211 BACKENDSC="servers/slapd/backends.c"
42212 echo "Making $BACKENDSC"
42213 rm -f $BACKENDSC
42214 cat > $BACKENDSC << ENDX
42215 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42216  *
42217  * Copyright 1998-2006 The OpenLDAP Foundation.
42218  * All rights reserved.
42219  *
42220  * Redistribution and use in source and binary forms, with or without
42221  * modification, are permitted only as authorized by the OpenLDAP
42222  * Public License.
42223  *
42224  * A copy of this license is available in the file LICENSE in the
42225  * top-level directory of the distribution or, alternatively, at
42226  * <http://www.OpenLDAP.org/license.html>.
42227  */
42228 /* This file is automatically generated by configure; please do not edit. */
42229
42230 #include "portable.h"
42231 #include "slap.h"
42232
42233 ENDX
42234 if test "${STATIC_BACKENDS}"; then
42235         for b in config ${STATIC_BACKENDS}; do
42236                 bb=`echo "${b}" | sed -e 's/back-//'`
42237                 cat >> $BACKENDSC << ENDX
42238 extern BI_init ${bb}_back_initialize;
42239 ENDX
42240         done
42241
42242         cat >> $BACKENDSC << ENDX
42243
42244 BackendInfo slap_binfo[] = {
42245 ENDX
42246
42247         for b in config ${STATIC_BACKENDS}; do
42248                 bb=`echo "${b}" | sed -e 's/back-//'`
42249                 echo "    Add ${bb} ..."
42250                 cat >> $BACKENDSC << ENDX
42251         { "${bb}", ${bb}_back_initialize },
42252 ENDX
42253         done
42254
42255         cat >> $BACKENDSC << ENDX
42256         { NULL, NULL },
42257 };
42258
42259 /* end of generated file */
42260 ENDX
42261 fi
42262 OVERLAYSC="servers/slapd/overlays/statover.c"
42263 echo "Making $OVERLAYSC"
42264 rm -f $OVERLAYSC
42265 cat > $OVERLAYSC << ENDX
42266 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
42267  *
42268  * Copyright 1998-2006 The OpenLDAP Foundation.
42269  * All rights reserved.
42270  *
42271  * Redistribution and use in source and binary forms, with or without
42272  * modification, are permitted only as authorized by the OpenLDAP
42273  * Public License.
42274  *
42275  * A copy of this license is available in the file LICENSE in the
42276  * top-level directory of the distribution or, alternatively, at
42277  * <http://www.OpenLDAP.org/license.html>.
42278  */
42279 /* This file is automatically generated by configure; please do not edit. */
42280
42281 #include "portable.h"
42282 #include "slap.h"
42283
42284 ENDX
42285 if test "${STATIC_OVERLAYS}"; then
42286         for o in ${STATIC_OVERLAYS}; do
42287                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42288                 cat >> $OVERLAYSC << ENDX
42289 extern OV_init ${oo}_initialize;
42290 ENDX
42291         done
42292 fi
42293
42294 cat >> $OVERLAYSC << ENDX
42295
42296 OverlayInit slap_oinfo[] = {
42297 ENDX
42298
42299 if test "${STATIC_OVERLAYS}"; then
42300         for o in ${STATIC_OVERLAYS}; do
42301                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
42302                 echo "    Add ${oo} ..."
42303                 cat >> $OVERLAYSC << ENDX
42304         { "${oo}", ${oo}_initialize },
42305 ENDX
42306         done
42307 fi
42308
42309         cat >> $OVERLAYSC << ENDX
42310         { NULL, NULL },
42311 };
42312
42313 /* end of generated file */
42314 ENDX
42315
42316 echo Please run \"make depend\" to build dependencies
42317  ;;
42318   esac
42319 done
42320 _ACEOF
42321
42322 cat >>$CONFIG_STATUS <<\_ACEOF
42323
42324 { (exit 0); exit 0; }
42325 _ACEOF
42326 chmod +x $CONFIG_STATUS
42327 ac_clean_files=$ac_clean_files_save
42328
42329
42330 # configure is writing to config.log, and then calls config.status.
42331 # config.status does its own redirection, appending to config.log.
42332 # Unfortunately, on DOS this fails, as config.log is still kept open
42333 # by configure, so config.status won't be able to write to it; its
42334 # output is simply discarded.  So we exec the FD to /dev/null,
42335 # effectively closing config.log, so it can be properly (re)opened and
42336 # appended to by config.status.  When coming back to configure, we
42337 # need to make the FD available again.
42338 if test "$no_create" != yes; then
42339   ac_cs_success=:
42340   ac_config_status_args=
42341   test "$silent" = yes &&
42342     ac_config_status_args="$ac_config_status_args --quiet"
42343   exec 5>/dev/null
42344   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42345   exec 5>>config.log
42346   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42347   # would make configure fail if this is the last instruction.
42348   $ac_cs_success || { (exit 1); exit 1; }
42349 fi
42350