]> git.sur5r.net Git - openldap/blob - configure
Fix typo
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.645 2007/01/19 01:54:44 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 2003 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26 DUALCASE=1; export DUALCASE # for MKS sh
27
28 # Support unset when possible.
29 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30   as_unset=unset
31 else
32   as_unset=false
33 fi
34
35
36 # Work around bugs in pre-3.0 UWIN ksh.
37 $as_unset ENV MAIL MAILPATH
38 PS1='$ '
39 PS2='> '
40 PS4='+ '
41
42 # NLS nuisances.
43 for as_var in \
44   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46   LC_TELEPHONE LC_TIME
47 do
48   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
49     eval $as_var=C; export $as_var
50   else
51     $as_unset $as_var
52   fi
53 done
54
55 # Required to use basename.
56 if expr a : '\(a\)' >/dev/null 2>&1; then
57   as_expr=expr
58 else
59   as_expr=false
60 fi
61
62 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63   as_basename=basename
64 else
65   as_basename=false
66 fi
67
68
69 # Name of the executable.
70 as_me=`$as_basename "$0" ||
71 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72          X"$0" : 'X\(//\)$' \| \
73          X"$0" : 'X\(/\)$' \| \
74          .     : '\(.\)' 2>/dev/null ||
75 echo X/"$0" |
76     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77           /^X\/\(\/\/\)$/{ s//\1/; q; }
78           /^X\/\(\/\).*/{ s//\1/; q; }
79           s/.*/./; q'`
80
81
82 # PATH needs CR, and LINENO needs CR and PATH.
83 # Avoid depending upon Character Ranges.
84 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87 as_cr_digits='0123456789'
88 as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90 # The user is always right.
91 if test "${PATH_SEPARATOR+set}" != set; then
92   echo "#! /bin/sh" >conf$$.sh
93   echo  "exit 0"   >>conf$$.sh
94   chmod +x conf$$.sh
95   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96     PATH_SEPARATOR=';'
97   else
98     PATH_SEPARATOR=:
99   fi
100   rm -f conf$$.sh
101 fi
102
103
104   as_lineno_1=$LINENO
105   as_lineno_2=$LINENO
106   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107   test "x$as_lineno_1" != "x$as_lineno_2" &&
108   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
109   # Find who we are.  Look in the path if we contain no path at all
110   # relative or not.
111   case $0 in
112     *[\\/]* ) as_myself=$0 ;;
113     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 for as_dir in $PATH
115 do
116   IFS=$as_save_IFS
117   test -z "$as_dir" && as_dir=.
118   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 done
120
121        ;;
122   esac
123   # We did not find ourselves, most probably we were run as `sh COMMAND'
124   # in which case we are not to be found in the path.
125   if test "x$as_myself" = x; then
126     as_myself=$0
127   fi
128   if test ! -f "$as_myself"; then
129     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130    { (exit 1); exit 1; }; }
131   fi
132   case $CONFIG_SHELL in
133   '')
134     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 do
137   IFS=$as_save_IFS
138   test -z "$as_dir" && as_dir=.
139   for as_base in sh bash ksh sh5; do
140          case $as_dir in
141          /*)
142            if ("$as_dir/$as_base" -c '
143   as_lineno_1=$LINENO
144   as_lineno_2=$LINENO
145   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146   test "x$as_lineno_1" != "x$as_lineno_2" &&
147   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
148              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150              CONFIG_SHELL=$as_dir/$as_base
151              export CONFIG_SHELL
152              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153            fi;;
154          esac
155        done
156 done
157 ;;
158   esac
159
160   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161   # uniformly replaced by the line number.  The first 'sed' inserts a
162   # line-number line before each line; the second 'sed' does the real
163   # work.  The second script uses 'N' to pair each line-number line
164   # with the numbered line, and appends trailing '-' during
165   # substitution so that $LINENO is not a special case at line end.
166   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
168   sed '=' <$as_myself |
169     sed '
170       N
171       s,$,-,
172       : loop
173       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174       t loop
175       s,-$,,
176       s,^['$as_cr_digits']*\n,,
177     ' >$as_me.lineno &&
178   chmod +x $as_me.lineno ||
179     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180    { (exit 1); exit 1; }; }
181
182   # Don't try to exec as it changes $[0], causing all sort of problems
183   # (the dirname of $[0] is not the place where we might find the
184   # original and so on.  Autoconf is especially sensible to this).
185   . ./$as_me.lineno
186   # Exit status is that of the last command.
187   exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192   *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T='      ' ;;
194   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199   as_expr=expr
200 else
201   as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207   # We could just check for DJGPP; but this test a) works b) is more generic
208   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209   if test -f conf$$.exe; then
210     # Don't use ln at all; we don't have any links
211     as_ln_s='cp -p'
212   else
213     as_ln_s='ln -s'
214   fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216   as_ln_s=ln
217 else
218   as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223   as_mkdir_p=:
224 else
225   test -d ./-p && rmdir ./-p
226   as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS="   $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247
248
249 # Check that we are running under the correct shell.
250 SHELL=${CONFIG_SHELL-/bin/sh}
251
252 case X$ECHO in
253 X*--fallback-echo)
254   # Remove one level of quotation (which was required for Make).
255   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256   ;;
257 esac
258
259 echo=${ECHO-echo}
260 if test "X$1" = X--no-reexec; then
261   # Discard the --no-reexec flag, and continue.
262   shift
263 elif test "X$1" = X--fallback-echo; then
264   # Avoid inline document here, it may be left over
265   :
266 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
267   # Yippee, $echo works!
268   :
269 else
270   # Restart under the correct shell.
271   exec $SHELL "$0" --no-reexec ${1+"$@"}
272 fi
273
274 if test "X$1" = X--fallback-echo; then
275   # used as fallback echo
276   shift
277   cat <<EOF
278 $*
279 EOF
280   exit 0
281 fi
282
283 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 # if CDPATH is set.
285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
286
287 if test -z "$ECHO"; then
288 if test "X${echo_test_string+set}" != Xset; then
289 # find a string as large as possible, as long as the shell can cope with it
290   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
293        echo_test_string=`eval $cmd` &&
294        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295     then
296       break
297     fi
298   done
299 fi
300
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303    test "X$echo_testing_string" = "X$echo_test_string"; then
304   :
305 else
306   # The Solaris, AIX, and Digital Unix default echo programs unquote
307   # backslashes.  This makes it impossible to quote backslashes using
308   #   echo "$something" | sed 's/\\/\\\\/g'
309   #
310   # So, first we look for a working echo in the user's PATH.
311
312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
313   for dir in $PATH /usr/ucb; do
314     IFS="$lt_save_ifs"
315     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318        test "X$echo_testing_string" = "X$echo_test_string"; then
319       echo="$dir/echo"
320       break
321     fi
322   done
323   IFS="$lt_save_ifs"
324
325   if test "X$echo" = Xecho; then
326     # We didn't find a better echo, so look for alternatives.
327     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329        test "X$echo_testing_string" = "X$echo_test_string"; then
330       # This shell has a builtin print -r that does the trick.
331       echo='print -r'
332     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333          test "X$CONFIG_SHELL" != X/bin/ksh; then
334       # If we have ksh, try running configure again with it.
335       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336       export ORIGINAL_CONFIG_SHELL
337       CONFIG_SHELL=/bin/ksh
338       export CONFIG_SHELL
339       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340     else
341       # Try using printf.
342       echo='printf %s\n'
343       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345          test "X$echo_testing_string" = "X$echo_test_string"; then
346         # Cool, printf works
347         :
348       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349            test "X$echo_testing_string" = 'X\t' &&
350            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351            test "X$echo_testing_string" = "X$echo_test_string"; then
352         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353         export CONFIG_SHELL
354         SHELL="$CONFIG_SHELL"
355         export SHELL
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358            test "X$echo_testing_string" = 'X\t' &&
359            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360            test "X$echo_testing_string" = "X$echo_test_string"; then
361         echo="$CONFIG_SHELL $0 --fallback-echo"
362       else
363         # maybe with a smaller string...
364         prev=:
365
366         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368           then
369             break
370           fi
371           prev="$cmd"
372         done
373
374         if test "$prev" != 'sed 50q "$0"'; then
375           echo_test_string=`eval $prev`
376           export echo_test_string
377           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378         else
379           # Oops.  We lost completely, so just stick with echo.
380           echo=echo
381         fi
382       fi
383     fi
384   fi
385 fi
386 fi
387
388 # Copy echo and quote the copy suitably for passing to libtool from
389 # the Makefile, instead of quoting the original, which is used later.
390 ECHO=$echo
391 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393 fi
394
395
396
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="OpenLDAP"
429 ac_unique_file="build/version.sh"
430 ac_default_prefix=/usr/local
431 # Factoring default headers for most tests.
432 ac_includes_default="\
433 #include <stdio.h>
434 #if HAVE_SYS_TYPES_H
435 # include <sys/types.h>
436 #endif
437 #if HAVE_SYS_STAT_H
438 # include <sys/stat.h>
439 #endif
440 #if STDC_HEADERS
441 # include <stdlib.h>
442 # include <stddef.h>
443 #else
444 # if HAVE_STDLIB_H
445 #  include <stdlib.h>
446 # endif
447 #endif
448 #if HAVE_STRING_H
449 # if !STDC_HEADERS && HAVE_MEMORY_H
450 #  include <memory.h>
451 # endif
452 # include <string.h>
453 #endif
454 #if HAVE_STRINGS_H
455 # include <strings.h>
456 #endif
457 #if HAVE_INTTYPES_H
458 # include <inttypes.h>
459 #else
460 # if HAVE_STDINT_H
461 #  include <stdint.h>
462 # endif
463 #endif
464 #if HAVE_UNISTD_H
465 # include <unistd.h>
466 #endif"
467
468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED WITH_ACI_ENABLED BUILD_THREAD BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_AUDITLOG BUILD_CONSTRAINT BUILD_DDS BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SEQMOD BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS BDB_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS ICU_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
469 ac_subst_files=''
470
471 # Initialize some variables set by options.
472 ac_init_help=
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
476 cache_file=/dev/null
477 exec_prefix=NONE
478 no_create=
479 no_recursion=
480 prefix=NONE
481 program_prefix=NONE
482 program_suffix=NONE
483 program_transform_name=s,x,x,
484 silent=
485 site=
486 srcdir=
487 verbose=
488 x_includes=NONE
489 x_libraries=NONE
490
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
508
509 ac_prev=
510 for ac_option
511 do
512   # If the previous option needs an argument, assign it.
513   if test -n "$ac_prev"; then
514     eval "$ac_prev=\$ac_option"
515     ac_prev=
516     continue
517   fi
518
519   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521   # Accept the important Cygnus configure options, so we can diagnose typos.
522
523   case $ac_option in
524
525   -bindir | --bindir | --bindi | --bind | --bin | --bi)
526     ac_prev=bindir ;;
527   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528     bindir=$ac_optarg ;;
529
530   -build | --build | --buil | --bui | --bu)
531     ac_prev=build_alias ;;
532   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533     build_alias=$ac_optarg ;;
534
535   -cache-file | --cache-file | --cache-fil | --cache-fi \
536   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537     ac_prev=cache_file ;;
538   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540     cache_file=$ac_optarg ;;
541
542   --config-cache | -C)
543     cache_file=config.cache ;;
544
545   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546     ac_prev=datadir ;;
547   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548   | --da=*)
549     datadir=$ac_optarg ;;
550
551   -disable-* | --disable-*)
552     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553     # Reject names that are not valid shell variable names.
554     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556    { (exit 1); exit 1; }; }
557     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558     eval "enable_$ac_feature=no" ;;
559
560   -enable-* | --enable-*)
561     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562     # Reject names that are not valid shell variable names.
563     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565    { (exit 1); exit 1; }; }
566     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567     case $ac_option in
568       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569       *) ac_optarg=yes ;;
570     esac
571     eval "enable_$ac_feature='$ac_optarg'" ;;
572
573   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575   | --exec | --exe | --ex)
576     ac_prev=exec_prefix ;;
577   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579   | --exec=* | --exe=* | --ex=*)
580     exec_prefix=$ac_optarg ;;
581
582   -gas | --gas | --ga | --g)
583     # Obsolete; use --with-gas.
584     with_gas=yes ;;
585
586   -help | --help | --hel | --he | -h)
587     ac_init_help=long ;;
588   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589     ac_init_help=recursive ;;
590   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591     ac_init_help=short ;;
592
593   -host | --host | --hos | --ho)
594     ac_prev=host_alias ;;
595   -host=* | --host=* | --hos=* | --ho=*)
596     host_alias=$ac_optarg ;;
597
598   -includedir | --includedir | --includedi | --included | --include \
599   | --includ | --inclu | --incl | --inc)
600     ac_prev=includedir ;;
601   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602   | --includ=* | --inclu=* | --incl=* | --inc=*)
603     includedir=$ac_optarg ;;
604
605   -infodir | --infodir | --infodi | --infod | --info | --inf)
606     ac_prev=infodir ;;
607   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608     infodir=$ac_optarg ;;
609
610   -libdir | --libdir | --libdi | --libd)
611     ac_prev=libdir ;;
612   -libdir=* | --libdir=* | --libdi=* | --libd=*)
613     libdir=$ac_optarg ;;
614
615   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616   | --libexe | --libex | --libe)
617     ac_prev=libexecdir ;;
618   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619   | --libexe=* | --libex=* | --libe=*)
620     libexecdir=$ac_optarg ;;
621
622   -localstatedir | --localstatedir | --localstatedi | --localstated \
623   | --localstate | --localstat | --localsta | --localst \
624   | --locals | --local | --loca | --loc | --lo)
625     ac_prev=localstatedir ;;
626   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629     localstatedir=$ac_optarg ;;
630
631   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632     ac_prev=mandir ;;
633   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634     mandir=$ac_optarg ;;
635
636   -nfp | --nfp | --nf)
637     # Obsolete; use --without-fp.
638     with_fp=no ;;
639
640   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641   | --no-cr | --no-c | -n)
642     no_create=yes ;;
643
644   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646     no_recursion=yes ;;
647
648   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650   | --oldin | --oldi | --old | --ol | --o)
651     ac_prev=oldincludedir ;;
652   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655     oldincludedir=$ac_optarg ;;
656
657   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658     ac_prev=prefix ;;
659   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660     prefix=$ac_optarg ;;
661
662   -program-prefix | --program-prefix | --program-prefi | --program-pref \
663   | --program-pre | --program-pr | --program-p)
664     ac_prev=program_prefix ;;
665   -program-prefix=* | --program-prefix=* | --program-prefi=* \
666   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667     program_prefix=$ac_optarg ;;
668
669   -program-suffix | --program-suffix | --program-suffi | --program-suff \
670   | --program-suf | --program-su | --program-s)
671     ac_prev=program_suffix ;;
672   -program-suffix=* | --program-suffix=* | --program-suffi=* \
673   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674     program_suffix=$ac_optarg ;;
675
676   -program-transform-name | --program-transform-name \
677   | --program-transform-nam | --program-transform-na \
678   | --program-transform-n | --program-transform- \
679   | --program-transform | --program-transfor \
680   | --program-transfo | --program-transf \
681   | --program-trans | --program-tran \
682   | --progr-tra | --program-tr | --program-t)
683     ac_prev=program_transform_name ;;
684   -program-transform-name=* | --program-transform-name=* \
685   | --program-transform-nam=* | --program-transform-na=* \
686   | --program-transform-n=* | --program-transform-=* \
687   | --program-transform=* | --program-transfor=* \
688   | --program-transfo=* | --program-transf=* \
689   | --program-trans=* | --program-tran=* \
690   | --progr-tra=* | --program-tr=* | --program-t=*)
691     program_transform_name=$ac_optarg ;;
692
693   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694   | -silent | --silent | --silen | --sile | --sil)
695     silent=yes ;;
696
697   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698     ac_prev=sbindir ;;
699   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700   | --sbi=* | --sb=*)
701     sbindir=$ac_optarg ;;
702
703   -sharedstatedir | --sharedstatedir | --sharedstatedi \
704   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705   | --sharedst | --shareds | --shared | --share | --shar \
706   | --sha | --sh)
707     ac_prev=sharedstatedir ;;
708   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711   | --sha=* | --sh=*)
712     sharedstatedir=$ac_optarg ;;
713
714   -site | --site | --sit)
715     ac_prev=site ;;
716   -site=* | --site=* | --sit=*)
717     site=$ac_optarg ;;
718
719   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720     ac_prev=srcdir ;;
721   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722     srcdir=$ac_optarg ;;
723
724   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725   | --syscon | --sysco | --sysc | --sys | --sy)
726     ac_prev=sysconfdir ;;
727   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729     sysconfdir=$ac_optarg ;;
730
731   -target | --target | --targe | --targ | --tar | --ta | --t)
732     ac_prev=target_alias ;;
733   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734     target_alias=$ac_optarg ;;
735
736   -v | -verbose | --verbose | --verbos | --verbo | --verb)
737     verbose=yes ;;
738
739   -version | --version | --versio | --versi | --vers | -V)
740     ac_init_version=: ;;
741
742   -with-* | --with-*)
743     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744     # Reject names that are not valid shell variable names.
745     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746       { echo "$as_me: error: invalid package name: $ac_package" >&2
747    { (exit 1); exit 1; }; }
748     ac_package=`echo $ac_package| sed 's/-/_/g'`
749     case $ac_option in
750       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751       *) ac_optarg=yes ;;
752     esac
753     eval "with_$ac_package='$ac_optarg'" ;;
754
755   -without-* | --without-*)
756     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757     # Reject names that are not valid shell variable names.
758     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759       { echo "$as_me: error: invalid package name: $ac_package" >&2
760    { (exit 1); exit 1; }; }
761     ac_package=`echo $ac_package | sed 's/-/_/g'`
762     eval "with_$ac_package=no" ;;
763
764   --x)
765     # Obsolete; use --with-x.
766     with_x=yes ;;
767
768   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769   | --x-incl | --x-inc | --x-in | --x-i)
770     ac_prev=x_includes ;;
771   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773     x_includes=$ac_optarg ;;
774
775   -x-libraries | --x-libraries | --x-librarie | --x-librari \
776   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777     ac_prev=x_libraries ;;
778   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780     x_libraries=$ac_optarg ;;
781
782   -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784    { (exit 1); exit 1; }; }
785     ;;
786
787   *=*)
788     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789     # Reject names that are not valid shell variable names.
790     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792    { (exit 1); exit 1; }; }
793     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794     eval "$ac_envvar='$ac_optarg'"
795     export $ac_envvar ;;
796
797   *)
798     # FIXME: should be removed in autoconf 3.0.
799     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803     ;;
804
805   esac
806 done
807
808 if test -n "$ac_prev"; then
809   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810   { echo "$as_me: error: missing argument to $ac_option" >&2
811    { (exit 1); exit 1; }; }
812 fi
813
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
816 do
817   eval ac_val=$`echo $ac_var`
818   case $ac_val in
819     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821    { (exit 1); exit 1; }; };;
822   esac
823 done
824
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827               localstatedir libdir includedir oldincludedir infodir mandir
828 do
829   eval ac_val=$`echo $ac_var`
830   case $ac_val in
831     [\\/$]* | ?:[\\/]* ) ;;
832     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833    { (exit 1); exit 1; }; };;
834   esac
835 done
836
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
840 build=$build_alias
841 host=$host_alias
842 target=$target_alias
843
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846   if test "x$build_alias" = x; then
847     cross_compiling=maybe
848     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849     If a cross compiler is detected then cross compile mode will be used." >&2
850   elif test "x$build_alias" != "x$host_alias"; then
851     cross_compiling=yes
852   fi
853 fi
854
855 ac_tool_prefix=
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858 test "$silent" = yes && exec 6>/dev/null
859
860
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863   ac_srcdir_defaulted=yes
864   # Try the directory containing this script, then its parent.
865   ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867          X"$0" : 'X\(//\)[^/]' \| \
868          X"$0" : 'X\(//\)$' \| \
869          X"$0" : 'X\(/\)' \| \
870          .     : '\(.\)' 2>/dev/null ||
871 echo X"$0" |
872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874           /^X\(\/\/\)$/{ s//\1/; q; }
875           /^X\(\/\).*/{ s//\1/; q; }
876           s/.*/./; q'`
877   srcdir=$ac_confdir
878   if test ! -r $srcdir/$ac_unique_file; then
879     srcdir=..
880   fi
881 else
882   ac_srcdir_defaulted=no
883 fi
884 if test ! -r $srcdir/$ac_unique_file; then
885   if test "$ac_srcdir_defaulted" = yes; then
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887    { (exit 1); exit 1; }; }
888   else
889     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890    { (exit 1); exit 1; }; }
891   fi
892 fi
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895    { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
910 ac_env_CC_value=$CC
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929
930 #
931 # Report the --help message.
932 #
933 if test "$ac_init_help" = "long"; then
934   # Omit some internal or obsolete options to make the list less imposing.
935   # This message is too long to be a string in the A/UX 3.1 sh.
936   cat <<_ACEOF
937 \`configure' configures this package to adapt to many kinds of systems.
938
939 Usage: $0 [OPTION]... [VAR=VALUE]...
940
941 To assign environment variables (e.g., CC, CFLAGS...), specify them as
942 VAR=VALUE.  See below for descriptions of some of the useful variables.
943
944 Defaults for the options are specified in brackets.
945
946 Configuration:
947   -h, --help              display this help and exit
948       --help=short        display options specific to this package
949       --help=recursive    display the short help of all the included packages
950   -V, --version           display version information and exit
951   -q, --quiet, --silent   do not print \`checking...' messages
952       --cache-file=FILE   cache test results in FILE [disabled]
953   -C, --config-cache      alias for \`--cache-file=config.cache'
954   -n, --no-create         do not create output files
955       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
956
957 _ACEOF
958
959   cat <<_ACEOF
960 Installation directories:
961   --prefix=PREFIX         install architecture-independent files in PREFIX
962                           [$ac_default_prefix]
963   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
964                           [PREFIX]
965
966 By default, \`make install' will install all the files in
967 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
968 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
969 for instance \`--prefix=\$HOME'.
970
971 For better control, use the options below.
972
973 Fine tuning of the installation directories:
974   --bindir=DIR           user executables [EPREFIX/bin]
975   --sbindir=DIR          system admin executables [EPREFIX/sbin]
976   --libexecdir=DIR       program executables [EPREFIX/libexec]
977   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
978   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
979   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
980   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
981   --libdir=DIR           object code libraries [EPREFIX/lib]
982   --includedir=DIR       C header files [PREFIX/include]
983   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
984   --infodir=DIR          info documentation [PREFIX/info]
985   --mandir=DIR           man documentation [PREFIX/man]
986 _ACEOF
987
988   cat <<\_ACEOF
989
990 Program names:
991   --program-prefix=PREFIX            prepend PREFIX to installed program names
992   --program-suffix=SUFFIX            append SUFFIX to installed program names
993   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
994
995 System types:
996   --build=BUILD     configure for building on BUILD [guessed]
997   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
998   --target=TARGET   configure for building compilers for TARGET [HOST]
999 _ACEOF
1000 fi
1001
1002 if test -n "$ac_init_help"; then
1003
1004   cat <<\_ACEOF
1005
1006 Optional Features:
1007   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1008   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1009   --enable-debug          enable debugging no|yes|traditional [yes]
1010   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1011   --enable-syslog         enable syslog support [auto]
1012   --enable-proctitle      enable proctitle support [yes]
1013   --enable-ipv6           enable IPv6 support [auto]
1014   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1015
1016 SLAPD (Standalone LDAP Daemon) Options:
1017   --enable-slapd          enable building slapd [yes]
1018     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1019     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1020     --enable-cleartext    enable cleartext passwords [yes]
1021     --enable-crypt        enable crypt(3) passwords [no]
1022     --enable-lmpasswd     enable LAN Manager passwords [no]
1023     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1024     --enable-modules      enable dynamic module support [no]
1025     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1026     --enable-rlookups     enable reverse lookups of client hostnames [no]
1027     --enable-slapi        enable SLAPI support (experimental) [no]
1028     --enable-slp          enable SLPv2 support [no]
1029     --enable-wrappers     enable tcp wrapper support [no]
1030
1031 SLAPD Backend Options:
1032     --enable-backends     enable all available backends no|yes|mod
1033     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1034     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1035     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1036     --enable-ldap         enable ldap backend no|yes|mod [no]
1037     --enable-meta         enable metadirectory backend no|yes|mod [no]
1038     --enable-monitor      enable monitor backend no|yes|mod [yes]
1039     --enable-null         enable null backend no|yes|mod [no]
1040     --enable-passwd       enable passwd backend no|yes|mod [no]
1041     --enable-perl         enable perl backend no|yes|mod [no]
1042     --enable-relay        enable relay backend no|yes|mod [yes]
1043     --enable-shell        enable shell backend no|yes|mod [no]
1044     --enable-sql          enable sql backend no|yes|mod [no]
1045
1046 SLAPD Overlay Options:
1047     --enable-overlays     enable all available overlays no|yes|mod
1048     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1049     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1050     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1051     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1052     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1053     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1054     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1055     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1056     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1057     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1058     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1059     --enable-seqmod       Sequential Modify overlay no|yes|mod [yes]
1060     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1061     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1062     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1063     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1064
1065 SLURPD (Replication Daemon) Options:
1066   --enable-slurpd         enable building slurpd [auto]
1067
1068 Library Generation & Linking Options
1069   --enable-static[=PKGS]
1070                           build static libraries [default=yes]
1071   --enable-shared[=PKGS]
1072                           build shared libraries [default=yes]
1073   --enable-fast-install[=PKGS]
1074                           optimize for fast installation [default=yes]
1075   --disable-dependency-tracking  speeds up one-time build
1076   --enable-dependency-tracking   do not reject slow dependency extractors
1077   --disable-libtool-lock  avoid locking (might break parallel builds)
1078
1079 Optional Packages:
1080   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1081   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1082   --with-subdir=DIR       change default subdirectory used for installs
1083   --with-cyrus-sasl       with Cyrus SASL support [auto]
1084   --with-fetch            with fetch(3) URL support [auto]
1085   --with-threads          with threads [auto]
1086   --with-tls              with TLS/SSL support [auto]
1087   --with-yielding-select  with implicitly yielding select [auto]
1088   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1089   --with-odbc             with specific ODBC support iodbc|unixodbc|auto [auto]
1090   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1091   --with-pic              try to use only PIC/non-PIC objects [default=use
1092                           both]
1093   --with-tags[=TAGS]
1094                           include additional configurations [automatic]
1095
1096 See INSTALL file for further details.
1097
1098 Some influential environment variables:
1099   CC          C compiler command
1100   CFLAGS      C compiler flags
1101   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1102               nonstandard directory <lib dir>
1103   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1104               headers in a nonstandard directory <include dir>
1105   CPP         C preprocessor
1106
1107 Use these variables to override the choices made by `configure' or to help
1108 it to find libraries and programs with nonstandard names/locations.
1109
1110 _ACEOF
1111 fi
1112
1113 if test "$ac_init_help" = "recursive"; then
1114   # If there are subdirs, report their specific --help.
1115   ac_popdir=`pwd`
1116   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1117     test -d $ac_dir || continue
1118     ac_builddir=.
1119
1120 if test "$ac_dir" != .; then
1121   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1122   # A "../" for each directory in $ac_dir_suffix.
1123   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1124 else
1125   ac_dir_suffix= ac_top_builddir=
1126 fi
1127
1128 case $srcdir in
1129   .)  # No --srcdir option.  We are building in place.
1130     ac_srcdir=.
1131     if test -z "$ac_top_builddir"; then
1132        ac_top_srcdir=.
1133     else
1134        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1135     fi ;;
1136   [\\/]* | ?:[\\/]* )  # Absolute path.
1137     ac_srcdir=$srcdir$ac_dir_suffix;
1138     ac_top_srcdir=$srcdir ;;
1139   *) # Relative path.
1140     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1141     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1142 esac
1143
1144 # Do not use `cd foo && pwd` to compute absolute paths, because
1145 # the directories may not exist.
1146 case `pwd` in
1147 .) ac_abs_builddir="$ac_dir";;
1148 *)
1149   case "$ac_dir" in
1150   .) ac_abs_builddir=`pwd`;;
1151   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1152   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1153   esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *)
1158   case ${ac_top_builddir}. in
1159   .) ac_abs_top_builddir=$ac_abs_builddir;;
1160   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1161   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1162   esac;;
1163 esac
1164 case $ac_abs_builddir in
1165 .) ac_abs_srcdir=$ac_srcdir;;
1166 *)
1167   case $ac_srcdir in
1168   .) ac_abs_srcdir=$ac_abs_builddir;;
1169   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1170   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1171   esac;;
1172 esac
1173 case $ac_abs_builddir in
1174 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *)
1176   case $ac_top_srcdir in
1177   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1178   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1179   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1180   esac;;
1181 esac
1182
1183     cd $ac_dir
1184     # Check for guested configure; otherwise get Cygnus style configure.
1185     if test -f $ac_srcdir/configure.gnu; then
1186       echo
1187       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1188     elif test -f $ac_srcdir/configure; then
1189       echo
1190       $SHELL $ac_srcdir/configure  --help=recursive
1191     elif test -f $ac_srcdir/configure.ac ||
1192            test -f $ac_srcdir/configure.in; then
1193       echo
1194       $ac_configure --help
1195     else
1196       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1197     fi
1198     cd $ac_popdir
1199   done
1200 fi
1201
1202 test -n "$ac_init_help" && exit 0
1203 if $ac_init_version; then
1204   cat <<\_ACEOF
1205
1206 Copyright (C) 2003 Free Software Foundation, Inc.
1207 This configure script is free software; the Free Software Foundation
1208 gives unlimited permission to copy, distribute and modify it.
1209
1210 Copyright 1998-2007 The OpenLDAP Foundation. All rights reserved.
1211 Restrictions apply, see COPYRIGHT and LICENSE files.
1212 _ACEOF
1213   exit 0
1214 fi
1215 exec 5>config.log
1216 cat >&5 <<_ACEOF
1217 This file contains any messages produced by compilers while
1218 running configure, to aid debugging if configure makes a mistake.
1219
1220 It was created by $as_me, which was
1221 generated by GNU Autoconf 2.59.  Invocation command line was
1222
1223   $ $0 $@
1224
1225 _ACEOF
1226 {
1227 cat <<_ASUNAME
1228 ## --------- ##
1229 ## Platform. ##
1230 ## --------- ##
1231
1232 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1233 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1234 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1235 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1236 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1237
1238 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1239 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1240
1241 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1242 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1243 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1244 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1245 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1246 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1247 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1248
1249 _ASUNAME
1250
1251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252 for as_dir in $PATH
1253 do
1254   IFS=$as_save_IFS
1255   test -z "$as_dir" && as_dir=.
1256   echo "PATH: $as_dir"
1257 done
1258
1259 } >&5
1260
1261 cat >&5 <<_ACEOF
1262
1263
1264 ## ----------- ##
1265 ## Core tests. ##
1266 ## ----------- ##
1267
1268 _ACEOF
1269
1270
1271 # Keep a trace of the command line.
1272 # Strip out --no-create and --no-recursion so they do not pile up.
1273 # Strip out --silent because we don't want to record it for future runs.
1274 # Also quote any args containing shell meta-characters.
1275 # Make two passes to allow for proper duplicate-argument suppression.
1276 ac_configure_args=
1277 ac_configure_args0=
1278 ac_configure_args1=
1279 ac_sep=
1280 ac_must_keep_next=false
1281 for ac_pass in 1 2
1282 do
1283   for ac_arg
1284   do
1285     case $ac_arg in
1286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288     | -silent | --silent | --silen | --sile | --sil)
1289       continue ;;
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     esac
1293     case $ac_pass in
1294     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1295     2)
1296       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1297       if test $ac_must_keep_next = true; then
1298         ac_must_keep_next=false # Got value, back to normal.
1299       else
1300         case $ac_arg in
1301           *=* | --config-cache | -C | -disable-* | --disable-* \
1302           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1303           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1304           | -with-* | --with-* | -without-* | --without-* | --x)
1305             case "$ac_configure_args0 " in
1306               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1307             esac
1308             ;;
1309           -* ) ac_must_keep_next=true ;;
1310         esac
1311       fi
1312       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1313       # Get rid of the leading space.
1314       ac_sep=" "
1315       ;;
1316     esac
1317   done
1318 done
1319 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1320 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1321
1322 # When interrupted or exit'd, cleanup temporary files, and complete
1323 # config.log.  We remove comments because anyway the quotes in there
1324 # would cause problems or look ugly.
1325 # WARNING: Be sure not to use single quotes in there, as some shells,
1326 # such as our DU 5.0 friend, will then `close' the trap.
1327 trap 'exit_status=$?
1328   # Save into config.log some information that might help in debugging.
1329   {
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ---------------- ##
1334 ## Cache variables. ##
1335 ## ---------------- ##
1336 _ASBOX
1337     echo
1338     # The following way of writing the cache mishandles newlines in values,
1339 {
1340   (set) 2>&1 |
1341     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1342     *ac_space=\ *)
1343       sed -n \
1344         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1346       ;;
1347     *)
1348       sed -n \
1349         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1350       ;;
1351     esac;
1352 }
1353     echo
1354
1355     cat <<\_ASBOX
1356 ## ----------------- ##
1357 ## Output variables. ##
1358 ## ----------------- ##
1359 _ASBOX
1360     echo
1361     for ac_var in $ac_subst_vars
1362     do
1363       eval ac_val=$`echo $ac_var`
1364       echo "$ac_var='"'"'$ac_val'"'"'"
1365     done | sort
1366     echo
1367
1368     if test -n "$ac_subst_files"; then
1369       cat <<\_ASBOX
1370 ## ------------- ##
1371 ## Output files. ##
1372 ## ------------- ##
1373 _ASBOX
1374       echo
1375       for ac_var in $ac_subst_files
1376       do
1377         eval ac_val=$`echo $ac_var`
1378         echo "$ac_var='"'"'$ac_val'"'"'"
1379       done | sort
1380       echo
1381     fi
1382
1383     if test -s confdefs.h; then
1384       cat <<\_ASBOX
1385 ## ----------- ##
1386 ## confdefs.h. ##
1387 ## ----------- ##
1388 _ASBOX
1389       echo
1390       sed "/^$/d" confdefs.h | sort
1391       echo
1392     fi
1393     test "$ac_signal" != 0 &&
1394       echo "$as_me: caught signal $ac_signal"
1395     echo "$as_me: exit $exit_status"
1396   } >&5
1397   rm -f core *.core &&
1398   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1399     exit $exit_status
1400      ' 0
1401 for ac_signal in 1 2 13 15; do
1402   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1403 done
1404 ac_signal=0
1405
1406 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1407 rm -rf conftest* confdefs.h
1408 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1409 echo >confdefs.h
1410
1411 # Predefined preprocessor variables.
1412
1413 cat >>confdefs.h <<_ACEOF
1414 #define PACKAGE_NAME "$PACKAGE_NAME"
1415 _ACEOF
1416
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_STRING "$PACKAGE_STRING"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1435 _ACEOF
1436
1437
1438 # Let the site file select an alternate cache file if it wants to.
1439 # Prefer explicitly selected file to automatically selected ones.
1440 if test -z "$CONFIG_SITE"; then
1441   if test "x$prefix" != xNONE; then
1442     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1443   else
1444     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1445   fi
1446 fi
1447 for ac_site_file in $CONFIG_SITE; do
1448   if test -r "$ac_site_file"; then
1449     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1450 echo "$as_me: loading site script $ac_site_file" >&6;}
1451     sed 's/^/| /' "$ac_site_file" >&5
1452     . "$ac_site_file"
1453   fi
1454 done
1455
1456
1457 # Check that the precious variables saved in the cache have kept the same
1458 # value.
1459 ac_cache_corrupted=false
1460 for ac_var in `(set) 2>&1 |
1461                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463   eval ac_new_set=\$ac_env_${ac_var}_set
1464   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465   eval ac_new_val="\$ac_env_${ac_var}_value"
1466   case $ac_old_set,$ac_new_set in
1467     set,)
1468       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470       ac_cache_corrupted=: ;;
1471     ,set)
1472       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474       ac_cache_corrupted=: ;;
1475     ,);;
1476     *)
1477       if test "x$ac_old_val" != "x$ac_new_val"; then
1478         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1481 echo "$as_me:   former value:  $ac_old_val" >&2;}
1482         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1483 echo "$as_me:   current value: $ac_new_val" >&2;}
1484         ac_cache_corrupted=:
1485       fi;;
1486   esac
1487   # Pass precious variables to config.status.
1488   if test "$ac_new_set" = set; then
1489     case $ac_new_val in
1490     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492     *) ac_arg=$ac_var=$ac_new_val ;;
1493     esac
1494     case " $ac_configure_args " in
1495       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1496       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497     esac
1498   fi
1499 done
1500 if $ac_cache_corrupted; then
1501   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505    { (exit 1); exit 1; }; }
1506 fi
1507
1508 ac_ext=c
1509 ac_cpp='$CPP $CPPFLAGS'
1510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in build $srcdir/build; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 eval `$ac_aux_dir/version.sh`
1582 if test -z "$OL_STRING"; then
1583         { { echo "$as_me:$LINENO: error: could not determine version" >&5
1584 echo "$as_me: error: could not determine version" >&2;}
1585    { (exit 1); exit 1; }; }
1586 fi
1587
1588 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1589         ac_cv_shtool="$ac_aux_dir/shtool"
1590 else
1591         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1592 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1593    { (exit 1); exit 1; }; }
1594 fi
1595
1596 SHTOOL="$ac_cv_shtool"
1597
1598 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1599 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1600
1601 OPENLDAP_CVS=""
1602 if test -d $ac_aux_dir/CVS; then
1603         OPENLDAP_CVS="(from CVS sources) "
1604 fi
1605
1606 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1607
1608 # Make sure we can run config.sub.
1609 $ac_config_sub sun4 >/dev/null 2>&1 ||
1610   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1611 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1612    { (exit 1); exit 1; }; }
1613
1614 echo "$as_me:$LINENO: checking build system type" >&5
1615 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1616 if test "${ac_cv_build+set}" = set; then
1617   echo $ECHO_N "(cached) $ECHO_C" >&6
1618 else
1619   ac_cv_build_alias=$build_alias
1620 test -z "$ac_cv_build_alias" &&
1621   ac_cv_build_alias=`$ac_config_guess`
1622 test -z "$ac_cv_build_alias" &&
1623   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1624 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1625    { (exit 1); exit 1; }; }
1626 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1627   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1628 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1629    { (exit 1); exit 1; }; }
1630
1631 fi
1632 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1633 echo "${ECHO_T}$ac_cv_build" >&6
1634 build=$ac_cv_build
1635 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1636 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1637 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1638
1639
1640 echo "$as_me:$LINENO: checking host system type" >&5
1641 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1642 if test "${ac_cv_host+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   ac_cv_host_alias=$host_alias
1646 test -z "$ac_cv_host_alias" &&
1647   ac_cv_host_alias=$ac_cv_build_alias
1648 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1649   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1650 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1651    { (exit 1); exit 1; }; }
1652
1653 fi
1654 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1655 echo "${ECHO_T}$ac_cv_host" >&6
1656 host=$ac_cv_host
1657 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1658 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1659 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1660
1661
1662 echo "$as_me:$LINENO: checking target system type" >&5
1663 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1664 if test "${ac_cv_target+set}" = set; then
1665   echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667   ac_cv_target_alias=$target_alias
1668 test "x$ac_cv_target_alias" = "x" &&
1669   ac_cv_target_alias=$ac_cv_host_alias
1670 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1673    { (exit 1); exit 1; }; }
1674
1675 fi
1676 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1677 echo "${ECHO_T}$ac_cv_target" >&6
1678 target=$ac_cv_target
1679 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684 # The aliases save the names the user supplied, while $host etc.
1685 # will get canonicalized.
1686 test -n "$target_alias" &&
1687   test "$program_prefix$program_suffix$program_transform_name" = \
1688     NONENONEs,x,x, &&
1689   program_prefix=${target_alias}-
1690
1691 am__api_version="1.9"
1692 # Find a good install program.  We prefer a C program (faster),
1693 # so one script is as good as another.  But avoid the broken or
1694 # incompatible versions:
1695 # SysV /etc/install, /usr/sbin/install
1696 # SunOS /usr/etc/install
1697 # IRIX /sbin/install
1698 # AIX /bin/install
1699 # AmigaOS /C/install, which installs bootblocks on floppy discs
1700 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1701 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1702 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1703 # OS/2's system install, which has a completely different semantic
1704 # ./install, which can be erroneously created by make from ./install.sh.
1705 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1706 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1707 if test -z "$INSTALL"; then
1708 if test "${ac_cv_path_install+set}" = set; then
1709   echo $ECHO_N "(cached) $ECHO_C" >&6
1710 else
1711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   # Account for people who put trailing slashes in PATH elements.
1717 case $as_dir/ in
1718   ./ | .// | /cC/* | \
1719   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1720   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1721   /usr/ucb/* ) ;;
1722   *)
1723     # OSF1 and SCO ODT 3.0 have their own names for install.
1724     # Don't use installbsd from OSF since it installs stuff as root
1725     # by default.
1726     for ac_prog in ginstall scoinst install; do
1727       for ac_exec_ext in '' $ac_executable_extensions; do
1728         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1729           if test $ac_prog = install &&
1730             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1731             # AIX install.  It has an incompatible calling convention.
1732             :
1733           elif test $ac_prog = install &&
1734             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735             # program-specific install script used by HP pwplus--don't use.
1736             :
1737           else
1738             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1739             break 3
1740           fi
1741         fi
1742       done
1743     done
1744     ;;
1745 esac
1746 done
1747
1748
1749 fi
1750   if test "${ac_cv_path_install+set}" = set; then
1751     INSTALL=$ac_cv_path_install
1752   else
1753     # As a last resort, use the slow shell script.  We don't cache a
1754     # path for INSTALL within a source directory, because that will
1755     # break other packages using the cache if that directory is
1756     # removed, or if the path is relative.
1757     INSTALL=$ac_install_sh
1758   fi
1759 fi
1760 echo "$as_me:$LINENO: result: $INSTALL" >&5
1761 echo "${ECHO_T}$INSTALL" >&6
1762
1763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1764 # It thinks the first close brace ends the variable substitution.
1765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1766
1767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1768
1769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1770
1771 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1772 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1773 # Just in case
1774 sleep 1
1775 echo timestamp > conftest.file
1776 # Do `set' in a subshell so we don't clobber the current shell's
1777 # arguments.  Must try -L first in case configure is actually a
1778 # symlink; some systems play weird games with the mod time of symlinks
1779 # (eg FreeBSD returns the mod time of the symlink's containing
1780 # directory).
1781 if (
1782    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1783    if test "$*" = "X"; then
1784       # -L didn't work.
1785       set X `ls -t $srcdir/configure conftest.file`
1786    fi
1787    rm -f conftest.file
1788    if test "$*" != "X $srcdir/configure conftest.file" \
1789       && test "$*" != "X conftest.file $srcdir/configure"; then
1790
1791       # If neither matched, then we have a broken ls.  This can happen
1792       # if, for instance, CONFIG_SHELL is bash and it inherits a
1793       # broken ls alias from the environment.  This has actually
1794       # happened.  Such a system could not be considered "sane".
1795       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1796 alias in your environment" >&5
1797 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1798 alias in your environment" >&2;}
1799    { (exit 1); exit 1; }; }
1800    fi
1801
1802    test "$2" = conftest.file
1803    )
1804 then
1805    # Ok.
1806    :
1807 else
1808    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1809 Check your system clock" >&5
1810 echo "$as_me: error: newly created file is older than distributed files!
1811 Check your system clock" >&2;}
1812    { (exit 1); exit 1; }; }
1813 fi
1814 echo "$as_me:$LINENO: result: yes" >&5
1815 echo "${ECHO_T}yes" >&6
1816 test "$program_prefix" != NONE &&
1817   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1818 # Use a double $ so make ignores it.
1819 test "$program_suffix" != NONE &&
1820   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1821 # Double any \ or $.  echo might interpret backslashes.
1822 # By default was `s,x,x', remove it if useless.
1823 cat <<\_ACEOF >conftest.sed
1824 s/[\\$]/&&/g;s/;s,x,x,$//
1825 _ACEOF
1826 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1827 rm conftest.sed
1828
1829 # expand $ac_aux_dir to an absolute path
1830 am_aux_dir=`cd $ac_aux_dir && pwd`
1831
1832 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1833 # Use eval to expand $SHELL
1834 if eval "$MISSING --run true"; then
1835   am_missing_run="$MISSING --run "
1836 else
1837   am_missing_run=
1838   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1839 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1840 fi
1841
1842 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1843   # We used to keeping the `.' as first argument, in order to
1844   # allow $(mkdir_p) to be used without argument.  As in
1845   #   $(mkdir_p) $(somedir)
1846   # where $(somedir) is conditionally defined.  However this is wrong
1847   # for two reasons:
1848   #  1. if the package is installed by a user who cannot write `.'
1849   #     make install will fail,
1850   #  2. the above comment should most certainly read
1851   #     $(mkdir_p) $(DESTDIR)$(somedir)
1852   #     so it does not work when $(somedir) is undefined and
1853   #     $(DESTDIR) is not.
1854   #  To support the latter case, we have to write
1855   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1856   #  so the `.' trick is pointless.
1857   mkdir_p='mkdir -p --'
1858 else
1859   # On NextStep and OpenStep, the `mkdir' command does not
1860   # recognize any option.  It will interpret all options as
1861   # directories to create, and then abort because `.' already
1862   # exists.
1863   for d in ./-p ./--version;
1864   do
1865     test -d $d && rmdir $d
1866   done
1867   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1868   if test -f "$ac_aux_dir/mkinstalldirs"; then
1869     mkdir_p='$(mkinstalldirs)'
1870   else
1871     mkdir_p='$(install_sh) -d'
1872   fi
1873 fi
1874
1875 for ac_prog in gawk mawk nawk awk
1876 do
1877   # Extract the first word of "$ac_prog", so it can be a program name with args.
1878 set dummy $ac_prog; ac_word=$2
1879 echo "$as_me:$LINENO: checking for $ac_word" >&5
1880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881 if test "${ac_cv_prog_AWK+set}" = set; then
1882   echo $ECHO_N "(cached) $ECHO_C" >&6
1883 else
1884   if test -n "$AWK"; then
1885   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1886 else
1887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888 for as_dir in $PATH
1889 do
1890   IFS=$as_save_IFS
1891   test -z "$as_dir" && as_dir=.
1892   for ac_exec_ext in '' $ac_executable_extensions; do
1893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894     ac_cv_prog_AWK="$ac_prog"
1895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896     break 2
1897   fi
1898 done
1899 done
1900
1901 fi
1902 fi
1903 AWK=$ac_cv_prog_AWK
1904 if test -n "$AWK"; then
1905   echo "$as_me:$LINENO: result: $AWK" >&5
1906 echo "${ECHO_T}$AWK" >&6
1907 else
1908   echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6
1910 fi
1911
1912   test -n "$AWK" && break
1913 done
1914
1915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1919   echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921   cat >conftest.make <<\_ACEOF
1922 all:
1923         @echo 'ac_maketemp="$(MAKE)"'
1924 _ACEOF
1925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1927 if test -n "$ac_maketemp"; then
1928   eval ac_cv_prog_make_${ac_make}_set=yes
1929 else
1930   eval ac_cv_prog_make_${ac_make}_set=no
1931 fi
1932 rm -f conftest.make
1933 fi
1934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1935   echo "$as_me:$LINENO: result: yes" >&5
1936 echo "${ECHO_T}yes" >&6
1937   SET_MAKE=
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941   SET_MAKE="MAKE=${MAKE-make}"
1942 fi
1943
1944 rm -rf .tst 2>/dev/null
1945 mkdir .tst 2>/dev/null
1946 if test -d .tst; then
1947   am__leading_dot=.
1948 else
1949   am__leading_dot=_
1950 fi
1951 rmdir .tst 2>/dev/null
1952
1953 # test to see if srcdir already configured
1954 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1955    test -f $srcdir/config.status; then
1956   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1957 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1958    { (exit 1); exit 1; }; }
1959 fi
1960
1961 # test whether we have cygpath
1962 if test -z "$CYGPATH_W"; then
1963   if (cygpath --version) >/dev/null 2>/dev/null; then
1964     CYGPATH_W='cygpath -w'
1965   else
1966     CYGPATH_W=echo
1967   fi
1968 fi
1969
1970
1971 # Define the identity of the package.
1972  PACKAGE=$OL_PACKAGE
1973  VERSION=$OL_VERSION
1974
1975
1976 # Some tools Automake needs.
1977
1978 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1979
1980
1981 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1982
1983
1984 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1985
1986
1987 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1988
1989
1990 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1991
1992 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1993
1994 # Installed binaries are usually stripped using `strip' when the user
1995 # run `make install-strip'.  However `strip' might not be the right
1996 # tool to use in cross-compilation environments, therefore Automake
1997 # will honor the `STRIP' environment variable to overrule this program.
1998 if test "$cross_compiling" != no; then
1999   if test -n "$ac_tool_prefix"; then
2000   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2001 set dummy ${ac_tool_prefix}strip; ac_word=$2
2002 echo "$as_me:$LINENO: checking for $ac_word" >&5
2003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004 if test "${ac_cv_prog_STRIP+set}" = set; then
2005   echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007   if test -n "$STRIP"; then
2008   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2009 else
2010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 for as_dir in $PATH
2012 do
2013   IFS=$as_save_IFS
2014   test -z "$as_dir" && as_dir=.
2015   for ac_exec_ext in '' $ac_executable_extensions; do
2016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019     break 2
2020   fi
2021 done
2022 done
2023
2024 fi
2025 fi
2026 STRIP=$ac_cv_prog_STRIP
2027 if test -n "$STRIP"; then
2028   echo "$as_me:$LINENO: result: $STRIP" >&5
2029 echo "${ECHO_T}$STRIP" >&6
2030 else
2031   echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2033 fi
2034
2035 fi
2036 if test -z "$ac_cv_prog_STRIP"; then
2037   ac_ct_STRIP=$STRIP
2038   # Extract the first word of "strip", so it can be a program name with args.
2039 set dummy strip; ac_word=$2
2040 echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2043   echo $ECHO_N "(cached) $ECHO_C" >&6
2044 else
2045   if test -n "$ac_ct_STRIP"; then
2046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2047 else
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 for as_dir in $PATH
2050 do
2051   IFS=$as_save_IFS
2052   test -z "$as_dir" && as_dir=.
2053   for ac_exec_ext in '' $ac_executable_extensions; do
2054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2055     ac_cv_prog_ac_ct_STRIP="strip"
2056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057     break 2
2058   fi
2059 done
2060 done
2061
2062   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2063 fi
2064 fi
2065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2066 if test -n "$ac_ct_STRIP"; then
2067   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2068 echo "${ECHO_T}$ac_ct_STRIP" >&6
2069 else
2070   echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6
2072 fi
2073
2074   STRIP=$ac_ct_STRIP
2075 else
2076   STRIP="$ac_cv_prog_STRIP"
2077 fi
2078
2079 fi
2080 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2081
2082 # We need awk for the "check" target.  The system "awk" is bad on
2083 # some platforms.
2084 # Always define AMTAR for backward compatibility.
2085
2086 AMTAR=${AMTAR-"${am_missing_run}tar"}
2087
2088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2089
2090
2091
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define OPENLDAP_PACKAGE "$PACKAGE"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define OPENLDAP_VERSION "$VERSION"
2101 _ACEOF
2102
2103
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define LDAP_VENDOR_VERSION $OL_API_INC
2107 _ACEOF
2108
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2112 _ACEOF
2113
2114
2115 cat >>confdefs.h <<_ACEOF
2116 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2117 _ACEOF
2118
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2122 _ACEOF
2123
2124
2125 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2126
2127 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2128
2129 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2130
2131
2132
2133
2134
2135
2136
2137           ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2138
2139           ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2140
2141           ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2142
2143
2144 echo "$as_me:$LINENO: checking configure arguments" >&5
2145 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2146
2147
2148 top_builddir=`pwd`
2149
2150 ldap_subdir="/openldap"
2151
2152
2153 # Check whether --with-subdir or --without-subdir was given.
2154 if test "${with_subdir+set}" = set; then
2155   withval="$with_subdir"
2156   case "$withval" in
2157         no) ldap_subdir=""
2158                 ;;
2159         yes)
2160                 ;;
2161         /*|\\*)
2162                 ldap_subdir="$withval"
2163                 ;;
2164         *)
2165                 ldap_subdir="/$withval"
2166                 ;;
2167 esac
2168
2169 fi;
2170
2171 # OpenLDAP --enable-debug
2172
2173         # Check whether --enable-debug or --disable-debug was given.
2174 if test "${enable_debug+set}" = set; then
2175   enableval="$enable_debug"
2176
2177         ol_arg=invalid
2178         for ol_val in no yes traditional ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 # OpenLDAP --enable-ipv6
2265
2266         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268   enableval="$enable_ipv6"
2269
2270         ol_arg=invalid
2271         for ol_val in auto yes no ; do
2272                 if test "$enableval" = "$ol_val" ; then
2273                         ol_arg="$ol_val"
2274                 fi
2275         done
2276         if test "$ol_arg" = "invalid" ; then
2277                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279    { (exit 1); exit 1; }; }
2280         fi
2281         ol_enable_ipv6="$ol_arg"
2282
2283 else
2284         ol_enable_ipv6=auto
2285 fi;
2286 # end --enable-ipv6
2287 # OpenLDAP --enable-local
2288
2289         # Check whether --enable-local or --disable-local was given.
2290 if test "${enable_local+set}" = set; then
2291   enableval="$enable_local"
2292
2293         ol_arg=invalid
2294         for ol_val in auto yes no ; do
2295                 if test "$enableval" = "$ol_val" ; then
2296                         ol_arg="$ol_val"
2297                 fi
2298         done
2299         if test "$ol_arg" = "invalid" ; then
2300                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2301 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2302    { (exit 1); exit 1; }; }
2303         fi
2304         ol_enable_local="$ol_arg"
2305
2306 else
2307         ol_enable_local=auto
2308 fi;
2309 # end --enable-local
2310
2311 # OpenLDAP --with-cyrus_sasl
2312
2313 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2314 if test "${with_cyrus_sasl+set}" = set; then
2315   withval="$with_cyrus_sasl"
2316
2317         ol_arg=invalid
2318         for ol_val in auto yes no  ; do
2319                 if test "$withval" = "$ol_val" ; then
2320                         ol_arg="$ol_val"
2321                 fi
2322         done
2323         if test "$ol_arg" = "invalid" ; then
2324                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2325 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2326    { (exit 1); exit 1; }; }
2327         fi
2328         ol_with_cyrus_sasl="$ol_arg"
2329
2330 else
2331         ol_with_cyrus_sasl="auto"
2332 fi; # end --with-cyrus_sasl
2333
2334 # OpenLDAP --with-fetch
2335
2336 # Check whether --with-fetch or --without-fetch was given.
2337 if test "${with_fetch+set}" = set; then
2338   withval="$with_fetch"
2339
2340         ol_arg=invalid
2341         for ol_val in auto yes no  ; do
2342                 if test "$withval" = "$ol_val" ; then
2343                         ol_arg="$ol_val"
2344                 fi
2345         done
2346         if test "$ol_arg" = "invalid" ; then
2347                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2348 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2349    { (exit 1); exit 1; }; }
2350         fi
2351         ol_with_fetch="$ol_arg"
2352
2353 else
2354         ol_with_fetch="auto"
2355 fi; # end --with-fetch
2356
2357 # OpenLDAP --with-threads
2358
2359 # Check whether --with-threads or --without-threads was given.
2360 if test "${with_threads+set}" = set; then
2361   withval="$with_threads"
2362
2363         ol_arg=invalid
2364         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2365                 if test "$withval" = "$ol_val" ; then
2366                         ol_arg="$ol_val"
2367                 fi
2368         done
2369         if test "$ol_arg" = "invalid" ; then
2370                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2371 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2372    { (exit 1); exit 1; }; }
2373         fi
2374         ol_with_threads="$ol_arg"
2375
2376 else
2377         ol_with_threads="auto"
2378 fi; # end --with-threads
2379
2380 # OpenLDAP --with-tls
2381
2382 # Check whether --with-tls or --without-tls was given.
2383 if test "${with_tls+set}" = set; then
2384   withval="$with_tls"
2385
2386         ol_arg=invalid
2387         for ol_val in auto openssl yes no  ; do
2388                 if test "$withval" = "$ol_val" ; then
2389                         ol_arg="$ol_val"
2390                 fi
2391         done
2392         if test "$ol_arg" = "invalid" ; then
2393                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2394 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2395    { (exit 1); exit 1; }; }
2396         fi
2397         ol_with_tls="$ol_arg"
2398
2399 else
2400         ol_with_tls="auto"
2401 fi; # end --with-tls
2402
2403 # OpenLDAP --with-yielding_select
2404
2405 # Check whether --with-yielding_select or --without-yielding_select was given.
2406 if test "${with_yielding_select+set}" = set; then
2407   withval="$with_yielding_select"
2408
2409         ol_arg=invalid
2410         for ol_val in auto yes no manual  ; do
2411                 if test "$withval" = "$ol_val" ; then
2412                         ol_arg="$ol_val"
2413                 fi
2414         done
2415         if test "$ol_arg" = "invalid" ; then
2416                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2417 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2418    { (exit 1); exit 1; }; }
2419         fi
2420         ol_with_yielding_select="$ol_arg"
2421
2422 else
2423         ol_with_yielding_select="auto"
2424 fi; # end --with-yielding_select
2425
2426 # OpenLDAP --with-mp
2427
2428 # Check whether --with-mp or --without-mp was given.
2429 if test "${with_mp+set}" = set; then
2430   withval="$with_mp"
2431
2432         ol_arg=invalid
2433         for ol_val in auto longlong long bignum gmp yes no ; do
2434                 if test "$withval" = "$ol_val" ; then
2435                         ol_arg="$ol_val"
2436                 fi
2437         done
2438         if test "$ol_arg" = "invalid" ; then
2439                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2440 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2441    { (exit 1); exit 1; }; }
2442         fi
2443         ol_with_mp="$ol_arg"
2444
2445 else
2446         ol_with_mp="auto"
2447 fi; # end --with-mp
2448
2449 # OpenLDAP --with-odbc
2450
2451 # Check whether --with-odbc or --without-odbc was given.
2452 if test "${with_odbc+set}" = set; then
2453   withval="$with_odbc"
2454
2455         ol_arg=invalid
2456         for ol_val in auto iodbc unixodbc  ; do
2457                 if test "$withval" = "$ol_val" ; then
2458                         ol_arg="$ol_val"
2459                 fi
2460         done
2461         if test "$ol_arg" = "invalid" ; then
2462                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2463 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2464    { (exit 1); exit 1; }; }
2465         fi
2466         ol_with_odbc="$ol_arg"
2467
2468 else
2469         ol_with_odbc="auto"
2470 fi; # end --with-odbc
2471
2472
2473
2474 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2475 if test "${enable_xxslapdoptions+set}" = set; then
2476   enableval="$enable_xxslapdoptions"
2477
2478 fi;
2479 # OpenLDAP --enable-slapd
2480
2481         # Check whether --enable-slapd or --disable-slapd was given.
2482 if test "${enable_slapd+set}" = set; then
2483   enableval="$enable_slapd"
2484
2485         ol_arg=invalid
2486         for ol_val in auto yes no ; do
2487                 if test "$enableval" = "$ol_val" ; then
2488                         ol_arg="$ol_val"
2489                 fi
2490         done
2491         if test "$ol_arg" = "invalid" ; then
2492                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2493 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2494    { (exit 1); exit 1; }; }
2495         fi
2496         ol_enable_slapd="$ol_arg"
2497
2498 else
2499         ol_enable_slapd=yes
2500 fi;
2501 # end --enable-slapd
2502 # OpenLDAP --enable-dynacl
2503
2504         # Check whether --enable-dynacl or --disable-dynacl was given.
2505 if test "${enable_dynacl+set}" = set; then
2506   enableval="$enable_dynacl"
2507
2508         ol_arg=invalid
2509         for ol_val in auto yes no ; do
2510                 if test "$enableval" = "$ol_val" ; then
2511                         ol_arg="$ol_val"
2512                 fi
2513         done
2514         if test "$ol_arg" = "invalid" ; then
2515                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2516 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2517    { (exit 1); exit 1; }; }
2518         fi
2519         ol_enable_dynacl="$ol_arg"
2520
2521 else
2522         ol_enable_dynacl=no
2523 fi;
2524 # end --enable-dynacl
2525 # OpenLDAP --enable-aci
2526
2527         # Check whether --enable-aci or --disable-aci was given.
2528 if test "${enable_aci+set}" = set; then
2529   enableval="$enable_aci"
2530
2531         ol_arg=invalid
2532         for ol_val in no yes mod ; do
2533                 if test "$enableval" = "$ol_val" ; then
2534                         ol_arg="$ol_val"
2535                 fi
2536         done
2537         if test "$ol_arg" = "invalid" ; then
2538                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2539 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2540    { (exit 1); exit 1; }; }
2541         fi
2542         ol_enable_aci="$ol_arg"
2543
2544 else
2545         ol_enable_aci=no
2546 fi;
2547 # end --enable-aci
2548 # OpenLDAP --enable-cleartext
2549
2550         # Check whether --enable-cleartext or --disable-cleartext was given.
2551 if test "${enable_cleartext+set}" = set; then
2552   enableval="$enable_cleartext"
2553
2554         ol_arg=invalid
2555         for ol_val in auto yes no ; do
2556                 if test "$enableval" = "$ol_val" ; then
2557                         ol_arg="$ol_val"
2558                 fi
2559         done
2560         if test "$ol_arg" = "invalid" ; then
2561                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2562 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2563    { (exit 1); exit 1; }; }
2564         fi
2565         ol_enable_cleartext="$ol_arg"
2566
2567 else
2568         ol_enable_cleartext=yes
2569 fi;
2570 # end --enable-cleartext
2571 # OpenLDAP --enable-crypt
2572
2573         # Check whether --enable-crypt or --disable-crypt was given.
2574 if test "${enable_crypt+set}" = set; then
2575   enableval="$enable_crypt"
2576
2577         ol_arg=invalid
2578         for ol_val in auto yes no ; do
2579                 if test "$enableval" = "$ol_val" ; then
2580                         ol_arg="$ol_val"
2581                 fi
2582         done
2583         if test "$ol_arg" = "invalid" ; then
2584                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2585 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2586    { (exit 1); exit 1; }; }
2587         fi
2588         ol_enable_crypt="$ol_arg"
2589
2590 else
2591         ol_enable_crypt=no
2592 fi;
2593 # end --enable-crypt
2594 # OpenLDAP --enable-lmpasswd
2595
2596         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2597 if test "${enable_lmpasswd+set}" = set; then
2598   enableval="$enable_lmpasswd"
2599
2600         ol_arg=invalid
2601         for ol_val in auto yes no ; do
2602                 if test "$enableval" = "$ol_val" ; then
2603                         ol_arg="$ol_val"
2604                 fi
2605         done
2606         if test "$ol_arg" = "invalid" ; then
2607                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2608 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2609    { (exit 1); exit 1; }; }
2610         fi
2611         ol_enable_lmpasswd="$ol_arg"
2612
2613 else
2614         ol_enable_lmpasswd=no
2615 fi;
2616 # end --enable-lmpasswd
2617 # OpenLDAP --enable-spasswd
2618
2619         # Check whether --enable-spasswd or --disable-spasswd was given.
2620 if test "${enable_spasswd+set}" = set; then
2621   enableval="$enable_spasswd"
2622
2623         ol_arg=invalid
2624         for ol_val in auto yes no ; do
2625                 if test "$enableval" = "$ol_val" ; then
2626                         ol_arg="$ol_val"
2627                 fi
2628         done
2629         if test "$ol_arg" = "invalid" ; then
2630                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2631 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2632    { (exit 1); exit 1; }; }
2633         fi
2634         ol_enable_spasswd="$ol_arg"
2635
2636 else
2637         ol_enable_spasswd=no
2638 fi;
2639 # end --enable-spasswd
2640 # OpenLDAP --enable-modules
2641
2642         # Check whether --enable-modules or --disable-modules was given.
2643 if test "${enable_modules+set}" = set; then
2644   enableval="$enable_modules"
2645
2646         ol_arg=invalid
2647         for ol_val in auto yes no ; do
2648                 if test "$enableval" = "$ol_val" ; then
2649                         ol_arg="$ol_val"
2650                 fi
2651         done
2652         if test "$ol_arg" = "invalid" ; then
2653                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2654 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2655    { (exit 1); exit 1; }; }
2656         fi
2657         ol_enable_modules="$ol_arg"
2658
2659 else
2660         ol_enable_modules=no
2661 fi;
2662 # end --enable-modules
2663 # OpenLDAP --enable-rewrite
2664
2665         # Check whether --enable-rewrite or --disable-rewrite was given.
2666 if test "${enable_rewrite+set}" = set; then
2667   enableval="$enable_rewrite"
2668
2669         ol_arg=invalid
2670         for ol_val in auto yes no ; do
2671                 if test "$enableval" = "$ol_val" ; then
2672                         ol_arg="$ol_val"
2673                 fi
2674         done
2675         if test "$ol_arg" = "invalid" ; then
2676                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2677 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2678    { (exit 1); exit 1; }; }
2679         fi
2680         ol_enable_rewrite="$ol_arg"
2681
2682 else
2683         ol_enable_rewrite=auto
2684 fi;
2685 # end --enable-rewrite
2686 # OpenLDAP --enable-rlookups
2687
2688         # Check whether --enable-rlookups or --disable-rlookups was given.
2689 if test "${enable_rlookups+set}" = set; then
2690   enableval="$enable_rlookups"
2691
2692         ol_arg=invalid
2693         for ol_val in auto yes no ; do
2694                 if test "$enableval" = "$ol_val" ; then
2695                         ol_arg="$ol_val"
2696                 fi
2697         done
2698         if test "$ol_arg" = "invalid" ; then
2699                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2700 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2701    { (exit 1); exit 1; }; }
2702         fi
2703         ol_enable_rlookups="$ol_arg"
2704
2705 else
2706         ol_enable_rlookups=no
2707 fi;
2708 # end --enable-rlookups
2709 # OpenLDAP --enable-slapi
2710
2711         # Check whether --enable-slapi or --disable-slapi was given.
2712 if test "${enable_slapi+set}" = set; then
2713   enableval="$enable_slapi"
2714
2715         ol_arg=invalid
2716         for ol_val in auto yes no ; do
2717                 if test "$enableval" = "$ol_val" ; then
2718                         ol_arg="$ol_val"
2719                 fi
2720         done
2721         if test "$ol_arg" = "invalid" ; then
2722                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2723 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2724    { (exit 1); exit 1; }; }
2725         fi
2726         ol_enable_slapi="$ol_arg"
2727
2728 else
2729         ol_enable_slapi=no
2730 fi;
2731 # end --enable-slapi
2732 # OpenLDAP --enable-slp
2733
2734         # Check whether --enable-slp or --disable-slp was given.
2735 if test "${enable_slp+set}" = set; then
2736   enableval="$enable_slp"
2737
2738         ol_arg=invalid
2739         for ol_val in auto yes no ; do
2740                 if test "$enableval" = "$ol_val" ; then
2741                         ol_arg="$ol_val"
2742                 fi
2743         done
2744         if test "$ol_arg" = "invalid" ; then
2745                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2746 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2747    { (exit 1); exit 1; }; }
2748         fi
2749         ol_enable_slp="$ol_arg"
2750
2751 else
2752         ol_enable_slp=no
2753 fi;
2754 # end --enable-slp
2755 # OpenLDAP --enable-wrappers
2756
2757         # Check whether --enable-wrappers or --disable-wrappers was given.
2758 if test "${enable_wrappers+set}" = set; then
2759   enableval="$enable_wrappers"
2760
2761         ol_arg=invalid
2762         for ol_val in auto yes no ; do
2763                 if test "$enableval" = "$ol_val" ; then
2764                         ol_arg="$ol_val"
2765                 fi
2766         done
2767         if test "$ol_arg" = "invalid" ; then
2768                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2769 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2770    { (exit 1); exit 1; }; }
2771         fi
2772         ol_enable_wrappers="$ol_arg"
2773
2774 else
2775         ol_enable_wrappers=no
2776 fi;
2777 # end --enable-wrappers
2778
2779 Backends="bdb \
2780         dnssrv \
2781         hdb \
2782         ldap \
2783         meta \
2784         monitor \
2785         null \
2786         passwd \
2787         perl \
2788         relay \
2789         shell \
2790         sql"
2791
2792 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2793 if test "${enable_xxslapbackends+set}" = set; then
2794   enableval="$enable_xxslapbackends"
2795
2796 fi;
2797
2798 # OpenLDAP --enable-backends
2799
2800         # Check whether --enable-backends or --disable-backends was given.
2801 if test "${enable_backends+set}" = set; then
2802   enableval="$enable_backends"
2803
2804         ol_arg=invalid
2805         for ol_val in no yes mod ; do
2806                 if test "$enableval" = "$ol_val" ; then
2807                         ol_arg="$ol_val"
2808                 fi
2809         done
2810         if test "$ol_arg" = "invalid" ; then
2811                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2812 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2813    { (exit 1); exit 1; }; }
2814         fi
2815         ol_enable_backends="$ol_arg"
2816
2817 fi;
2818 # end --enable-backends
2819 # OpenLDAP --enable-bdb
2820
2821         # Check whether --enable-bdb or --disable-bdb was given.
2822 if test "${enable_bdb+set}" = set; then
2823   enableval="$enable_bdb"
2824
2825         ol_arg=invalid
2826         for ol_val in no yes mod ; do
2827                 if test "$enableval" = "$ol_val" ; then
2828                         ol_arg="$ol_val"
2829                 fi
2830         done
2831         if test "$ol_arg" = "invalid" ; then
2832                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2833 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2834    { (exit 1); exit 1; }; }
2835         fi
2836         ol_enable_bdb="$ol_arg"
2837
2838 else
2839         ol_enable_bdb=${ol_enable_backends:-yes}
2840 fi;
2841 # end --enable-bdb
2842 # OpenLDAP --enable-dnssrv
2843
2844         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2845 if test "${enable_dnssrv+set}" = set; then
2846   enableval="$enable_dnssrv"
2847
2848         ol_arg=invalid
2849         for ol_val in no yes mod ; do
2850                 if test "$enableval" = "$ol_val" ; then
2851                         ol_arg="$ol_val"
2852                 fi
2853         done
2854         if test "$ol_arg" = "invalid" ; then
2855                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2856 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2857    { (exit 1); exit 1; }; }
2858         fi
2859         ol_enable_dnssrv="$ol_arg"
2860
2861 else
2862         ol_enable_dnssrv=${ol_enable_backends:-no}
2863 fi;
2864 # end --enable-dnssrv
2865 # OpenLDAP --enable-hdb
2866
2867         # Check whether --enable-hdb or --disable-hdb was given.
2868 if test "${enable_hdb+set}" = set; then
2869   enableval="$enable_hdb"
2870
2871         ol_arg=invalid
2872         for ol_val in no yes mod ; do
2873                 if test "$enableval" = "$ol_val" ; then
2874                         ol_arg="$ol_val"
2875                 fi
2876         done
2877         if test "$ol_arg" = "invalid" ; then
2878                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2879 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2880    { (exit 1); exit 1; }; }
2881         fi
2882         ol_enable_hdb="$ol_arg"
2883
2884 else
2885         ol_enable_hdb=${ol_enable_backends:-yes}
2886 fi;
2887 # end --enable-hdb
2888 # OpenLDAP --enable-ldap
2889
2890         # Check whether --enable-ldap or --disable-ldap was given.
2891 if test "${enable_ldap+set}" = set; then
2892   enableval="$enable_ldap"
2893
2894         ol_arg=invalid
2895         for ol_val in no yes mod ; do
2896                 if test "$enableval" = "$ol_val" ; then
2897                         ol_arg="$ol_val"
2898                 fi
2899         done
2900         if test "$ol_arg" = "invalid" ; then
2901                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2902 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2903    { (exit 1); exit 1; }; }
2904         fi
2905         ol_enable_ldap="$ol_arg"
2906
2907 else
2908         ol_enable_ldap=${ol_enable_backends:-no}
2909 fi;
2910 # end --enable-ldap
2911 # OpenLDAP --enable-meta
2912
2913         # Check whether --enable-meta or --disable-meta was given.
2914 if test "${enable_meta+set}" = set; then
2915   enableval="$enable_meta"
2916
2917         ol_arg=invalid
2918         for ol_val in no yes mod ; do
2919                 if test "$enableval" = "$ol_val" ; then
2920                         ol_arg="$ol_val"
2921                 fi
2922         done
2923         if test "$ol_arg" = "invalid" ; then
2924                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2926    { (exit 1); exit 1; }; }
2927         fi
2928         ol_enable_meta="$ol_arg"
2929
2930 else
2931         ol_enable_meta=${ol_enable_backends:-no}
2932 fi;
2933 # end --enable-meta
2934 # OpenLDAP --enable-monitor
2935
2936         # Check whether --enable-monitor or --disable-monitor was given.
2937 if test "${enable_monitor+set}" = set; then
2938   enableval="$enable_monitor"
2939
2940         ol_arg=invalid
2941         for ol_val in no yes mod ; do
2942                 if test "$enableval" = "$ol_val" ; then
2943                         ol_arg="$ol_val"
2944                 fi
2945         done
2946         if test "$ol_arg" = "invalid" ; then
2947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_monitor="$ol_arg"
2952
2953 else
2954         ol_enable_monitor=${ol_enable_backends:-yes}
2955 fi;
2956 # end --enable-monitor
2957 # OpenLDAP --enable-null
2958
2959         # Check whether --enable-null or --disable-null was given.
2960 if test "${enable_null+set}" = set; then
2961   enableval="$enable_null"
2962
2963         ol_arg=invalid
2964         for ol_val in no yes mod ; do
2965                 if test "$enableval" = "$ol_val" ; then
2966                         ol_arg="$ol_val"
2967                 fi
2968         done
2969         if test "$ol_arg" = "invalid" ; then
2970                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2971 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2972    { (exit 1); exit 1; }; }
2973         fi
2974         ol_enable_null="$ol_arg"
2975
2976 else
2977         ol_enable_null=${ol_enable_backends:-no}
2978 fi;
2979 # end --enable-null
2980 # OpenLDAP --enable-passwd
2981
2982         # Check whether --enable-passwd or --disable-passwd was given.
2983 if test "${enable_passwd+set}" = set; then
2984   enableval="$enable_passwd"
2985
2986         ol_arg=invalid
2987         for ol_val in no yes mod ; do
2988                 if test "$enableval" = "$ol_val" ; then
2989                         ol_arg="$ol_val"
2990                 fi
2991         done
2992         if test "$ol_arg" = "invalid" ; then
2993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2994 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2995    { (exit 1); exit 1; }; }
2996         fi
2997         ol_enable_passwd="$ol_arg"
2998
2999 else
3000         ol_enable_passwd=${ol_enable_backends:-no}
3001 fi;
3002 # end --enable-passwd
3003 # OpenLDAP --enable-perl
3004
3005         # Check whether --enable-perl or --disable-perl was given.
3006 if test "${enable_perl+set}" = set; then
3007   enableval="$enable_perl"
3008
3009         ol_arg=invalid
3010         for ol_val in no yes mod ; do
3011                 if test "$enableval" = "$ol_val" ; then
3012                         ol_arg="$ol_val"
3013                 fi
3014         done
3015         if test "$ol_arg" = "invalid" ; then
3016                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3017 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3018    { (exit 1); exit 1; }; }
3019         fi
3020         ol_enable_perl="$ol_arg"
3021
3022 else
3023         ol_enable_perl=${ol_enable_backends:-no}
3024 fi;
3025 # end --enable-perl
3026 # OpenLDAP --enable-relay
3027
3028         # Check whether --enable-relay or --disable-relay was given.
3029 if test "${enable_relay+set}" = set; then
3030   enableval="$enable_relay"
3031
3032         ol_arg=invalid
3033         for ol_val in no yes mod ; do
3034                 if test "$enableval" = "$ol_val" ; then
3035                         ol_arg="$ol_val"
3036                 fi
3037         done
3038         if test "$ol_arg" = "invalid" ; then
3039                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3040 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3041    { (exit 1); exit 1; }; }
3042         fi
3043         ol_enable_relay="$ol_arg"
3044
3045 else
3046         ol_enable_relay=${ol_enable_backends:-yes}
3047 fi;
3048 # end --enable-relay
3049 # OpenLDAP --enable-shell
3050
3051         # Check whether --enable-shell or --disable-shell was given.
3052 if test "${enable_shell+set}" = set; then
3053   enableval="$enable_shell"
3054
3055         ol_arg=invalid
3056         for ol_val in no yes mod ; do
3057                 if test "$enableval" = "$ol_val" ; then
3058                         ol_arg="$ol_val"
3059                 fi
3060         done
3061         if test "$ol_arg" = "invalid" ; then
3062                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3063 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3064    { (exit 1); exit 1; }; }
3065         fi
3066         ol_enable_shell="$ol_arg"
3067
3068 else
3069         ol_enable_shell=${ol_enable_backends:-no}
3070 fi;
3071 # end --enable-shell
3072 # OpenLDAP --enable-sql
3073
3074         # Check whether --enable-sql or --disable-sql was given.
3075 if test "${enable_sql+set}" = set; then
3076   enableval="$enable_sql"
3077
3078         ol_arg=invalid
3079         for ol_val in no yes mod ; do
3080                 if test "$enableval" = "$ol_val" ; then
3081                         ol_arg="$ol_val"
3082                 fi
3083         done
3084         if test "$ol_arg" = "invalid" ; then
3085                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3086 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3087    { (exit 1); exit 1; }; }
3088         fi
3089         ol_enable_sql="$ol_arg"
3090
3091 else
3092         ol_enable_sql=${ol_enable_backends:-no}
3093 fi;
3094 # end --enable-sql
3095
3096 Overlays="accesslog \
3097         auditlog \
3098         constraint \
3099         dds \
3100         dyngroup \
3101         dynlist \
3102         ppolicy \
3103         proxycache \
3104         refint \
3105         retcode \
3106         rwm \
3107         seqmod \
3108         syncprov \
3109         translucent \
3110         unique \
3111         valsort"
3112
3113 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3114 if test "${enable_xxslapoverlays+set}" = set; then
3115   enableval="$enable_xxslapoverlays"
3116
3117 fi;
3118
3119 # OpenLDAP --enable-overlays
3120
3121         # Check whether --enable-overlays or --disable-overlays was given.
3122 if test "${enable_overlays+set}" = set; then
3123   enableval="$enable_overlays"
3124
3125         ol_arg=invalid
3126         for ol_val in no yes mod ; do
3127                 if test "$enableval" = "$ol_val" ; then
3128                         ol_arg="$ol_val"
3129                 fi
3130         done
3131         if test "$ol_arg" = "invalid" ; then
3132                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_overlays="$ol_arg"
3137
3138 fi;
3139 # end --enable-overlays
3140 # OpenLDAP --enable-accesslog
3141
3142         # Check whether --enable-accesslog or --disable-accesslog was given.
3143 if test "${enable_accesslog+set}" = set; then
3144   enableval="$enable_accesslog"
3145
3146         ol_arg=invalid
3147         for ol_val in no yes mod ; do
3148                 if test "$enableval" = "$ol_val" ; then
3149                         ol_arg="$ol_val"
3150                 fi
3151         done
3152         if test "$ol_arg" = "invalid" ; then
3153                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3154 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3155    { (exit 1); exit 1; }; }
3156         fi
3157         ol_enable_accesslog="$ol_arg"
3158
3159 else
3160         ol_enable_accesslog=${ol_enable_overlays:-no}
3161 fi;
3162 # end --enable-accesslog
3163
3164 # OpenLDAP --enable-auditlog
3165
3166         # Check whether --enable-auditlog or --disable-auditlog was given.
3167 if test "${enable_auditlog+set}" = set; then
3168   enableval="$enable_auditlog"
3169
3170         ol_arg=invalid
3171         for ol_val in no yes mod ; do
3172                 if test "$enableval" = "$ol_val" ; then
3173                         ol_arg="$ol_val"
3174                 fi
3175         done
3176         if test "$ol_arg" = "invalid" ; then
3177                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_auditlog="$ol_arg"
3182
3183 else
3184         ol_enable_auditlog=${ol_enable_overlays:-no}
3185 fi;
3186 # end --enable-auditlog
3187
3188 # OpenLDAP --enable-constraint
3189
3190         # Check whether --enable-constraint or --disable-constraint was given.
3191 if test "${enable_constraint+set}" = set; then
3192   enableval="$enable_constraint"
3193
3194         ol_arg=invalid
3195         for ol_val in no yes mod ; do
3196                 if test "$enableval" = "$ol_val" ; then
3197                         ol_arg="$ol_val"
3198                 fi
3199         done
3200         if test "$ol_arg" = "invalid" ; then
3201                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3202 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3203    { (exit 1); exit 1; }; }
3204         fi
3205         ol_enable_constraint="$ol_arg"
3206
3207 else
3208         ol_enable_constraint=${ol_enable_overlays:-no}
3209 fi;
3210 # end --enable-constraint
3211
3212 # OpenLDAP --enable-dds
3213
3214         # Check whether --enable-dds or --disable-dds was given.
3215 if test "${enable_dds+set}" = set; then
3216   enableval="$enable_dds"
3217
3218         ol_arg=invalid
3219         for ol_val in no yes mod ; do
3220                 if test "$enableval" = "$ol_val" ; then
3221                         ol_arg="$ol_val"
3222                 fi
3223         done
3224         if test "$ol_arg" = "invalid" ; then
3225                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3226 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3227    { (exit 1); exit 1; }; }
3228         fi
3229         ol_enable_dds="$ol_arg"
3230
3231 else
3232         ol_enable_dds=${ol_enable_overlays:-no}
3233 fi;
3234 # end --enable-dds
3235
3236 # OpenLDAP --enable-dyngroup
3237
3238         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3239 if test "${enable_dyngroup+set}" = set; then
3240   enableval="$enable_dyngroup"
3241
3242         ol_arg=invalid
3243         for ol_val in no yes mod ; do
3244                 if test "$enableval" = "$ol_val" ; then
3245                         ol_arg="$ol_val"
3246                 fi
3247         done
3248         if test "$ol_arg" = "invalid" ; then
3249                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3251    { (exit 1); exit 1; }; }
3252         fi
3253         ol_enable_dyngroup="$ol_arg"
3254
3255 else
3256         ol_enable_dyngroup=${ol_enable_overlays:-no}
3257 fi;
3258 # end --enable-dyngroup
3259
3260 # OpenLDAP --enable-dynlist
3261
3262         # Check whether --enable-dynlist or --disable-dynlist was given.
3263 if test "${enable_dynlist+set}" = set; then
3264   enableval="$enable_dynlist"
3265
3266         ol_arg=invalid
3267         for ol_val in no yes mod ; do
3268                 if test "$enableval" = "$ol_val" ; then
3269                         ol_arg="$ol_val"
3270                 fi
3271         done
3272         if test "$ol_arg" = "invalid" ; then
3273                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3274 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3275    { (exit 1); exit 1; }; }
3276         fi
3277         ol_enable_dynlist="$ol_arg"
3278
3279 else
3280         ol_enable_dynlist=${ol_enable_overlays:-no}
3281 fi;
3282 # end --enable-dynlist
3283
3284 # OpenLDAP --enable-ppolicy
3285
3286         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3287 if test "${enable_ppolicy+set}" = set; then
3288   enableval="$enable_ppolicy"
3289
3290         ol_arg=invalid
3291         for ol_val in no yes mod ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_ppolicy="$ol_arg"
3302
3303 else
3304         ol_enable_ppolicy=${ol_enable_overlays:-no}
3305 fi;
3306 # end --enable-ppolicy
3307
3308 # OpenLDAP --enable-proxycache
3309
3310         # Check whether --enable-proxycache or --disable-proxycache was given.
3311 if test "${enable_proxycache+set}" = set; then
3312   enableval="$enable_proxycache"
3313
3314         ol_arg=invalid
3315         for ol_val in no yes mod ; do
3316                 if test "$enableval" = "$ol_val" ; then
3317                         ol_arg="$ol_val"
3318                 fi
3319         done
3320         if test "$ol_arg" = "invalid" ; then
3321                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3323    { (exit 1); exit 1; }; }
3324         fi
3325         ol_enable_proxycache="$ol_arg"
3326
3327 else
3328         ol_enable_proxycache=${ol_enable_overlays:-no}
3329 fi;
3330 # end --enable-proxycache
3331
3332 # OpenLDAP --enable-refint
3333
3334         # Check whether --enable-refint or --disable-refint was given.
3335 if test "${enable_refint+set}" = set; then
3336   enableval="$enable_refint"
3337
3338         ol_arg=invalid
3339         for ol_val in no yes mod ; do
3340                 if test "$enableval" = "$ol_val" ; then
3341                         ol_arg="$ol_val"
3342                 fi
3343         done
3344         if test "$ol_arg" = "invalid" ; then
3345                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3346 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3347    { (exit 1); exit 1; }; }
3348         fi
3349         ol_enable_refint="$ol_arg"
3350
3351 else
3352         ol_enable_refint=${ol_enable_overlays:-no}
3353 fi;
3354 # end --enable-refint
3355
3356 # OpenLDAP --enable-retcode
3357
3358         # Check whether --enable-retcode or --disable-retcode was given.
3359 if test "${enable_retcode+set}" = set; then
3360   enableval="$enable_retcode"
3361
3362         ol_arg=invalid
3363         for ol_val in no yes mod ; do
3364                 if test "$enableval" = "$ol_val" ; then
3365                         ol_arg="$ol_val"
3366                 fi
3367         done
3368         if test "$ol_arg" = "invalid" ; then
3369                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3370 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3371    { (exit 1); exit 1; }; }
3372         fi
3373         ol_enable_retcode="$ol_arg"
3374
3375 else
3376         ol_enable_retcode=${ol_enable_overlays:-no}
3377 fi;
3378 # end --enable-retcode
3379
3380 # OpenLDAP --enable-rwm
3381
3382         # Check whether --enable-rwm or --disable-rwm was given.
3383 if test "${enable_rwm+set}" = set; then
3384   enableval="$enable_rwm"
3385
3386         ol_arg=invalid
3387         for ol_val in no yes mod ; do
3388                 if test "$enableval" = "$ol_val" ; then
3389                         ol_arg="$ol_val"
3390                 fi
3391         done
3392         if test "$ol_arg" = "invalid" ; then
3393                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3394 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3395    { (exit 1); exit 1; }; }
3396         fi
3397         ol_enable_rwm="$ol_arg"
3398
3399 else
3400         ol_enable_rwm=${ol_enable_overlays:-no}
3401 fi;
3402 # end --enable-rwm
3403
3404 # OpenLDAP --enable-seqmod
3405
3406         # Check whether --enable-seqmod or --disable-seqmod was given.
3407 if test "${enable_seqmod+set}" = set; then
3408   enableval="$enable_seqmod"
3409
3410         ol_arg=invalid
3411         for ol_val in no yes mod ; do
3412                 if test "$enableval" = "$ol_val" ; then
3413                         ol_arg="$ol_val"
3414                 fi
3415         done
3416         if test "$ol_arg" = "invalid" ; then
3417                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3418 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3419    { (exit 1); exit 1; }; }
3420         fi
3421         ol_enable_seqmod="$ol_arg"
3422
3423 else
3424         ol_enable_seqmod=${ol_enable_overlays:-yes}
3425 fi;
3426 # end --enable-seqmod
3427
3428 # OpenLDAP --enable-syncprov
3429
3430         # Check whether --enable-syncprov or --disable-syncprov was given.
3431 if test "${enable_syncprov+set}" = set; then
3432   enableval="$enable_syncprov"
3433
3434         ol_arg=invalid
3435         for ol_val in no yes mod ; do
3436                 if test "$enableval" = "$ol_val" ; then
3437                         ol_arg="$ol_val"
3438                 fi
3439         done
3440         if test "$ol_arg" = "invalid" ; then
3441                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3442 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3443    { (exit 1); exit 1; }; }
3444         fi
3445         ol_enable_syncprov="$ol_arg"
3446
3447 else
3448         ol_enable_syncprov=${ol_enable_overlays:-yes}
3449 fi;
3450 # end --enable-syncprov
3451
3452 # OpenLDAP --enable-translucent
3453
3454         # Check whether --enable-translucent or --disable-translucent was given.
3455 if test "${enable_translucent+set}" = set; then
3456   enableval="$enable_translucent"
3457
3458         ol_arg=invalid
3459         for ol_val in no yes mod ; do
3460                 if test "$enableval" = "$ol_val" ; then
3461                         ol_arg="$ol_val"
3462                 fi
3463         done
3464         if test "$ol_arg" = "invalid" ; then
3465                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3466 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3467    { (exit 1); exit 1; }; }
3468         fi
3469         ol_enable_translucent="$ol_arg"
3470
3471 else
3472         ol_enable_translucent=${ol_enable_overlays:-no}
3473 fi;
3474 # end --enable-translucent
3475
3476 # OpenLDAP --enable-unique
3477
3478         # Check whether --enable-unique or --disable-unique was given.
3479 if test "${enable_unique+set}" = set; then
3480   enableval="$enable_unique"
3481
3482         ol_arg=invalid
3483         for ol_val in no yes mod ; do
3484                 if test "$enableval" = "$ol_val" ; then
3485                         ol_arg="$ol_val"
3486                 fi
3487         done
3488         if test "$ol_arg" = "invalid" ; then
3489                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3490 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3491    { (exit 1); exit 1; }; }
3492         fi
3493         ol_enable_unique="$ol_arg"
3494
3495 else
3496         ol_enable_unique=${ol_enable_overlays:-no}
3497 fi;
3498 # end --enable-unique
3499
3500 # OpenLDAP --enable-valsort
3501
3502         # Check whether --enable-valsort or --disable-valsort was given.
3503 if test "${enable_valsort+set}" = set; then
3504   enableval="$enable_valsort"
3505
3506         ol_arg=invalid
3507         for ol_val in no yes mod ; do
3508                 if test "$enableval" = "$ol_val" ; then
3509                         ol_arg="$ol_val"
3510                 fi
3511         done
3512         if test "$ol_arg" = "invalid" ; then
3513                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3514 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3515    { (exit 1); exit 1; }; }
3516         fi
3517         ol_enable_valsort="$ol_arg"
3518
3519 else
3520         ol_enable_valsort=${ol_enable_overlays:-no}
3521 fi;
3522 # end --enable-valsort
3523
3524
3525 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3526 if test "${enable_xxslurpdoptions+set}" = set; then
3527   enableval="$enable_xxslurpdoptions"
3528
3529 fi;
3530 # OpenLDAP --enable-slurpd
3531
3532         # Check whether --enable-slurpd or --disable-slurpd was given.
3533 if test "${enable_slurpd+set}" = set; then
3534   enableval="$enable_slurpd"
3535
3536         ol_arg=invalid
3537         for ol_val in auto yes no ; 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-slurpd" >&5
3544 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3545    { (exit 1); exit 1; }; }
3546         fi
3547         ol_enable_slurpd="$ol_arg"
3548
3549 else
3550         ol_enable_slurpd=auto
3551 fi;
3552 # end --enable-slurpd
3553
3554 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3555 if test "${enable_xxliboptions+set}" = set; then
3556   enableval="$enable_xxliboptions"
3557
3558 fi;
3559 # Check whether --enable-static or --disable-static was given.
3560 if test "${enable_static+set}" = set; then
3561   enableval="$enable_static"
3562   p=${PACKAGE-default}
3563     case $enableval in
3564     yes) enable_static=yes ;;
3565     no) enable_static=no ;;
3566     *)
3567      enable_static=no
3568       # Look at the argument we got.  We use all the common list separators.
3569       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3570       for pkg in $enableval; do
3571         IFS="$lt_save_ifs"
3572         if test "X$pkg" = "X$p"; then
3573           enable_static=yes
3574         fi
3575       done
3576       IFS="$lt_save_ifs"
3577       ;;
3578     esac
3579 else
3580   enable_static=yes
3581 fi;
3582
3583 # Check whether --enable-shared or --disable-shared was given.
3584 if test "${enable_shared+set}" = set; then
3585   enableval="$enable_shared"
3586   p=${PACKAGE-default}
3587     case $enableval in
3588     yes) enable_shared=yes ;;
3589     no) enable_shared=no ;;
3590     *)
3591       enable_shared=no
3592       # Look at the argument we got.  We use all the common list separators.
3593       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3594       for pkg in $enableval; do
3595         IFS="$lt_save_ifs"
3596         if test "X$pkg" = "X$p"; then
3597           enable_shared=yes
3598         fi
3599       done
3600       IFS="$lt_save_ifs"
3601       ;;
3602     esac
3603 else
3604   enable_shared=yes
3605 fi;
3606
3607
3608
3609 # validate options
3610 if test $ol_enable_slapd = no ; then
3611                 if test $ol_enable_slapi = yes ; then
3612                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3613 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3614         fi
3615         case "$ol_enable_backends" in yes | mod)
3616                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3617 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3618         esac
3619         for i in $Backends; do
3620                 eval "ol_tmp=\$ol_enable_$i"
3621                 if test $ol_tmp != no ; then
3622                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3623 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3624                         eval "ol_enable_$i=no"
3625                 fi
3626         done
3627         if test $ol_enable_modules = yes ; then
3628                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3629 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3630         fi
3631         if test $ol_enable_wrappers = yes ; then
3632                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3633 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3634         fi
3635         if test $ol_enable_rlookups = yes ; then
3636                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3637 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3638         fi
3639         if test $ol_enable_dynacl = yes ; then
3640                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3641 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3642         fi
3643         if test $ol_enable_aci != no ; then
3644                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3645 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3646         fi
3647         if test $ol_enable_slurpd = yes ; then
3648                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3649 echo "$as_me: error: slurpd requires slapd" >&2;}
3650    { (exit 1); exit 1; }; }
3651         fi
3652         if test $ol_enable_rewrite = yes ; then
3653                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3654 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3655         fi
3656                 case "$ol_enable_overlays" in yes | mod)
3657                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3658 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3659         esac
3660         for i in $Overlays; do
3661                 eval "ol_tmp=\$ol_enable_$i"
3662                 if test $ol_tmp != no ; then
3663                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3664 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3665                         eval "ol_enable_$i=no"
3666                 fi
3667         done
3668
3669         # force settings to no
3670         ol_enable_slapi=no
3671
3672         ol_enable_backends=
3673         ol_enable_overlays=
3674         ol_enable_modules=no
3675         ol_enable_rlookups=no
3676         ol_enable_dynacl=no
3677         ol_enable_aci=no
3678         ol_enable_wrappers=no
3679
3680         ol_enable_slurpd=no
3681
3682         ol_enable_rewrite=no
3683
3684 elif test $ol_enable_modules != yes &&
3685         test $ol_enable_bdb = no &&
3686         test $ol_enable_dnssrv = no &&
3687         test $ol_enable_hdb = no &&
3688         test $ol_enable_ldap = no &&
3689         test $ol_enable_meta = no &&
3690         test $ol_enable_monitor = no &&
3691         test $ol_enable_null = no &&
3692         test $ol_enable_passwd = no &&
3693         test $ol_enable_perl = no &&
3694         test $ol_enable_relay = no &&
3695         test $ol_enable_shell = no &&
3696         test $ol_enable_sql = no ; then
3697
3698         if test $ol_enable_slapd = yes ; then
3699                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3700 echo "$as_me: error: slapd requires a backend" >&2;}
3701    { (exit 1); exit 1; }; }
3702         else
3703                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3704 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3705                 ol_enable_slapd=no
3706         fi
3707 fi
3708
3709 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3710         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3711 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3712    { (exit 1); exit 1; }; }
3713 fi
3714
3715 if test $ol_enable_slurpd = yes ; then
3716                 if test $ol_with_threads = no ; then
3717                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3718 echo "$as_me: error: slurpd requires threads" >&2;}
3719    { (exit 1); exit 1; }; }
3720         fi
3721 fi
3722
3723 if test $ol_enable_lmpasswd = yes ; then
3724         if test $ol_with_tls = no ; then
3725                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3726 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3727    { (exit 1); exit 1; }; }
3728         fi
3729 fi
3730
3731 if test $ol_enable_spasswd = yes ; then
3732         if test $ol_with_cyrus_sasl = no ; then
3733                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3734 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3735    { (exit 1); exit 1; }; }
3736         fi
3737         ol_with_cyrus_sasl=yes
3738 fi
3739
3740 echo "$as_me:$LINENO: result: done" >&5
3741 echo "${ECHO_T}done" >&6
3742
3743 LDAP_LIBS=
3744 BDB_LIBS=
3745 LTHREAD_LIBS=
3746 LUTIL_LIBS=
3747
3748 SLAPD_LIBS=
3749 SLURPD_LIBS=
3750
3751 BUILD_SLAPD=no
3752 BUILD_SLURPD=no
3753
3754 BUILD_THREAD=no
3755
3756 BUILD_SLAPI=no
3757 SLAPD_SLAPI_DEPEND=
3758
3759 BUILD_BDB=no
3760 BUILD_DNSSRV=no
3761 BUILD_HDB=no
3762 BUILD_LDAP=no
3763 BUILD_META=no
3764 BUILD_MONITOR=no
3765 BUILD_NULL=no
3766 BUILD_PASSWD=no
3767 BUILD_PERL=no
3768 BUILD_RELAY=no
3769 BUILD_SHELL=no
3770 BUILD_SQL=no
3771
3772 BUILD_ACCESSLOG=no
3773 BUILD_AUDITLOG=no
3774 BUILD_CONSTRAINT=no
3775 BUILD_DDS=no
3776 BUILD_DENYOP=no
3777 BUILD_DYNGROUP=no
3778 BUILD_DYNLIST=no
3779 BUILD_LASTMOD=no
3780 BUILD_PPOLICY=no
3781 BUILD_PROXYCACHE=no
3782 BUILD_REFINT=no
3783 BUILD_RETCODE=no
3784 BUILD_RWM=no
3785 BUILD_SEQMOD=no
3786 BUILD_SYNCPROV=no
3787 BUILD_TRANSLUCENT=no
3788 BUILD_UNIQUE=no
3789 BUILD_VALSORT=no
3790
3791 SLAPD_STATIC_OVERLAYS=
3792 SLAPD_DYNAMIC_OVERLAYS=
3793
3794 SLAPD_MODULES_LDFLAGS=
3795 SLAPD_MODULES_CPPFLAGS=
3796
3797 SLAPD_STATIC_BACKENDS=back-ldif
3798 SLAPD_DYNAMIC_BACKENDS=
3799
3800 SLAPD_PERL_LDFLAGS=
3801 MOD_PERL_LDFLAGS=
3802 PERL_CPPFLAGS=
3803
3804 SLAPD_SQL_LDFLAGS=
3805 SLAPD_SQL_LIBS=
3806 SLAPD_SQL_INCLUDES=
3807
3808 KRB4_LIBS=
3809 KRB5_LIBS=
3810 SASL_LIBS=
3811 TLS_LIBS=
3812 MODULES_LIBS=
3813 SLAPI_LIBS=
3814 LIBSLAPI=
3815 LIBSLAPITOOLS=
3816 AUTH_LIBS=
3817 ICU_LIBS=
3818
3819 SLAPD_SLP_LIBS=
3820 SLAPD_GMP_LIBS=
3821
3822
3823
3824 cat >>confdefs.h <<\_ACEOF
3825 #define HAVE_MKVERSION 1
3826 _ACEOF
3827
3828
3829
3830
3831 ol_aix_threads=no
3832 case "$target" in
3833 *-*-aix*)       if test -z "$CC" ; then
3834                 case "$ol_with_threads" in
3835                 auto | yes |  posix) ol_aix_threads=yes ;;
3836                 esac
3837         fi
3838 ;;
3839 esac
3840
3841 if test $ol_aix_threads = yes ; then
3842         if test -z "${CC}" ; then
3843                 for ac_prog in cc_r xlc_r cc
3844 do
3845   # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_CC+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$CC"; then
3853   ac_cv_prog_CC="$CC" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_CC="$ac_prog"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869 fi
3870 fi
3871 CC=$ac_cv_prog_CC
3872 if test -n "$CC"; then
3873   echo "$as_me:$LINENO: result: $CC" >&5
3874 echo "${ECHO_T}$CC" >&6
3875 else
3876   echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3878 fi
3879
3880   test -n "$CC" && break
3881 done
3882
3883
3884                 if test "$CC" = cc ; then
3885                                                 if test $ol_with_threads != auto ; then
3886                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3887 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3888    { (exit 1); exit 1; }; }
3889                         else
3890                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3891 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3892                         fi
3893                         ol_with_threads=no
3894                 fi
3895         fi
3896
3897         case ${CC} in cc_r | xlc_r)
3898                 ol_with_threads=posix
3899                 ol_cv_pthread_create=yes
3900                 ;;
3901         esac
3902 fi
3903
3904 if test -z "${CC}"; then
3905         for ac_prog in cc gcc
3906 do
3907   # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_CC+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$CC"; then
3915   ac_cv_prog_CC="$CC" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_CC="$ac_prog"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 CC=$ac_cv_prog_CC
3934 if test -n "$CC"; then
3935   echo "$as_me:$LINENO: result: $CC" >&5
3936 echo "${ECHO_T}$CC" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942   test -n "$CC" && break
3943 done
3944 test -n "$CC" || CC="missing"
3945
3946
3947         if test "${CC}" = "missing" ; then
3948                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
3949 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
3950    { (exit 1); exit 1; }; }
3951         fi
3952 fi
3953
3954 if test -z "${AR}"; then
3955         for ac_prog in ar gar
3956 do
3957   # Extract the first word of "$ac_prog", so it can be a program name with args.
3958 set dummy $ac_prog; ac_word=$2
3959 echo "$as_me:$LINENO: checking for $ac_word" >&5
3960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3961 if test "${ac_cv_prog_AR+set}" = set; then
3962   echo $ECHO_N "(cached) $ECHO_C" >&6
3963 else
3964   if test -n "$AR"; then
3965   ac_cv_prog_AR="$AR" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972   for ac_exec_ext in '' $ac_executable_extensions; do
3973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974     ac_cv_prog_AR="$ac_prog"
3975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979 done
3980
3981 fi
3982 fi
3983 AR=$ac_cv_prog_AR
3984 if test -n "$AR"; then
3985   echo "$as_me:$LINENO: result: $AR" >&5
3986 echo "${ECHO_T}$AR" >&6
3987 else
3988   echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6
3990 fi
3991
3992   test -n "$AR" && break
3993 done
3994 test -n "$AR" || AR="missing"
3995
3996
3997         if test "${AR}" = "missing" ; then
3998                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
3999 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4000    { (exit 1); exit 1; }; }
4001         fi
4002 fi
4003
4004
4005
4006
4007
4008 # Check whether --enable-fast-install or --disable-fast-install was given.
4009 if test "${enable_fast_install+set}" = set; then
4010   enableval="$enable_fast_install"
4011   p=${PACKAGE-default}
4012     case $enableval in
4013     yes) enable_fast_install=yes ;;
4014     no) enable_fast_install=no ;;
4015     *)
4016       enable_fast_install=no
4017       # Look at the argument we got.  We use all the common list separators.
4018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4019       for pkg in $enableval; do
4020         IFS="$lt_save_ifs"
4021         if test "X$pkg" = "X$p"; then
4022           enable_fast_install=yes
4023         fi
4024       done
4025       IFS="$lt_save_ifs"
4026       ;;
4027     esac
4028 else
4029   enable_fast_install=yes
4030 fi;
4031
4032 DEPDIR="${am__leading_dot}deps"
4033
4034           ac_config_commands="$ac_config_commands depfiles"
4035
4036
4037 am_make=${MAKE-make}
4038 cat > confinc << 'END'
4039 am__doit:
4040         @echo done
4041 .PHONY: am__doit
4042 END
4043 # If we don't find an include directive, just comment out the code.
4044 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4045 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4046 am__include="#"
4047 am__quote=
4048 _am_result=none
4049 # First try GNU make style include.
4050 echo "include confinc" > confmf
4051 # We grep out `Entering directory' and `Leaving directory'
4052 # messages which can occur if `w' ends up in MAKEFLAGS.
4053 # In particular we don't look at `^make:' because GNU make might
4054 # be invoked under some other name (usually "gmake"), in which
4055 # case it prints its new name instead of `make'.
4056 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4057    am__include=include
4058    am__quote=
4059    _am_result=GNU
4060 fi
4061 # Now try BSD make style include.
4062 if test "$am__include" = "#"; then
4063    echo '.include "confinc"' > confmf
4064    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4065       am__include=.include
4066       am__quote="\""
4067       _am_result=BSD
4068    fi
4069 fi
4070
4071
4072 echo "$as_me:$LINENO: result: $_am_result" >&5
4073 echo "${ECHO_T}$_am_result" >&6
4074 rm -f confinc confmf
4075
4076 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4077 if test "${enable_dependency_tracking+set}" = set; then
4078   enableval="$enable_dependency_tracking"
4079
4080 fi;
4081 if test "x$enable_dependency_tracking" != xno; then
4082   am_depcomp="$ac_aux_dir/depcomp"
4083   AMDEPBACKSLASH='\'
4084 fi
4085
4086
4087 if test "x$enable_dependency_tracking" != xno; then
4088   AMDEP_TRUE=
4089   AMDEP_FALSE='#'
4090 else
4091   AMDEP_TRUE='#'
4092   AMDEP_FALSE=
4093 fi
4094
4095
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102 if test -n "$ac_tool_prefix"; then
4103   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_prog_CC+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   if test -n "$CC"; then
4111   ac_cv_prog_CC="$CC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127 fi
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131   echo "$as_me:$LINENO: result: $CC" >&5
4132 echo "${ECHO_T}$CC" >&6
4133 else
4134   echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137
4138 fi
4139 if test -z "$ac_cv_prog_CC"; then
4140   ac_ct_CC=$CC
4141   # Extract the first word of "gcc", so it can be a program name with args.
4142 set dummy gcc; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   if test -n "$ac_ct_CC"; then
4149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 else
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156   for ac_exec_ext in '' $ac_executable_extensions; do
4157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158     ac_cv_prog_ac_ct_CC="gcc"
4159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163 done
4164
4165 fi
4166 fi
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170 echo "${ECHO_T}$ac_ct_CC" >&6
4171 else
4172   echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 fi
4175
4176   CC=$ac_ct_CC
4177 else
4178   CC="$ac_cv_prog_CC"
4179 fi
4180
4181 if test -z "$CC"; then
4182   if test -n "$ac_tool_prefix"; then
4183   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}cc; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_CC+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if test -n "$CC"; then
4191   ac_cv_prog_CC="$CC" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for ac_exec_ext in '' $ac_executable_extensions; do
4199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_CC="${ac_tool_prefix}cc"
4201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205 done
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   echo "$as_me:$LINENO: result: $CC" >&5
4212 echo "${ECHO_T}$CC" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218 fi
4219 if test -z "$ac_cv_prog_CC"; then
4220   ac_ct_CC=$CC
4221   # Extract the first word of "cc", so it can be a program name with args.
4222 set dummy cc; ac_word=$2
4223 echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4226   echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228   if test -n "$ac_ct_CC"; then
4229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236   for ac_exec_ext in '' $ac_executable_extensions; do
4237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238     ac_cv_prog_ac_ct_CC="cc"
4239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243 done
4244
4245 fi
4246 fi
4247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4248 if test -n "$ac_ct_CC"; then
4249   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4250 echo "${ECHO_T}$ac_ct_CC" >&6
4251 else
4252   echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6
4254 fi
4255
4256   CC=$ac_ct_CC
4257 else
4258   CC="$ac_cv_prog_CC"
4259 fi
4260
4261 fi
4262 if test -z "$CC"; then
4263   # Extract the first word of "cc", so it can be a program name with args.
4264 set dummy cc; ac_word=$2
4265 echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4267 if test "${ac_cv_prog_CC+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   if test -n "$CC"; then
4271   ac_cv_prog_CC="$CC" # Let the user override the test.
4272 else
4273   ac_prog_rejected=no
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279   for ac_exec_ext in '' $ac_executable_extensions; do
4280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4281     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4282        ac_prog_rejected=yes
4283        continue
4284      fi
4285     ac_cv_prog_CC="cc"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292 if test $ac_prog_rejected = yes; then
4293   # We found a bogon in the path, so make sure we never use it.
4294   set dummy $ac_cv_prog_CC
4295   shift
4296   if test $# != 0; then
4297     # We chose a different compiler from the bogus one.
4298     # However, it has the same basename, so the bogon will be chosen
4299     # first if we set CC to just the basename; use the full file name.
4300     shift
4301     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4302   fi
4303 fi
4304 fi
4305 fi
4306 CC=$ac_cv_prog_CC
4307 if test -n "$CC"; then
4308   echo "$as_me:$LINENO: result: $CC" >&5
4309 echo "${ECHO_T}$CC" >&6
4310 else
4311   echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 fi
4314
4315 fi
4316 if test -z "$CC"; then
4317   if test -n "$ac_tool_prefix"; then
4318   for ac_prog in cl
4319   do
4320     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 echo "$as_me:$LINENO: checking for $ac_word" >&5
4323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4324 if test "${ac_cv_prog_CC+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   if test -n "$CC"; then
4328   ac_cv_prog_CC="$CC" # Let the user override the test.
4329 else
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331 for as_dir in $PATH
4332 do
4333   IFS=$as_save_IFS
4334   test -z "$as_dir" && as_dir=.
4335   for ac_exec_ext in '' $ac_executable_extensions; do
4336   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4337     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339     break 2
4340   fi
4341 done
4342 done
4343
4344 fi
4345 fi
4346 CC=$ac_cv_prog_CC
4347 if test -n "$CC"; then
4348   echo "$as_me:$LINENO: result: $CC" >&5
4349 echo "${ECHO_T}$CC" >&6
4350 else
4351   echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4353 fi
4354
4355     test -n "$CC" && break
4356   done
4357 fi
4358 if test -z "$CC"; then
4359   ac_ct_CC=$CC
4360   for ac_prog in cl
4361 do
4362   # Extract the first word of "$ac_prog", so it can be a program name with args.
4363 set dummy $ac_prog; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4367   echo $ECHO_N "(cached) $ECHO_C" >&6
4368 else
4369   if test -n "$ac_ct_CC"; then
4370   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377   for ac_exec_ext in '' $ac_executable_extensions; do
4378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     ac_cv_prog_ac_ct_CC="$ac_prog"
4380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384 done
4385
4386 fi
4387 fi
4388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4389 if test -n "$ac_ct_CC"; then
4390   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4391 echo "${ECHO_T}$ac_ct_CC" >&6
4392 else
4393   echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4395 fi
4396
4397   test -n "$ac_ct_CC" && break
4398 done
4399
4400   CC=$ac_ct_CC
4401 fi
4402
4403 fi
4404
4405
4406 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4407 See \`config.log' for more details." >&5
4408 echo "$as_me: error: no acceptable C compiler found in \$PATH
4409 See \`config.log' for more details." >&2;}
4410    { (exit 1); exit 1; }; }
4411
4412 # Provide some information about the compiler.
4413 echo "$as_me:$LINENO:" \
4414      "checking for C compiler version" >&5
4415 ac_compiler=`set X $ac_compile; echo $2`
4416 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4417   (eval $ac_compiler --version </dev/null >&5) 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }
4421 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4422   (eval $ac_compiler -v </dev/null >&5) 2>&5
4423   ac_status=$?
4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); }
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4427   (eval $ac_compiler -V </dev/null >&5) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }
4431
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h.  */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h.  */
4438
4439 int
4440 main ()
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 ac_clean_files_save=$ac_clean_files
4448 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4449 # Try to create an executable without -o first, disregard a.out.
4450 # It will help us diagnose broken compilers, and finding out an intuition
4451 # of exeext.
4452 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4453 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4454 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4455 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4456   (eval $ac_link_default) 2>&5
4457   ac_status=$?
4458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459   (exit $ac_status); }; then
4460   # Find the output, starting from the most likely.  This scheme is
4461 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4462 # resort.
4463
4464 # Be careful to initialize this variable, since it used to be cached.
4465 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4466 ac_cv_exeext=
4467 # b.out is created by i960 compilers.
4468 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4469 do
4470   test -f "$ac_file" || continue
4471   case $ac_file in
4472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4473         ;;
4474     conftest.$ac_ext )
4475         # This is the source file.
4476         ;;
4477     [ab].out )
4478         # We found the default executable, but exeext='' is most
4479         # certainly right.
4480         break;;
4481     *.* )
4482         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483         # FIXME: I believe we export ac_cv_exeext for Libtool,
4484         # but it would be cool to find out if it's true.  Does anybody
4485         # maintain Libtool? --akim.
4486         export ac_cv_exeext
4487         break;;
4488     * )
4489         break;;
4490   esac
4491 done
4492 else
4493   echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4495
4496 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4497 See \`config.log' for more details." >&5
4498 echo "$as_me: error: C compiler cannot create executables
4499 See \`config.log' for more details." >&2;}
4500    { (exit 77); exit 77; }; }
4501 fi
4502
4503 ac_exeext=$ac_cv_exeext
4504 echo "$as_me:$LINENO: result: $ac_file" >&5
4505 echo "${ECHO_T}$ac_file" >&6
4506
4507 # Check the compiler produces executables we can run.  If not, either
4508 # the compiler is broken, or we cross compile.
4509 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4512 # If not cross compiling, check that we can run a simple program.
4513 if test "$cross_compiling" != yes; then
4514   if { ac_try='./$ac_file'
4515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516   (eval $ac_try) 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; }; then
4520     cross_compiling=no
4521   else
4522     if test "$cross_compiling" = maybe; then
4523         cross_compiling=yes
4524     else
4525         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4526 If you meant to cross compile, use \`--host'.
4527 See \`config.log' for more details." >&5
4528 echo "$as_me: error: cannot run C compiled programs.
4529 If you meant to cross compile, use \`--host'.
4530 See \`config.log' for more details." >&2;}
4531    { (exit 1); exit 1; }; }
4532     fi
4533   fi
4534 fi
4535 echo "$as_me:$LINENO: result: yes" >&5
4536 echo "${ECHO_T}yes" >&6
4537
4538 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4539 ac_clean_files=$ac_clean_files_save
4540 # Check the compiler produces executables we can run.  If not, either
4541 # the compiler is broken, or we cross compile.
4542 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4543 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4544 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4545 echo "${ECHO_T}$cross_compiling" >&6
4546
4547 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4548 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4550   (eval $ac_link) 2>&5
4551   ac_status=$?
4552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553   (exit $ac_status); }; then
4554   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4555 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4556 # work properly (i.e., refer to `conftest.exe'), while it won't with
4557 # `rm'.
4558 for ac_file in conftest.exe conftest conftest.*; do
4559   test -f "$ac_file" || continue
4560   case $ac_file in
4561     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4562     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4563           export ac_cv_exeext
4564           break;;
4565     * ) break;;
4566   esac
4567 done
4568 else
4569   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4572 See \`config.log' for more details." >&2;}
4573    { (exit 1); exit 1; }; }
4574 fi
4575
4576 rm -f conftest$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4578 echo "${ECHO_T}$ac_cv_exeext" >&6
4579
4580 rm -f conftest.$ac_ext
4581 EXEEXT=$ac_cv_exeext
4582 ac_exeext=$EXEEXT
4583 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4584 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4585 if test "${ac_cv_objext+set}" = set; then
4586   echo $ECHO_N "(cached) $ECHO_C" >&6
4587 else
4588   cat >conftest.$ac_ext <<_ACEOF
4589 /* confdefs.h.  */
4590 _ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h.  */
4594
4595 int
4596 main ()
4597 {
4598
4599   ;
4600   return 0;
4601 }
4602 _ACEOF
4603 rm -f conftest.o conftest.obj
4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4605   (eval $ac_compile) 2>&5
4606   ac_status=$?
4607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608   (exit $ac_status); }; then
4609   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4610   case $ac_file in
4611     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4612     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4613        break;;
4614   esac
4615 done
4616 else
4617   echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4621 See \`config.log' for more details." >&5
4622 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4623 See \`config.log' for more details." >&2;}
4624    { (exit 1); exit 1; }; }
4625 fi
4626
4627 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4628 fi
4629 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4630 echo "${ECHO_T}$ac_cv_objext" >&6
4631 OBJEXT=$ac_cv_objext
4632 ac_objext=$OBJEXT
4633 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4634 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4635 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4636   echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638   cat >conftest.$ac_ext <<_ACEOF
4639 /* confdefs.h.  */
4640 _ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h.  */
4644
4645 int
4646 main ()
4647 {
4648 #ifndef __GNUC__
4649        choke me
4650 #endif
4651
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 rm -f conftest.$ac_objext
4657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4658   (eval $ac_compile) 2>conftest.er1
4659   ac_status=$?
4660   grep -v '^ *+' conftest.er1 >conftest.err
4661   rm -f conftest.er1
4662   cat conftest.err >&5
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); } &&
4665          { ac_try='test -z "$ac_c_werror_flag"
4666                          || test ! -s conftest.err'
4667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668   (eval $ac_try) 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; } &&
4672          { ac_try='test -s conftest.$ac_objext'
4673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674   (eval $ac_try) 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   ac_compiler_gnu=yes
4679 else
4680   echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 ac_compiler_gnu=no
4684 fi
4685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4686 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4687
4688 fi
4689 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4690 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4691 GCC=`test $ac_compiler_gnu = yes && echo yes`
4692 ac_test_CFLAGS=${CFLAGS+set}
4693 ac_save_CFLAGS=$CFLAGS
4694 CFLAGS="-g"
4695 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4696 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4697 if test "${ac_cv_prog_cc_g+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h.  */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h.  */
4706
4707 int
4708 main ()
4709 {
4710
4711   ;
4712   return 0;
4713 }
4714 _ACEOF
4715 rm -f conftest.$ac_objext
4716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4717   (eval $ac_compile) 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_c_werror_flag"
4725                          || test ! -s conftest.err'
4726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4727   (eval $ac_try) 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; } &&
4731          { ac_try='test -s conftest.$ac_objext'
4732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4733   (eval $ac_try) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); }; }; then
4737   ac_cv_prog_cc_g=yes
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742 ac_cv_prog_cc_g=no
4743 fi
4744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 fi
4746 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4748 if test "$ac_test_CFLAGS" = set; then
4749   CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751   if test "$GCC" = yes; then
4752     CFLAGS="-g -O2"
4753   else
4754     CFLAGS="-g"
4755   fi
4756 else
4757   if test "$GCC" = yes; then
4758     CFLAGS="-O2"
4759   else
4760     CFLAGS=
4761   fi
4762 fi
4763 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4764 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4765 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4766   echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768   ac_cv_prog_cc_stdc=no
4769 ac_save_CC=$CC
4770 cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776 #include <stdarg.h>
4777 #include <stdio.h>
4778 #include <sys/types.h>
4779 #include <sys/stat.h>
4780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4781 struct buf { int x; };
4782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4783 static char *e (p, i)
4784      char **p;
4785      int i;
4786 {
4787   return p[i];
4788 }
4789 static char *f (char * (*g) (char **, int), char **p, ...)
4790 {
4791   char *s;
4792   va_list v;
4793   va_start (v,p);
4794   s = g (p, va_arg (v,int));
4795   va_end (v);
4796   return s;
4797 }
4798
4799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4800    function prototypes and stuff, but not '\xHH' hex character constants.
4801    These don't provoke an error unfortunately, instead are silently treated
4802    as 'x'.  The following induces an error, until -std1 is added to get
4803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4804    array size at least.  It's necessary to write '\x00'==0 to get something
4805    that's true only with -std1.  */
4806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4807
4808 int test (int i, double x);
4809 struct s1 {int (*f) (int a);};
4810 struct s2 {int (*f) (double a);};
4811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4812 int argc;
4813 char **argv;
4814 int
4815 main ()
4816 {
4817 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4818   ;
4819   return 0;
4820 }
4821 _ACEOF
4822 # Don't try gcc -ansi; that turns off useful extensions and
4823 # breaks some systems' header files.
4824 # AIX                   -qlanglvl=ansi
4825 # Ultrix and OSF/1      -std1
4826 # HP-UX 10.20 and later -Ae
4827 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4828 # SVR4                  -Xc -D__EXTENSIONS__
4829 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4830 do
4831   CC="$ac_save_CC $ac_arg"
4832   rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834   (eval $ac_compile) 2>conftest.er1
4835   ac_status=$?
4836   grep -v '^ *+' conftest.er1 >conftest.err
4837   rm -f conftest.er1
4838   cat conftest.err >&5
4839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840   (exit $ac_status); } &&
4841          { ac_try='test -z "$ac_c_werror_flag"
4842                          || test ! -s conftest.err'
4843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844   (eval $ac_try) 2>&5
4845   ac_status=$?
4846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847   (exit $ac_status); }; } &&
4848          { ac_try='test -s conftest.$ac_objext'
4849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850   (eval $ac_try) 2>&5
4851   ac_status=$?
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); }; }; then
4854   ac_cv_prog_cc_stdc=$ac_arg
4855 break
4856 else
4857   echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 fi
4861 rm -f conftest.err conftest.$ac_objext
4862 done
4863 rm -f conftest.$ac_ext conftest.$ac_objext
4864 CC=$ac_save_CC
4865
4866 fi
4867
4868 case "x$ac_cv_prog_cc_stdc" in
4869   x|xno)
4870     echo "$as_me:$LINENO: result: none needed" >&5
4871 echo "${ECHO_T}none needed" >&6 ;;
4872   *)
4873     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4874 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4875     CC="$CC $ac_cv_prog_cc_stdc" ;;
4876 esac
4877
4878 # Some people use a C++ compiler to compile C.  Since we use `exit',
4879 # in C++ we need to declare it.  In case someone uses the same compiler
4880 # for both compiling C and C++ we need to have the C++ compiler decide
4881 # the declaration of exit, since it's the most demanding environment.
4882 cat >conftest.$ac_ext <<_ACEOF
4883 #ifndef __cplusplus
4884   choke me
4885 #endif
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4889   (eval $ac_compile) 2>conftest.er1
4890   ac_status=$?
4891   grep -v '^ *+' conftest.er1 >conftest.err
4892   rm -f conftest.er1
4893   cat conftest.err >&5
4894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895   (exit $ac_status); } &&
4896          { ac_try='test -z "$ac_c_werror_flag"
4897                          || test ! -s conftest.err'
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); }; } &&
4903          { ac_try='test -s conftest.$ac_objext'
4904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4905   (eval $ac_try) 2>&5
4906   ac_status=$?
4907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908   (exit $ac_status); }; }; then
4909   for ac_declaration in \
4910    '' \
4911    'extern "C" void std::exit (int) throw (); using std::exit;' \
4912    'extern "C" void std::exit (int); using std::exit;' \
4913    'extern "C" void exit (int) throw ();' \
4914    'extern "C" void exit (int);' \
4915    'void exit (int);'
4916 do
4917   cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 $ac_declaration
4924 #include <stdlib.h>
4925 int
4926 main ()
4927 {
4928 exit (42);
4929   ;
4930   return 0;
4931 }
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4935   (eval $ac_compile) 2>conftest.er1
4936   ac_status=$?
4937   grep -v '^ *+' conftest.er1 >conftest.err
4938   rm -f conftest.er1
4939   cat conftest.err >&5
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -z "$ac_c_werror_flag"
4943                          || test ! -s conftest.err'
4944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945   (eval $ac_try) 2>&5
4946   ac_status=$?
4947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948   (exit $ac_status); }; } &&
4949          { ac_try='test -s conftest.$ac_objext'
4950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951   (eval $ac_try) 2>&5
4952   ac_status=$?
4953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954   (exit $ac_status); }; }; then
4955   :
4956 else
4957   echo "$as_me: failed program was:" >&5
4958 sed 's/^/| /' conftest.$ac_ext >&5
4959
4960 continue
4961 fi
4962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963   cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h.  */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h.  */
4969 $ac_declaration
4970 int
4971 main ()
4972 {
4973 exit (42);
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.$ac_objext
4979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4980   (eval $ac_compile) 2>conftest.er1
4981   ac_status=$?
4982   grep -v '^ *+' conftest.er1 >conftest.err
4983   rm -f conftest.er1
4984   cat conftest.err >&5
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); } &&
4987          { ac_try='test -z "$ac_c_werror_flag"
4988                          || test ! -s conftest.err'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; } &&
4994          { ac_try='test -s conftest.$ac_objext'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; }; then
5000   break
5001 else
5002   echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 fi
5006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 done
5008 rm -f conftest*
5009 if test -n "$ac_declaration"; then
5010   echo '#ifdef __cplusplus' >>confdefs.h
5011   echo $ac_declaration      >>confdefs.h
5012   echo '#endif'             >>confdefs.h
5013 fi
5014
5015 else
5016   echo "$as_me: failed program was:" >&5
5017 sed 's/^/| /' conftest.$ac_ext >&5
5018
5019 fi
5020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5026
5027 depcc="$CC"   am_compiler_list=
5028
5029 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5030 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5031 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5035   # We make a subdir and do the tests there.  Otherwise we can end up
5036   # making bogus files that we don't know about and never remove.  For
5037   # instance it was reported that on HP-UX the gcc test will end up
5038   # making a dummy file named `D' -- because `-MD' means `put the output
5039   # in D'.
5040   mkdir conftest.dir
5041   # Copy depcomp to subdir because otherwise we won't find it if we're
5042   # using a relative directory.
5043   cp "$am_depcomp" conftest.dir
5044   cd conftest.dir
5045   # We will build objects and dependencies in a subdirectory because
5046   # it helps to detect inapplicable dependency modes.  For instance
5047   # both Tru64's cc and ICC support -MD to output dependencies as a
5048   # side effect of compilation, but ICC will put the dependencies in
5049   # the current directory while Tru64 will put them in the object
5050   # directory.
5051   mkdir sub
5052
5053   am_cv_CC_dependencies_compiler_type=none
5054   if test "$am_compiler_list" = ""; then
5055      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056   fi
5057   for depmode in $am_compiler_list; do
5058     # Setup a source with many dependencies, because some compilers
5059     # like to wrap large dependency lists on column 80 (with \), and
5060     # we should not choose a depcomp mode which is confused by this.
5061     #
5062     # We need to recreate these files for each test, as the compiler may
5063     # overwrite some of them when testing with obscure command lines.
5064     # This happens at least with the AIX C compiler.
5065     : > sub/conftest.c
5066     for i in 1 2 3 4 5 6; do
5067       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5068       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5069       # Solaris 8's {/usr,}/bin/sh.
5070       touch sub/conftst$i.h
5071     done
5072     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5073
5074     case $depmode in
5075     nosideeffect)
5076       # after this tag, mechanisms are not by side-effect, so they'll
5077       # only be used when explicitly requested
5078       if test "x$enable_dependency_tracking" = xyes; then
5079         continue
5080       else
5081         break
5082       fi
5083       ;;
5084     none) break ;;
5085     esac
5086     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5087     # mode.  It turns out that the SunPro C++ compiler does not properly
5088     # handle `-M -o', and we need to detect this.
5089     if depmode=$depmode \
5090        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5091        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5092        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5093          >/dev/null 2>conftest.err &&
5094        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5095        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5096        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5097       # icc doesn't choke on unknown options, it will just issue warnings
5098       # or remarks (even with -Werror).  So we grep stderr for any message
5099       # that says an option was ignored or not supported.
5100       # When given -MP, icc 7.0 and 7.1 complain thusly:
5101       #   icc: Command line warning: ignoring option '-M'; no argument required
5102       # The diagnosis changed in icc 8.0:
5103       #   icc: Command line remark: option '-MP' not supported
5104       if (grep 'ignoring option' conftest.err ||
5105           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5106         am_cv_CC_dependencies_compiler_type=$depmode
5107         break
5108       fi
5109     fi
5110   done
5111
5112   cd ..
5113   rm -rf conftest.dir
5114 else
5115   am_cv_CC_dependencies_compiler_type=none
5116 fi
5117
5118 fi
5119 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5120 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5121 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5122
5123
5124
5125 if
5126   test "x$enable_dependency_tracking" != xno \
5127   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128   am__fastdepCC_TRUE=
5129   am__fastdepCC_FALSE='#'
5130 else
5131   am__fastdepCC_TRUE='#'
5132   am__fastdepCC_FALSE=
5133 fi
5134
5135
5136 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5137 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5138 if test "${lt_cv_path_SED+set}" = set; then
5139   echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141   # Loop through the user's path and test for sed and gsed.
5142 # Then use that list of sed's as ones to test for truncation.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148   for lt_ac_prog in sed gsed; do
5149     for ac_exec_ext in '' $ac_executable_extensions; do
5150       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5151         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5152       fi
5153     done
5154   done
5155 done
5156 lt_ac_max=0
5157 lt_ac_count=0
5158 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5159 # along with /bin/sed that truncates output.
5160 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5161   test ! -f $lt_ac_sed && continue
5162   cat /dev/null > conftest.in
5163   lt_ac_count=0
5164   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5165   # Check for GNU sed and select it if it is found.
5166   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5167     lt_cv_path_SED=$lt_ac_sed
5168     break
5169   fi
5170   while true; do
5171     cat conftest.in conftest.in >conftest.tmp
5172     mv conftest.tmp conftest.in
5173     cp conftest.in conftest.nl
5174     echo >>conftest.nl
5175     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5176     cmp -s conftest.out conftest.nl || break
5177     # 10000 chars as input seems more than enough
5178     test $lt_ac_count -gt 10 && break
5179     lt_ac_count=`expr $lt_ac_count + 1`
5180     if test $lt_ac_count -gt $lt_ac_max; then
5181       lt_ac_max=$lt_ac_count
5182       lt_cv_path_SED=$lt_ac_sed
5183     fi
5184   done
5185 done
5186
5187 fi
5188
5189 SED=$lt_cv_path_SED
5190 echo "$as_me:$LINENO: result: $SED" >&5
5191 echo "${ECHO_T}$SED" >&6
5192
5193 echo "$as_me:$LINENO: checking for egrep" >&5
5194 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5195 if test "${ac_cv_prog_egrep+set}" = set; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5199     then ac_cv_prog_egrep='grep -E'
5200     else ac_cv_prog_egrep='egrep'
5201     fi
5202 fi
5203 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5204 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5205  EGREP=$ac_cv_prog_egrep
5206
5207
5208
5209 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5210 if test "${with_gnu_ld+set}" = set; then
5211   withval="$with_gnu_ld"
5212   test "$withval" = no || with_gnu_ld=yes
5213 else
5214   with_gnu_ld=no
5215 fi;
5216 ac_prog=ld
5217 if test "$GCC" = yes; then
5218   # Check if gcc -print-prog-name=ld gives a path.
5219   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5220 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5221   case $host in
5222   *-*-mingw*)
5223     # gcc leaves a trailing carriage return which upsets mingw
5224     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5225   *)
5226     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5227   esac
5228   case $ac_prog in
5229     # Accept absolute paths.
5230     [\\/]* | ?:[\\/]*)
5231       re_direlt='/[^/][^/]*/\.\./'
5232       # Canonicalize the pathname of ld
5233       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5234       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5235         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5236       done
5237       test -z "$LD" && LD="$ac_prog"
5238       ;;
5239   "")
5240     # If it fails, then pretend we aren't using GCC.
5241     ac_prog=ld
5242     ;;
5243   *)
5244     # If it is relative, then search for the first ld in PATH.
5245     with_gnu_ld=unknown
5246     ;;
5247   esac
5248 elif test "$with_gnu_ld" = yes; then
5249   echo "$as_me:$LINENO: checking for GNU ld" >&5
5250 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5251 else
5252   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5253 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5254 fi
5255 if test "${lt_cv_path_LD+set}" = set; then
5256   echo $ECHO_N "(cached) $ECHO_C" >&6
5257 else
5258   if test -z "$LD"; then
5259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5260   for ac_dir in $PATH; do
5261     IFS="$lt_save_ifs"
5262     test -z "$ac_dir" && ac_dir=.
5263     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5264       lt_cv_path_LD="$ac_dir/$ac_prog"
5265       # Check to see if the program is GNU ld.  I'd rather use --version,
5266       # but apparently some variants of GNU ld only accept -v.
5267       # Break only if it was the GNU/non-GNU ld that we prefer.
5268       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5269       *GNU* | *'with BFD'*)
5270         test "$with_gnu_ld" != no && break
5271         ;;
5272       *)
5273         test "$with_gnu_ld" != yes && break
5274         ;;
5275       esac
5276     fi
5277   done
5278   IFS="$lt_save_ifs"
5279 else
5280   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5281 fi
5282 fi
5283
5284 LD="$lt_cv_path_LD"
5285 if test -n "$LD"; then
5286   echo "$as_me:$LINENO: result: $LD" >&5
5287 echo "${ECHO_T}$LD" >&6
5288 else
5289   echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5291 fi
5292 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5293 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5294    { (exit 1); exit 1; }; }
5295 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5296 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5297 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5298   echo $ECHO_N "(cached) $ECHO_C" >&6
5299 else
5300   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5301 case `$LD -v 2>&1 </dev/null` in
5302 *GNU* | *'with BFD'*)
5303   lt_cv_prog_gnu_ld=yes
5304   ;;
5305 *)
5306   lt_cv_prog_gnu_ld=no
5307   ;;
5308 esac
5309 fi
5310 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5311 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5312 with_gnu_ld=$lt_cv_prog_gnu_ld
5313
5314
5315 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5316 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5317 if test "${lt_cv_ld_reload_flag+set}" = set; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 else
5320   lt_cv_ld_reload_flag='-r'
5321 fi
5322 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5323 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5324 reload_flag=$lt_cv_ld_reload_flag
5325 case $reload_flag in
5326 "" | " "*) ;;
5327 *) reload_flag=" $reload_flag" ;;
5328 esac
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5330 case $host_os in
5331   darwin*)
5332     if test "$GCC" = yes; then
5333       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5334     else
5335       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5336     fi
5337     ;;
5338 esac
5339
5340 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5341 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5342 if test "${lt_cv_path_NM+set}" = set; then
5343   echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345   if test -n "$NM"; then
5346   # Let the user override the test.
5347   lt_cv_path_NM="$NM"
5348 else
5349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5350   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5351     IFS="$lt_save_ifs"
5352     test -z "$ac_dir" && ac_dir=.
5353     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5354     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5355       # Check to see if the nm accepts a BSD-compat flag.
5356       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5357       #   nm: unknown option "B" ignored
5358       # Tru64's nm complains that /dev/null is an invalid object file
5359       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5360       */dev/null* | *'Invalid file or object type'*)
5361         lt_cv_path_NM="$tmp_nm -B"
5362         break
5363         ;;
5364       *)
5365         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5366         */dev/null*)
5367           lt_cv_path_NM="$tmp_nm -p"
5368           break
5369           ;;
5370         *)
5371           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5372           continue # so that we can try to find one that supports BSD flags
5373           ;;
5374         esac
5375       esac
5376     fi
5377   done
5378   IFS="$lt_save_ifs"
5379   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5380 fi
5381 fi
5382 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5383 echo "${ECHO_T}$lt_cv_path_NM" >&6
5384 NM="$lt_cv_path_NM"
5385
5386 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5387 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5388 LN_S=$as_ln_s
5389 if test "$LN_S" = "ln -s"; then
5390   echo "$as_me:$LINENO: result: yes" >&5
5391 echo "${ECHO_T}yes" >&6
5392 else
5393   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5394 echo "${ECHO_T}no, using $LN_S" >&6
5395 fi
5396
5397 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5398 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5399 if test "${lt_cv_deplibs_check_method+set}" = set; then
5400   echo $ECHO_N "(cached) $ECHO_C" >&6
5401 else
5402   lt_cv_file_magic_cmd='$MAGIC_CMD'
5403 lt_cv_file_magic_test_file=
5404 lt_cv_deplibs_check_method='unknown'
5405 # Need to set the preceding variable on all platforms that support
5406 # interlibrary dependencies.
5407 # 'none' -- dependencies not supported.
5408 # `unknown' -- same as none, but documents that we really don't know.
5409 # 'pass_all' -- all dependencies passed with no checks.
5410 # 'test_compile' -- check by making test program.
5411 # 'file_magic [[regex]]' -- check by looking for files in library path
5412 # which responds to the $file_magic_cmd with a given extended regex.
5413 # If you have `file' or equivalent on your system and you're not sure
5414 # whether `pass_all' will *always* work, you probably want this one.
5415
5416 case $host_os in
5417 aix4* | aix5*)
5418   lt_cv_deplibs_check_method=pass_all
5419   ;;
5420
5421 beos*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424
5425 bsdi[45]*)
5426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5427   lt_cv_file_magic_cmd='/usr/bin/file -L'
5428   lt_cv_file_magic_test_file=/shlib/libc.so
5429   ;;
5430
5431 cygwin*)
5432   # func_win32_libid is a shell function defined in ltmain.sh
5433   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5434   lt_cv_file_magic_cmd='func_win32_libid'
5435   ;;
5436
5437 mingw* | pw32*)
5438   # Base MSYS/MinGW do not provide the 'file' command needed by
5439   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5440   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5441   lt_cv_file_magic_cmd='$OBJDUMP -f'
5442   ;;
5443
5444 darwin* | rhapsody*)
5445   lt_cv_deplibs_check_method=pass_all
5446   ;;
5447
5448 freebsd* | kfreebsd*-gnu | dragonfly*)
5449   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5450     case $host_cpu in
5451     i*86 )
5452       # Not sure whether the presence of OpenBSD here was a mistake.
5453       # Let's accept both of them until this is cleared up.
5454       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5455       lt_cv_file_magic_cmd=/usr/bin/file
5456       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5457       ;;
5458     esac
5459   else
5460     lt_cv_deplibs_check_method=pass_all
5461   fi
5462   ;;
5463
5464 gnu*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 hpux10.20* | hpux11*)
5469   lt_cv_file_magic_cmd=/usr/bin/file
5470   case $host_cpu in
5471   ia64*)
5472     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5473     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5474     ;;
5475   hppa*64*)
5476     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]'
5477     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5478     ;;
5479   *)
5480     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5481     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5482     ;;
5483   esac
5484   ;;
5485
5486 irix5* | irix6* | nonstopux*)
5487   case $LD in
5488   *-32|*"-32 ") libmagic=32-bit;;
5489   *-n32|*"-n32 ") libmagic=N32;;
5490   *-64|*"-64 ") libmagic=64-bit;;
5491   *) libmagic=never-match;;
5492   esac
5493   lt_cv_deplibs_check_method=pass_all
5494   ;;
5495
5496 # This must be Linux ELF.
5497 linux*)
5498   lt_cv_deplibs_check_method=pass_all
5499   ;;
5500
5501 netbsd*)
5502   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5503     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5504   else
5505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5506   fi
5507   ;;
5508
5509 newos6*)
5510   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5511   lt_cv_file_magic_cmd=/usr/bin/file
5512   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5513   ;;
5514
5515 nto-qnx*)
5516   lt_cv_deplibs_check_method=unknown
5517   ;;
5518
5519 openbsd*)
5520   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5521     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5522   else
5523     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5524   fi
5525   ;;
5526
5527 osf3* | osf4* | osf5*)
5528   lt_cv_deplibs_check_method=pass_all
5529   ;;
5530
5531 sco3.2v5*)
5532   lt_cv_deplibs_check_method=pass_all
5533   ;;
5534
5535 solaris*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5540   case $host_vendor in
5541   motorola)
5542     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]'
5543     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5544     ;;
5545   ncr)
5546     lt_cv_deplibs_check_method=pass_all
5547     ;;
5548   sequent)
5549     lt_cv_file_magic_cmd='/bin/file'
5550     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5551     ;;
5552   sni)
5553     lt_cv_file_magic_cmd='/bin/file'
5554     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5555     lt_cv_file_magic_test_file=/lib/libc.so
5556     ;;
5557   siemens)
5558     lt_cv_deplibs_check_method=pass_all
5559     ;;
5560   esac
5561   ;;
5562
5563 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566 esac
5567
5568 fi
5569 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5570 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5571 file_magic_cmd=$lt_cv_file_magic_cmd
5572 deplibs_check_method=$lt_cv_deplibs_check_method
5573 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5574
5575
5576
5577
5578 # If no C compiler was specified, use CC.
5579 LTCC=${LTCC-"$CC"}
5580
5581 # Allow CC to be a program name with arguments.
5582 compiler=$CC
5583
5584
5585 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5586 if test "${enable_libtool_lock+set}" = set; then
5587   enableval="$enable_libtool_lock"
5588
5589 fi;
5590 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5591
5592 # Some flags need to be propagated to the compiler or linker for good
5593 # libtool support.
5594 case $host in
5595 ia64-*-hpux*)
5596   # Find out which ABI we are using.
5597   echo 'int i;' > conftest.$ac_ext
5598   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5599   (eval $ac_compile) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; then
5603     case `/usr/bin/file conftest.$ac_objext` in
5604     *ELF-32*)
5605       HPUX_IA64_MODE="32"
5606       ;;
5607     *ELF-64*)
5608       HPUX_IA64_MODE="64"
5609       ;;
5610     esac
5611   fi
5612   rm -rf conftest*
5613   ;;
5614 *-*-irix6*)
5615   # Find out which ABI we are using.
5616   echo '#line 5616 "configure"' > conftest.$ac_ext
5617   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5618   (eval $ac_compile) 2>&5
5619   ac_status=$?
5620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621   (exit $ac_status); }; then
5622    if test "$lt_cv_prog_gnu_ld" = yes; then
5623     case `/usr/bin/file conftest.$ac_objext` in
5624     *32-bit*)
5625       LD="${LD-ld} -melf32bsmip"
5626       ;;
5627     *N32*)
5628       LD="${LD-ld} -melf32bmipn32"
5629       ;;
5630     *64-bit*)
5631       LD="${LD-ld} -melf64bmip"
5632       ;;
5633     esac
5634    else
5635     case `/usr/bin/file conftest.$ac_objext` in
5636     *32-bit*)
5637       LD="${LD-ld} -32"
5638       ;;
5639     *N32*)
5640       LD="${LD-ld} -n32"
5641       ;;
5642     *64-bit*)
5643       LD="${LD-ld} -64"
5644       ;;
5645     esac
5646    fi
5647   fi
5648   rm -rf conftest*
5649   ;;
5650
5651 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5652   # Find out which ABI we are using.
5653   echo 'int i;' > conftest.$ac_ext
5654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>&5
5656   ac_status=$?
5657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; then
5659     case `/usr/bin/file conftest.o` in
5660     *32-bit*)
5661       case $host in
5662         x86_64-*linux*)
5663           LD="${LD-ld} -m elf_i386"
5664           ;;
5665         ppc64-*linux*|powerpc64-*linux*)
5666           LD="${LD-ld} -m elf32ppclinux"
5667           ;;
5668         s390x-*linux*)
5669           LD="${LD-ld} -m elf_s390"
5670           ;;
5671         sparc64-*linux*)
5672           LD="${LD-ld} -m elf32_sparc"
5673           ;;
5674       esac
5675       ;;
5676     *64-bit*)
5677       case $host in
5678         x86_64-*linux*)
5679           LD="${LD-ld} -m elf_x86_64"
5680           ;;
5681         ppc*-*linux*|powerpc*-*linux*)
5682           LD="${LD-ld} -m elf64ppc"
5683           ;;
5684         s390*-*linux*)
5685           LD="${LD-ld} -m elf64_s390"
5686           ;;
5687         sparc*-*linux*)
5688           LD="${LD-ld} -m elf64_sparc"
5689           ;;
5690       esac
5691       ;;
5692     esac
5693   fi
5694   rm -rf conftest*
5695   ;;
5696
5697 *-*-sco3.2v5*)
5698   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5699   SAVE_CFLAGS="$CFLAGS"
5700   CFLAGS="$CFLAGS -belf"
5701   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5702 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5703 if test "${lt_cv_cc_needs_belf+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   ac_ext=c
5707 ac_cpp='$CPP $CPPFLAGS'
5708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5711
5712      cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h.  */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h.  */
5718
5719 int
5720 main ()
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext conftest$ac_exeext
5728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5729   (eval $ac_link) 2>conftest.er1
5730   ac_status=$?
5731   grep -v '^ *+' conftest.er1 >conftest.err
5732   rm -f conftest.er1
5733   cat conftest.err >&5
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); } &&
5736          { ac_try='test -z "$ac_c_werror_flag"
5737                          || test ! -s conftest.err'
5738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739   (eval $ac_try) 2>&5
5740   ac_status=$?
5741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742   (exit $ac_status); }; } &&
5743          { ac_try='test -s conftest$ac_exeext'
5744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745   (eval $ac_try) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); }; }; then
5749   lt_cv_cc_needs_belf=yes
5750 else
5751   echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754 lt_cv_cc_needs_belf=no
5755 fi
5756 rm -f conftest.err conftest.$ac_objext \
5757       conftest$ac_exeext conftest.$ac_ext
5758      ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764 fi
5765 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5766 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5767   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5768     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5769     CFLAGS="$SAVE_CFLAGS"
5770   fi
5771   ;;
5772 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5773   if test -n "$ac_tool_prefix"; then
5774   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   if test -n "$DLLTOOL"; then
5782   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5783 else
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789   for ac_exec_ext in '' $ac_executable_extensions; do
5790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796 done
5797
5798 fi
5799 fi
5800 DLLTOOL=$ac_cv_prog_DLLTOOL
5801 if test -n "$DLLTOOL"; then
5802   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5803 echo "${ECHO_T}$DLLTOOL" >&6
5804 else
5805   echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5807 fi
5808
5809 fi
5810 if test -z "$ac_cv_prog_DLLTOOL"; then
5811   ac_ct_DLLTOOL=$DLLTOOL
5812   # Extract the first word of "dlltool", so it can be a program name with args.
5813 set dummy dlltool; ac_word=$2
5814 echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5817   echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819   if test -n "$ac_ct_DLLTOOL"; then
5820   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5821 else
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 for as_dir in $PATH
5824 do
5825   IFS=$as_save_IFS
5826   test -z "$as_dir" && as_dir=.
5827   for ac_exec_ext in '' $ac_executable_extensions; do
5828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831     break 2
5832   fi
5833 done
5834 done
5835
5836   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5837 fi
5838 fi
5839 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5840 if test -n "$ac_ct_DLLTOOL"; then
5841   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5842 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5843 else
5844   echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5846 fi
5847
5848   DLLTOOL=$ac_ct_DLLTOOL
5849 else
5850   DLLTOOL="$ac_cv_prog_DLLTOOL"
5851 fi
5852
5853   if test -n "$ac_tool_prefix"; then
5854   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}as; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_AS+set}" = set; then
5859   echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861   if test -n "$AS"; then
5862   ac_cv_prog_AS="$AS" # Let the user override the test.
5863 else
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871     ac_cv_prog_AS="${ac_tool_prefix}as"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877
5878 fi
5879 fi
5880 AS=$ac_cv_prog_AS
5881 if test -n "$AS"; then
5882   echo "$as_me:$LINENO: result: $AS" >&5
5883 echo "${ECHO_T}$AS" >&6
5884 else
5885   echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5887 fi
5888
5889 fi
5890 if test -z "$ac_cv_prog_AS"; then
5891   ac_ct_AS=$AS
5892   # Extract the first word of "as", so it can be a program name with args.
5893 set dummy as; ac_word=$2
5894 echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   if test -n "$ac_ct_AS"; then
5900   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5901 else
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909     ac_cv_prog_ac_ct_AS="as"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915
5916   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5917 fi
5918 fi
5919 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5920 if test -n "$ac_ct_AS"; then
5921   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5922 echo "${ECHO_T}$ac_ct_AS" >&6
5923 else
5924   echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5926 fi
5927
5928   AS=$ac_ct_AS
5929 else
5930   AS="$ac_cv_prog_AS"
5931 fi
5932
5933   if test -n "$ac_tool_prefix"; then
5934   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5939   echo $ECHO_N "(cached) $ECHO_C" >&6
5940 else
5941   if test -n "$OBJDUMP"; then
5942   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949   for ac_exec_ext in '' $ac_executable_extensions; do
5950   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956 done
5957
5958 fi
5959 fi
5960 OBJDUMP=$ac_cv_prog_OBJDUMP
5961 if test -n "$OBJDUMP"; then
5962   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5963 echo "${ECHO_T}$OBJDUMP" >&6
5964 else
5965   echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5967 fi
5968
5969 fi
5970 if test -z "$ac_cv_prog_OBJDUMP"; then
5971   ac_ct_OBJDUMP=$OBJDUMP
5972   # Extract the first word of "objdump", so it can be a program name with args.
5973 set dummy objdump; ac_word=$2
5974 echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if test -n "$ac_ct_OBJDUMP"; then
5980   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987   for ac_exec_ext in '' $ac_executable_extensions; do
5988   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994 done
5995
5996   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5997 fi
5998 fi
5999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000 if test -n "$ac_ct_OBJDUMP"; then
6001   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6002 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6003 else
6004   echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006 fi
6007
6008   OBJDUMP=$ac_ct_OBJDUMP
6009 else
6010   OBJDUMP="$ac_cv_prog_OBJDUMP"
6011 fi
6012
6013   ;;
6014
6015 esac
6016
6017 need_locks="$enable_libtool_lock"
6018
6019
6020 ac_ext=c
6021 ac_cpp='$CPP $CPPFLAGS'
6022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6025 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6027 # On Suns, sometimes $CPP names a directory.
6028 if test -n "$CPP" && test -d "$CPP"; then
6029   CPP=
6030 fi
6031 if test -z "$CPP"; then
6032   if test "${ac_cv_prog_CPP+set}" = set; then
6033   echo $ECHO_N "(cached) $ECHO_C" >&6
6034 else
6035       # Double quotes because CPP needs to be expanded
6036     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6037     do
6038       ac_preproc_ok=false
6039 for ac_c_preproc_warn_flag in '' yes
6040 do
6041   # Use a header file that comes with gcc, so configuring glibc
6042   # with a fresh cross-compiler works.
6043   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6044   # <limits.h> exists even on freestanding compilers.
6045   # On the NeXT, cc -E runs the code through the compiler's parser,
6046   # not just through cpp. "Syntax error" is here to catch this case.
6047   cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h.  */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h.  */
6053 #ifdef __STDC__
6054 # include <limits.h>
6055 #else
6056 # include <assert.h>
6057 #endif
6058                      Syntax error
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062   ac_status=$?
6063   grep -v '^ *+' conftest.er1 >conftest.err
6064   rm -f conftest.er1
6065   cat conftest.err >&5
6066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067   (exit $ac_status); } >/dev/null; then
6068   if test -s conftest.err; then
6069     ac_cpp_err=$ac_c_preproc_warn_flag
6070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071   else
6072     ac_cpp_err=
6073   fi
6074 else
6075   ac_cpp_err=yes
6076 fi
6077 if test -z "$ac_cpp_err"; then
6078   :
6079 else
6080   echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083   # Broken: fails on valid input.
6084 continue
6085 fi
6086 rm -f conftest.err conftest.$ac_ext
6087
6088   # OK, works on sane cases.  Now check whether non-existent headers
6089   # can be detected and how.
6090   cat >conftest.$ac_ext <<_ACEOF
6091 /* confdefs.h.  */
6092 _ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h.  */
6096 #include <ac_nonexistent.h>
6097 _ACEOF
6098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6099   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100   ac_status=$?
6101   grep -v '^ *+' conftest.er1 >conftest.err
6102   rm -f conftest.er1
6103   cat conftest.err >&5
6104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105   (exit $ac_status); } >/dev/null; then
6106   if test -s conftest.err; then
6107     ac_cpp_err=$ac_c_preproc_warn_flag
6108     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6109   else
6110     ac_cpp_err=
6111   fi
6112 else
6113   ac_cpp_err=yes
6114 fi
6115 if test -z "$ac_cpp_err"; then
6116   # Broken: success on invalid input.
6117 continue
6118 else
6119   echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6121
6122   # Passes both tests.
6123 ac_preproc_ok=:
6124 break
6125 fi
6126 rm -f conftest.err conftest.$ac_ext
6127
6128 done
6129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6130 rm -f conftest.err conftest.$ac_ext
6131 if $ac_preproc_ok; then
6132   break
6133 fi
6134
6135     done
6136     ac_cv_prog_CPP=$CPP
6137
6138 fi
6139   CPP=$ac_cv_prog_CPP
6140 else
6141   ac_cv_prog_CPP=$CPP
6142 fi
6143 echo "$as_me:$LINENO: result: $CPP" >&5
6144 echo "${ECHO_T}$CPP" >&6
6145 ac_preproc_ok=false
6146 for ac_c_preproc_warn_flag in '' yes
6147 do
6148   # Use a header file that comes with gcc, so configuring glibc
6149   # with a fresh cross-compiler works.
6150   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6151   # <limits.h> exists even on freestanding compilers.
6152   # On the NeXT, cc -E runs the code through the compiler's parser,
6153   # not just through cpp. "Syntax error" is here to catch this case.
6154   cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 #ifdef __STDC__
6161 # include <limits.h>
6162 #else
6163 # include <assert.h>
6164 #endif
6165                      Syntax error
6166 _ACEOF
6167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } >/dev/null; then
6175   if test -s conftest.err; then
6176     ac_cpp_err=$ac_c_preproc_warn_flag
6177     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178   else
6179     ac_cpp_err=
6180   fi
6181 else
6182   ac_cpp_err=yes
6183 fi
6184 if test -z "$ac_cpp_err"; then
6185   :
6186 else
6187   echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.$ac_ext >&5
6189
6190   # Broken: fails on valid input.
6191 continue
6192 fi
6193 rm -f conftest.err conftest.$ac_ext
6194
6195   # OK, works on sane cases.  Now check whether non-existent headers
6196   # can be detected and how.
6197   cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h.  */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h.  */
6203 #include <ac_nonexistent.h>
6204 _ACEOF
6205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } >/dev/null; then
6213   if test -s conftest.err; then
6214     ac_cpp_err=$ac_c_preproc_warn_flag
6215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6216   else
6217     ac_cpp_err=
6218   fi
6219 else
6220   ac_cpp_err=yes
6221 fi
6222 if test -z "$ac_cpp_err"; then
6223   # Broken: success on invalid input.
6224 continue
6225 else
6226   echo "$as_me: failed program was:" >&5
6227 sed 's/^/| /' conftest.$ac_ext >&5
6228
6229   # Passes both tests.
6230 ac_preproc_ok=:
6231 break
6232 fi
6233 rm -f conftest.err conftest.$ac_ext
6234
6235 done
6236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6237 rm -f conftest.err conftest.$ac_ext
6238 if $ac_preproc_ok; then
6239   :
6240 else
6241   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6242 See \`config.log' for more details." >&5
6243 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6244 See \`config.log' for more details." >&2;}
6245    { (exit 1); exit 1; }; }
6246 fi
6247
6248 ac_ext=c
6249 ac_cpp='$CPP $CPPFLAGS'
6250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6253
6254
6255 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6256 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6257 if test "${ac_cv_header_stdc+set}" = set; then
6258   echo $ECHO_N "(cached) $ECHO_C" >&6
6259 else
6260   cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h.  */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h.  */
6266 #include <stdlib.h>
6267 #include <stdarg.h>
6268 #include <string.h>
6269 #include <float.h>
6270
6271 int
6272 main ()
6273 {
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281   (eval $ac_compile) 2>conftest.er1
6282   ac_status=$?
6283   grep -v '^ *+' conftest.er1 >conftest.err
6284   rm -f conftest.er1
6285   cat conftest.err >&5
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); } &&
6288          { ac_try='test -z "$ac_c_werror_flag"
6289                          || test ! -s conftest.err'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; } &&
6295          { ac_try='test -s conftest.$ac_objext'
6296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297   (eval $ac_try) 2>&5
6298   ac_status=$?
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); }; }; then
6301   ac_cv_header_stdc=yes
6302 else
6303   echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 ac_cv_header_stdc=no
6307 fi
6308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309
6310 if test $ac_cv_header_stdc = yes; then
6311   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6312   cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h.  */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h.  */
6318 #include <string.h>
6319
6320 _ACEOF
6321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6322   $EGREP "memchr" >/dev/null 2>&1; then
6323   :
6324 else
6325   ac_cv_header_stdc=no
6326 fi
6327 rm -f conftest*
6328
6329 fi
6330
6331 if test $ac_cv_header_stdc = yes; then
6332   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6333   cat >conftest.$ac_ext <<_ACEOF
6334 /* confdefs.h.  */
6335 _ACEOF
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h.  */
6339 #include <stdlib.h>
6340
6341 _ACEOF
6342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6343   $EGREP "free" >/dev/null 2>&1; then
6344   :
6345 else
6346   ac_cv_header_stdc=no
6347 fi
6348 rm -f conftest*
6349
6350 fi
6351
6352 if test $ac_cv_header_stdc = yes; then
6353   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6354   if test "$cross_compiling" = yes; then
6355   :
6356 else
6357   cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h.  */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h.  */
6363 #include <ctype.h>
6364 #if ((' ' & 0x0FF) == 0x020)
6365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367 #else
6368 # define ISLOWER(c) \
6369                    (('a' <= (c) && (c) <= 'i') \
6370                      || ('j' <= (c) && (c) <= 'r') \
6371                      || ('s' <= (c) && (c) <= 'z'))
6372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #endif
6374
6375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6376 int
6377 main ()
6378 {
6379   int i;
6380   for (i = 0; i < 256; i++)
6381     if (XOR (islower (i), ISLOWER (i))
6382         || toupper (i) != TOUPPER (i))
6383       exit(2);
6384   exit (0);
6385 }
6386 _ACEOF
6387 rm -f conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389   (eval $ac_link) 2>&5
6390   ac_status=$?
6391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394   (eval $ac_try) 2>&5
6395   ac_status=$?
6396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397   (exit $ac_status); }; }; then
6398   :
6399 else
6400   echo "$as_me: program exited with status $ac_status" >&5
6401 echo "$as_me: failed program was:" >&5
6402 sed 's/^/| /' conftest.$ac_ext >&5
6403
6404 ( exit $ac_status )
6405 ac_cv_header_stdc=no
6406 fi
6407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6408 fi
6409 fi
6410 fi
6411 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6412 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6413 if test $ac_cv_header_stdc = yes; then
6414
6415 cat >>confdefs.h <<\_ACEOF
6416 #define STDC_HEADERS 1
6417 _ACEOF
6418
6419 fi
6420
6421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6432                   inttypes.h stdint.h unistd.h
6433 do
6434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6435 echo "$as_me:$LINENO: checking for $ac_header" >&5
6436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446 $ac_includes_default
6447
6448 #include <$ac_header>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } &&
6459          { ac_try='test -z "$ac_c_werror_flag"
6460                          || test ! -s conftest.err'
6461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462   (eval $ac_try) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; } &&
6466          { ac_try='test -s conftest.$ac_objext'
6467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468   (eval $ac_try) 2>&5
6469   ac_status=$?
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); }; }; then
6472   eval "$as_ac_Header=yes"
6473 else
6474   echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 eval "$as_ac_Header=no"
6478 fi
6479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6480 fi
6481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6484   cat >>confdefs.h <<_ACEOF
6485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6486 _ACEOF
6487
6488 fi
6489
6490 done
6491
6492
6493
6494 for ac_header in dlfcn.h
6495 do
6496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6498   echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6501   echo $ECHO_N "(cached) $ECHO_C" >&6
6502 fi
6503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 else
6506   # Is the header compilable?
6507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6509 cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515 $ac_includes_default
6516 #include <$ac_header>
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520   (eval $ac_compile) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest.$ac_objext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_header_compiler=yes
6541 else
6542   echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_header_compiler=no
6546 fi
6547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6549 echo "${ECHO_T}$ac_header_compiler" >&6
6550
6551 # Is the header present?
6552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6554 cat >conftest.$ac_ext <<_ACEOF
6555 /* confdefs.h.  */
6556 _ACEOF
6557 cat confdefs.h >>conftest.$ac_ext
6558 cat >>conftest.$ac_ext <<_ACEOF
6559 /* end confdefs.h.  */
6560 #include <$ac_header>
6561 _ACEOF
6562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6564   ac_status=$?
6565   grep -v '^ *+' conftest.er1 >conftest.err
6566   rm -f conftest.er1
6567   cat conftest.err >&5
6568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569   (exit $ac_status); } >/dev/null; then
6570   if test -s conftest.err; then
6571     ac_cpp_err=$ac_c_preproc_warn_flag
6572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6573   else
6574     ac_cpp_err=
6575   fi
6576 else
6577   ac_cpp_err=yes
6578 fi
6579 if test -z "$ac_cpp_err"; then
6580   ac_header_preproc=yes
6581 else
6582   echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585   ac_header_preproc=no
6586 fi
6587 rm -f conftest.err conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6589 echo "${ECHO_T}$ac_header_preproc" >&6
6590
6591 # So?  What about this header?
6592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6593   yes:no: )
6594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6598     ac_header_preproc=yes
6599     ;;
6600   no:yes:* )
6601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6613     (
6614       cat <<\_ASBOX
6615 ## --------------------------------------------- ##
6616 ## Report this to <http://www.openldap.org/its/> ##
6617 ## --------------------------------------------- ##
6618 _ASBOX
6619     ) |
6620       sed "s/^/$as_me: WARNING:     /" >&2
6621     ;;
6622 esac
6623 echo "$as_me:$LINENO: checking for $ac_header" >&5
6624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   eval "$as_ac_Header=\$ac_header_preproc"
6629 fi
6630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6632
6633 fi
6634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635   cat >>confdefs.h <<_ACEOF
6636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637 _ACEOF
6638
6639 fi
6640
6641 done
6642
6643
6644 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6645
6646 # find the maximum length of command line arguments
6647 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6648 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6649 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6650   echo $ECHO_N "(cached) $ECHO_C" >&6
6651 else
6652     i=0
6653   teststring="ABCD"
6654
6655   case $build_os in
6656   msdosdjgpp*)
6657     # On DJGPP, this test can blow up pretty badly due to problems in libc
6658     # (any single argument exceeding 2000 bytes causes a buffer overrun
6659     # during glob expansion).  Even if it were fixed, the result of this
6660     # check would be larger than it should be.
6661     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6662     ;;
6663
6664   gnu*)
6665     # Under GNU Hurd, this test is not required because there is
6666     # no limit to the length of command line arguments.
6667     # Libtool will interpret -1 as no limit whatsoever
6668     lt_cv_sys_max_cmd_len=-1;
6669     ;;
6670
6671   cygwin* | mingw*)
6672     # On Win9x/ME, this test blows up -- it succeeds, but takes
6673     # about 5 minutes as the teststring grows exponentially.
6674     # Worse, since 9x/ME are not pre-emptively multitasking,
6675     # you end up with a "frozen" computer, even though with patience
6676     # the test eventually succeeds (with a max line length of 256k).
6677     # Instead, let's just punt: use the minimum linelength reported by
6678     # all of the supported platforms: 8192 (on NT/2K/XP).
6679     lt_cv_sys_max_cmd_len=8192;
6680     ;;
6681
6682   amigaos*)
6683     # On AmigaOS with pdksh, this test takes hours, literally.
6684     # So we just punt and use a minimum line length of 8192.
6685     lt_cv_sys_max_cmd_len=8192;
6686     ;;
6687
6688   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6689     # This has been around since 386BSD, at least.  Likely further.
6690     if test -x /sbin/sysctl; then
6691       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6692     elif test -x /usr/sbin/sysctl; then
6693       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6694     else
6695       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6696     fi
6697     # And add a safety zone
6698     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6699     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6700     ;;
6701   osf*)
6702     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6703     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6704     # nice to cause kernel panics so lets avoid the loop below.
6705     # First set a reasonable default.
6706     lt_cv_sys_max_cmd_len=16384
6707     #
6708     if test -x /sbin/sysconfig; then
6709       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6710         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6711       esac
6712     fi
6713     ;;
6714   *)
6715     # If test is not a shell built-in, we'll probably end up computing a
6716     # maximum length that is only half of the actual maximum length, but
6717     # we can't tell.
6718     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6719     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6720                = "XX$teststring") >/dev/null 2>&1 &&
6721             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6722             lt_cv_sys_max_cmd_len=$new_result &&
6723             test $i != 17 # 1/2 MB should be enough
6724     do
6725       i=`expr $i + 1`
6726       teststring=$teststring$teststring
6727     done
6728     teststring=
6729     # Add a significant safety factor because C++ compilers can tack on massive
6730     # amounts of additional arguments before passing them to the linker.
6731     # It appears as though 1/2 is a usable value.
6732     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6733     ;;
6734   esac
6735
6736 fi
6737
6738 if test -n $lt_cv_sys_max_cmd_len ; then
6739   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6740 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6741 else
6742   echo "$as_me:$LINENO: result: none" >&5
6743 echo "${ECHO_T}none" >&6
6744 fi
6745
6746
6747
6748
6749 # Check for command to grab the raw symbol name followed by C symbol from nm.
6750 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6751 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6752 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755
6756 # These are sane defaults that work on at least a few old systems.
6757 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6758
6759 # Character class describing NM global symbol codes.
6760 symcode='[BCDEGRST]'
6761
6762 # Regexp to match symbols that can be accessed directly from C.
6763 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6764
6765 # Transform an extracted symbol line into a proper C declaration
6766 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6767
6768 # Transform an extracted symbol line into symbol name and symbol address
6769 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'"
6770
6771 # Define system-specific variables.
6772 case $host_os in
6773 aix*)
6774   symcode='[BCDT]'
6775   ;;
6776 cygwin* | mingw* | pw32*)
6777   symcode='[ABCDGISTW]'
6778   ;;
6779 hpux*) # Its linker distinguishes data from code symbols
6780   if test "$host_cpu" = ia64; then
6781     symcode='[ABCDEGRST]'
6782   fi
6783   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6784   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'"
6785   ;;
6786 linux*)
6787   if test "$host_cpu" = ia64; then
6788     symcode='[ABCDGIRSTW]'
6789     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6790     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6791   fi
6792   ;;
6793 irix* | nonstopux*)
6794   symcode='[BCDEGRST]'
6795   ;;
6796 osf*)
6797   symcode='[BCDEGQRST]'
6798   ;;
6799 solaris* | sysv5*)
6800   symcode='[BDRT]'
6801   ;;
6802 sysv4)
6803   symcode='[DFNSTU]'
6804   ;;
6805 esac
6806
6807 # Handle CRLF in mingw tool chain
6808 opt_cr=
6809 case $build_os in
6810 mingw*)
6811   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6812   ;;
6813 esac
6814
6815 # If we're using GNU nm, then use its standard symbol codes.
6816 case `$NM -V 2>&1` in
6817 *GNU* | *'with BFD'*)
6818   symcode='[ABCDGIRSTW]' ;;
6819 esac
6820
6821 # Try without a prefix undercore, then with it.
6822 for ac_symprfx in "" "_"; do
6823
6824   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6825   symxfrm="\\1 $ac_symprfx\\2 \\2"
6826
6827   # Write the raw and C identifiers.
6828   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6829
6830   # Check to see that the pipe works correctly.
6831   pipe_works=no
6832
6833   rm -f conftest*
6834   cat > conftest.$ac_ext <<EOF
6835 #ifdef __cplusplus
6836 extern "C" {
6837 #endif
6838 char nm_test_var;
6839 void nm_test_func(){}
6840 #ifdef __cplusplus
6841 }
6842 #endif
6843 int main(){nm_test_var='a';nm_test_func();return(0);}
6844 EOF
6845
6846   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847   (eval $ac_compile) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); }; then
6851     # Now try to grab the symbols.
6852     nlist=conftest.nm
6853     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6854   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6855   ac_status=$?
6856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } && test -s "$nlist"; then
6858       # Try sorting and uniquifying the output.
6859       if sort "$nlist" | uniq > "$nlist"T; then
6860         mv -f "$nlist"T "$nlist"
6861       else
6862         rm -f "$nlist"T
6863       fi
6864
6865       # Make sure that we snagged all the symbols we need.
6866       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6867         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6868           cat <<EOF > conftest.$ac_ext
6869 #ifdef __cplusplus
6870 extern "C" {
6871 #endif
6872
6873 EOF
6874           # Now generate the symbol file.
6875           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6876
6877           cat <<EOF >> conftest.$ac_ext
6878 #if defined (__STDC__) && __STDC__
6879 # define lt_ptr_t void *
6880 #else
6881 # define lt_ptr_t char *
6882 # define const
6883 #endif
6884
6885 /* The mapping between symbol names and symbols. */
6886 const struct {
6887   const char *name;
6888   lt_ptr_t address;
6889 }
6890 lt_preloaded_symbols[] =
6891 {
6892 EOF
6893           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6894           cat <<\EOF >> conftest.$ac_ext
6895   {0, (lt_ptr_t) 0}
6896 };
6897
6898 #ifdef __cplusplus
6899 }
6900 #endif
6901 EOF
6902           # Now try linking the two files.
6903           mv conftest.$ac_objext conftstm.$ac_objext
6904           lt_save_LIBS="$LIBS"
6905           lt_save_CFLAGS="$CFLAGS"
6906           LIBS="conftstm.$ac_objext"
6907           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6908           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6909   (eval $ac_link) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6913             pipe_works=yes
6914           fi
6915           LIBS="$lt_save_LIBS"
6916           CFLAGS="$lt_save_CFLAGS"
6917         else
6918           echo "cannot find nm_test_func in $nlist" >&5
6919         fi
6920       else
6921         echo "cannot find nm_test_var in $nlist" >&5
6922       fi
6923     else
6924       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6925     fi
6926   else
6927     echo "$progname: failed program was:" >&5
6928     cat conftest.$ac_ext >&5
6929   fi
6930   rm -f conftest* conftst*
6931
6932   # Do not use the global_symbol_pipe unless it works.
6933   if test "$pipe_works" = yes; then
6934     break
6935   else
6936     lt_cv_sys_global_symbol_pipe=
6937   fi
6938 done
6939
6940 fi
6941
6942 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6943   lt_cv_sys_global_symbol_to_cdecl=
6944 fi
6945 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6946   echo "$as_me:$LINENO: result: failed" >&5
6947 echo "${ECHO_T}failed" >&6
6948 else
6949   echo "$as_me:$LINENO: result: ok" >&5
6950 echo "${ECHO_T}ok" >&6
6951 fi
6952
6953 echo "$as_me:$LINENO: checking for objdir" >&5
6954 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6955 if test "${lt_cv_objdir+set}" = set; then
6956   echo $ECHO_N "(cached) $ECHO_C" >&6
6957 else
6958   rm -f .libs 2>/dev/null
6959 mkdir .libs 2>/dev/null
6960 if test -d .libs; then
6961   lt_cv_objdir=.libs
6962 else
6963   # MS-DOS does not allow filenames that begin with a dot.
6964   lt_cv_objdir=_libs
6965 fi
6966 rmdir .libs 2>/dev/null
6967 fi
6968 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6969 echo "${ECHO_T}$lt_cv_objdir" >&6
6970 objdir=$lt_cv_objdir
6971
6972
6973
6974
6975
6976 case $host_os in
6977 aix3*)
6978   # AIX sometimes has problems with the GCC collect2 program.  For some
6979   # reason, if we set the COLLECT_NAMES environment variable, the problems
6980   # vanish in a puff of smoke.
6981   if test "X${COLLECT_NAMES+set}" != Xset; then
6982     COLLECT_NAMES=
6983     export COLLECT_NAMES
6984   fi
6985   ;;
6986 esac
6987
6988 # Sed substitution that helps us do robust quoting.  It backslashifies
6989 # metacharacters that are still active within double-quoted strings.
6990 Xsed='sed -e 1s/^X//'
6991 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6992
6993 # Same as above, but do not quote variable references.
6994 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6995
6996 # Sed substitution to delay expansion of an escaped shell variable in a
6997 # double_quote_subst'ed string.
6998 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6999
7000 # Sed substitution to avoid accidental globbing in evaled expressions
7001 no_glob_subst='s/\*/\\\*/g'
7002
7003 # Constants:
7004 rm="rm -f"
7005
7006 # Global variables:
7007 default_ofile=libtool
7008 can_build_shared=yes
7009
7010 # All known linkers require a `.a' archive for static linking (except MSVC,
7011 # which needs '.lib').
7012 libext=a
7013 ltmain="$ac_aux_dir/ltmain.sh"
7014 ofile="$default_ofile"
7015 with_gnu_ld="$lt_cv_prog_gnu_ld"
7016
7017 if test -n "$ac_tool_prefix"; then
7018   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7019 set dummy ${ac_tool_prefix}ar; ac_word=$2
7020 echo "$as_me:$LINENO: checking for $ac_word" >&5
7021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7022 if test "${ac_cv_prog_AR+set}" = set; then
7023   echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025   if test -n "$AR"; then
7026   ac_cv_prog_AR="$AR" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033   for ac_exec_ext in '' $ac_executable_extensions; do
7034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_prog_AR="${ac_tool_prefix}ar"
7036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040 done
7041
7042 fi
7043 fi
7044 AR=$ac_cv_prog_AR
7045 if test -n "$AR"; then
7046   echo "$as_me:$LINENO: result: $AR" >&5
7047 echo "${ECHO_T}$AR" >&6
7048 else
7049   echo "$as_me:$LINENO: result: no" >&5
7050 echo "${ECHO_T}no" >&6
7051 fi
7052
7053 fi
7054 if test -z "$ac_cv_prog_AR"; then
7055   ac_ct_AR=$AR
7056   # Extract the first word of "ar", so it can be a program name with args.
7057 set dummy ar; ac_word=$2
7058 echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7060 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   if test -n "$ac_ct_AR"; then
7064   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7065 else
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH
7068 do
7069   IFS=$as_save_IFS
7070   test -z "$as_dir" && as_dir=.
7071   for ac_exec_ext in '' $ac_executable_extensions; do
7072   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7073     ac_cv_prog_ac_ct_AR="ar"
7074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7075     break 2
7076   fi
7077 done
7078 done
7079
7080   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7081 fi
7082 fi
7083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7084 if test -n "$ac_ct_AR"; then
7085   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7086 echo "${ECHO_T}$ac_ct_AR" >&6
7087 else
7088   echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090 fi
7091
7092   AR=$ac_ct_AR
7093 else
7094   AR="$ac_cv_prog_AR"
7095 fi
7096
7097 if test -n "$ac_tool_prefix"; then
7098   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7100 echo "$as_me:$LINENO: checking for $ac_word" >&5
7101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7102 if test "${ac_cv_prog_RANLIB+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105   if test -n "$RANLIB"; then
7106   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7107 else
7108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 for as_dir in $PATH
7110 do
7111   IFS=$as_save_IFS
7112   test -z "$as_dir" && as_dir=.
7113   for ac_exec_ext in '' $ac_executable_extensions; do
7114   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7115     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7117     break 2
7118   fi
7119 done
7120 done
7121
7122 fi
7123 fi
7124 RANLIB=$ac_cv_prog_RANLIB
7125 if test -n "$RANLIB"; then
7126   echo "$as_me:$LINENO: result: $RANLIB" >&5
7127 echo "${ECHO_T}$RANLIB" >&6
7128 else
7129   echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131 fi
7132
7133 fi
7134 if test -z "$ac_cv_prog_RANLIB"; then
7135   ac_ct_RANLIB=$RANLIB
7136   # Extract the first word of "ranlib", so it can be a program name with args.
7137 set dummy ranlib; ac_word=$2
7138 echo "$as_me:$LINENO: checking for $ac_word" >&5
7139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143   if test -n "$ac_ct_RANLIB"; then
7144   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151   for ac_exec_ext in '' $ac_executable_extensions; do
7152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153     ac_cv_prog_ac_ct_RANLIB="ranlib"
7154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158 done
7159
7160   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7161 fi
7162 fi
7163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7164 if test -n "$ac_ct_RANLIB"; then
7165   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7166 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7167 else
7168   echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170 fi
7171
7172   RANLIB=$ac_ct_RANLIB
7173 else
7174   RANLIB="$ac_cv_prog_RANLIB"
7175 fi
7176
7177 if test -n "$ac_tool_prefix"; then
7178   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7179 set dummy ${ac_tool_prefix}strip; ac_word=$2
7180 echo "$as_me:$LINENO: checking for $ac_word" >&5
7181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7182 if test "${ac_cv_prog_STRIP+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   if test -n "$STRIP"; then
7186   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191   IFS=$as_save_IFS
7192   test -z "$as_dir" && as_dir=.
7193   for ac_exec_ext in '' $ac_executable_extensions; do
7194   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197     break 2
7198   fi
7199 done
7200 done
7201
7202 fi
7203 fi
7204 STRIP=$ac_cv_prog_STRIP
7205 if test -n "$STRIP"; then
7206   echo "$as_me:$LINENO: result: $STRIP" >&5
7207 echo "${ECHO_T}$STRIP" >&6
7208 else
7209   echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 fi
7212
7213 fi
7214 if test -z "$ac_cv_prog_STRIP"; then
7215   ac_ct_STRIP=$STRIP
7216   # Extract the first word of "strip", so it can be a program name with args.
7217 set dummy strip; ac_word=$2
7218 echo "$as_me:$LINENO: checking for $ac_word" >&5
7219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7220 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   if test -n "$ac_ct_STRIP"; then
7224   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7225 else
7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 for as_dir in $PATH
7228 do
7229   IFS=$as_save_IFS
7230   test -z "$as_dir" && as_dir=.
7231   for ac_exec_ext in '' $ac_executable_extensions; do
7232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233     ac_cv_prog_ac_ct_STRIP="strip"
7234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235     break 2
7236   fi
7237 done
7238 done
7239
7240   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7241 fi
7242 fi
7243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7244 if test -n "$ac_ct_STRIP"; then
7245   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7246 echo "${ECHO_T}$ac_ct_STRIP" >&6
7247 else
7248   echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6
7250 fi
7251
7252   STRIP=$ac_ct_STRIP
7253 else
7254   STRIP="$ac_cv_prog_STRIP"
7255 fi
7256
7257
7258 old_CC="$CC"
7259 old_CFLAGS="$CFLAGS"
7260
7261 # Set sane defaults for various variables
7262 test -z "$AR" && AR=ar
7263 test -z "$AR_FLAGS" && AR_FLAGS=cru
7264 test -z "$AS" && AS=as
7265 test -z "$CC" && CC=cc
7266 test -z "$LTCC" && LTCC=$CC
7267 test -z "$DLLTOOL" && DLLTOOL=dlltool
7268 test -z "$LD" && LD=ld
7269 test -z "$LN_S" && LN_S="ln -s"
7270 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7271 test -z "$NM" && NM=nm
7272 test -z "$SED" && SED=sed
7273 test -z "$OBJDUMP" && OBJDUMP=objdump
7274 test -z "$RANLIB" && RANLIB=:
7275 test -z "$STRIP" && STRIP=:
7276 test -z "$ac_objext" && ac_objext=o
7277
7278 # Determine commands to create old-style static archives.
7279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7280 old_postinstall_cmds='chmod 644 $oldlib'
7281 old_postuninstall_cmds=
7282
7283 if test -n "$RANLIB"; then
7284   case $host_os in
7285   openbsd*)
7286     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7287     ;;
7288   *)
7289     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7290     ;;
7291   esac
7292   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7293 fi
7294
7295 for cc_temp in $compiler""; do
7296   case $cc_temp in
7297     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7298     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7299     \-*) ;;
7300     *) break;;
7301   esac
7302 done
7303 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7304
7305
7306 # Only perform the check for file, if the check method requires it
7307 case $deplibs_check_method in
7308 file_magic*)
7309   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7310     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7311 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315   case $MAGIC_CMD in
7316 [\\/*] |  ?:[\\/]*)
7317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7318   ;;
7319 *)
7320   lt_save_MAGIC_CMD="$MAGIC_CMD"
7321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7323   for ac_dir in $ac_dummy; do
7324     IFS="$lt_save_ifs"
7325     test -z "$ac_dir" && ac_dir=.
7326     if test -f $ac_dir/${ac_tool_prefix}file; then
7327       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7328       if test -n "$file_magic_test_file"; then
7329         case $deplibs_check_method in
7330         "file_magic "*)
7331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7334             $EGREP "$file_magic_regex" > /dev/null; then
7335             :
7336           else
7337             cat <<EOF 1>&2
7338
7339 *** Warning: the command libtool uses to detect shared libraries,
7340 *** $file_magic_cmd, produces output that libtool cannot recognize.
7341 *** The result is that libtool may fail to recognize shared libraries
7342 *** as such.  This will affect the creation of libtool libraries that
7343 *** depend on shared libraries, but programs linked with such libtool
7344 *** libraries will work regardless of this problem.  Nevertheless, you
7345 *** may want to report the problem to your system manager and/or to
7346 *** bug-libtool@gnu.org
7347
7348 EOF
7349           fi ;;
7350         esac
7351       fi
7352       break
7353     fi
7354   done
7355   IFS="$lt_save_ifs"
7356   MAGIC_CMD="$lt_save_MAGIC_CMD"
7357   ;;
7358 esac
7359 fi
7360
7361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7362 if test -n "$MAGIC_CMD"; then
7363   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7364 echo "${ECHO_T}$MAGIC_CMD" >&6
7365 else
7366   echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6
7368 fi
7369
7370 if test -z "$lt_cv_path_MAGIC_CMD"; then
7371   if test -n "$ac_tool_prefix"; then
7372     echo "$as_me:$LINENO: checking for file" >&5
7373 echo $ECHO_N "checking for file... $ECHO_C" >&6
7374 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   case $MAGIC_CMD in
7378 [\\/*] |  ?:[\\/]*)
7379   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7380   ;;
7381 *)
7382   lt_save_MAGIC_CMD="$MAGIC_CMD"
7383   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7384   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7385   for ac_dir in $ac_dummy; do
7386     IFS="$lt_save_ifs"
7387     test -z "$ac_dir" && ac_dir=.
7388     if test -f $ac_dir/file; then
7389       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7390       if test -n "$file_magic_test_file"; then
7391         case $deplibs_check_method in
7392         "file_magic "*)
7393           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7394           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7395           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7396             $EGREP "$file_magic_regex" > /dev/null; then
7397             :
7398           else
7399             cat <<EOF 1>&2
7400
7401 *** Warning: the command libtool uses to detect shared libraries,
7402 *** $file_magic_cmd, produces output that libtool cannot recognize.
7403 *** The result is that libtool may fail to recognize shared libraries
7404 *** as such.  This will affect the creation of libtool libraries that
7405 *** depend on shared libraries, but programs linked with such libtool
7406 *** libraries will work regardless of this problem.  Nevertheless, you
7407 *** may want to report the problem to your system manager and/or to
7408 *** bug-libtool@gnu.org
7409
7410 EOF
7411           fi ;;
7412         esac
7413       fi
7414       break
7415     fi
7416   done
7417   IFS="$lt_save_ifs"
7418   MAGIC_CMD="$lt_save_MAGIC_CMD"
7419   ;;
7420 esac
7421 fi
7422
7423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7424 if test -n "$MAGIC_CMD"; then
7425   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7426 echo "${ECHO_T}$MAGIC_CMD" >&6
7427 else
7428   echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430 fi
7431
7432   else
7433     MAGIC_CMD=:
7434   fi
7435 fi
7436
7437   fi
7438   ;;
7439 esac
7440
7441 enable_dlopen=yes
7442 enable_win32_dll=yes
7443
7444 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7445 if test "${enable_libtool_lock+set}" = set; then
7446   enableval="$enable_libtool_lock"
7447
7448 fi;
7449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7450
7451
7452 # Check whether --with-pic or --without-pic was given.
7453 if test "${with_pic+set}" = set; then
7454   withval="$with_pic"
7455   pic_mode="$withval"
7456 else
7457   pic_mode=default
7458 fi;
7459 test -z "$pic_mode" && pic_mode=default
7460
7461 # Use C for the default configuration in the libtool script
7462 tagname=
7463 lt_save_CC="$CC"
7464 ac_ext=c
7465 ac_cpp='$CPP $CPPFLAGS'
7466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7469
7470
7471 # Source file extension for C test sources.
7472 ac_ext=c
7473
7474 # Object file extension for compiled C test sources.
7475 objext=o
7476 objext=$objext
7477
7478 # Code to be used in simple compile tests
7479 lt_simple_compile_test_code="int some_variable = 0;\n"
7480
7481 # Code to be used in simple link tests
7482 lt_simple_link_test_code='int main(){return(0);}\n'
7483
7484
7485 # If no C compiler was specified, use CC.
7486 LTCC=${LTCC-"$CC"}
7487
7488 # Allow CC to be a program name with arguments.
7489 compiler=$CC
7490
7491
7492 # save warnings/boilerplate of simple test code
7493 ac_outfile=conftest.$ac_objext
7494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7496 _lt_compiler_boilerplate=`cat conftest.err`
7497 $rm conftest*
7498
7499 ac_outfile=conftest.$ac_objext
7500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7502 _lt_linker_boilerplate=`cat conftest.err`
7503 $rm conftest*
7504
7505
7506 #
7507 # Check for any special shared library compilation flags.
7508 #
7509 lt_prog_cc_shlib=
7510 if test "$GCC" = no; then
7511   case $host_os in
7512   sco3.2v5*)
7513     lt_prog_cc_shlib='-belf'
7514     ;;
7515   esac
7516 fi
7517 if test -n "$lt_prog_cc_shlib"; then
7518   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7519 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7520   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7521   else
7522     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7523 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7524     lt_cv_prog_cc_can_build_shared=no
7525   fi
7526 fi
7527
7528
7529 #
7530 # Check to make sure the static flag actually works.
7531 #
7532 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7533 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7534 if test "${lt_prog_compiler_static_works+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   lt_prog_compiler_static_works=no
7538    save_LDFLAGS="$LDFLAGS"
7539    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7540    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7541    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7542      # The linker can only warn and ignore the option if not recognized
7543      # So say no if there are warnings
7544      if test -s conftest.err; then
7545        # Append any errors to the config.log.
7546        cat conftest.err 1>&5
7547        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7548        $SED '/^$/d' conftest.err >conftest.er2
7549        if diff conftest.exp conftest.er2 >/dev/null; then
7550          lt_prog_compiler_static_works=yes
7551        fi
7552      else
7553        lt_prog_compiler_static_works=yes
7554      fi
7555    fi
7556    $rm conftest*
7557    LDFLAGS="$save_LDFLAGS"
7558
7559 fi
7560 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7561 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7562
7563 if test x"$lt_prog_compiler_static_works" = xyes; then
7564     :
7565 else
7566     lt_prog_compiler_static=
7567 fi
7568
7569
7570
7571
7572 lt_prog_compiler_no_builtin_flag=
7573
7574 if test "$GCC" = yes; then
7575   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7576
7577
7578 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7581   echo $ECHO_N "(cached) $ECHO_C" >&6
7582 else
7583   lt_cv_prog_compiler_rtti_exceptions=no
7584   ac_outfile=conftest.$ac_objext
7585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7586    lt_compiler_flag="-fno-rtti -fno-exceptions"
7587    # Insert the option either (1) after the last *FLAGS variable, or
7588    # (2) before a word containing "conftest.", or (3) at the end.
7589    # Note that $ac_compile itself does not contain backslashes and begins
7590    # with a dollar sign (not a hyphen), so the echo should work correctly.
7591    # The option is referenced via a variable to avoid confusing sed.
7592    lt_compile=`echo "$ac_compile" | $SED \
7593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7595    -e 's:$: $lt_compiler_flag:'`
7596    (eval echo "\"\$as_me:7596: $lt_compile\"" >&5)
7597    (eval "$lt_compile" 2>conftest.err)
7598    ac_status=$?
7599    cat conftest.err >&5
7600    echo "$as_me:7600: \$? = $ac_status" >&5
7601    if (exit $ac_status) && test -s "$ac_outfile"; then
7602      # The compiler can only warn and ignore the option if not recognized
7603      # So say no if there are warnings other than the usual output.
7604      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7605      $SED '/^$/d' conftest.err >conftest.er2
7606      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7607        lt_cv_prog_compiler_rtti_exceptions=yes
7608      fi
7609    fi
7610    $rm conftest*
7611
7612 fi
7613 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7615
7616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7617     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7618 else
7619     :
7620 fi
7621
7622 fi
7623
7624 lt_prog_compiler_wl=
7625 lt_prog_compiler_pic=
7626 lt_prog_compiler_static=
7627
7628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7630
7631   if test "$GCC" = yes; then
7632     lt_prog_compiler_wl='-Wl,'
7633     lt_prog_compiler_static='-static'
7634
7635     case $host_os in
7636       aix*)
7637       # All AIX code is PIC.
7638       if test "$host_cpu" = ia64; then
7639         # AIX 5 now supports IA64 processor
7640         lt_prog_compiler_static='-Bstatic'
7641       fi
7642       ;;
7643
7644     amigaos*)
7645       # FIXME: we need at least 68020 code to build shared libraries, but
7646       # adding the `-m68020' flag to GCC prevents building anything better,
7647       # like `-m68040'.
7648       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7649       ;;
7650
7651     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7652       # PIC is the default for these OSes.
7653       ;;
7654
7655     mingw* | pw32* | os2*)
7656       # This hack is so that the source file can tell whether it is being
7657       # built for inclusion in a dll (and should export symbols for example).
7658       lt_prog_compiler_pic='-DDLL_EXPORT'
7659       ;;
7660
7661     darwin* | rhapsody*)
7662       # PIC is the default on this platform
7663       # Common symbols not allowed in MH_DYLIB files
7664       lt_prog_compiler_pic='-fno-common'
7665       ;;
7666
7667     msdosdjgpp*)
7668       # Just because we use GCC doesn't mean we suddenly get shared libraries
7669       # on systems that don't support them.
7670       lt_prog_compiler_can_build_shared=no
7671       enable_shared=no
7672       ;;
7673
7674     sysv4*MP*)
7675       if test -d /usr/nec; then
7676         lt_prog_compiler_pic=-Kconform_pic
7677       fi
7678       ;;
7679
7680     hpux*)
7681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7682       # not for PA HP-UX.
7683       case $host_cpu in
7684       hppa*64*|ia64*)
7685         # +Z the default
7686         ;;
7687       *)
7688         lt_prog_compiler_pic='-fPIC'
7689         ;;
7690       esac
7691       ;;
7692
7693     *)
7694       lt_prog_compiler_pic='-fPIC'
7695       ;;
7696     esac
7697   else
7698     # PORTME Check for flag to pass linker flags through the system compiler.
7699     case $host_os in
7700     aix*)
7701       lt_prog_compiler_wl='-Wl,'
7702       if test "$host_cpu" = ia64; then
7703         # AIX 5 now supports IA64 processor
7704         lt_prog_compiler_static='-Bstatic'
7705       else
7706         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7707       fi
7708       ;;
7709       darwin*)
7710         # PIC is the default on this platform
7711         # Common symbols not allowed in MH_DYLIB files
7712        case $cc_basename in
7713          xlc*)
7714          lt_prog_compiler_pic='-qnocommon'
7715          lt_prog_compiler_wl='-Wl,'
7716          ;;
7717        esac
7718        ;;
7719
7720     mingw* | pw32* | os2*)
7721       # This hack is so that the source file can tell whether it is being
7722       # built for inclusion in a dll (and should export symbols for example).
7723       lt_prog_compiler_pic='-DDLL_EXPORT'
7724       ;;
7725
7726     hpux9* | hpux10* | hpux11*)
7727       lt_prog_compiler_wl='-Wl,'
7728       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7729       # not for PA HP-UX.
7730       case $host_cpu in
7731       hppa*64*|ia64*)
7732         # +Z the default
7733         ;;
7734       *)
7735         lt_prog_compiler_pic='+Z'
7736         ;;
7737       esac
7738       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7739       lt_prog_compiler_static='${wl}-a ${wl}archive'
7740       ;;
7741
7742     irix5* | irix6* | nonstopux*)
7743       lt_prog_compiler_wl='-Wl,'
7744       # PIC (with -KPIC) is the default.
7745       lt_prog_compiler_static='-non_shared'
7746       ;;
7747
7748     newsos6)
7749       lt_prog_compiler_pic='-KPIC'
7750       lt_prog_compiler_static='-Bstatic'
7751       ;;
7752
7753     linux*)
7754       case $cc_basename in
7755       icc* | ecc*)
7756         lt_prog_compiler_wl='-Wl,'
7757         lt_prog_compiler_pic='-KPIC'
7758         lt_prog_compiler_static='-static'
7759         ;;
7760       pgcc* | pgf77* | pgf90* | pgf95*)
7761         # Portland Group compilers (*not* the Pentium gcc compiler,
7762         # which looks to be a dead project)
7763         lt_prog_compiler_wl='-Wl,'
7764         lt_prog_compiler_pic='-fpic'
7765         lt_prog_compiler_static='-Bstatic'
7766         ;;
7767       ccc*)
7768         lt_prog_compiler_wl='-Wl,'
7769         # All Alpha code is PIC.
7770         lt_prog_compiler_static='-non_shared'
7771         ;;
7772       esac
7773       ;;
7774
7775     osf3* | osf4* | osf5*)
7776       lt_prog_compiler_wl='-Wl,'
7777       # All OSF/1 code is PIC.
7778       lt_prog_compiler_static='-non_shared'
7779       ;;
7780
7781     sco3.2v5*)
7782       lt_prog_compiler_pic='-Kpic'
7783       lt_prog_compiler_static='-dn'
7784       ;;
7785
7786     solaris*)
7787       lt_prog_compiler_pic='-KPIC'
7788       lt_prog_compiler_static='-Bstatic'
7789       case $cc_basename in
7790       f77* | f90* | f95*)
7791         lt_prog_compiler_wl='-Qoption ld ';;
7792       *)
7793         lt_prog_compiler_wl='-Wl,';;
7794       esac
7795       ;;
7796
7797     sunos4*)
7798       lt_prog_compiler_wl='-Qoption ld '
7799       lt_prog_compiler_pic='-PIC'
7800       lt_prog_compiler_static='-Bstatic'
7801       ;;
7802
7803     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7804       lt_prog_compiler_wl='-Wl,'
7805       lt_prog_compiler_pic='-KPIC'
7806       lt_prog_compiler_static='-Bstatic'
7807       ;;
7808
7809     sysv4*MP*)
7810       if test -d /usr/nec ;then
7811         lt_prog_compiler_pic='-Kconform_pic'
7812         lt_prog_compiler_static='-Bstatic'
7813       fi
7814       ;;
7815
7816     unicos*)
7817       lt_prog_compiler_wl='-Wl,'
7818       lt_prog_compiler_can_build_shared=no
7819       ;;
7820
7821     uts4*)
7822       lt_prog_compiler_pic='-pic'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     *)
7827       lt_prog_compiler_can_build_shared=no
7828       ;;
7829     esac
7830   fi
7831
7832 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7833 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7834
7835 #
7836 # Check to make sure the PIC flag actually works.
7837 #
7838 if test -n "$lt_prog_compiler_pic"; then
7839
7840 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7841 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7842 if test "${lt_prog_compiler_pic_works+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   lt_prog_compiler_pic_works=no
7846   ac_outfile=conftest.$ac_objext
7847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7848    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7849    # Insert the option either (1) after the last *FLAGS variable, or
7850    # (2) before a word containing "conftest.", or (3) at the end.
7851    # Note that $ac_compile itself does not contain backslashes and begins
7852    # with a dollar sign (not a hyphen), so the echo should work correctly.
7853    # The option is referenced via a variable to avoid confusing sed.
7854    lt_compile=`echo "$ac_compile" | $SED \
7855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7857    -e 's:$: $lt_compiler_flag:'`
7858    (eval echo "\"\$as_me:7858: $lt_compile\"" >&5)
7859    (eval "$lt_compile" 2>conftest.err)
7860    ac_status=$?
7861    cat conftest.err >&5
7862    echo "$as_me:7862: \$? = $ac_status" >&5
7863    if (exit $ac_status) && test -s "$ac_outfile"; then
7864      # The compiler can only warn and ignore the option if not recognized
7865      # So say no if there are warnings other than the usual output.
7866      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7867      $SED '/^$/d' conftest.err >conftest.er2
7868      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7869        lt_prog_compiler_pic_works=yes
7870      fi
7871    fi
7872    $rm conftest*
7873
7874 fi
7875 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7876 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7877
7878 if test x"$lt_prog_compiler_pic_works" = xyes; then
7879     case $lt_prog_compiler_pic in
7880      "" | " "*) ;;
7881      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7882      esac
7883 else
7884     lt_prog_compiler_pic=
7885      lt_prog_compiler_can_build_shared=no
7886 fi
7887
7888 fi
7889 case $host_os in
7890   # For platforms which do not support PIC, -DPIC is meaningless:
7891   *djgpp*)
7892     lt_prog_compiler_pic=
7893     ;;
7894   *)
7895     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896     ;;
7897 esac
7898
7899 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7900 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7901 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7902   echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904   lt_cv_prog_compiler_c_o=no
7905    $rm -r conftest 2>/dev/null
7906    mkdir conftest
7907    cd conftest
7908    mkdir out
7909    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7910
7911    lt_compiler_flag="-o out/conftest2.$ac_objext"
7912    # Insert the option either (1) after the last *FLAGS variable, or
7913    # (2) before a word containing "conftest.", or (3) at the end.
7914    # Note that $ac_compile itself does not contain backslashes and begins
7915    # with a dollar sign (not a hyphen), so the echo should work correctly.
7916    lt_compile=`echo "$ac_compile" | $SED \
7917    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7918    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7919    -e 's:$: $lt_compiler_flag:'`
7920    (eval echo "\"\$as_me:7920: $lt_compile\"" >&5)
7921    (eval "$lt_compile" 2>out/conftest.err)
7922    ac_status=$?
7923    cat out/conftest.err >&5
7924    echo "$as_me:7924: \$? = $ac_status" >&5
7925    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7926    then
7927      # The compiler can only warn and ignore the option if not recognized
7928      # So say no if there are warnings
7929      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7930      $SED '/^$/d' out/conftest.err >out/conftest.er2
7931      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7932        lt_cv_prog_compiler_c_o=yes
7933      fi
7934    fi
7935    chmod u+w . 2>&5
7936    $rm conftest*
7937    # SGI C++ compiler will create directory out/ii_files/ for
7938    # template instantiation
7939    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7940    $rm out/* && rmdir out
7941    cd ..
7942    rmdir conftest
7943    $rm conftest*
7944
7945 fi
7946 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7947 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7948
7949
7950 hard_links="nottested"
7951 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7952   # do not overwrite the value of need_locks provided by the user
7953   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7954 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7955   hard_links=yes
7956   $rm conftest*
7957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7958   touch conftest.a
7959   ln conftest.a conftest.b 2>&5 || hard_links=no
7960   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7961   echo "$as_me:$LINENO: result: $hard_links" >&5
7962 echo "${ECHO_T}$hard_links" >&6
7963   if test "$hard_links" = no; then
7964     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7965 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7966     need_locks=warn
7967   fi
7968 else
7969   need_locks=no
7970 fi
7971
7972 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7973 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7974
7975   runpath_var=
7976   allow_undefined_flag=
7977   enable_shared_with_static_runtimes=no
7978   archive_cmds=
7979   archive_expsym_cmds=
7980   old_archive_From_new_cmds=
7981   old_archive_from_expsyms_cmds=
7982   export_dynamic_flag_spec=
7983   whole_archive_flag_spec=
7984   thread_safe_flag_spec=
7985   hardcode_libdir_flag_spec=
7986   hardcode_libdir_flag_spec_ld=
7987   hardcode_libdir_separator=
7988   hardcode_direct=no
7989   hardcode_minus_L=no
7990   hardcode_shlibpath_var=unsupported
7991   link_all_deplibs=unknown
7992   hardcode_automatic=no
7993   module_cmds=
7994   module_expsym_cmds=
7995   always_export_symbols=no
7996   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7997   # include_expsyms should be a list of space-separated symbols to be *always*
7998   # included in the symbol list
7999   include_expsyms=
8000   # exclude_expsyms can be an extended regexp of symbols to exclude
8001   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8002   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8003   # as well as any symbol that contains `d'.
8004   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8005   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8006   # platforms (ab)use it in PIC code, but their linkers get confused if
8007   # the symbol is explicitly referenced.  Since portable code cannot
8008   # rely on this symbol name, it's probably fine to never include it in
8009   # preloaded symbol tables.
8010   extract_expsyms_cmds=
8011   # Just being paranoid about ensuring that cc_basename is set.
8012   for cc_temp in $compiler""; do
8013   case $cc_temp in
8014     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8015     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8016     \-*) ;;
8017     *) break;;
8018   esac
8019 done
8020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8021
8022   case $host_os in
8023   cygwin* | mingw* | pw32*)
8024     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8025     # When not using gcc, we currently assume that we are using
8026     # Microsoft Visual C++.
8027     if test "$GCC" != yes; then
8028       with_gnu_ld=no
8029     fi
8030     ;;
8031   openbsd*)
8032     with_gnu_ld=no
8033     ;;
8034   esac
8035
8036   ld_shlibs=yes
8037   if test "$with_gnu_ld" = yes; then
8038     # If archive_cmds runs LD, not CC, wlarc should be empty
8039     wlarc='${wl}'
8040
8041     # Set some defaults for GNU ld with shared library support. These
8042     # are reset later if shared libraries are not supported. Putting them
8043     # here allows them to be overridden if necessary.
8044     runpath_var=LD_RUN_PATH
8045     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8046     export_dynamic_flag_spec='${wl}--export-dynamic'
8047     # ancient GNU ld didn't support --whole-archive et. al.
8048     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8049         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8050       else
8051         whole_archive_flag_spec=
8052     fi
8053     supports_anon_versioning=no
8054     case `$LD -v 2>/dev/null` in
8055       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8056       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8057       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8058       *\ 2.11.*) ;; # other 2.11 versions
8059       *) supports_anon_versioning=yes ;;
8060     esac
8061
8062     # See if GNU ld supports shared libraries.
8063     case $host_os in
8064     aix3* | aix4* | aix5*)
8065       # On AIX/PPC, the GNU linker is very broken
8066       if test "$host_cpu" != ia64; then
8067         ld_shlibs=no
8068         cat <<EOF 1>&2
8069
8070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8071 *** to be unable to reliably create shared libraries on AIX.
8072 *** Therefore, libtool is disabling shared libraries support.  If you
8073 *** really care for shared libraries, you may want to modify your PATH
8074 *** so that a non-GNU linker is found, and then restart.
8075
8076 EOF
8077       fi
8078       ;;
8079
8080     amigaos*)
8081       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)'
8082       hardcode_libdir_flag_spec='-L$libdir'
8083       hardcode_minus_L=yes
8084
8085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8086       # that the semantics of dynamic libraries on AmigaOS, at least up
8087       # to version 4, is to share data among multiple programs linked
8088       # with the same dynamic library.  Since this doesn't match the
8089       # behavior of shared libraries on other platforms, we can't use
8090       # them.
8091       ld_shlibs=no
8092       ;;
8093
8094     beos*)
8095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8096         allow_undefined_flag=unsupported
8097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8098         # support --undefined.  This deserves some investigation.  FIXME
8099         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8100       else
8101         ld_shlibs=no
8102       fi
8103       ;;
8104
8105     cygwin* | mingw* | pw32*)
8106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8107       # as there is no search path for DLLs.
8108       hardcode_libdir_flag_spec='-L$libdir'
8109       allow_undefined_flag=unsupported
8110       always_export_symbols=no
8111       enable_shared_with_static_runtimes=yes
8112       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8113
8114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8115         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8116         # If the export-symbols file already is a .def file (1st line
8117         # is EXPORTS), use it as is; otherwise, prepend...
8118         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8119           cp $export_symbols $output_objdir/$soname.def;
8120         else
8121           echo EXPORTS > $output_objdir/$soname.def;
8122           cat $export_symbols >> $output_objdir/$soname.def;
8123         fi~
8124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8125       else
8126         ld_shlibs=no
8127       fi
8128       ;;
8129
8130     linux*)
8131       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8132         tmp_addflag=
8133         case $cc_basename,$host_cpu in
8134         pgcc*)                          # Portland Group C compiler
8135           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'
8136           tmp_addflag=' $pic_flag'
8137           ;;
8138         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8139           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'
8140           tmp_addflag=' $pic_flag -Mnomain' ;;
8141         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8142           tmp_addflag=' -i_dynamic' ;;
8143         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8144           tmp_addflag=' -i_dynamic -nofor_main' ;;
8145         ifc* | ifort*)                  # Intel Fortran compiler
8146           tmp_addflag=' -nofor_main' ;;
8147         esac
8148         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8149
8150         if test $supports_anon_versioning = yes; then
8151           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8152   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8153   $echo "local: *; };" >> $output_objdir/$libname.ver~
8154           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8155         fi
8156       else
8157         ld_shlibs=no
8158       fi
8159       ;;
8160
8161     netbsd*)
8162       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8163         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8164         wlarc=
8165       else
8166         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8167         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8168       fi
8169       ;;
8170
8171     solaris* | sysv5*)
8172       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8173         ld_shlibs=no
8174         cat <<EOF 1>&2
8175
8176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8177 *** create shared libraries on Solaris systems.  Therefore, libtool
8178 *** is disabling shared libraries support.  We urge you to upgrade GNU
8179 *** binutils to release 2.9.1 or newer.  Another option is to modify
8180 *** your PATH or compiler configuration so that the native linker is
8181 *** used, and then restart.
8182
8183 EOF
8184       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8185         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8186         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8187       else
8188         ld_shlibs=no
8189       fi
8190       ;;
8191
8192     sunos4*)
8193       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8194       wlarc=
8195       hardcode_direct=yes
8196       hardcode_shlibpath_var=no
8197       ;;
8198
8199     *)
8200       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8201         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8202         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8203       else
8204         ld_shlibs=no
8205       fi
8206       ;;
8207     esac
8208
8209     if test "$ld_shlibs" = no; then
8210       runpath_var=
8211       hardcode_libdir_flag_spec=
8212       export_dynamic_flag_spec=
8213       whole_archive_flag_spec=
8214     fi
8215   else
8216     # PORTME fill in a description of your system's linker (not GNU ld)
8217     case $host_os in
8218     aix3*)
8219       allow_undefined_flag=unsupported
8220       always_export_symbols=yes
8221       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'
8222       # Note: this linker hardcodes the directories in LIBPATH if there
8223       # are no directories specified by -L.
8224       hardcode_minus_L=yes
8225       if test "$GCC" = yes && test -z "$link_static_flag"; then
8226         # Neither direct hardcoding nor static linking is supported with a
8227         # broken collect2.
8228         hardcode_direct=unsupported
8229       fi
8230       ;;
8231
8232     aix4* | aix5*)
8233       if test "$host_cpu" = ia64; then
8234         # On IA64, the linker does run time linking by default, so we don't
8235         # have to do anything special.
8236         aix_use_runtimelinking=no
8237         exp_sym_flag='-Bexport'
8238         no_entry_flag=""
8239       else
8240         # If we're using GNU nm, then we don't want the "-C" option.
8241         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8242         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8243           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'
8244         else
8245           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'
8246         fi
8247         aix_use_runtimelinking=no
8248
8249         # Test if we are trying to use run time linking or normal
8250         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8251         # need to do runtime linking.
8252         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8253           for ld_flag in $LDFLAGS; do
8254           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8255             aix_use_runtimelinking=yes
8256             break
8257           fi
8258           done
8259         esac
8260
8261         exp_sym_flag='-bexport'
8262         no_entry_flag='-bnoentry'
8263       fi
8264
8265       # When large executables or shared objects are built, AIX ld can
8266       # have problems creating the table of contents.  If linking a library
8267       # or program results in "error TOC overflow" add -mminimal-toc to
8268       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8269       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8270
8271       archive_cmds=''
8272       hardcode_direct=yes
8273       hardcode_libdir_separator=':'
8274       link_all_deplibs=yes
8275
8276       if test "$GCC" = yes; then
8277         case $host_os in aix4.[012]|aix4.[012].*)
8278         # We only want to do this on AIX 4.2 and lower, the check
8279         # below for broken collect2 doesn't work under 4.3+
8280           collect2name=`${CC} -print-prog-name=collect2`
8281           if test -f "$collect2name" && \
8282            strings "$collect2name" | grep resolve_lib_name >/dev/null
8283           then
8284           # We have reworked collect2
8285           hardcode_direct=yes
8286           else
8287           # We have old collect2
8288           hardcode_direct=unsupported
8289           # It fails to find uninstalled libraries when the uninstalled
8290           # path is not listed in the libpath.  Setting hardcode_minus_L
8291           # to unsupported forces relinking
8292           hardcode_minus_L=yes
8293           hardcode_libdir_flag_spec='-L$libdir'
8294           hardcode_libdir_separator=
8295           fi
8296         esac
8297         shared_flag='-shared'
8298         if test "$aix_use_runtimelinking" = yes; then
8299           shared_flag="$shared_flag "'${wl}-G'
8300         fi
8301       else
8302         # not using gcc
8303         if test "$host_cpu" = ia64; then
8304         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8305         # chokes on -Wl,-G. The following line is correct:
8306           shared_flag='-G'
8307         else
8308         if test "$aix_use_runtimelinking" = yes; then
8309             shared_flag='${wl}-G'
8310           else
8311             shared_flag='${wl}-bM:SRE'
8312         fi
8313         fi
8314       fi
8315
8316       # It seems that -bexpall does not export symbols beginning with
8317       # underscore (_), so it is better to generate a list of symbols to export.
8318       always_export_symbols=yes
8319       if test "$aix_use_runtimelinking" = yes; then
8320         # Warning - without using the other runtime loading flags (-brtl),
8321         # -berok will link without error, but may produce a broken library.
8322         allow_undefined_flag='-berok'
8323        # Determine the default libpath from the value encoded in an empty executable.
8324        cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h.  */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h.  */
8330
8331 int
8332 main ()
8333 {
8334
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext conftest$ac_exeext
8340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8341   (eval $ac_link) 2>conftest.er1
8342   ac_status=$?
8343   grep -v '^ *+' conftest.er1 >conftest.err
8344   rm -f conftest.er1
8345   cat conftest.err >&5
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); } &&
8348          { ac_try='test -z "$ac_c_werror_flag"
8349                          || test ! -s conftest.err'
8350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8351   (eval $ac_try) 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; } &&
8355          { ac_try='test -s conftest$ac_exeext'
8356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8357   (eval $ac_try) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); }; }; then
8361
8362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8363 }'`
8364 # Check for a 64-bit object if we didn't find anything.
8365 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; }
8366 }'`; fi
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8375
8376        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8377         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"
8378        else
8379         if test "$host_cpu" = ia64; then
8380           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8381           allow_undefined_flag="-z nodefs"
8382           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"
8383         else
8384          # Determine the default libpath from the value encoded in an empty executable.
8385          cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391
8392 int
8393 main ()
8394 {
8395
8396   ;
8397   return 0;
8398 }
8399 _ACEOF
8400 rm -f conftest.$ac_objext conftest$ac_exeext
8401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8402   (eval $ac_link) 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } &&
8409          { ac_try='test -z "$ac_c_werror_flag"
8410                          || test ! -s conftest.err'
8411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8412   (eval $ac_try) 2>&5
8413   ac_status=$?
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); }; } &&
8416          { ac_try='test -s conftest$ac_exeext'
8417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8418   (eval $ac_try) 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; }; then
8422
8423 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8424 }'`
8425 # Check for a 64-bit object if we didn't find anything.
8426 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; }
8427 }'`; fi
8428 else
8429   echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8431
8432 fi
8433 rm -f conftest.err conftest.$ac_objext \
8434       conftest$ac_exeext conftest.$ac_ext
8435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8436
8437          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8438           # Warning - without using the other run time loading flags,
8439           # -berok will link without error, but may produce a broken library.
8440           no_undefined_flag=' ${wl}-bernotok'
8441           allow_undefined_flag=' ${wl}-berok'
8442           # -bexpall does not export symbols beginning with underscore (_)
8443           always_export_symbols=yes
8444           # Exported symbols can be pulled into shared objects from archives
8445           whole_archive_flag_spec=' '
8446           archive_cmds_need_lc=yes
8447           # This is similar to how AIX traditionally builds its shared libraries.
8448           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'
8449         fi
8450       fi
8451       ;;
8452
8453     amigaos*)
8454       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)'
8455       hardcode_libdir_flag_spec='-L$libdir'
8456       hardcode_minus_L=yes
8457       # see comment about different semantics on the GNU ld section
8458       ld_shlibs=no
8459       ;;
8460
8461     bsdi[45]*)
8462       export_dynamic_flag_spec=-rdynamic
8463       ;;
8464
8465     cygwin* | mingw* | pw32*)
8466       # When not using gcc, we currently assume that we are using
8467       # Microsoft Visual C++.
8468       # hardcode_libdir_flag_spec is actually meaningless, as there is
8469       # no search path for DLLs.
8470       hardcode_libdir_flag_spec=' '
8471       allow_undefined_flag=unsupported
8472       # Tell ltmain to make .lib files, not .a files.
8473       libext=lib
8474       # Tell ltmain to make .dll files, not .so files.
8475       shrext_cmds=".dll"
8476       # FIXME: Setting linknames here is a bad hack.
8477       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8478       # The linker will automatically build a .lib file if we build a DLL.
8479       old_archive_From_new_cmds='true'
8480       # FIXME: Should let the user specify the lib program.
8481       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8482       fix_srcfile_path='`cygpath -w "$srcfile"`'
8483       enable_shared_with_static_runtimes=yes
8484       ;;
8485
8486     darwin* | rhapsody*)
8487       case $host_os in
8488         rhapsody* | darwin1.[012])
8489          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8490          ;;
8491        *) # Darwin 1.3 on
8492          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8493            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8494          else
8495            case ${MACOSX_DEPLOYMENT_TARGET} in
8496              10.[012])
8497                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8498                ;;
8499              10.*)
8500                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8501                ;;
8502            esac
8503          fi
8504          ;;
8505       esac
8506       archive_cmds_need_lc=no
8507       hardcode_direct=no
8508       hardcode_automatic=yes
8509       hardcode_shlibpath_var=unsupported
8510       whole_archive_flag_spec=''
8511       link_all_deplibs=yes
8512     if test "$GCC" = yes ; then
8513         output_verbose_link_cmd='echo'
8514         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8515       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8516       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8517       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}'
8518       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}'
8519     else
8520       case $cc_basename in
8521         xlc*)
8522          output_verbose_link_cmd='echo'
8523          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8524          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8525           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8526          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}'
8527           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}'
8528           ;;
8529        *)
8530          ld_shlibs=no
8531           ;;
8532       esac
8533     fi
8534       ;;
8535
8536     dgux*)
8537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8538       hardcode_libdir_flag_spec='-L$libdir'
8539       hardcode_shlibpath_var=no
8540       ;;
8541
8542     freebsd1*)
8543       ld_shlibs=no
8544       ;;
8545
8546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8547     # support.  Future versions do this automatically, but an explicit c++rt0.o
8548     # does not break anything, and helps significantly (at the cost of a little
8549     # extra space).
8550     freebsd2.2*)
8551       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8552       hardcode_libdir_flag_spec='-R$libdir'
8553       hardcode_direct=yes
8554       hardcode_shlibpath_var=no
8555       ;;
8556
8557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8558     freebsd2*)
8559       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8560       hardcode_direct=yes
8561       hardcode_minus_L=yes
8562       hardcode_shlibpath_var=no
8563       ;;
8564
8565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8566     freebsd* | kfreebsd*-gnu | dragonfly*)
8567       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8568       hardcode_libdir_flag_spec='-R$libdir'
8569       hardcode_direct=yes
8570       hardcode_shlibpath_var=no
8571       ;;
8572
8573     hpux9*)
8574       if test "$GCC" = yes; then
8575         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'
8576       else
8577         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'
8578       fi
8579       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580       hardcode_libdir_separator=:
8581       hardcode_direct=yes
8582
8583       # hardcode_minus_L: Not really in the search PATH,
8584       # but as the default location of the library.
8585       hardcode_minus_L=yes
8586       export_dynamic_flag_spec='${wl}-E'
8587       ;;
8588
8589     hpux10* | hpux11*)
8590       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8591         case $host_cpu in
8592         hppa*64*|ia64*)
8593           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8594           ;;
8595         *)
8596           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8597           ;;
8598         esac
8599       else
8600         case $host_cpu in
8601         hppa*64*|ia64*)
8602           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8603           ;;
8604         *)
8605           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8606           ;;
8607         esac
8608       fi
8609       if test "$with_gnu_ld" = no; then
8610         case $host_cpu in
8611         hppa*64*)
8612           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8613           hardcode_libdir_flag_spec_ld='+b $libdir'
8614           hardcode_libdir_separator=:
8615           hardcode_direct=no
8616           hardcode_shlibpath_var=no
8617           ;;
8618         ia64*)
8619           hardcode_libdir_flag_spec='-L$libdir'
8620           hardcode_direct=no
8621           hardcode_shlibpath_var=no
8622
8623           # hardcode_minus_L: Not really in the search PATH,
8624           # but as the default location of the library.
8625           hardcode_minus_L=yes
8626           ;;
8627         *)
8628           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8629           hardcode_libdir_separator=:
8630           hardcode_direct=yes
8631           export_dynamic_flag_spec='${wl}-E'
8632
8633           # hardcode_minus_L: Not really in the search PATH,
8634           # but as the default location of the library.
8635           hardcode_minus_L=yes
8636           ;;
8637         esac
8638       fi
8639       ;;
8640
8641     irix5* | irix6* | nonstopux*)
8642       if test "$GCC" = yes; then
8643         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'
8644       else
8645         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'
8646         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8647       fi
8648       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8649       hardcode_libdir_separator=:
8650       link_all_deplibs=yes
8651       ;;
8652
8653     netbsd*)
8654       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8655         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8656       else
8657         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8658       fi
8659       hardcode_libdir_flag_spec='-R$libdir'
8660       hardcode_direct=yes
8661       hardcode_shlibpath_var=no
8662       ;;
8663
8664     newsos6)
8665       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666       hardcode_direct=yes
8667       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8668       hardcode_libdir_separator=:
8669       hardcode_shlibpath_var=no
8670       ;;
8671
8672     openbsd*)
8673       hardcode_direct=yes
8674       hardcode_shlibpath_var=no
8675       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8676         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8677         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8678         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8679         export_dynamic_flag_spec='${wl}-E'
8680       else
8681        case $host_os in
8682          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8683            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684            hardcode_libdir_flag_spec='-R$libdir'
8685            ;;
8686          *)
8687            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8688            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8689            ;;
8690        esac
8691       fi
8692       ;;
8693
8694     os2*)
8695       hardcode_libdir_flag_spec='-L$libdir'
8696       hardcode_minus_L=yes
8697       allow_undefined_flag=unsupported
8698       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'
8699       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8700       ;;
8701
8702     osf3*)
8703       if test "$GCC" = yes; then
8704         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8705         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'
8706       else
8707         allow_undefined_flag=' -expect_unresolved \*'
8708         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'
8709       fi
8710       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8711       hardcode_libdir_separator=:
8712       ;;
8713
8714     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8715       if test "$GCC" = yes; then
8716         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8717         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'
8718         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8719       else
8720         allow_undefined_flag=' -expect_unresolved \*'
8721         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'
8722         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8723         $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'
8724
8725         # Both c and cxx compiler support -rpath directly
8726         hardcode_libdir_flag_spec='-rpath $libdir'
8727       fi
8728       hardcode_libdir_separator=:
8729       ;;
8730
8731     sco3.2v5*)
8732       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733       hardcode_shlibpath_var=no
8734       export_dynamic_flag_spec='${wl}-Bexport'
8735       runpath_var=LD_RUN_PATH
8736       hardcode_runpath_var=yes
8737       ;;
8738
8739     solaris*)
8740       no_undefined_flag=' -z text'
8741       if test "$GCC" = yes; then
8742         wlarc='${wl}'
8743         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8744         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8745           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8746       else
8747         wlarc=''
8748         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8750         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8751       fi
8752       hardcode_libdir_flag_spec='-R$libdir'
8753       hardcode_shlibpath_var=no
8754       case $host_os in
8755       solaris2.[0-5] | solaris2.[0-5].*) ;;
8756       *)
8757         # The compiler driver will combine linker options so we
8758         # cannot just pass the convience library names through
8759         # without $wl, iff we do not link with $LD.
8760         # Luckily, gcc supports the same syntax we need for Sun Studio.
8761         # Supported since Solaris 2.6 (maybe 2.5.1?)
8762         case $wlarc in
8763         '')
8764           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8765         *)
8766           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' ;;
8767         esac ;;
8768       esac
8769       link_all_deplibs=yes
8770       ;;
8771
8772     sunos4*)
8773       if test "x$host_vendor" = xsequent; then
8774         # Use $CC to link under sequent, because it throws in some extra .o
8775         # files that make .init and .fini sections work.
8776         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8777       else
8778         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8779       fi
8780       hardcode_libdir_flag_spec='-L$libdir'
8781       hardcode_direct=yes
8782       hardcode_minus_L=yes
8783       hardcode_shlibpath_var=no
8784       ;;
8785
8786     sysv4)
8787       case $host_vendor in
8788         sni)
8789           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790           hardcode_direct=yes # is this really true???
8791         ;;
8792         siemens)
8793           ## LD is ld it makes a PLAMLIB
8794           ## CC just makes a GrossModule.
8795           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8796           reload_cmds='$CC -r -o $output$reload_objs'
8797           hardcode_direct=no
8798         ;;
8799         motorola)
8800           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8801           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8802         ;;
8803       esac
8804       runpath_var='LD_RUN_PATH'
8805       hardcode_shlibpath_var=no
8806       ;;
8807
8808     sysv4.3*)
8809       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810       hardcode_shlibpath_var=no
8811       export_dynamic_flag_spec='-Bexport'
8812       ;;
8813
8814     sysv4*MP*)
8815       if test -d /usr/nec; then
8816         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8817         hardcode_shlibpath_var=no
8818         runpath_var=LD_RUN_PATH
8819         hardcode_runpath_var=yes
8820         ld_shlibs=yes
8821       fi
8822       ;;
8823
8824     sysv4.2uw2*)
8825       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8826       hardcode_direct=yes
8827       hardcode_minus_L=no
8828       hardcode_shlibpath_var=no
8829       hardcode_runpath_var=yes
8830       runpath_var=LD_RUN_PATH
8831       ;;
8832
8833    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8834       no_undefined_flag='${wl}-z ${wl}text'
8835       if test "$GCC" = yes; then
8836         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8837       else
8838         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839       fi
8840       runpath_var='LD_RUN_PATH'
8841       hardcode_shlibpath_var=no
8842       ;;
8843
8844     sysv5*)
8845       no_undefined_flag=' -z text'
8846       # $CC -shared without GNU ld will not create a library from C++
8847       # object files and a static libstdc++, better avoid it by now
8848       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8850                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8851       hardcode_libdir_flag_spec=
8852       hardcode_shlibpath_var=no
8853       runpath_var='LD_RUN_PATH'
8854       ;;
8855
8856     uts4*)
8857       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8858       hardcode_libdir_flag_spec='-L$libdir'
8859       hardcode_shlibpath_var=no
8860       ;;
8861
8862     *)
8863       ld_shlibs=no
8864       ;;
8865     esac
8866   fi
8867
8868 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8869 echo "${ECHO_T}$ld_shlibs" >&6
8870 test "$ld_shlibs" = no && can_build_shared=no
8871
8872 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8873 if test "$GCC" = yes; then
8874   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8875 fi
8876
8877 #
8878 # Do we need to explicitly link libc?
8879 #
8880 case "x$archive_cmds_need_lc" in
8881 x|xyes)
8882   # Assume -lc should be added
8883   archive_cmds_need_lc=yes
8884
8885   if test "$enable_shared" = yes && test "$GCC" = yes; then
8886     case $archive_cmds in
8887     *'~'*)
8888       # FIXME: we may have to deal with multi-command sequences.
8889       ;;
8890     '$CC '*)
8891       # Test whether the compiler implicitly links with -lc since on some
8892       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8893       # to ld, don't add -lc before -lgcc.
8894       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8895 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8896       $rm conftest*
8897       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8898
8899       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900   (eval $ac_compile) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } 2>conftest.err; then
8904         soname=conftest
8905         lib=conftest
8906         libobjs=conftest.$ac_objext
8907         deplibs=
8908         wl=$lt_prog_compiler_wl
8909         compiler_flags=-v
8910         linker_flags=-v
8911         verstring=
8912         output_objdir=.
8913         libname=conftest
8914         lt_save_allow_undefined_flag=$allow_undefined_flag
8915         allow_undefined_flag=
8916         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8917   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }
8921         then
8922           archive_cmds_need_lc=no
8923         else
8924           archive_cmds_need_lc=yes
8925         fi
8926         allow_undefined_flag=$lt_save_allow_undefined_flag
8927       else
8928         cat conftest.err 1>&5
8929       fi
8930       $rm conftest*
8931       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8932 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8933       ;;
8934     esac
8935   fi
8936   ;;
8937 esac
8938
8939 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8940 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8941 library_names_spec=
8942 libname_spec='lib$name'
8943 soname_spec=
8944 shrext_cmds=".so"
8945 postinstall_cmds=
8946 postuninstall_cmds=
8947 finish_cmds=
8948 finish_eval=
8949 shlibpath_var=
8950 shlibpath_overrides_runpath=unknown
8951 version_type=none
8952 dynamic_linker="$host_os ld.so"
8953 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8954 if test "$GCC" = yes; then
8955   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8956   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8957     # if the path contains ";" then we assume it to be the separator
8958     # otherwise default to the standard path separator (i.e. ":") - it is
8959     # assumed that no part of a normal pathname contains ";" but that should
8960     # okay in the real world where ";" in dirpaths is itself problematic.
8961     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8962   else
8963     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8964   fi
8965 else
8966   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8967 fi
8968 need_lib_prefix=unknown
8969 hardcode_into_libs=no
8970
8971 # when you set need_version to no, make sure it does not cause -set_version
8972 # flags to be left without arguments
8973 need_version=unknown
8974
8975 case $host_os in
8976 aix3*)
8977   version_type=linux
8978   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8979   shlibpath_var=LIBPATH
8980
8981   # AIX 3 has no versioning support, so we append a major version to the name.
8982   soname_spec='${libname}${release}${shared_ext}$major'
8983   ;;
8984
8985 aix4* | aix5*)
8986   version_type=linux
8987   need_lib_prefix=no
8988   need_version=no
8989   hardcode_into_libs=yes
8990   if test "$host_cpu" = ia64; then
8991     # AIX 5 supports IA64
8992     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8993     shlibpath_var=LD_LIBRARY_PATH
8994   else
8995     # With GCC up to 2.95.x, collect2 would create an import file
8996     # for dependence libraries.  The import file would start with
8997     # the line `#! .'.  This would cause the generated library to
8998     # depend on `.', always an invalid library.  This was fixed in
8999     # development snapshots of GCC prior to 3.0.
9000     case $host_os in
9001       aix4 | aix4.[01] | aix4.[01].*)
9002       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9003            echo ' yes '
9004            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9005         :
9006       else
9007         can_build_shared=no
9008       fi
9009       ;;
9010     esac
9011     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9012     # soname into executable. Probably we can add versioning support to
9013     # collect2, so additional links can be useful in future.
9014     if test "$aix_use_runtimelinking" = yes; then
9015       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9016       # instead of lib<name>.a to let people know that these are not
9017       # typical AIX shared libraries.
9018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019     else
9020       # We preserve .a as extension for shared libraries through AIX4.2
9021       # and later when we are not doing run time linking.
9022       library_names_spec='${libname}${release}.a $libname.a'
9023       soname_spec='${libname}${release}${shared_ext}$major'
9024     fi
9025     shlibpath_var=LIBPATH
9026   fi
9027   ;;
9028
9029 amigaos*)
9030   library_names_spec='$libname.ixlibrary $libname.a'
9031   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9032   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'
9033   ;;
9034
9035 beos*)
9036   library_names_spec='${libname}${shared_ext}'
9037   dynamic_linker="$host_os ld.so"
9038   shlibpath_var=LIBRARY_PATH
9039   ;;
9040
9041 bsdi[45]*)
9042   version_type=linux
9043   need_version=no
9044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045   soname_spec='${libname}${release}${shared_ext}$major'
9046   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9047   shlibpath_var=LD_LIBRARY_PATH
9048   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9049   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9050   # the default ld.so.conf also contains /usr/contrib/lib and
9051   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9052   # libtool to hard-code these into programs
9053   ;;
9054
9055 cygwin* | mingw* | pw32*)
9056   version_type=windows
9057   shrext_cmds=".dll"
9058   need_version=no
9059   need_lib_prefix=no
9060
9061   case $GCC,$host_os in
9062   yes,cygwin* | yes,mingw* | yes,pw32*)
9063     library_names_spec='$libname.dll.a'
9064     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9065     postinstall_cmds='base_file=`basename \${file}`~
9066       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9067       dldir=$destdir/`dirname \$dlpath`~
9068       test -d \$dldir || mkdir -p \$dldir~
9069       $install_prog $dir/$dlname \$dldir/$dlname~
9070       chmod a+x \$dldir/$dlname'
9071     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9072       dlpath=$dir/\$dldll~
9073        $rm \$dlpath'
9074     shlibpath_overrides_runpath=yes
9075
9076     case $host_os in
9077     cygwin*)
9078       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9079       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9080       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9081       ;;
9082     mingw*)
9083       # MinGW DLLs use traditional 'lib' prefix
9084       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9085       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9086       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9087         # It is most probably a Windows format PATH printed by
9088         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9089         # path with ; separators, and with drive letters. We can handle the
9090         # drive letters (cygwin fileutils understands them), so leave them,
9091         # especially as we might pass files found there to a mingw objdump,
9092         # which wouldn't understand a cygwinified path. Ahh.
9093         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9094       else
9095         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9096       fi
9097       ;;
9098     pw32*)
9099       # pw32 DLLs use 'pw' prefix rather than 'lib'
9100       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9101       ;;
9102     esac
9103     ;;
9104
9105   *)
9106     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9107     ;;
9108   esac
9109   dynamic_linker='Win32 ld.exe'
9110   # FIXME: first we should search . and the directory the executable is in
9111   shlibpath_var=PATH
9112   ;;
9113
9114 darwin* | rhapsody*)
9115   dynamic_linker="$host_os dyld"
9116   version_type=darwin
9117   need_lib_prefix=no
9118   need_version=no
9119   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9120   soname_spec='${libname}${release}${major}$shared_ext'
9121   shlibpath_overrides_runpath=yes
9122   shlibpath_var=DYLD_LIBRARY_PATH
9123   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9124   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9125   if test "$GCC" = yes; then
9126     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"`
9127   else
9128     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9129   fi
9130   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9131   ;;
9132
9133 dgux*)
9134   version_type=linux
9135   need_lib_prefix=no
9136   need_version=no
9137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9138   soname_spec='${libname}${release}${shared_ext}$major'
9139   shlibpath_var=LD_LIBRARY_PATH
9140   ;;
9141
9142 freebsd1*)
9143   dynamic_linker=no
9144   ;;
9145
9146 kfreebsd*-gnu)
9147   version_type=linux
9148   need_lib_prefix=no
9149   need_version=no
9150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151   soname_spec='${libname}${release}${shared_ext}$major'
9152   shlibpath_var=LD_LIBRARY_PATH
9153   shlibpath_overrides_runpath=no
9154   hardcode_into_libs=yes
9155   dynamic_linker='GNU ld.so'
9156   ;;
9157
9158 freebsd* | dragonfly*)
9159   # DragonFly does not have aout.  When/if they implement a new
9160   # versioning mechanism, adjust this.
9161   if test -x /usr/bin/objformat; then
9162     objformat=`/usr/bin/objformat`
9163   else
9164     case $host_os in
9165     freebsd[123]*) objformat=aout ;;
9166     *) objformat=elf ;;
9167     esac
9168   fi
9169   version_type=freebsd-$objformat
9170   case $version_type in
9171     freebsd-elf*)
9172       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9173       need_version=no
9174       need_lib_prefix=no
9175       ;;
9176     freebsd-*)
9177       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9178       need_version=yes
9179       ;;
9180   esac
9181   shlibpath_var=LD_LIBRARY_PATH
9182   case $host_os in
9183   freebsd2*)
9184     shlibpath_overrides_runpath=yes
9185     ;;
9186   freebsd3.[01]* | freebsdelf3.[01]*)
9187     shlibpath_overrides_runpath=yes
9188     hardcode_into_libs=yes
9189     ;;
9190   *) # from 3.2 on
9191     shlibpath_overrides_runpath=no
9192     hardcode_into_libs=yes
9193     ;;
9194   esac
9195   ;;
9196
9197 gnu*)
9198   version_type=linux
9199   need_lib_prefix=no
9200   need_version=no
9201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9202   soname_spec='${libname}${release}${shared_ext}$major'
9203   shlibpath_var=LD_LIBRARY_PATH
9204   hardcode_into_libs=yes
9205   ;;
9206
9207 hpux9* | hpux10* | hpux11*)
9208   # Give a soname corresponding to the major version so that dld.sl refuses to
9209   # link against other versions.
9210   version_type=sunos
9211   need_lib_prefix=no
9212   need_version=no
9213   case $host_cpu in
9214   ia64*)
9215     shrext_cmds='.so'
9216     hardcode_into_libs=yes
9217     dynamic_linker="$host_os dld.so"
9218     shlibpath_var=LD_LIBRARY_PATH
9219     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9221     soname_spec='${libname}${release}${shared_ext}$major'
9222     if test "X$HPUX_IA64_MODE" = X32; then
9223       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9224     else
9225       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9226     fi
9227     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9228     ;;
9229    hppa*64*)
9230      shrext_cmds='.sl'
9231      hardcode_into_libs=yes
9232      dynamic_linker="$host_os dld.sl"
9233      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9234      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9235      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9236      soname_spec='${libname}${release}${shared_ext}$major'
9237      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9238      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9239      ;;
9240    *)
9241     shrext_cmds='.sl'
9242     dynamic_linker="$host_os dld.sl"
9243     shlibpath_var=SHLIB_PATH
9244     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9245     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246     soname_spec='${libname}${release}${shared_ext}$major'
9247     ;;
9248   esac
9249   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9250   postinstall_cmds='chmod 555 $lib'
9251   ;;
9252
9253 irix5* | irix6* | nonstopux*)
9254   case $host_os in
9255     nonstopux*) version_type=nonstopux ;;
9256     *)
9257         if test "$lt_cv_prog_gnu_ld" = yes; then
9258                 version_type=linux
9259         else
9260                 version_type=irix
9261         fi ;;
9262   esac
9263   need_lib_prefix=no
9264   need_version=no
9265   soname_spec='${libname}${release}${shared_ext}$major'
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9267   case $host_os in
9268   irix5* | nonstopux*)
9269     libsuff= shlibsuff=
9270     ;;
9271   *)
9272     case $LD in # libtool.m4 will add one of these switches to LD
9273     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9274       libsuff= shlibsuff= libmagic=32-bit;;
9275     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9276       libsuff=32 shlibsuff=N32 libmagic=N32;;
9277     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9278       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9279     *) libsuff= shlibsuff= libmagic=never-match;;
9280     esac
9281     ;;
9282   esac
9283   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9284   shlibpath_overrides_runpath=no
9285   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9286   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9287   hardcode_into_libs=yes
9288   ;;
9289
9290 # No shared lib support for Linux oldld, aout, or coff.
9291 linux*oldld* | linux*aout* | linux*coff*)
9292   dynamic_linker=no
9293   ;;
9294
9295 # This must be Linux ELF.
9296 linux*)
9297   version_type=linux
9298   need_lib_prefix=no
9299   need_version=no
9300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9301   soname_spec='${libname}${release}${shared_ext}$major'
9302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9303   shlibpath_var=LD_LIBRARY_PATH
9304   shlibpath_overrides_runpath=no
9305   # This implies no fast_install, which is unacceptable.
9306   # Some rework will be needed to allow for fast_install
9307   # before this can be enabled.
9308   hardcode_into_libs=yes
9309
9310   # Append ld.so.conf contents to the search path
9311   if test -f /etc/ld.so.conf; then
9312     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' ' '`
9313     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9314   fi
9315
9316   # We used to test for /lib/ld.so.1 and disable shared libraries on
9317   # powerpc, because MkLinux only supported shared libraries with the
9318   # GNU dynamic linker.  Since this was broken with cross compilers,
9319   # most powerpc-linux boxes support dynamic linking these days and
9320   # people can always --disable-shared, the test was removed, and we
9321   # assume the GNU/Linux dynamic linker is in use.
9322   dynamic_linker='GNU/Linux ld.so'
9323   ;;
9324
9325 knetbsd*-gnu)
9326   version_type=linux
9327   need_lib_prefix=no
9328   need_version=no
9329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   shlibpath_var=LD_LIBRARY_PATH
9332   shlibpath_overrides_runpath=no
9333   hardcode_into_libs=yes
9334   dynamic_linker='GNU ld.so'
9335   ;;
9336
9337 netbsd*)
9338   version_type=sunos
9339   need_lib_prefix=no
9340   need_version=no
9341   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9343     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9344     dynamic_linker='NetBSD (a.out) ld.so'
9345   else
9346     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9347     soname_spec='${libname}${release}${shared_ext}$major'
9348     dynamic_linker='NetBSD ld.elf_so'
9349   fi
9350   shlibpath_var=LD_LIBRARY_PATH
9351   shlibpath_overrides_runpath=yes
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 newsos6)
9356   version_type=linux
9357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358   shlibpath_var=LD_LIBRARY_PATH
9359   shlibpath_overrides_runpath=yes
9360   ;;
9361
9362 nto-qnx*)
9363   version_type=linux
9364   need_lib_prefix=no
9365   need_version=no
9366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367   soname_spec='${libname}${release}${shared_ext}$major'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=yes
9370   ;;
9371
9372 openbsd*)
9373   version_type=sunos
9374   need_lib_prefix=no
9375   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9376   case $host_os in
9377     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9378     *)                         need_version=no  ;;
9379   esac
9380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9381   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9382   shlibpath_var=LD_LIBRARY_PATH
9383   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9384     case $host_os in
9385       openbsd2.[89] | openbsd2.[89].*)
9386         shlibpath_overrides_runpath=no
9387         ;;
9388       *)
9389         shlibpath_overrides_runpath=yes
9390         ;;
9391       esac
9392   else
9393     shlibpath_overrides_runpath=yes
9394   fi
9395   ;;
9396
9397 os2*)
9398   libname_spec='$name'
9399   shrext_cmds=".dll"
9400   need_lib_prefix=no
9401   library_names_spec='$libname${shared_ext} $libname.a'
9402   dynamic_linker='OS/2 ld.exe'
9403   shlibpath_var=LIBPATH
9404   ;;
9405
9406 osf3* | osf4* | osf5*)
9407   version_type=osf
9408   need_lib_prefix=no
9409   need_version=no
9410   soname_spec='${libname}${release}${shared_ext}$major'
9411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412   shlibpath_var=LD_LIBRARY_PATH
9413   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9414   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9415   ;;
9416
9417 sco3.2v5*)
9418   version_type=osf
9419   soname_spec='${libname}${release}${shared_ext}$major'
9420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421   shlibpath_var=LD_LIBRARY_PATH
9422   ;;
9423
9424 solaris*)
9425   version_type=linux
9426   need_lib_prefix=no
9427   need_version=no
9428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9429   soname_spec='${libname}${release}${shared_ext}$major'
9430   shlibpath_var=LD_LIBRARY_PATH
9431   shlibpath_overrides_runpath=yes
9432   hardcode_into_libs=yes
9433   # ldd complains unless libraries are executable
9434   postinstall_cmds='chmod +x $lib'
9435   ;;
9436
9437 sunos4*)
9438   version_type=sunos
9439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9440   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9441   shlibpath_var=LD_LIBRARY_PATH
9442   shlibpath_overrides_runpath=yes
9443   if test "$with_gnu_ld" = yes; then
9444     need_lib_prefix=no
9445   fi
9446   need_version=yes
9447   ;;
9448
9449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9450   version_type=linux
9451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452   soname_spec='${libname}${release}${shared_ext}$major'
9453   shlibpath_var=LD_LIBRARY_PATH
9454   case $host_vendor in
9455     sni)
9456       shlibpath_overrides_runpath=no
9457       need_lib_prefix=no
9458       export_dynamic_flag_spec='${wl}-Blargedynsym'
9459       runpath_var=LD_RUN_PATH
9460       ;;
9461     siemens)
9462       need_lib_prefix=no
9463       ;;
9464     motorola)
9465       need_lib_prefix=no
9466       need_version=no
9467       shlibpath_overrides_runpath=no
9468       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9469       ;;
9470   esac
9471   ;;
9472
9473 sysv4*MP*)
9474   if test -d /usr/nec ;then
9475     version_type=linux
9476     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9477     soname_spec='$libname${shared_ext}.$major'
9478     shlibpath_var=LD_LIBRARY_PATH
9479   fi
9480   ;;
9481
9482 uts4*)
9483   version_type=linux
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   ;;
9488
9489 *)
9490   dynamic_linker=no
9491   ;;
9492 esac
9493 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9494 echo "${ECHO_T}$dynamic_linker" >&6
9495 test "$dynamic_linker" = no && can_build_shared=no
9496
9497 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9498 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9499 hardcode_action=
9500 if test -n "$hardcode_libdir_flag_spec" || \
9501    test -n "$runpath_var" || \
9502    test "X$hardcode_automatic" = "Xyes" ; then
9503
9504   # We can hardcode non-existant directories.
9505   if test "$hardcode_direct" != no &&
9506      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9507      # have to relink, otherwise we might link with an installed library
9508      # when we should be linking with a yet-to-be-installed one
9509      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9510      test "$hardcode_minus_L" != no; then
9511     # Linking always hardcodes the temporary library directory.
9512     hardcode_action=relink
9513   else
9514     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9515     hardcode_action=immediate
9516   fi
9517 else
9518   # We cannot hardcode anything, or else we can only hardcode existing
9519   # directories.
9520   hardcode_action=unsupported
9521 fi
9522 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9523 echo "${ECHO_T}$hardcode_action" >&6
9524
9525 if test "$hardcode_action" = relink; then
9526   # Fast installation is not supported
9527   enable_fast_install=no
9528 elif test "$shlibpath_overrides_runpath" = yes ||
9529      test "$enable_shared" = no; then
9530   # Fast installation is not necessary
9531   enable_fast_install=needless
9532 fi
9533
9534 striplib=
9535 old_striplib=
9536 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9537 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9538 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9539   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9540   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9541   echo "$as_me:$LINENO: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9543 else
9544 # FIXME - insert some real tests, host_os isn't really good enough
9545   case $host_os in
9546    darwin*)
9547        if test -n "$STRIP" ; then
9548          striplib="$STRIP -x"
9549          echo "$as_me:$LINENO: result: yes" >&5
9550 echo "${ECHO_T}yes" >&6
9551        else
9552   echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554 fi
9555        ;;
9556    *)
9557   echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9559     ;;
9560   esac
9561 fi
9562
9563 if test "x$enable_dlopen" != xyes; then
9564   enable_dlopen=unknown
9565   enable_dlopen_self=unknown
9566   enable_dlopen_self_static=unknown
9567 else
9568   lt_cv_dlopen=no
9569   lt_cv_dlopen_libs=
9570
9571   case $host_os in
9572   beos*)
9573     lt_cv_dlopen="load_add_on"
9574     lt_cv_dlopen_libs=
9575     lt_cv_dlopen_self=yes
9576     ;;
9577
9578   mingw* | pw32*)
9579     lt_cv_dlopen="LoadLibrary"
9580     lt_cv_dlopen_libs=
9581    ;;
9582
9583   cygwin*)
9584     lt_cv_dlopen="dlopen"
9585     lt_cv_dlopen_libs=
9586    ;;
9587
9588   darwin*)
9589   # if libdl is installed we need to link against it
9590     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593   echo $ECHO_N "(cached) $ECHO_C" >&6
9594 else
9595   ac_check_lib_save_LIBS=$LIBS
9596 LIBS="-ldl  $LIBS"
9597 cat >conftest.$ac_ext <<_ACEOF
9598 /* confdefs.h.  */
9599 _ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h.  */
9603
9604 /* Override any gcc2 internal prototype to avoid an error.  */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 /* We use char because int might match the return type of a gcc2
9609    builtin and then its argument prototype would still apply.  */
9610 char dlopen ();
9611 int
9612 main ()
9613 {
9614 dlopen ();
9615   ;
9616   return 0;
9617 }
9618 _ACEOF
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621   (eval $ac_link) 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } &&
9628          { ac_try='test -z "$ac_c_werror_flag"
9629                          || test ! -s conftest.err'
9630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9631   (eval $ac_try) 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; }; then
9641   ac_cv_lib_dl_dlopen=yes
9642 else
9643   echo "$as_me: failed program was:" >&5
9644 sed 's/^/| /' conftest.$ac_ext >&5
9645
9646 ac_cv_lib_dl_dlopen=no
9647 fi
9648 rm -f conftest.err conftest.$ac_objext \
9649       conftest$ac_exeext conftest.$ac_ext
9650 LIBS=$ac_check_lib_save_LIBS
9651 fi
9652 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9654 if test $ac_cv_lib_dl_dlopen = yes; then
9655   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9656 else
9657
9658     lt_cv_dlopen="dyld"
9659     lt_cv_dlopen_libs=
9660     lt_cv_dlopen_self=yes
9661
9662 fi
9663
9664    ;;
9665
9666   *)
9667     echo "$as_me:$LINENO: checking for shl_load" >&5
9668 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9669 if test "${ac_cv_func_shl_load+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672   cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h.  */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h.  */
9678 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9680 #define shl_load innocuous_shl_load
9681
9682 /* System header to define __stub macros and hopefully few prototypes,
9683     which can conflict with char shl_load (); below.
9684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9685     <limits.h> exists even on freestanding compilers.  */
9686
9687 #ifdef __STDC__
9688 # include <limits.h>
9689 #else
9690 # include <assert.h>
9691 #endif
9692
9693 #undef shl_load
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 {
9699 #endif
9700 /* We use char because int might match the return type of a gcc2
9701    builtin and then its argument prototype would still apply.  */
9702 char shl_load ();
9703 /* The GNU C library defines this for functions which it implements
9704     to always fail with ENOSYS.  Some functions are actually named
9705     something starting with __ and the normal name is an alias.  */
9706 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9707 choke me
9708 #else
9709 char (*f) () = shl_load;
9710 #endif
9711 #ifdef __cplusplus
9712 }
9713 #endif
9714
9715 int
9716 main ()
9717 {
9718 return f != shl_load;
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest.$ac_objext conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } &&
9732          { ac_try='test -z "$ac_c_werror_flag"
9733                          || test ! -s conftest.err'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; } &&
9739          { ac_try='test -s conftest$ac_exeext'
9740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741   (eval $ac_try) 2>&5
9742   ac_status=$?
9743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744   (exit $ac_status); }; }; then
9745   ac_cv_func_shl_load=yes
9746 else
9747   echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9749
9750 ac_cv_func_shl_load=no
9751 fi
9752 rm -f conftest.err conftest.$ac_objext \
9753       conftest$ac_exeext conftest.$ac_ext
9754 fi
9755 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9756 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9757 if test $ac_cv_func_shl_load = yes; then
9758   lt_cv_dlopen="shl_load"
9759 else
9760   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9761 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9762 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9763   echo $ECHO_N "(cached) $ECHO_C" >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-ldld  $LIBS"
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773
9774 /* Override any gcc2 internal prototype to avoid an error.  */
9775 #ifdef __cplusplus
9776 extern "C"
9777 #endif
9778 /* We use char because int might match the return type of a gcc2
9779    builtin and then its argument prototype would still apply.  */
9780 char shl_load ();
9781 int
9782 main ()
9783 {
9784 shl_load ();
9785   ;
9786   return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9791   (eval $ac_link) 2>conftest.er1
9792   ac_status=$?
9793   grep -v '^ *+' conftest.er1 >conftest.err
9794   rm -f conftest.er1
9795   cat conftest.err >&5
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); } &&
9798          { ac_try='test -z "$ac_c_werror_flag"
9799                          || test ! -s conftest.err'
9800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9801   (eval $ac_try) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; } &&
9805          { ac_try='test -s conftest$ac_exeext'
9806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807   (eval $ac_try) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); }; }; then
9811   ac_cv_lib_dld_shl_load=yes
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_cv_lib_dld_shl_load=no
9817 fi
9818 rm -f conftest.err conftest.$ac_objext \
9819       conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9821 fi
9822 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9823 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9824 if test $ac_cv_lib_dld_shl_load = yes; then
9825   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9826 else
9827   echo "$as_me:$LINENO: checking for dlopen" >&5
9828 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9829 if test "${ac_cv_func_dlopen+set}" = set; then
9830   echo $ECHO_N "(cached) $ECHO_C" >&6
9831 else
9832   cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h.  */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h.  */
9838 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9840 #define dlopen innocuous_dlopen
9841
9842 /* System header to define __stub macros and hopefully few prototypes,
9843     which can conflict with char dlopen (); below.
9844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9845     <limits.h> exists even on freestanding compilers.  */
9846
9847 #ifdef __STDC__
9848 # include <limits.h>
9849 #else
9850 # include <assert.h>
9851 #endif
9852
9853 #undef dlopen
9854
9855 /* Override any gcc2 internal prototype to avoid an error.  */
9856 #ifdef __cplusplus
9857 extern "C"
9858 {
9859 #endif
9860 /* We use char because int might match the return type of a gcc2
9861    builtin and then its argument prototype would still apply.  */
9862 char dlopen ();
9863 /* The GNU C library defines this for functions which it implements
9864     to always fail with ENOSYS.  Some functions are actually named
9865     something starting with __ and the normal name is an alias.  */
9866 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9867 choke me
9868 #else
9869 char (*f) () = dlopen;
9870 #endif
9871 #ifdef __cplusplus
9872 }
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return f != dlopen;
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext conftest$ac_exeext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9885   (eval $ac_link) 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag"
9893                          || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest$ac_exeext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_cv_func_dlopen=yes
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_cv_func_dlopen=no
9911 fi
9912 rm -f conftest.err conftest.$ac_objext \
9913       conftest$ac_exeext conftest.$ac_ext
9914 fi
9915 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9916 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9917 if test $ac_cv_func_dlopen = yes; then
9918   lt_cv_dlopen="dlopen"
9919 else
9920   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9921 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9922 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9923   echo $ECHO_N "(cached) $ECHO_C" >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldl  $LIBS"
9927 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h.  */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h.  */
9933
9934 /* Override any gcc2 internal prototype to avoid an error.  */
9935 #ifdef __cplusplus
9936 extern "C"
9937 #endif
9938 /* We use char because int might match the return type of a gcc2
9939    builtin and then its argument prototype would still apply.  */
9940 char dlopen ();
9941 int
9942 main ()
9943 {
9944 dlopen ();
9945   ;
9946   return 0;
9947 }
9948 _ACEOF
9949 rm -f conftest.$ac_objext conftest$ac_exeext
9950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951   (eval $ac_link) 2>conftest.er1
9952   ac_status=$?
9953   grep -v '^ *+' conftest.er1 >conftest.err
9954   rm -f conftest.er1
9955   cat conftest.err >&5
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); } &&
9958          { ac_try='test -z "$ac_c_werror_flag"
9959                          || test ! -s conftest.err'
9960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961   (eval $ac_try) 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967   (eval $ac_try) 2>&5
9968   ac_status=$?
9969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970   (exit $ac_status); }; }; then
9971   ac_cv_lib_dl_dlopen=yes
9972 else
9973   echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9975
9976 ac_cv_lib_dl_dlopen=no
9977 fi
9978 rm -f conftest.err conftest.$ac_objext \
9979       conftest$ac_exeext conftest.$ac_ext
9980 LIBS=$ac_check_lib_save_LIBS
9981 fi
9982 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9983 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9984 if test $ac_cv_lib_dl_dlopen = yes; then
9985   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9986 else
9987   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9990   echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992   ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-lsvld  $LIBS"
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000
10001 /* Override any gcc2 internal prototype to avoid an error.  */
10002 #ifdef __cplusplus
10003 extern "C"
10004 #endif
10005 /* We use char because int might match the return type of a gcc2
10006    builtin and then its argument prototype would still apply.  */
10007 char dlopen ();
10008 int
10009 main ()
10010 {
10011 dlopen ();
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018   (eval $ac_link) 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -z "$ac_c_werror_flag"
10026                          || test ! -s conftest.err'
10027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028   (eval $ac_try) 2>&5
10029   ac_status=$?
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); }; } &&
10032          { ac_try='test -s conftest$ac_exeext'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   ac_cv_lib_svld_dlopen=yes
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043 ac_cv_lib_svld_dlopen=no
10044 fi
10045 rm -f conftest.err conftest.$ac_objext \
10046       conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_lib_save_LIBS
10048 fi
10049 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10050 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10051 if test $ac_cv_lib_svld_dlopen = yes; then
10052   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10053 else
10054   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10055 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10056 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10057   echo $ECHO_N "(cached) $ECHO_C" >&6
10058 else
10059   ac_check_lib_save_LIBS=$LIBS
10060 LIBS="-ldld  $LIBS"
10061 cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067
10068 /* Override any gcc2 internal prototype to avoid an error.  */
10069 #ifdef __cplusplus
10070 extern "C"
10071 #endif
10072 /* We use char because int might match the return type of a gcc2
10073    builtin and then its argument prototype would still apply.  */
10074 char dld_link ();
10075 int
10076 main ()
10077 {
10078 dld_link ();
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10085   (eval $ac_link) 2>conftest.er1
10086   ac_status=$?
10087   grep -v '^ *+' conftest.er1 >conftest.err
10088   rm -f conftest.er1
10089   cat conftest.err >&5
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); } &&
10092          { ac_try='test -z "$ac_c_werror_flag"
10093                          || test ! -s conftest.err'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; } &&
10099          { ac_try='test -s conftest$ac_exeext'
10100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101   (eval $ac_try) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105   ac_cv_lib_dld_dld_link=yes
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110 ac_cv_lib_dld_dld_link=no
10111 fi
10112 rm -f conftest.err conftest.$ac_objext \
10113       conftest$ac_exeext conftest.$ac_ext
10114 LIBS=$ac_check_lib_save_LIBS
10115 fi
10116 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10117 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10118 if test $ac_cv_lib_dld_dld_link = yes; then
10119   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10120 fi
10121
10122
10123 fi
10124
10125
10126 fi
10127
10128
10129 fi
10130
10131
10132 fi
10133
10134
10135 fi
10136
10137     ;;
10138   esac
10139
10140   if test "x$lt_cv_dlopen" != xno; then
10141     enable_dlopen=yes
10142   else
10143     enable_dlopen=no
10144   fi
10145
10146   case $lt_cv_dlopen in
10147   dlopen)
10148     save_CPPFLAGS="$CPPFLAGS"
10149     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10150
10151     save_LDFLAGS="$LDFLAGS"
10152     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10153
10154     save_LIBS="$LIBS"
10155     LIBS="$lt_cv_dlopen_libs $LIBS"
10156
10157     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10158 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10159 if test "${lt_cv_dlopen_self+set}" = set; then
10160   echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162           if test "$cross_compiling" = yes; then :
10163   lt_cv_dlopen_self=cross
10164 else
10165   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10166   lt_status=$lt_dlunknown
10167   cat > conftest.$ac_ext <<EOF
10168 #line 10168 "configure"
10169 #include "confdefs.h"
10170
10171 #if HAVE_DLFCN_H
10172 #include <dlfcn.h>
10173 #endif
10174
10175 #include <stdio.h>
10176
10177 #ifdef RTLD_GLOBAL
10178 #  define LT_DLGLOBAL           RTLD_GLOBAL
10179 #else
10180 #  ifdef DL_GLOBAL
10181 #    define LT_DLGLOBAL         DL_GLOBAL
10182 #  else
10183 #    define LT_DLGLOBAL         0
10184 #  endif
10185 #endif
10186
10187 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10188    find out it does not work in some platform. */
10189 #ifndef LT_DLLAZY_OR_NOW
10190 #  ifdef RTLD_LAZY
10191 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10192 #  else
10193 #    ifdef DL_LAZY
10194 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10195 #    else
10196 #      ifdef RTLD_NOW
10197 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10198 #      else
10199 #        ifdef DL_NOW
10200 #          define LT_DLLAZY_OR_NOW      DL_NOW
10201 #        else
10202 #          define LT_DLLAZY_OR_NOW      0
10203 #        endif
10204 #      endif
10205 #    endif
10206 #  endif
10207 #endif
10208
10209 #ifdef __cplusplus
10210 extern "C" void exit (int);
10211 #endif
10212
10213 void fnord() { int i=42;}
10214 int main ()
10215 {
10216   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10217   int status = $lt_dlunknown;
10218
10219   if (self)
10220     {
10221       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10222       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10223       /* dlclose (self); */
10224     }
10225
10226     exit (status);
10227 }
10228 EOF
10229   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230   (eval $ac_link) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10234     (./conftest; exit; ) >&5 2>/dev/null
10235     lt_status=$?
10236     case x$lt_status in
10237       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10238       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10239       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10240     esac
10241   else :
10242     # compilation failed
10243     lt_cv_dlopen_self=no
10244   fi
10245 fi
10246 rm -fr conftest*
10247
10248
10249 fi
10250 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10251 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10252
10253     if test "x$lt_cv_dlopen_self" = xyes; then
10254       LDFLAGS="$LDFLAGS $link_static_flag"
10255       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10256 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10257 if test "${lt_cv_dlopen_self_static+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260           if test "$cross_compiling" = yes; then :
10261   lt_cv_dlopen_self_static=cross
10262 else
10263   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10264   lt_status=$lt_dlunknown
10265   cat > conftest.$ac_ext <<EOF
10266 #line 10266 "configure"
10267 #include "confdefs.h"
10268
10269 #if HAVE_DLFCN_H
10270 #include <dlfcn.h>
10271 #endif
10272
10273 #include <stdio.h>
10274
10275 #ifdef RTLD_GLOBAL
10276 #  define LT_DLGLOBAL           RTLD_GLOBAL
10277 #else
10278 #  ifdef DL_GLOBAL
10279 #    define LT_DLGLOBAL         DL_GLOBAL
10280 #  else
10281 #    define LT_DLGLOBAL         0
10282 #  endif
10283 #endif
10284
10285 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10286    find out it does not work in some platform. */
10287 #ifndef LT_DLLAZY_OR_NOW
10288 #  ifdef RTLD_LAZY
10289 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10290 #  else
10291 #    ifdef DL_LAZY
10292 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10293 #    else
10294 #      ifdef RTLD_NOW
10295 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10296 #      else
10297 #        ifdef DL_NOW
10298 #          define LT_DLLAZY_OR_NOW      DL_NOW
10299 #        else
10300 #          define LT_DLLAZY_OR_NOW      0
10301 #        endif
10302 #      endif
10303 #    endif
10304 #  endif
10305 #endif
10306
10307 #ifdef __cplusplus
10308 extern "C" void exit (int);
10309 #endif
10310
10311 void fnord() { int i=42;}
10312 int main ()
10313 {
10314   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10315   int status = $lt_dlunknown;
10316
10317   if (self)
10318     {
10319       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10320       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10321       /* dlclose (self); */
10322     }
10323
10324     exit (status);
10325 }
10326 EOF
10327   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10328   (eval $ac_link) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10332     (./conftest; exit; ) >&5 2>/dev/null
10333     lt_status=$?
10334     case x$lt_status in
10335       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10336       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10337       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10338     esac
10339   else :
10340     # compilation failed
10341     lt_cv_dlopen_self_static=no
10342   fi
10343 fi
10344 rm -fr conftest*
10345
10346
10347 fi
10348 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10349 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10350     fi
10351
10352     CPPFLAGS="$save_CPPFLAGS"
10353     LDFLAGS="$save_LDFLAGS"
10354     LIBS="$save_LIBS"
10355     ;;
10356   esac
10357
10358   case $lt_cv_dlopen_self in
10359   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10360   *) enable_dlopen_self=unknown ;;
10361   esac
10362
10363   case $lt_cv_dlopen_self_static in
10364   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10365   *) enable_dlopen_self_static=unknown ;;
10366   esac
10367 fi
10368
10369
10370 # Report which librarie types wil actually be built
10371 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10372 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10373 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10374 echo "${ECHO_T}$can_build_shared" >&6
10375
10376 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10377 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10378 test "$can_build_shared" = "no" && enable_shared=no
10379
10380 # On AIX, shared libraries and static libraries use the same namespace, and
10381 # are all built from PIC.
10382 case $host_os in
10383 aix3*)
10384   test "$enable_shared" = yes && enable_static=no
10385   if test -n "$RANLIB"; then
10386     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10387     postinstall_cmds='$RANLIB $lib'
10388   fi
10389   ;;
10390
10391 aix4* | aix5*)
10392   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10393     test "$enable_shared" = yes && enable_static=no
10394   fi
10395     ;;
10396 esac
10397 echo "$as_me:$LINENO: result: $enable_shared" >&5
10398 echo "${ECHO_T}$enable_shared" >&6
10399
10400 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10401 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10402 # Make sure either enable_shared or enable_static is yes.
10403 test "$enable_shared" = yes || enable_static=yes
10404 echo "$as_me:$LINENO: result: $enable_static" >&5
10405 echo "${ECHO_T}$enable_static" >&6
10406
10407 # The else clause should only fire when bootstrapping the
10408 # libtool distribution, otherwise you forgot to ship ltmain.sh
10409 # with your package, and you will get complaints that there are
10410 # no rules to generate ltmain.sh.
10411 if test -f "$ltmain"; then
10412   # See if we are running on zsh, and set the options which allow our commands through
10413   # without removal of \ escapes.
10414   if test -n "${ZSH_VERSION+set}" ; then
10415     setopt NO_GLOB_SUBST
10416   fi
10417   # Now quote all the things that may contain metacharacters while being
10418   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10419   # variables and quote the copies for generation of the libtool script.
10420   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10421     SED SHELL STRIP \
10422     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10423     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10424     deplibs_check_method reload_flag reload_cmds need_locks \
10425     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10426     lt_cv_sys_global_symbol_to_c_name_address \
10427     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10428     old_postinstall_cmds old_postuninstall_cmds \
10429     compiler \
10430     CC \
10431     LD \
10432     lt_prog_compiler_wl \
10433     lt_prog_compiler_pic \
10434     lt_prog_compiler_static \
10435     lt_prog_compiler_no_builtin_flag \
10436     export_dynamic_flag_spec \
10437     thread_safe_flag_spec \
10438     whole_archive_flag_spec \
10439     enable_shared_with_static_runtimes \
10440     old_archive_cmds \
10441     old_archive_from_new_cmds \
10442     predep_objects \
10443     postdep_objects \
10444     predeps \
10445     postdeps \
10446     compiler_lib_search_path \
10447     archive_cmds \
10448     archive_expsym_cmds \
10449     postinstall_cmds \
10450     postuninstall_cmds \
10451     old_archive_from_expsyms_cmds \
10452     allow_undefined_flag \
10453     no_undefined_flag \
10454     export_symbols_cmds \
10455     hardcode_libdir_flag_spec \
10456     hardcode_libdir_flag_spec_ld \
10457     hardcode_libdir_separator \
10458     hardcode_automatic \
10459     module_cmds \
10460     module_expsym_cmds \
10461     lt_cv_prog_compiler_c_o \
10462     exclude_expsyms \
10463     include_expsyms; do
10464
10465     case $var in
10466     old_archive_cmds | \
10467     old_archive_from_new_cmds | \
10468     archive_cmds | \
10469     archive_expsym_cmds | \
10470     module_cmds | \
10471     module_expsym_cmds | \
10472     old_archive_from_expsyms_cmds | \
10473     export_symbols_cmds | \
10474     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10475     postinstall_cmds | postuninstall_cmds | \
10476     old_postinstall_cmds | old_postuninstall_cmds | \
10477     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10478       # Double-quote double-evaled strings.
10479       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10480       ;;
10481     *)
10482       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10483       ;;
10484     esac
10485   done
10486
10487   case $lt_echo in
10488   *'\$0 --fallback-echo"')
10489     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10490     ;;
10491   esac
10492
10493 cfgfile="${ofile}T"
10494   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10495   $rm -f "$cfgfile"
10496   { echo "$as_me:$LINENO: creating $ofile" >&5
10497 echo "$as_me: creating $ofile" >&6;}
10498
10499   cat <<__EOF__ >> "$cfgfile"
10500 #! $SHELL
10501
10502 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10503 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10504 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10505 #
10506 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10507 # Free Software Foundation, Inc.
10508 #
10509 # This file is part of GNU Libtool:
10510 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10511 #
10512 # This program is free software; you can redistribute it and/or modify
10513 # it under the terms of the GNU General Public License as published by
10514 # the Free Software Foundation; either version 2 of the License, or
10515 # (at your option) any later version.
10516 #
10517 # This program is distributed in the hope that it will be useful, but
10518 # WITHOUT ANY WARRANTY; without even the implied warranty of
10519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10520 # General Public License for more details.
10521 #
10522 # You should have received a copy of the GNU General Public License
10523 # along with this program; if not, write to the Free Software
10524 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10525 #
10526 # As a special exception to the GNU General Public License, if you
10527 # distribute this file as part of a program that contains a
10528 # configuration script generated by Autoconf, you may include it under
10529 # the same distribution terms that you use for the rest of that program.
10530
10531 # A sed program that does not truncate output.
10532 SED=$lt_SED
10533
10534 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10535 Xsed="$SED -e 1s/^X//"
10536
10537 # The HP-UX ksh and POSIX shell print the target directory to stdout
10538 # if CDPATH is set.
10539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10540
10541 # The names of the tagged configurations supported by this script.
10542 available_tags=
10543
10544 # ### BEGIN LIBTOOL CONFIG
10545
10546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10547
10548 # Shell to use when invoking shell scripts.
10549 SHELL=$lt_SHELL
10550
10551 # Whether or not to build shared libraries.
10552 build_libtool_libs=$enable_shared
10553
10554 # Whether or not to build static libraries.
10555 build_old_libs=$enable_static
10556
10557 # Whether or not to add -lc for building shared libraries.
10558 build_libtool_need_lc=$archive_cmds_need_lc
10559
10560 # Whether or not to disallow shared libs when runtime libs are static
10561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10562
10563 # Whether or not to optimize for fast installation.
10564 fast_install=$enable_fast_install
10565
10566 # The host system.
10567 host_alias=$host_alias
10568 host=$host
10569 host_os=$host_os
10570
10571 # The build system.
10572 build_alias=$build_alias
10573 build=$build
10574 build_os=$build_os
10575
10576 # An echo program that does not interpret backslashes.
10577 echo=$lt_echo
10578
10579 # The archiver.
10580 AR=$lt_AR
10581 AR_FLAGS=$lt_AR_FLAGS
10582
10583 # A C compiler.
10584 LTCC=$lt_LTCC
10585
10586 # A language-specific compiler.
10587 CC=$lt_compiler
10588
10589 # Is the compiler the GNU C compiler?
10590 with_gcc=$GCC
10591
10592 # An ERE matcher.
10593 EGREP=$lt_EGREP
10594
10595 # The linker used to build libraries.
10596 LD=$lt_LD
10597
10598 # Whether we need hard or soft links.
10599 LN_S=$lt_LN_S
10600
10601 # A BSD-compatible nm program.
10602 NM=$lt_NM
10603
10604 # A symbol stripping program
10605 STRIP=$lt_STRIP
10606
10607 # Used to examine libraries when file_magic_cmd begins "file"
10608 MAGIC_CMD=$MAGIC_CMD
10609
10610 # Used on cygwin: DLL creation program.
10611 DLLTOOL="$DLLTOOL"
10612
10613 # Used on cygwin: object dumper.
10614 OBJDUMP="$OBJDUMP"
10615
10616 # Used on cygwin: assembler.
10617 AS="$AS"
10618
10619 # The name of the directory that contains temporary libtool files.
10620 objdir=$objdir
10621
10622 # How to create reloadable object files.
10623 reload_flag=$lt_reload_flag
10624 reload_cmds=$lt_reload_cmds
10625
10626 # How to pass a linker flag through the compiler.
10627 wl=$lt_lt_prog_compiler_wl
10628
10629 # Object file suffix (normally "o").
10630 objext="$ac_objext"
10631
10632 # Old archive suffix (normally "a").
10633 libext="$libext"
10634
10635 # Shared library suffix (normally ".so").
10636 shrext_cmds='$shrext_cmds'
10637
10638 # Executable file suffix (normally "").
10639 exeext="$exeext"
10640
10641 # Additional compiler flags for building library objects.
10642 pic_flag=$lt_lt_prog_compiler_pic
10643 pic_mode=$pic_mode
10644
10645 # What is the maximum length of a command?
10646 max_cmd_len=$lt_cv_sys_max_cmd_len
10647
10648 # Does compiler simultaneously support -c and -o options?
10649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10650
10651 # Must we lock files when doing compilation?
10652 need_locks=$lt_need_locks
10653
10654 # Do we need the lib prefix for modules?
10655 need_lib_prefix=$need_lib_prefix
10656
10657 # Do we need a version for libraries?
10658 need_version=$need_version
10659
10660 # Whether dlopen is supported.
10661 dlopen_support=$enable_dlopen
10662
10663 # Whether dlopen of programs is supported.
10664 dlopen_self=$enable_dlopen_self
10665
10666 # Whether dlopen of statically linked programs is supported.
10667 dlopen_self_static=$enable_dlopen_self_static
10668
10669 # Compiler flag to prevent dynamic linking.
10670 link_static_flag=$lt_lt_prog_compiler_static
10671
10672 # Compiler flag to turn off builtin functions.
10673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10674
10675 # Compiler flag to allow reflexive dlopens.
10676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10677
10678 # Compiler flag to generate shared objects directly from archives.
10679 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10680
10681 # Compiler flag to generate thread-safe objects.
10682 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10683
10684 # Library versioning type.
10685 version_type=$version_type
10686
10687 # Format of library name prefix.
10688 libname_spec=$lt_libname_spec
10689
10690 # List of archive names.  First name is the real one, the rest are links.
10691 # The last name is the one that the linker finds with -lNAME.
10692 library_names_spec=$lt_library_names_spec
10693
10694 # The coded name of the library, if different from the real name.
10695 soname_spec=$lt_soname_spec
10696
10697 # Commands used to build and install an old-style archive.
10698 RANLIB=$lt_RANLIB
10699 old_archive_cmds=$lt_old_archive_cmds
10700 old_postinstall_cmds=$lt_old_postinstall_cmds
10701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10702
10703 # Create an old-style archive from a shared archive.
10704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10705
10706 # Create a temporary old-style archive to link instead of a shared archive.
10707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10708
10709 # Commands used to build and install a shared archive.
10710 archive_cmds=$lt_archive_cmds
10711 archive_expsym_cmds=$lt_archive_expsym_cmds
10712 postinstall_cmds=$lt_postinstall_cmds
10713 postuninstall_cmds=$lt_postuninstall_cmds
10714
10715 # Commands used to build a loadable module (assumed same as above if empty)
10716 module_cmds=$lt_module_cmds
10717 module_expsym_cmds=$lt_module_expsym_cmds
10718
10719 # Commands to strip libraries.
10720 old_striplib=$lt_old_striplib
10721 striplib=$lt_striplib
10722
10723 # Dependencies to place before the objects being linked to create a
10724 # shared library.
10725 predep_objects=$lt_predep_objects
10726
10727 # Dependencies to place after the objects being linked to create a
10728 # shared library.
10729 postdep_objects=$lt_postdep_objects
10730
10731 # Dependencies to place before the objects being linked to create a
10732 # shared library.
10733 predeps=$lt_predeps
10734
10735 # Dependencies to place after the objects being linked to create a
10736 # shared library.
10737 postdeps=$lt_postdeps
10738
10739 # The library search path used internally by the compiler when linking
10740 # a shared library.
10741 compiler_lib_search_path=$lt_compiler_lib_search_path
10742
10743 # Method to check whether dependent libraries are shared objects.
10744 deplibs_check_method=$lt_deplibs_check_method
10745
10746 # Command to use when deplibs_check_method == file_magic.
10747 file_magic_cmd=$lt_file_magic_cmd
10748
10749 # Flag that allows shared libraries with undefined symbols to be built.
10750 allow_undefined_flag=$lt_allow_undefined_flag
10751
10752 # Flag that forces no undefined symbols.
10753 no_undefined_flag=$lt_no_undefined_flag
10754
10755 # Commands used to finish a libtool library installation in a directory.
10756 finish_cmds=$lt_finish_cmds
10757
10758 # Same as above, but a single script fragment to be evaled but not shown.
10759 finish_eval=$lt_finish_eval
10760
10761 # Take the output of nm and produce a listing of raw symbols and C names.
10762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10763
10764 # Transform the output of nm in a proper C declaration
10765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10766
10767 # Transform the output of nm in a C name address pair
10768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10769
10770 # This is the shared library runtime path variable.
10771 runpath_var=$runpath_var
10772
10773 # This is the shared library path variable.
10774 shlibpath_var=$shlibpath_var
10775
10776 # Is shlibpath searched before the hard-coded library search path?
10777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10778
10779 # How to hardcode a shared library path into an executable.
10780 hardcode_action=$hardcode_action
10781
10782 # Whether we should hardcode library paths into libraries.
10783 hardcode_into_libs=$hardcode_into_libs
10784
10785 # Flag to hardcode \$libdir into a binary during linking.
10786 # This must work even if \$libdir does not exist.
10787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10788
10789 # If ld is used when linking, flag to hardcode \$libdir into
10790 # a binary during linking. This must work even if \$libdir does
10791 # not exist.
10792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10793
10794 # Whether we need a single -rpath flag with a separated argument.
10795 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10796
10797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10798 # resulting binary.
10799 hardcode_direct=$hardcode_direct
10800
10801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10802 # resulting binary.
10803 hardcode_minus_L=$hardcode_minus_L
10804
10805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10806 # the resulting binary.
10807 hardcode_shlibpath_var=$hardcode_shlibpath_var
10808
10809 # Set to yes if building a shared library automatically hardcodes DIR into the library
10810 # and all subsequent libraries and executables linked against it.
10811 hardcode_automatic=$hardcode_automatic
10812
10813 # Variables whose values should be saved in libtool wrapper scripts and
10814 # restored at relink time.
10815 variables_saved_for_relink="$variables_saved_for_relink"
10816
10817 # Whether libtool must link a program against all its dependency libraries.
10818 link_all_deplibs=$link_all_deplibs
10819
10820 # Compile-time system search path for libraries
10821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10822
10823 # Run-time system search path for libraries
10824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10825
10826 # Fix the shell variable \$srcfile for the compiler.
10827 fix_srcfile_path="$fix_srcfile_path"
10828
10829 # Set to yes if exported symbols are required.
10830 always_export_symbols=$always_export_symbols
10831
10832 # The commands to list exported symbols.
10833 export_symbols_cmds=$lt_export_symbols_cmds
10834
10835 # The commands to extract the exported symbol list from a shared archive.
10836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10837
10838 # Symbols that should not be listed in the preloaded symbols.
10839 exclude_expsyms=$lt_exclude_expsyms
10840
10841 # Symbols that must always be exported.
10842 include_expsyms=$lt_include_expsyms
10843
10844 # ### END LIBTOOL CONFIG
10845
10846 __EOF__
10847
10848
10849   case $host_os in
10850   aix3*)
10851     cat <<\EOF >> "$cfgfile"
10852
10853 # AIX sometimes has problems with the GCC collect2 program.  For some
10854 # reason, if we set the COLLECT_NAMES environment variable, the problems
10855 # vanish in a puff of smoke.
10856 if test "X${COLLECT_NAMES+set}" != Xset; then
10857   COLLECT_NAMES=
10858   export COLLECT_NAMES
10859 fi
10860 EOF
10861     ;;
10862   esac
10863
10864   # We use sed instead of cat because bash on DJGPP gets confused if
10865   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10866   # text mode, it properly converts lines to CR/LF.  This bash problem
10867   # is reportedly fixed, but why not run on old versions too?
10868   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10869
10870   mv -f "$cfgfile" "$ofile" || \
10871     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10872   chmod +x "$ofile"
10873
10874 else
10875   # If there is no Makefile yet, we rely on a make rule to execute
10876   # `config.status --recheck' to rerun these tests and create the
10877   # libtool script then.
10878   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10879   if test -f "$ltmain_in"; then
10880     test -f Makefile && make "$ltmain"
10881   fi
10882 fi
10883
10884
10885 ac_ext=c
10886 ac_cpp='$CPP $CPPFLAGS'
10887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890
10891 CC="$lt_save_CC"
10892
10893
10894 # Check whether --with-tags or --without-tags was given.
10895 if test "${with_tags+set}" = set; then
10896   withval="$with_tags"
10897   tagnames="$withval"
10898 fi;
10899
10900 if test -f "$ltmain" && test -n "$tagnames"; then
10901   if test ! -f "${ofile}"; then
10902     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10903 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10904   fi
10905
10906   if test -z "$LTCC"; then
10907     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10908     if test -z "$LTCC"; then
10909       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10910 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10911     else
10912       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10913 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10914     fi
10915   fi
10916
10917   # Extract list of available tagged configurations in $ofile.
10918   # Note that this assumes the entire list is on one line.
10919   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10920
10921   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10922   for tagname in $tagnames; do
10923     IFS="$lt_save_ifs"
10924     # Check whether tagname contains only valid characters
10925     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10926     "") ;;
10927     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10928 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10929    { (exit 1); exit 1; }; }
10930         ;;
10931     esac
10932
10933     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10934     then
10935       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10936 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10937    { (exit 1); exit 1; }; }
10938     fi
10939
10940     # Update the list of available tags.
10941     if test -n "$tagname"; then
10942       echo appending configuration tag \"$tagname\" to $ofile
10943
10944       case $tagname in
10945       CXX)
10946         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10947             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10948             (test "X$CXX" != "Xg++"))) ; then
10949           :
10950         else
10951           tagname=""
10952         fi
10953         ;;
10954
10955       F77)
10956         if test -n "$F77" && test "X$F77" != "Xno"; then
10957           :
10958         else
10959           tagname=""
10960         fi
10961         ;;
10962
10963       GCJ)
10964         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10965           :
10966         else
10967           tagname=""
10968         fi
10969         ;;
10970
10971       RC)
10972
10973
10974
10975 # Source file extension for RC test sources.
10976 ac_ext=rc
10977
10978 # Object file extension for compiled RC test sources.
10979 objext=o
10980 objext_RC=$objext
10981
10982 # Code to be used in simple compile tests
10983 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10984
10985 # Code to be used in simple link tests
10986 lt_simple_link_test_code="$lt_simple_compile_test_code"
10987
10988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10989
10990 # If no C compiler was specified, use CC.
10991 LTCC=${LTCC-"$CC"}
10992
10993 # Allow CC to be a program name with arguments.
10994 compiler=$CC
10995
10996
10997 # save warnings/boilerplate of simple test code
10998 ac_outfile=conftest.$ac_objext
10999 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11001 _lt_compiler_boilerplate=`cat conftest.err`
11002 $rm conftest*
11003
11004 ac_outfile=conftest.$ac_objext
11005 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11007 _lt_linker_boilerplate=`cat conftest.err`
11008 $rm conftest*
11009
11010
11011 # Allow CC to be a program name with arguments.
11012 lt_save_CC="$CC"
11013 CC=${RC-"windres"}
11014 compiler=$CC
11015 compiler_RC=$CC
11016 for cc_temp in $compiler""; do
11017   case $cc_temp in
11018     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11019     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11020     \-*) ;;
11021     *) break;;
11022   esac
11023 done
11024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11025
11026 lt_cv_prog_compiler_c_o_RC=yes
11027
11028 # The else clause should only fire when bootstrapping the
11029 # libtool distribution, otherwise you forgot to ship ltmain.sh
11030 # with your package, and you will get complaints that there are
11031 # no rules to generate ltmain.sh.
11032 if test -f "$ltmain"; then
11033   # See if we are running on zsh, and set the options which allow our commands through
11034   # without removal of \ escapes.
11035   if test -n "${ZSH_VERSION+set}" ; then
11036     setopt NO_GLOB_SUBST
11037   fi
11038   # Now quote all the things that may contain metacharacters while being
11039   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11040   # variables and quote the copies for generation of the libtool script.
11041   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11042     SED SHELL STRIP \
11043     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11044     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11045     deplibs_check_method reload_flag reload_cmds need_locks \
11046     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11047     lt_cv_sys_global_symbol_to_c_name_address \
11048     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11049     old_postinstall_cmds old_postuninstall_cmds \
11050     compiler_RC \
11051     CC_RC \
11052     LD_RC \
11053     lt_prog_compiler_wl_RC \
11054     lt_prog_compiler_pic_RC \
11055     lt_prog_compiler_static_RC \
11056     lt_prog_compiler_no_builtin_flag_RC \
11057     export_dynamic_flag_spec_RC \
11058     thread_safe_flag_spec_RC \
11059     whole_archive_flag_spec_RC \
11060     enable_shared_with_static_runtimes_RC \
11061     old_archive_cmds_RC \
11062     old_archive_from_new_cmds_RC \
11063     predep_objects_RC \
11064     postdep_objects_RC \
11065     predeps_RC \
11066     postdeps_RC \
11067     compiler_lib_search_path_RC \
11068     archive_cmds_RC \
11069     archive_expsym_cmds_RC \
11070     postinstall_cmds_RC \
11071     postuninstall_cmds_RC \
11072     old_archive_from_expsyms_cmds_RC \
11073     allow_undefined_flag_RC \
11074     no_undefined_flag_RC \
11075     export_symbols_cmds_RC \
11076     hardcode_libdir_flag_spec_RC \
11077     hardcode_libdir_flag_spec_ld_RC \
11078     hardcode_libdir_separator_RC \
11079     hardcode_automatic_RC \
11080     module_cmds_RC \
11081     module_expsym_cmds_RC \
11082     lt_cv_prog_compiler_c_o_RC \
11083     exclude_expsyms_RC \
11084     include_expsyms_RC; do
11085
11086     case $var in
11087     old_archive_cmds_RC | \
11088     old_archive_from_new_cmds_RC | \
11089     archive_cmds_RC | \
11090     archive_expsym_cmds_RC | \
11091     module_cmds_RC | \
11092     module_expsym_cmds_RC | \
11093     old_archive_from_expsyms_cmds_RC | \
11094     export_symbols_cmds_RC | \
11095     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11096     postinstall_cmds | postuninstall_cmds | \
11097     old_postinstall_cmds | old_postuninstall_cmds | \
11098     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11099       # Double-quote double-evaled strings.
11100       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11101       ;;
11102     *)
11103       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11104       ;;
11105     esac
11106   done
11107
11108   case $lt_echo in
11109   *'\$0 --fallback-echo"')
11110     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11111     ;;
11112   esac
11113
11114 cfgfile="$ofile"
11115
11116   cat <<__EOF__ >> "$cfgfile"
11117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11118
11119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11120
11121 # Shell to use when invoking shell scripts.
11122 SHELL=$lt_SHELL
11123
11124 # Whether or not to build shared libraries.
11125 build_libtool_libs=$enable_shared
11126
11127 # Whether or not to build static libraries.
11128 build_old_libs=$enable_static
11129
11130 # Whether or not to add -lc for building shared libraries.
11131 build_libtool_need_lc=$archive_cmds_need_lc_RC
11132
11133 # Whether or not to disallow shared libs when runtime libs are static
11134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11135
11136 # Whether or not to optimize for fast installation.
11137 fast_install=$enable_fast_install
11138
11139 # The host system.
11140 host_alias=$host_alias
11141 host=$host
11142 host_os=$host_os
11143
11144 # The build system.
11145 build_alias=$build_alias
11146 build=$build
11147 build_os=$build_os
11148
11149 # An echo program that does not interpret backslashes.
11150 echo=$lt_echo
11151
11152 # The archiver.
11153 AR=$lt_AR
11154 AR_FLAGS=$lt_AR_FLAGS
11155
11156 # A C compiler.
11157 LTCC=$lt_LTCC
11158
11159 # A language-specific compiler.
11160 CC=$lt_compiler_RC
11161
11162 # Is the compiler the GNU C compiler?
11163 with_gcc=$GCC_RC
11164
11165 # An ERE matcher.
11166 EGREP=$lt_EGREP
11167
11168 # The linker used to build libraries.
11169 LD=$lt_LD_RC
11170
11171 # Whether we need hard or soft links.
11172 LN_S=$lt_LN_S
11173
11174 # A BSD-compatible nm program.
11175 NM=$lt_NM
11176
11177 # A symbol stripping program
11178 STRIP=$lt_STRIP
11179
11180 # Used to examine libraries when file_magic_cmd begins "file"
11181 MAGIC_CMD=$MAGIC_CMD
11182
11183 # Used on cygwin: DLL creation program.
11184 DLLTOOL="$DLLTOOL"
11185
11186 # Used on cygwin: object dumper.
11187 OBJDUMP="$OBJDUMP"
11188
11189 # Used on cygwin: assembler.
11190 AS="$AS"
11191
11192 # The name of the directory that contains temporary libtool files.
11193 objdir=$objdir
11194
11195 # How to create reloadable object files.
11196 reload_flag=$lt_reload_flag
11197 reload_cmds=$lt_reload_cmds
11198
11199 # How to pass a linker flag through the compiler.
11200 wl=$lt_lt_prog_compiler_wl_RC
11201
11202 # Object file suffix (normally "o").
11203 objext="$ac_objext"
11204
11205 # Old archive suffix (normally "a").
11206 libext="$libext"
11207
11208 # Shared library suffix (normally ".so").
11209 shrext_cmds='$shrext_cmds'
11210
11211 # Executable file suffix (normally "").
11212 exeext="$exeext"
11213
11214 # Additional compiler flags for building library objects.
11215 pic_flag=$lt_lt_prog_compiler_pic_RC
11216 pic_mode=$pic_mode
11217
11218 # What is the maximum length of a command?
11219 max_cmd_len=$lt_cv_sys_max_cmd_len
11220
11221 # Does compiler simultaneously support -c and -o options?
11222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11223
11224 # Must we lock files when doing compilation?
11225 need_locks=$lt_need_locks
11226
11227 # Do we need the lib prefix for modules?
11228 need_lib_prefix=$need_lib_prefix
11229
11230 # Do we need a version for libraries?
11231 need_version=$need_version
11232
11233 # Whether dlopen is supported.
11234 dlopen_support=$enable_dlopen
11235
11236 # Whether dlopen of programs is supported.
11237 dlopen_self=$enable_dlopen_self
11238
11239 # Whether dlopen of statically linked programs is supported.
11240 dlopen_self_static=$enable_dlopen_self_static
11241
11242 # Compiler flag to prevent dynamic linking.
11243 link_static_flag=$lt_lt_prog_compiler_static_RC
11244
11245 # Compiler flag to turn off builtin functions.
11246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11247
11248 # Compiler flag to allow reflexive dlopens.
11249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11250
11251 # Compiler flag to generate shared objects directly from archives.
11252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11253
11254 # Compiler flag to generate thread-safe objects.
11255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11256
11257 # Library versioning type.
11258 version_type=$version_type
11259
11260 # Format of library name prefix.
11261 libname_spec=$lt_libname_spec
11262
11263 # List of archive names.  First name is the real one, the rest are links.
11264 # The last name is the one that the linker finds with -lNAME.
11265 library_names_spec=$lt_library_names_spec
11266
11267 # The coded name of the library, if different from the real name.
11268 soname_spec=$lt_soname_spec
11269
11270 # Commands used to build and install an old-style archive.
11271 RANLIB=$lt_RANLIB
11272 old_archive_cmds=$lt_old_archive_cmds_RC
11273 old_postinstall_cmds=$lt_old_postinstall_cmds
11274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11275
11276 # Create an old-style archive from a shared archive.
11277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11278
11279 # Create a temporary old-style archive to link instead of a shared archive.
11280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11281
11282 # Commands used to build and install a shared archive.
11283 archive_cmds=$lt_archive_cmds_RC
11284 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11285 postinstall_cmds=$lt_postinstall_cmds
11286 postuninstall_cmds=$lt_postuninstall_cmds
11287
11288 # Commands used to build a loadable module (assumed same as above if empty)
11289 module_cmds=$lt_module_cmds_RC
11290 module_expsym_cmds=$lt_module_expsym_cmds_RC
11291
11292 # Commands to strip libraries.
11293 old_striplib=$lt_old_striplib
11294 striplib=$lt_striplib
11295
11296 # Dependencies to place before the objects being linked to create a
11297 # shared library.
11298 predep_objects=$lt_predep_objects_RC
11299
11300 # Dependencies to place after the objects being linked to create a
11301 # shared library.
11302 postdep_objects=$lt_postdep_objects_RC
11303
11304 # Dependencies to place before the objects being linked to create a
11305 # shared library.
11306 predeps=$lt_predeps_RC
11307
11308 # Dependencies to place after the objects being linked to create a
11309 # shared library.
11310 postdeps=$lt_postdeps_RC
11311
11312 # The library search path used internally by the compiler when linking
11313 # a shared library.
11314 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11315
11316 # Method to check whether dependent libraries are shared objects.
11317 deplibs_check_method=$lt_deplibs_check_method
11318
11319 # Command to use when deplibs_check_method == file_magic.
11320 file_magic_cmd=$lt_file_magic_cmd
11321
11322 # Flag that allows shared libraries with undefined symbols to be built.
11323 allow_undefined_flag=$lt_allow_undefined_flag_RC
11324
11325 # Flag that forces no undefined symbols.
11326 no_undefined_flag=$lt_no_undefined_flag_RC
11327
11328 # Commands used to finish a libtool library installation in a directory.
11329 finish_cmds=$lt_finish_cmds
11330
11331 # Same as above, but a single script fragment to be evaled but not shown.
11332 finish_eval=$lt_finish_eval
11333
11334 # Take the output of nm and produce a listing of raw symbols and C names.
11335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11336
11337 # Transform the output of nm in a proper C declaration
11338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11339
11340 # Transform the output of nm in a C name address pair
11341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11342
11343 # This is the shared library runtime path variable.
11344 runpath_var=$runpath_var
11345
11346 # This is the shared library path variable.
11347 shlibpath_var=$shlibpath_var
11348
11349 # Is shlibpath searched before the hard-coded library search path?
11350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11351
11352 # How to hardcode a shared library path into an executable.
11353 hardcode_action=$hardcode_action_RC
11354
11355 # Whether we should hardcode library paths into libraries.
11356 hardcode_into_libs=$hardcode_into_libs
11357
11358 # Flag to hardcode \$libdir into a binary during linking.
11359 # This must work even if \$libdir does not exist.
11360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11361
11362 # If ld is used when linking, flag to hardcode \$libdir into
11363 # a binary during linking. This must work even if \$libdir does
11364 # not exist.
11365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11366
11367 # Whether we need a single -rpath flag with a separated argument.
11368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11369
11370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11371 # resulting binary.
11372 hardcode_direct=$hardcode_direct_RC
11373
11374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11375 # resulting binary.
11376 hardcode_minus_L=$hardcode_minus_L_RC
11377
11378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11379 # the resulting binary.
11380 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11381
11382 # Set to yes if building a shared library automatically hardcodes DIR into the library
11383 # and all subsequent libraries and executables linked against it.
11384 hardcode_automatic=$hardcode_automatic_RC
11385
11386 # Variables whose values should be saved in libtool wrapper scripts and
11387 # restored at relink time.
11388 variables_saved_for_relink="$variables_saved_for_relink"
11389
11390 # Whether libtool must link a program against all its dependency libraries.
11391 link_all_deplibs=$link_all_deplibs_RC
11392
11393 # Compile-time system search path for libraries
11394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11395
11396 # Run-time system search path for libraries
11397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11398
11399 # Fix the shell variable \$srcfile for the compiler.
11400 fix_srcfile_path="$fix_srcfile_path_RC"
11401
11402 # Set to yes if exported symbols are required.
11403 always_export_symbols=$always_export_symbols_RC
11404
11405 # The commands to list exported symbols.
11406 export_symbols_cmds=$lt_export_symbols_cmds_RC
11407
11408 # The commands to extract the exported symbol list from a shared archive.
11409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11410
11411 # Symbols that should not be listed in the preloaded symbols.
11412 exclude_expsyms=$lt_exclude_expsyms_RC
11413
11414 # Symbols that must always be exported.
11415 include_expsyms=$lt_include_expsyms_RC
11416
11417 # ### END LIBTOOL TAG CONFIG: $tagname
11418
11419 __EOF__
11420
11421
11422 else
11423   # If there is no Makefile yet, we rely on a make rule to execute
11424   # `config.status --recheck' to rerun these tests and create the
11425   # libtool script then.
11426   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11427   if test -f "$ltmain_in"; then
11428     test -f Makefile && make "$ltmain"
11429   fi
11430 fi
11431
11432
11433 ac_ext=c
11434 ac_cpp='$CPP $CPPFLAGS'
11435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11438
11439 CC="$lt_save_CC"
11440
11441         ;;
11442
11443       *)
11444         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11445 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11446    { (exit 1); exit 1; }; }
11447         ;;
11448       esac
11449
11450       # Append the new tag name to the list of available tags.
11451       if test -n "$tagname" ; then
11452       available_tags="$available_tags $tagname"
11453     fi
11454     fi
11455   done
11456   IFS="$lt_save_ifs"
11457
11458   # Now substitute the updated list of available tags.
11459   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11460     mv "${ofile}T" "$ofile"
11461     chmod +x "$ofile"
11462   else
11463     rm -f "${ofile}T"
11464     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11465 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11466    { (exit 1); exit 1; }; }
11467   fi
11468 fi
11469
11470
11471
11472 # This can be used to rebuild libtool when needed
11473 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11474
11475 # Always use our own libtool.
11476 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11477
11478 # Prevent multiple expansion
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489 ol_link_perl=no
11490 if test $ol_enable_perl != no ; then
11491         # Extract the first word of "perl", so it can be a program name with args.
11492 set dummy perl; ac_word=$2
11493 echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495 if test "${ac_cv_path_PERLBIN+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   case $PERLBIN in
11499   [\\/]* | ?:[\\/]*)
11500   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11501   ;;
11502   *)
11503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11504 for as_dir in $PATH
11505 do
11506   IFS=$as_save_IFS
11507   test -z "$as_dir" && as_dir=.
11508   for ac_exec_ext in '' $ac_executable_extensions; do
11509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11510     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11512     break 2
11513   fi
11514 done
11515 done
11516
11517   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11518   ;;
11519 esac
11520 fi
11521 PERLBIN=$ac_cv_path_PERLBIN
11522
11523 if test -n "$PERLBIN"; then
11524   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11525 echo "${ECHO_T}$PERLBIN" >&6
11526 else
11527   echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11529 fi
11530
11531
11532         if test "no$PERLBIN" = "no" ; then
11533                 if test $ol_enable_perl = yes ; then
11534                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11535 echo "$as_me: error: could not locate perl" >&2;}
11536    { (exit 1); exit 1; }; }
11537                 fi
11538
11539         else
11540                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11541                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11542
11543                 if test x"$ol_enable_perl" = "xyes" ; then
11544                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11545                 else
11546                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11547                 fi
11548                                 ol_link_perl=yes
11549         fi
11550 fi
11551
11552 ac_ext=c
11553 ac_cpp='$CPP $CPPFLAGS'
11554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11557 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11558 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11559 # On Suns, sometimes $CPP names a directory.
11560 if test -n "$CPP" && test -d "$CPP"; then
11561   CPP=
11562 fi
11563 if test -z "$CPP"; then
11564   if test "${ac_cv_prog_CPP+set}" = set; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 else
11567       # Double quotes because CPP needs to be expanded
11568     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11569     do
11570       ac_preproc_ok=false
11571 for ac_c_preproc_warn_flag in '' yes
11572 do
11573   # Use a header file that comes with gcc, so configuring glibc
11574   # with a fresh cross-compiler works.
11575   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11576   # <limits.h> exists even on freestanding compilers.
11577   # On the NeXT, cc -E runs the code through the compiler's parser,
11578   # not just through cpp. "Syntax error" is here to catch this case.
11579   cat >conftest.$ac_ext <<_ACEOF
11580 /* confdefs.h.  */
11581 _ACEOF
11582 cat confdefs.h >>conftest.$ac_ext
11583 cat >>conftest.$ac_ext <<_ACEOF
11584 /* end confdefs.h.  */
11585 #ifdef __STDC__
11586 # include <limits.h>
11587 #else
11588 # include <assert.h>
11589 #endif
11590                      Syntax error
11591 _ACEOF
11592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11594   ac_status=$?
11595   grep -v '^ *+' conftest.er1 >conftest.err
11596   rm -f conftest.er1
11597   cat conftest.err >&5
11598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599   (exit $ac_status); } >/dev/null; then
11600   if test -s conftest.err; then
11601     ac_cpp_err=$ac_c_preproc_warn_flag
11602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11603   else
11604     ac_cpp_err=
11605   fi
11606 else
11607   ac_cpp_err=yes
11608 fi
11609 if test -z "$ac_cpp_err"; then
11610   :
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615   # Broken: fails on valid input.
11616 continue
11617 fi
11618 rm -f conftest.err conftest.$ac_ext
11619
11620   # OK, works on sane cases.  Now check whether non-existent headers
11621   # can be detected and how.
11622   cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 #include <ac_nonexistent.h>
11629 _ACEOF
11630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11631   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11632   ac_status=$?
11633   grep -v '^ *+' conftest.er1 >conftest.err
11634   rm -f conftest.er1
11635   cat conftest.err >&5
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); } >/dev/null; then
11638   if test -s conftest.err; then
11639     ac_cpp_err=$ac_c_preproc_warn_flag
11640     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11641   else
11642     ac_cpp_err=
11643   fi
11644 else
11645   ac_cpp_err=yes
11646 fi
11647 if test -z "$ac_cpp_err"; then
11648   # Broken: success on invalid input.
11649 continue
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654   # Passes both tests.
11655 ac_preproc_ok=:
11656 break
11657 fi
11658 rm -f conftest.err conftest.$ac_ext
11659
11660 done
11661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11662 rm -f conftest.err conftest.$ac_ext
11663 if $ac_preproc_ok; then
11664   break
11665 fi
11666
11667     done
11668     ac_cv_prog_CPP=$CPP
11669
11670 fi
11671   CPP=$ac_cv_prog_CPP
11672 else
11673   ac_cv_prog_CPP=$CPP
11674 fi
11675 echo "$as_me:$LINENO: result: $CPP" >&5
11676 echo "${ECHO_T}$CPP" >&6
11677 ac_preproc_ok=false
11678 for ac_c_preproc_warn_flag in '' yes
11679 do
11680   # Use a header file that comes with gcc, so configuring glibc
11681   # with a fresh cross-compiler works.
11682   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11683   # <limits.h> exists even on freestanding compilers.
11684   # On the NeXT, cc -E runs the code through the compiler's parser,
11685   # not just through cpp. "Syntax error" is here to catch this case.
11686   cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 #ifdef __STDC__
11693 # include <limits.h>
11694 #else
11695 # include <assert.h>
11696 #endif
11697                      Syntax error
11698 _ACEOF
11699 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11700   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } >/dev/null; then
11707   if test -s conftest.err; then
11708     ac_cpp_err=$ac_c_preproc_warn_flag
11709     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11710   else
11711     ac_cpp_err=
11712   fi
11713 else
11714   ac_cpp_err=yes
11715 fi
11716 if test -z "$ac_cpp_err"; then
11717   :
11718 else
11719   echo "$as_me: failed program was:" >&5
11720 sed 's/^/| /' conftest.$ac_ext >&5
11721
11722   # Broken: fails on valid input.
11723 continue
11724 fi
11725 rm -f conftest.err conftest.$ac_ext
11726
11727   # OK, works on sane cases.  Now check whether non-existent headers
11728   # can be detected and how.
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 #include <ac_nonexistent.h>
11736 _ACEOF
11737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11738   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11739   ac_status=$?
11740   grep -v '^ *+' conftest.er1 >conftest.err
11741   rm -f conftest.er1
11742   cat conftest.err >&5
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); } >/dev/null; then
11745   if test -s conftest.err; then
11746     ac_cpp_err=$ac_c_preproc_warn_flag
11747     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11748   else
11749     ac_cpp_err=
11750   fi
11751 else
11752   ac_cpp_err=yes
11753 fi
11754 if test -z "$ac_cpp_err"; then
11755   # Broken: success on invalid input.
11756 continue
11757 else
11758   echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11760
11761   # Passes both tests.
11762 ac_preproc_ok=:
11763 break
11764 fi
11765 rm -f conftest.err conftest.$ac_ext
11766
11767 done
11768 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11769 rm -f conftest.err conftest.$ac_ext
11770 if $ac_preproc_ok; then
11771   :
11772 else
11773   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11774 See \`config.log' for more details." >&5
11775 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11776 See \`config.log' for more details." >&2;}
11777    { (exit 1); exit 1; }; }
11778 fi
11779
11780 ac_ext=c
11781 ac_cpp='$CPP $CPPFLAGS'
11782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11785
11786
11787 case $host_os in
11788   *mingw32* ) ac_cv_mingw32=yes ;;
11789   *cygwin* ) ac_cv_cygwin=yes ;;
11790 esac
11791
11792
11793
11794
11795 cat >>confdefs.h <<_ACEOF
11796 #define EXEEXT "${EXEEXT}"
11797 _ACEOF
11798
11799
11800 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11801 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11802 if test "${ac_cv_lib_be_be_app+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   ac_check_lib_save_LIBS=$LIBS
11806 LIBS="-lbe -lroot -lnet $LIBS"
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h.  */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h.  */
11813
11814 /* Override any gcc2 internal prototype to avoid an error.  */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 /* We use char because int might match the return type of a gcc2
11819    builtin and then its argument prototype would still apply.  */
11820 char be_app ();
11821 int
11822 main ()
11823 {
11824 be_app ();
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext conftest$ac_exeext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11831   (eval $ac_link) 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } &&
11838          { ac_try='test -z "$ac_c_werror_flag"
11839                          || test ! -s conftest.err'
11840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841   (eval $ac_try) 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; } &&
11845          { ac_try='test -s conftest$ac_exeext'
11846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847   (eval $ac_try) 2>&5
11848   ac_status=$?
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); }; }; then
11851   ac_cv_lib_be_be_app=yes
11852 else
11853   echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11855
11856 ac_cv_lib_be_be_app=no
11857 fi
11858 rm -f conftest.err conftest.$ac_objext \
11859       conftest$ac_exeext conftest.$ac_ext
11860 LIBS=$ac_check_lib_save_LIBS
11861 fi
11862 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11863 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11864 if test $ac_cv_lib_be_be_app = yes; then
11865   LIBS="$LIBS -lbe -lroot -lnet"
11866 else
11867   :
11868 fi
11869
11870
11871 ac_ext=c
11872 ac_cpp='$CPP $CPPFLAGS'
11873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11876 if test -n "$ac_tool_prefix"; then
11877   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11879 echo "$as_me:$LINENO: checking for $ac_word" >&5
11880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11881 if test "${ac_cv_prog_CC+set}" = set; then
11882   echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884   if test -n "$CC"; then
11885   ac_cv_prog_CC="$CC" # Let the user override the test.
11886 else
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11889 do
11890   IFS=$as_save_IFS
11891   test -z "$as_dir" && as_dir=.
11892   for ac_exec_ext in '' $ac_executable_extensions; do
11893   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11894     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11896     break 2
11897   fi
11898 done
11899 done
11900
11901 fi
11902 fi
11903 CC=$ac_cv_prog_CC
11904 if test -n "$CC"; then
11905   echo "$as_me:$LINENO: result: $CC" >&5
11906 echo "${ECHO_T}$CC" >&6
11907 else
11908   echo "$as_me:$LINENO: result: no" >&5
11909 echo "${ECHO_T}no" >&6
11910 fi
11911
11912 fi
11913 if test -z "$ac_cv_prog_CC"; then
11914   ac_ct_CC=$CC
11915   # Extract the first word of "gcc", so it can be a program name with args.
11916 set dummy gcc; ac_word=$2
11917 echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11920   echo $ECHO_N "(cached) $ECHO_C" >&6
11921 else
11922   if test -n "$ac_ct_CC"; then
11923   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930   for ac_exec_ext in '' $ac_executable_extensions; do
11931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932     ac_cv_prog_ac_ct_CC="gcc"
11933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937 done
11938
11939 fi
11940 fi
11941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11942 if test -n "$ac_ct_CC"; then
11943   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11944 echo "${ECHO_T}$ac_ct_CC" >&6
11945 else
11946   echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11948 fi
11949
11950   CC=$ac_ct_CC
11951 else
11952   CC="$ac_cv_prog_CC"
11953 fi
11954
11955 if test -z "$CC"; then
11956   if test -n "$ac_tool_prefix"; then
11957   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11958 set dummy ${ac_tool_prefix}cc; ac_word=$2
11959 echo "$as_me:$LINENO: checking for $ac_word" >&5
11960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11961 if test "${ac_cv_prog_CC+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   if test -n "$CC"; then
11965   ac_cv_prog_CC="$CC" # Let the user override the test.
11966 else
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972   for ac_exec_ext in '' $ac_executable_extensions; do
11973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974     ac_cv_prog_CC="${ac_tool_prefix}cc"
11975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979 done
11980
11981 fi
11982 fi
11983 CC=$ac_cv_prog_CC
11984 if test -n "$CC"; then
11985   echo "$as_me:$LINENO: result: $CC" >&5
11986 echo "${ECHO_T}$CC" >&6
11987 else
11988   echo "$as_me:$LINENO: result: no" >&5
11989 echo "${ECHO_T}no" >&6
11990 fi
11991
11992 fi
11993 if test -z "$ac_cv_prog_CC"; then
11994   ac_ct_CC=$CC
11995   # Extract the first word of "cc", so it can be a program name with args.
11996 set dummy cc; ac_word=$2
11997 echo "$as_me:$LINENO: checking for $ac_word" >&5
11998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   if test -n "$ac_ct_CC"; then
12003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12004 else
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12007 do
12008   IFS=$as_save_IFS
12009   test -z "$as_dir" && as_dir=.
12010   for ac_exec_ext in '' $ac_executable_extensions; do
12011   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12012     ac_cv_prog_ac_ct_CC="cc"
12013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12014     break 2
12015   fi
12016 done
12017 done
12018
12019 fi
12020 fi
12021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12022 if test -n "$ac_ct_CC"; then
12023   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12024 echo "${ECHO_T}$ac_ct_CC" >&6
12025 else
12026   echo "$as_me:$LINENO: result: no" >&5
12027 echo "${ECHO_T}no" >&6
12028 fi
12029
12030   CC=$ac_ct_CC
12031 else
12032   CC="$ac_cv_prog_CC"
12033 fi
12034
12035 fi
12036 if test -z "$CC"; then
12037   # Extract the first word of "cc", so it can be a program name with args.
12038 set dummy cc; ac_word=$2
12039 echo "$as_me:$LINENO: checking for $ac_word" >&5
12040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12041 if test "${ac_cv_prog_CC+set}" = set; then
12042   echo $ECHO_N "(cached) $ECHO_C" >&6
12043 else
12044   if test -n "$CC"; then
12045   ac_cv_prog_CC="$CC" # Let the user override the test.
12046 else
12047   ac_prog_rejected=no
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12050 do
12051   IFS=$as_save_IFS
12052   test -z "$as_dir" && as_dir=.
12053   for ac_exec_ext in '' $ac_executable_extensions; do
12054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12056        ac_prog_rejected=yes
12057        continue
12058      fi
12059     ac_cv_prog_CC="cc"
12060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12061     break 2
12062   fi
12063 done
12064 done
12065
12066 if test $ac_prog_rejected = yes; then
12067   # We found a bogon in the path, so make sure we never use it.
12068   set dummy $ac_cv_prog_CC
12069   shift
12070   if test $# != 0; then
12071     # We chose a different compiler from the bogus one.
12072     # However, it has the same basename, so the bogon will be chosen
12073     # first if we set CC to just the basename; use the full file name.
12074     shift
12075     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12076   fi
12077 fi
12078 fi
12079 fi
12080 CC=$ac_cv_prog_CC
12081 if test -n "$CC"; then
12082   echo "$as_me:$LINENO: result: $CC" >&5
12083 echo "${ECHO_T}$CC" >&6
12084 else
12085   echo "$as_me:$LINENO: result: no" >&5
12086 echo "${ECHO_T}no" >&6
12087 fi
12088
12089 fi
12090 if test -z "$CC"; then
12091   if test -n "$ac_tool_prefix"; then
12092   for ac_prog in cl
12093   do
12094     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12096 echo "$as_me:$LINENO: checking for $ac_word" >&5
12097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12098 if test "${ac_cv_prog_CC+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   if test -n "$CC"; then
12102   ac_cv_prog_CC="$CC" # Let the user override the test.
12103 else
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12106 do
12107   IFS=$as_save_IFS
12108   test -z "$as_dir" && as_dir=.
12109   for ac_exec_ext in '' $ac_executable_extensions; do
12110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113     break 2
12114   fi
12115 done
12116 done
12117
12118 fi
12119 fi
12120 CC=$ac_cv_prog_CC
12121 if test -n "$CC"; then
12122   echo "$as_me:$LINENO: result: $CC" >&5
12123 echo "${ECHO_T}$CC" >&6
12124 else
12125   echo "$as_me:$LINENO: result: no" >&5
12126 echo "${ECHO_T}no" >&6
12127 fi
12128
12129     test -n "$CC" && break
12130   done
12131 fi
12132 if test -z "$CC"; then
12133   ac_ct_CC=$CC
12134   for ac_prog in cl
12135 do
12136   # Extract the first word of "$ac_prog", so it can be a program name with args.
12137 set dummy $ac_prog; ac_word=$2
12138 echo "$as_me:$LINENO: checking for $ac_word" >&5
12139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143   if test -n "$ac_ct_CC"; then
12144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12145 else
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149   IFS=$as_save_IFS
12150   test -z "$as_dir" && as_dir=.
12151   for ac_exec_ext in '' $ac_executable_extensions; do
12152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153     ac_cv_prog_ac_ct_CC="$ac_prog"
12154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12155     break 2
12156   fi
12157 done
12158 done
12159
12160 fi
12161 fi
12162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12163 if test -n "$ac_ct_CC"; then
12164   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12165 echo "${ECHO_T}$ac_ct_CC" >&6
12166 else
12167   echo "$as_me:$LINENO: result: no" >&5
12168 echo "${ECHO_T}no" >&6
12169 fi
12170
12171   test -n "$ac_ct_CC" && break
12172 done
12173
12174   CC=$ac_ct_CC
12175 fi
12176
12177 fi
12178
12179
12180 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12181 See \`config.log' for more details." >&5
12182 echo "$as_me: error: no acceptable C compiler found in \$PATH
12183 See \`config.log' for more details." >&2;}
12184    { (exit 1); exit 1; }; }
12185
12186 # Provide some information about the compiler.
12187 echo "$as_me:$LINENO:" \
12188      "checking for C compiler version" >&5
12189 ac_compiler=`set X $ac_compile; echo $2`
12190 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12191   (eval $ac_compiler --version </dev/null >&5) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }
12195 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12196   (eval $ac_compiler -v </dev/null >&5) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }
12200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12201   (eval $ac_compiler -V </dev/null >&5) 2>&5
12202   ac_status=$?
12203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204   (exit $ac_status); }
12205
12206 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12207 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12208 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218 int
12219 main ()
12220 {
12221 #ifndef __GNUC__
12222        choke me
12223 #endif
12224
12225   ;
12226   return 0;
12227 }
12228 _ACEOF
12229 rm -f conftest.$ac_objext
12230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12231   (eval $ac_compile) 2>conftest.er1
12232   ac_status=$?
12233   grep -v '^ *+' conftest.er1 >conftest.err
12234   rm -f conftest.er1
12235   cat conftest.err >&5
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); } &&
12238          { ac_try='test -z "$ac_c_werror_flag"
12239                          || test ! -s conftest.err'
12240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241   (eval $ac_try) 2>&5
12242   ac_status=$?
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); }; } &&
12245          { ac_try='test -s conftest.$ac_objext'
12246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247   (eval $ac_try) 2>&5
12248   ac_status=$?
12249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250   (exit $ac_status); }; }; then
12251   ac_compiler_gnu=yes
12252 else
12253   echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12255
12256 ac_compiler_gnu=no
12257 fi
12258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12260
12261 fi
12262 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12263 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12264 GCC=`test $ac_compiler_gnu = yes && echo yes`
12265 ac_test_CFLAGS=${CFLAGS+set}
12266 ac_save_CFLAGS=$CFLAGS
12267 CFLAGS="-g"
12268 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12269 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12270 if test "${ac_cv_prog_cc_g+set}" = set; then
12271   echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273   cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h.  */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h.  */
12279
12280 int
12281 main ()
12282 {
12283
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12290   (eval $ac_compile) 2>conftest.er1
12291   ac_status=$?
12292   grep -v '^ *+' conftest.er1 >conftest.err
12293   rm -f conftest.er1
12294   cat conftest.err >&5
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); } &&
12297          { ac_try='test -z "$ac_c_werror_flag"
12298                          || test ! -s conftest.err'
12299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12300   (eval $ac_try) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); }; } &&
12304          { ac_try='test -s conftest.$ac_objext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_prog_cc_g=yes
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_prog_cc_g=no
12316 fi
12317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12318 fi
12319 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12320 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12321 if test "$ac_test_CFLAGS" = set; then
12322   CFLAGS=$ac_save_CFLAGS
12323 elif test $ac_cv_prog_cc_g = yes; then
12324   if test "$GCC" = yes; then
12325     CFLAGS="-g -O2"
12326   else
12327     CFLAGS="-g"
12328   fi
12329 else
12330   if test "$GCC" = yes; then
12331     CFLAGS="-O2"
12332   else
12333     CFLAGS=
12334   fi
12335 fi
12336 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12337 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12338 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   ac_cv_prog_cc_stdc=no
12342 ac_save_CC=$CC
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 #include <stdarg.h>
12350 #include <stdio.h>
12351 #include <sys/types.h>
12352 #include <sys/stat.h>
12353 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12354 struct buf { int x; };
12355 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12356 static char *e (p, i)
12357      char **p;
12358      int i;
12359 {
12360   return p[i];
12361 }
12362 static char *f (char * (*g) (char **, int), char **p, ...)
12363 {
12364   char *s;
12365   va_list v;
12366   va_start (v,p);
12367   s = g (p, va_arg (v,int));
12368   va_end (v);
12369   return s;
12370 }
12371
12372 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12373    function prototypes and stuff, but not '\xHH' hex character constants.
12374    These don't provoke an error unfortunately, instead are silently treated
12375    as 'x'.  The following induces an error, until -std1 is added to get
12376    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12377    array size at least.  It's necessary to write '\x00'==0 to get something
12378    that's true only with -std1.  */
12379 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12380
12381 int test (int i, double x);
12382 struct s1 {int (*f) (int a);};
12383 struct s2 {int (*f) (double a);};
12384 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12385 int argc;
12386 char **argv;
12387 int
12388 main ()
12389 {
12390 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 # Don't try gcc -ansi; that turns off useful extensions and
12396 # breaks some systems' header files.
12397 # AIX                   -qlanglvl=ansi
12398 # Ultrix and OSF/1      -std1
12399 # HP-UX 10.20 and later -Ae
12400 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12401 # SVR4                  -Xc -D__EXTENSIONS__
12402 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12403 do
12404   CC="$ac_save_CC $ac_arg"
12405   rm -f conftest.$ac_objext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12407   (eval $ac_compile) 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_c_werror_flag"
12415                          || test ! -s conftest.err'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; } &&
12421          { ac_try='test -s conftest.$ac_objext'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427   ac_cv_prog_cc_stdc=$ac_arg
12428 break
12429 else
12430   echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.$ac_ext >&5
12432
12433 fi
12434 rm -f conftest.err conftest.$ac_objext
12435 done
12436 rm -f conftest.$ac_ext conftest.$ac_objext
12437 CC=$ac_save_CC
12438
12439 fi
12440
12441 case "x$ac_cv_prog_cc_stdc" in
12442   x|xno)
12443     echo "$as_me:$LINENO: result: none needed" >&5
12444 echo "${ECHO_T}none needed" >&6 ;;
12445   *)
12446     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12447 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12448     CC="$CC $ac_cv_prog_cc_stdc" ;;
12449 esac
12450
12451 # Some people use a C++ compiler to compile C.  Since we use `exit',
12452 # in C++ we need to declare it.  In case someone uses the same compiler
12453 # for both compiling C and C++ we need to have the C++ compiler decide
12454 # the declaration of exit, since it's the most demanding environment.
12455 cat >conftest.$ac_ext <<_ACEOF
12456 #ifndef __cplusplus
12457   choke me
12458 #endif
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462   (eval $ac_compile) 2>conftest.er1
12463   ac_status=$?
12464   grep -v '^ *+' conftest.er1 >conftest.err
12465   rm -f conftest.er1
12466   cat conftest.err >&5
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); } &&
12469          { ac_try='test -z "$ac_c_werror_flag"
12470                          || test ! -s conftest.err'
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); }; } &&
12476          { ac_try='test -s conftest.$ac_objext'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; }; then
12482   for ac_declaration in \
12483    '' \
12484    'extern "C" void std::exit (int) throw (); using std::exit;' \
12485    'extern "C" void std::exit (int); using std::exit;' \
12486    'extern "C" void exit (int) throw ();' \
12487    'extern "C" void exit (int);' \
12488    'void exit (int);'
12489 do
12490   cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h.  */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h.  */
12496 $ac_declaration
12497 #include <stdlib.h>
12498 int
12499 main ()
12500 {
12501 exit (42);
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } &&
12515          { ac_try='test -z "$ac_c_werror_flag"
12516                          || test ! -s conftest.err'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; } &&
12522          { ac_try='test -s conftest.$ac_objext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   :
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 continue
12534 fi
12535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12536   cat >conftest.$ac_ext <<_ACEOF
12537 /* confdefs.h.  */
12538 _ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h.  */
12542 $ac_declaration
12543 int
12544 main ()
12545 {
12546 exit (42);
12547   ;
12548   return 0;
12549 }
12550 _ACEOF
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553   (eval $ac_compile) 2>conftest.er1
12554   ac_status=$?
12555   grep -v '^ *+' conftest.er1 >conftest.err
12556   rm -f conftest.er1
12557   cat conftest.err >&5
12558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559   (exit $ac_status); } &&
12560          { ac_try='test -z "$ac_c_werror_flag"
12561                          || test ! -s conftest.err'
12562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563   (eval $ac_try) 2>&5
12564   ac_status=$?
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); }; } &&
12567          { ac_try='test -s conftest.$ac_objext'
12568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569   (eval $ac_try) 2>&5
12570   ac_status=$?
12571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572   (exit $ac_status); }; }; then
12573   break
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578 fi
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12580 done
12581 rm -f conftest*
12582 if test -n "$ac_declaration"; then
12583   echo '#ifdef __cplusplus' >>confdefs.h
12584   echo $ac_declaration      >>confdefs.h
12585   echo '#endif'             >>confdefs.h
12586 fi
12587
12588 else
12589   echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12591
12592 fi
12593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12594 ac_ext=c
12595 ac_cpp='$CPP $CPPFLAGS'
12596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12599
12600 depcc="$CC"   am_compiler_list=
12601
12602 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12603 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12604 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12605   echo $ECHO_N "(cached) $ECHO_C" >&6
12606 else
12607   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12608   # We make a subdir and do the tests there.  Otherwise we can end up
12609   # making bogus files that we don't know about and never remove.  For
12610   # instance it was reported that on HP-UX the gcc test will end up
12611   # making a dummy file named `D' -- because `-MD' means `put the output
12612   # in D'.
12613   mkdir conftest.dir
12614   # Copy depcomp to subdir because otherwise we won't find it if we're
12615   # using a relative directory.
12616   cp "$am_depcomp" conftest.dir
12617   cd conftest.dir
12618   # We will build objects and dependencies in a subdirectory because
12619   # it helps to detect inapplicable dependency modes.  For instance
12620   # both Tru64's cc and ICC support -MD to output dependencies as a
12621   # side effect of compilation, but ICC will put the dependencies in
12622   # the current directory while Tru64 will put them in the object
12623   # directory.
12624   mkdir sub
12625
12626   am_cv_CC_dependencies_compiler_type=none
12627   if test "$am_compiler_list" = ""; then
12628      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12629   fi
12630   for depmode in $am_compiler_list; do
12631     # Setup a source with many dependencies, because some compilers
12632     # like to wrap large dependency lists on column 80 (with \), and
12633     # we should not choose a depcomp mode which is confused by this.
12634     #
12635     # We need to recreate these files for each test, as the compiler may
12636     # overwrite some of them when testing with obscure command lines.
12637     # This happens at least with the AIX C compiler.
12638     : > sub/conftest.c
12639     for i in 1 2 3 4 5 6; do
12640       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12641       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12642       # Solaris 8's {/usr,}/bin/sh.
12643       touch sub/conftst$i.h
12644     done
12645     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12646
12647     case $depmode in
12648     nosideeffect)
12649       # after this tag, mechanisms are not by side-effect, so they'll
12650       # only be used when explicitly requested
12651       if test "x$enable_dependency_tracking" = xyes; then
12652         continue
12653       else
12654         break
12655       fi
12656       ;;
12657     none) break ;;
12658     esac
12659     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12660     # mode.  It turns out that the SunPro C++ compiler does not properly
12661     # handle `-M -o', and we need to detect this.
12662     if depmode=$depmode \
12663        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12664        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12665        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12666          >/dev/null 2>conftest.err &&
12667        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12668        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12669        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12670       # icc doesn't choke on unknown options, it will just issue warnings
12671       # or remarks (even with -Werror).  So we grep stderr for any message
12672       # that says an option was ignored or not supported.
12673       # When given -MP, icc 7.0 and 7.1 complain thusly:
12674       #   icc: Command line warning: ignoring option '-M'; no argument required
12675       # The diagnosis changed in icc 8.0:
12676       #   icc: Command line remark: option '-MP' not supported
12677       if (grep 'ignoring option' conftest.err ||
12678           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12679         am_cv_CC_dependencies_compiler_type=$depmode
12680         break
12681       fi
12682     fi
12683   done
12684
12685   cd ..
12686   rm -rf conftest.dir
12687 else
12688   am_cv_CC_dependencies_compiler_type=none
12689 fi
12690
12691 fi
12692 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12693 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12694 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12695
12696
12697
12698 if
12699   test "x$enable_dependency_tracking" != xno \
12700   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12701   am__fastdepCC_TRUE=
12702   am__fastdepCC_FALSE='#'
12703 else
12704   am__fastdepCC_TRUE='#'
12705   am__fastdepCC_FALSE=
12706 fi
12707
12708
12709 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12710         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12711 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12712    { (exit 1); exit 1; }; }
12713 fi
12714
12715 # test for make depend flag
12716 OL_MKDEP=
12717 OL_MKDEP_FLAGS=
12718 if test -z "${MKDEP}"; then
12719         OL_MKDEP="${CC-cc}"
12720         if test -z "${MKDEP_FLAGS}"; then
12721                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12722 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12723 if test "${ol_cv_mkdep+set}" = set; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 else
12726
12727                         ol_cv_mkdep=no
12728                         for flag in "-M" "-xM"; do
12729                                 cat > conftest.c <<EOF
12730  noCode;
12731 EOF
12732                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12734   (eval $ac_try) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; } \
12738                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12739                                 then
12740                                         if test ! -f conftest."${ac_object}" ; then
12741                                                 ol_cv_mkdep=$flag
12742                                                 OL_MKDEP_FLAGS="$flag"
12743                                                 break
12744                                         fi
12745                                 fi
12746                         done
12747                         rm -f conftest*
12748
12749 fi
12750 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12751 echo "${ECHO_T}$ol_cv_mkdep" >&6
12752         else
12753                 cc_cv_mkdep=yes
12754                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12755         fi
12756 else
12757         cc_cv_mkdep=yes
12758         OL_MKDEP="${MKDEP}"
12759         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12760 fi
12761
12762
12763
12764 if test "${ol_cv_mkdep}" = no ; then
12765         # this will soon become an error
12766         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12767 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12768 fi
12769
12770 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12771 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12772 if test "${ac_cv_lib_s_afopen+set}" = set; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-ls  $LIBS"
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h.  */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h.  */
12783
12784 /* Override any gcc2 internal prototype to avoid an error.  */
12785 #ifdef __cplusplus
12786 extern "C"
12787 #endif
12788 /* We use char because int might match the return type of a gcc2
12789    builtin and then its argument prototype would still apply.  */
12790 char afopen ();
12791 int
12792 main ()
12793 {
12794 afopen ();
12795   ;
12796   return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12801   (eval $ac_link) 2>conftest.er1
12802   ac_status=$?
12803   grep -v '^ *+' conftest.er1 >conftest.err
12804   rm -f conftest.er1
12805   cat conftest.err >&5
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } &&
12808          { ac_try='test -z "$ac_c_werror_flag"
12809                          || test ! -s conftest.err'
12810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811   (eval $ac_try) 2>&5
12812   ac_status=$?
12813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); }; } &&
12815          { ac_try='test -s conftest$ac_exeext'
12816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817   (eval $ac_try) 2>&5
12818   ac_status=$?
12819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820   (exit $ac_status); }; }; then
12821   ac_cv_lib_s_afopen=yes
12822 else
12823   echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_cv_lib_s_afopen=no
12827 fi
12828 rm -f conftest.err conftest.$ac_objext \
12829       conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12831 fi
12832 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12833 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12834 if test $ac_cv_lib_s_afopen = yes; then
12835
12836         AUTH_LIBS=-ls
12837
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_AIX_SECURITY 1
12840 _ACEOF
12841
12842
12843 fi
12844
12845
12846 case "$target" in
12847 *-ibm-openedition)
12848         ac_cv_func_getopt=no
12849
12850 cat >>confdefs.h <<\_ACEOF
12851 #define BOTH_STRINGS_H 1
12852 _ACEOF
12853
12854         ;;
12855 esac
12856
12857 ol_link_modules=no
12858 WITH_MODULES_ENABLED=no
12859 if test $ol_enable_modules != no ; then
12860
12861 for ac_header in ltdl.h
12862 do
12863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12865   echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12868   echo $ECHO_N "(cached) $ECHO_C" >&6
12869 fi
12870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12871 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12872 else
12873   # Is the header compilable?
12874 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12875 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12876 cat >conftest.$ac_ext <<_ACEOF
12877 /* confdefs.h.  */
12878 _ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h.  */
12882 $ac_includes_default
12883 #include <$ac_header>
12884 _ACEOF
12885 rm -f conftest.$ac_objext
12886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887   (eval $ac_compile) 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } &&
12894          { ac_try='test -z "$ac_c_werror_flag"
12895                          || test ! -s conftest.err'
12896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897   (eval $ac_try) 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; } &&
12901          { ac_try='test -s conftest.$ac_objext'
12902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903   (eval $ac_try) 2>&5
12904   ac_status=$?
12905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906   (exit $ac_status); }; }; then
12907   ac_header_compiler=yes
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912 ac_header_compiler=no
12913 fi
12914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12916 echo "${ECHO_T}$ac_header_compiler" >&6
12917
12918 # Is the header present?
12919 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12920 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12921 cat >conftest.$ac_ext <<_ACEOF
12922 /* confdefs.h.  */
12923 _ACEOF
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h.  */
12927 #include <$ac_header>
12928 _ACEOF
12929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12931   ac_status=$?
12932   grep -v '^ *+' conftest.er1 >conftest.err
12933   rm -f conftest.er1
12934   cat conftest.err >&5
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); } >/dev/null; then
12937   if test -s conftest.err; then
12938     ac_cpp_err=$ac_c_preproc_warn_flag
12939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12940   else
12941     ac_cpp_err=
12942   fi
12943 else
12944   ac_cpp_err=yes
12945 fi
12946 if test -z "$ac_cpp_err"; then
12947   ac_header_preproc=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952   ac_header_preproc=no
12953 fi
12954 rm -f conftest.err conftest.$ac_ext
12955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12956 echo "${ECHO_T}$ac_header_preproc" >&6
12957
12958 # So?  What about this header?
12959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12960   yes:no: )
12961     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12965     ac_header_preproc=yes
12966     ;;
12967   no:yes:* )
12968     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12970     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12971 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12972     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12974     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12975 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12980     (
12981       cat <<\_ASBOX
12982 ## --------------------------------------------- ##
12983 ## Report this to <http://www.openldap.org/its/> ##
12984 ## --------------------------------------------- ##
12985 _ASBOX
12986     ) |
12987       sed "s/^/$as_me: WARNING:     /" >&2
12988     ;;
12989 esac
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993   echo $ECHO_N "(cached) $ECHO_C" >&6
12994 else
12995   eval "$as_ac_Header=\$ac_header_preproc"
12996 fi
12997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12998 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12999
13000 fi
13001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13002   cat >>confdefs.h <<_ACEOF
13003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13004 _ACEOF
13005
13006 fi
13007
13008 done
13009
13010
13011         if test $ac_cv_header_ltdl_h = no ; then
13012                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13013 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13014    { (exit 1); exit 1; }; }
13015         fi
13016
13017         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13018 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13019 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   ac_check_lib_save_LIBS=$LIBS
13023 LIBS="-lltdl  $LIBS"
13024 cat >conftest.$ac_ext <<_ACEOF
13025 /* confdefs.h.  */
13026 _ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h.  */
13030
13031 /* Override any gcc2 internal prototype to avoid an error.  */
13032 #ifdef __cplusplus
13033 extern "C"
13034 #endif
13035 /* We use char because int might match the return type of a gcc2
13036    builtin and then its argument prototype would still apply.  */
13037 char lt_dlinit ();
13038 int
13039 main ()
13040 {
13041 lt_dlinit ();
13042   ;
13043   return 0;
13044 }
13045 _ACEOF
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13048   (eval $ac_link) 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } &&
13055          { ac_try='test -z "$ac_c_werror_flag"
13056                          || test ! -s conftest.err'
13057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058   (eval $ac_try) 2>&5
13059   ac_status=$?
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); }; } &&
13062          { ac_try='test -s conftest$ac_exeext'
13063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064   (eval $ac_try) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; }; then
13068   ac_cv_lib_ltdl_lt_dlinit=yes
13069 else
13070   echo "$as_me: failed program was:" >&5
13071 sed 's/^/| /' conftest.$ac_ext >&5
13072
13073 ac_cv_lib_ltdl_lt_dlinit=no
13074 fi
13075 rm -f conftest.err conftest.$ac_objext \
13076       conftest$ac_exeext conftest.$ac_ext
13077 LIBS=$ac_check_lib_save_LIBS
13078 fi
13079 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13080 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13081 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13082
13083                 MODULES_LIBS=-lltdl
13084
13085 cat >>confdefs.h <<\_ACEOF
13086 #define HAVE_LIBLTDL 1
13087 _ACEOF
13088
13089
13090 fi
13091
13092
13093         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13094                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13095 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13096    { (exit 1); exit 1; }; }
13097         fi
13098         ol_link_modules=yes
13099         WITH_MODULES_ENABLED=yes
13100
13101 else
13102         for i in $Backends; do
13103                 eval "ol_tmp=\$ol_enable_$i"
13104                 if test $ol_tmp = mod ; then
13105                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13106 echo "$as_me: WARNING: building static $i backend" >&2;}
13107                         eval "ol_enable_$i=yes"
13108                 fi
13109         done
13110         for i in $Overlays; do
13111                 eval "ol_tmp=\$ol_enable_$i"
13112                 if test $ol_tmp = mod ; then
13113                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13114 echo "$as_me: WARNING: building static $i overlay" >&2;}
13115                         eval "ol_enable_$i=yes"
13116                 fi
13117         done
13118 fi
13119
13120 # test for EBCDIC
13121 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13122 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13123 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13124   echo $ECHO_N "(cached) $ECHO_C" >&6
13125 else
13126
13127         cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133
13134 #if !('M' == 0xd4)
13135 #include <__ASCII__/generate_error.h>
13136 #endif
13137
13138 _ACEOF
13139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13141   ac_status=$?
13142   grep -v '^ *+' conftest.er1 >conftest.err
13143   rm -f conftest.er1
13144   cat conftest.err >&5
13145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146   (exit $ac_status); } >/dev/null; then
13147   if test -s conftest.err; then
13148     ac_cpp_err=$ac_c_preproc_warn_flag
13149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13150   else
13151     ac_cpp_err=
13152   fi
13153 else
13154   ac_cpp_err=yes
13155 fi
13156 if test -z "$ac_cpp_err"; then
13157   ol_cv_cpp_ebcdic=yes
13158 else
13159   echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13161
13162   ol_cv_cpp_ebcdic=no
13163 fi
13164 rm -f conftest.err conftest.$ac_ext
13165 fi
13166 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13167 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13168 if test $ol_cv_cpp_ebcdic = yes ; then
13169
13170 cat >>confdefs.h <<\_ACEOF
13171 #define HAVE_EBCDIC 1
13172 _ACEOF
13173
13174 fi
13175
13176 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13178 if test "${ol_cv_header_stdc+set}" = set; then
13179   echo $ECHO_N "(cached) $ECHO_C" >&6
13180 else
13181   cat >conftest.$ac_ext <<_ACEOF
13182 /* confdefs.h.  */
13183 _ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h.  */
13187 #include <stdlib.h>
13188 #include <stdarg.h>
13189 #include <string.h>
13190 #include <float.h>
13191 _ACEOF
13192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13193   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13194   ac_status=$?
13195   grep -v '^ *+' conftest.er1 >conftest.err
13196   rm -f conftest.er1
13197   cat conftest.err >&5
13198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199   (exit $ac_status); } >/dev/null; then
13200   if test -s conftest.err; then
13201     ac_cpp_err=$ac_c_preproc_warn_flag
13202     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13203   else
13204     ac_cpp_err=
13205   fi
13206 else
13207   ac_cpp_err=yes
13208 fi
13209 if test -z "$ac_cpp_err"; then
13210   ol_cv_header_stdc=yes
13211 else
13212   echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13214
13215   ol_cv_header_stdc=no
13216 fi
13217 rm -f conftest.err conftest.$ac_ext
13218
13219 if test $ol_cv_header_stdc = yes; then
13220   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13221 cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 #include <string.h>
13228
13229 _ACEOF
13230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13231   $EGREP "memchr" >/dev/null 2>&1; then
13232   :
13233 else
13234   ol_cv_header_stdc=no
13235 fi
13236 rm -f conftest*
13237
13238 fi
13239
13240 if test $ol_cv_header_stdc = yes; then
13241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 #include <stdlib.h>
13249
13250 _ACEOF
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252   $EGREP "free" >/dev/null 2>&1; then
13253   :
13254 else
13255   ol_cv_header_stdc=no
13256 fi
13257 rm -f conftest*
13258
13259 fi
13260
13261 if test $ol_cv_header_stdc = yes; then
13262   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13263 if test "$cross_compiling" = yes; then
13264   :
13265 else
13266   cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 #include <ctype.h>
13273 #ifndef HAVE_EBCDIC
13274 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13275 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13276 #else
13277 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13278                 || ('j' <= (c) && (c) <= 'r') \
13279                 || ('s' <= (c) && (c) <= 'z'))
13280 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13281 #endif
13282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13283 int main () { int i; for (i = 0; i < 256; i++)
13284 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13285 exit (0); }
13286
13287 _ACEOF
13288 rm -f conftest$ac_exeext
13289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13290   (eval $ac_link) 2>&5
13291   ac_status=$?
13292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13295   (eval $ac_try) 2>&5
13296   ac_status=$?
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); }; }; then
13299   :
13300 else
13301   echo "$as_me: program exited with status $ac_status" >&5
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13304
13305 ( exit $ac_status )
13306 ol_cv_header_stdc=no
13307 fi
13308 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13309 fi
13310 fi
13311 fi
13312 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13313 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13314 if test $ol_cv_header_stdc = yes; then
13315   cat >>confdefs.h <<\_ACEOF
13316 #define STDC_HEADERS 1
13317 _ACEOF
13318
13319 fi
13320 ac_cv_header_stdc=disable
13321
13322
13323 if test $ol_cv_header_stdc != yes; then
13324         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13325 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13326 fi
13327
13328
13329
13330
13331
13332
13333 ac_header_dirent=no
13334 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13335   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13336 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13337 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #include <sys/types.h>
13348 #include <$ac_hdr>
13349
13350 int
13351 main ()
13352 {
13353 if ((DIR *) 0)
13354 return 0;
13355   ;
13356   return 0;
13357 }
13358 _ACEOF
13359 rm -f conftest.$ac_objext
13360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13361   (eval $ac_compile) 2>conftest.er1
13362   ac_status=$?
13363   grep -v '^ *+' conftest.er1 >conftest.err
13364   rm -f conftest.er1
13365   cat conftest.err >&5
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } &&
13368          { ac_try='test -z "$ac_c_werror_flag"
13369                          || test ! -s conftest.err'
13370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13371   (eval $ac_try) 2>&5
13372   ac_status=$?
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); }; } &&
13375          { ac_try='test -s conftest.$ac_objext'
13376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377   (eval $ac_try) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   eval "$as_ac_Header=yes"
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386 eval "$as_ac_Header=no"
13387 fi
13388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13389 fi
13390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13393   cat >>confdefs.h <<_ACEOF
13394 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13395 _ACEOF
13396
13397 ac_header_dirent=$ac_hdr; break
13398 fi
13399
13400 done
13401 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13402 if test $ac_header_dirent = dirent.h; then
13403   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13404 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13405 if test "${ac_cv_search_opendir+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   ac_func_search_save_LIBS=$LIBS
13409 ac_cv_search_opendir=no
13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416
13417 /* Override any gcc2 internal prototype to avoid an error.  */
13418 #ifdef __cplusplus
13419 extern "C"
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422    builtin and then its argument prototype would still apply.  */
13423 char opendir ();
13424 int
13425 main ()
13426 {
13427 opendir ();
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13434   (eval $ac_link) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest$ac_exeext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   ac_cv_search_opendir="none required"
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 fi
13460 rm -f conftest.err conftest.$ac_objext \
13461       conftest$ac_exeext conftest.$ac_ext
13462 if test "$ac_cv_search_opendir" = no; then
13463   for ac_lib in dir; do
13464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13465     cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471
13472 /* Override any gcc2 internal prototype to avoid an error.  */
13473 #ifdef __cplusplus
13474 extern "C"
13475 #endif
13476 /* We use char because int might match the return type of a gcc2
13477    builtin and then its argument prototype would still apply.  */
13478 char opendir ();
13479 int
13480 main ()
13481 {
13482 opendir ();
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext conftest$ac_exeext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489   (eval $ac_link) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_c_werror_flag"
13497                          || test ! -s conftest.err'
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); }; } &&
13503          { ac_try='test -s conftest$ac_exeext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_search_opendir="-l$ac_lib"
13510 break
13511 else
13512   echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 fi
13516 rm -f conftest.err conftest.$ac_objext \
13517       conftest$ac_exeext conftest.$ac_ext
13518   done
13519 fi
13520 LIBS=$ac_func_search_save_LIBS
13521 fi
13522 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13523 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13524 if test "$ac_cv_search_opendir" != no; then
13525   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13526
13527 fi
13528
13529 else
13530   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13531 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13532 if test "${ac_cv_search_opendir+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535   ac_func_search_save_LIBS=$LIBS
13536 ac_cv_search_opendir=no
13537 cat >conftest.$ac_ext <<_ACEOF
13538 /* confdefs.h.  */
13539 _ACEOF
13540 cat confdefs.h >>conftest.$ac_ext
13541 cat >>conftest.$ac_ext <<_ACEOF
13542 /* end confdefs.h.  */
13543
13544 /* Override any gcc2 internal prototype to avoid an error.  */
13545 #ifdef __cplusplus
13546 extern "C"
13547 #endif
13548 /* We use char because int might match the return type of a gcc2
13549    builtin and then its argument prototype would still apply.  */
13550 char opendir ();
13551 int
13552 main ()
13553 {
13554 opendir ();
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext conftest$ac_exeext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13561   (eval $ac_link) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_c_werror_flag"
13569                          || test ! -s conftest.err'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest$ac_exeext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   ac_cv_search_opendir="none required"
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 fi
13587 rm -f conftest.err conftest.$ac_objext \
13588       conftest$ac_exeext conftest.$ac_ext
13589 if test "$ac_cv_search_opendir" = no; then
13590   for ac_lib in x; do
13591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13592     cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598
13599 /* Override any gcc2 internal prototype to avoid an error.  */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 /* We use char because int might match the return type of a gcc2
13604    builtin and then its argument prototype would still apply.  */
13605 char opendir ();
13606 int
13607 main ()
13608 {
13609 opendir ();
13610   ;
13611   return 0;
13612 }
13613 _ACEOF
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616   (eval $ac_link) 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } &&
13623          { ac_try='test -z "$ac_c_werror_flag"
13624                          || test ! -s conftest.err'
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); }; } &&
13630          { ac_try='test -s conftest$ac_exeext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_cv_search_opendir="-l$ac_lib"
13637 break
13638 else
13639   echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.$ac_ext >&5
13641
13642 fi
13643 rm -f conftest.err conftest.$ac_objext \
13644       conftest$ac_exeext conftest.$ac_ext
13645   done
13646 fi
13647 LIBS=$ac_func_search_save_LIBS
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13650 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13651 if test "$ac_cv_search_opendir" != no; then
13652   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13653
13654 fi
13655
13656 fi
13657
13658 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13659 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13660 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669 #include <sys/types.h>
13670 #include <sys/wait.h>
13671 #ifndef WEXITSTATUS
13672 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13673 #endif
13674 #ifndef WIFEXITED
13675 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13676 #endif
13677
13678 int
13679 main ()
13680 {
13681   int s;
13682   wait (&s);
13683   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13690   (eval $ac_compile) 2>conftest.er1
13691   ac_status=$?
13692   grep -v '^ *+' conftest.er1 >conftest.err
13693   rm -f conftest.er1
13694   cat conftest.err >&5
13695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696   (exit $ac_status); } &&
13697          { ac_try='test -z "$ac_c_werror_flag"
13698                          || test ! -s conftest.err'
13699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700   (eval $ac_try) 2>&5
13701   ac_status=$?
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); }; } &&
13704          { ac_try='test -s conftest.$ac_objext'
13705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706   (eval $ac_try) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_header_sys_wait_h=yes
13711 else
13712   echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13714
13715 ac_cv_header_sys_wait_h=no
13716 fi
13717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13720 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13721 if test $ac_cv_header_sys_wait_h = yes; then
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_SYS_WAIT_H 1
13725 _ACEOF
13726
13727 fi
13728
13729 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13730 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13731 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740 #include <sys/types.h>
13741 #include <termios.h>
13742 #ifdef TIOCGWINSZ
13743   yes
13744 #endif
13745
13746 _ACEOF
13747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13748   $EGREP "yes" >/dev/null 2>&1; then
13749   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13750 else
13751   ac_cv_sys_tiocgwinsz_in_termios_h=no
13752 fi
13753 rm -f conftest*
13754
13755 fi
13756 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13757 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13758
13759 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13760   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13761 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13762 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 #include <sys/types.h>
13772 #include <sys/ioctl.h>
13773 #ifdef TIOCGWINSZ
13774   yes
13775 #endif
13776
13777 _ACEOF
13778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13779   $EGREP "yes" >/dev/null 2>&1; then
13780   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13781 else
13782   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13783 fi
13784 rm -f conftest*
13785
13786 fi
13787 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13788 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13789
13790   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13791
13792 cat >>confdefs.h <<\_ACEOF
13793 #define GWINSZ_IN_SYS_IOCTL 1
13794 _ACEOF
13795
13796   fi
13797 fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844 for ac_header in \
13845         arpa/inet.h             \
13846         arpa/nameser.h  \
13847         assert.h                \
13848         bits/types.h    \
13849         conio.h                 \
13850         crypt.h                 \
13851         direct.h                \
13852         errno.h                 \
13853         fcntl.h                 \
13854         filio.h                 \
13855         getopt.h                \
13856         grp.h                   \
13857         io.h                    \
13858         libutil.h               \
13859         limits.h                \
13860         locale.h                \
13861         malloc.h                \
13862         memory.h                \
13863         psap.h                  \
13864         pwd.h                   \
13865         process.h               \
13866         sgtty.h                 \
13867         shadow.h                \
13868         stddef.h                \
13869         string.h                \
13870         strings.h               \
13871         sysexits.h              \
13872         sys/file.h              \
13873         sys/filio.h             \
13874         sys/errno.h             \
13875         sys/ioctl.h             \
13876         sys/param.h             \
13877         sys/resource.h  \
13878         sys/select.h    \
13879         sys/socket.h    \
13880         sys/stat.h              \
13881         sys/syslog.h    \
13882         sys/time.h              \
13883         sys/types.h             \
13884         sys/uio.h               \
13885         syslog.h                \
13886         termios.h               \
13887         unistd.h                \
13888         utime.h                 \
13889
13890 do
13891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13893   echo "$as_me:$LINENO: checking for $ac_header" >&5
13894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13896   echo $ECHO_N "(cached) $ECHO_C" >&6
13897 fi
13898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13900 else
13901   # Is the header compilable?
13902 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 $ac_includes_default
13911 #include <$ac_header>
13912 _ACEOF
13913 rm -f conftest.$ac_objext
13914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13915   (eval $ac_compile) 2>conftest.er1
13916   ac_status=$?
13917   grep -v '^ *+' conftest.er1 >conftest.err
13918   rm -f conftest.er1
13919   cat conftest.err >&5
13920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921   (exit $ac_status); } &&
13922          { ac_try='test -z "$ac_c_werror_flag"
13923                          || test ! -s conftest.err'
13924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13925   (eval $ac_try) 2>&5
13926   ac_status=$?
13927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13928   (exit $ac_status); }; } &&
13929          { ac_try='test -s conftest.$ac_objext'
13930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931   (eval $ac_try) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; }; then
13935   ac_header_compiler=yes
13936 else
13937   echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13939
13940 ac_header_compiler=no
13941 fi
13942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13943 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13944 echo "${ECHO_T}$ac_header_compiler" >&6
13945
13946 # Is the header present?
13947 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13948 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h.  */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h.  */
13955 #include <$ac_header>
13956 _ACEOF
13957 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13958   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } >/dev/null; then
13965   if test -s conftest.err; then
13966     ac_cpp_err=$ac_c_preproc_warn_flag
13967     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13968   else
13969     ac_cpp_err=
13970   fi
13971 else
13972   ac_cpp_err=yes
13973 fi
13974 if test -z "$ac_cpp_err"; then
13975   ac_header_preproc=yes
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980   ac_header_preproc=no
13981 fi
13982 rm -f conftest.err conftest.$ac_ext
13983 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6
13985
13986 # So?  What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988   yes:no: )
13989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993     ac_header_preproc=yes
13994     ;;
13995   no:yes:* )
13996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008     (
14009       cat <<\_ASBOX
14010 ## --------------------------------------------- ##
14011 ## Report this to <http://www.openldap.org/its/> ##
14012 ## --------------------------------------------- ##
14013 _ASBOX
14014     ) |
14015       sed "s/^/$as_me: WARNING:     /" >&2
14016     ;;
14017 esac
14018 echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   eval "$as_ac_Header=\$ac_header_preproc"
14024 fi
14025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14027
14028 fi
14029 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14030   cat >>confdefs.h <<_ACEOF
14031 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14032 _ACEOF
14033
14034 fi
14035
14036 done
14037
14038
14039 if test "$ac_cv_mingw32" = yes ; then
14040
14041
14042 for ac_header in winsock.h winsock2.h
14043 do
14044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14046   echo "$as_me:$LINENO: checking for $ac_header" >&5
14047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14049   echo $ECHO_N "(cached) $ECHO_C" >&6
14050 fi
14051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 else
14054   # Is the header compilable?
14055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14057 cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 $ac_includes_default
14064 #include <$ac_header>
14065 _ACEOF
14066 rm -f conftest.$ac_objext
14067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14068   (eval $ac_compile) 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } &&
14075          { ac_try='test -z "$ac_c_werror_flag"
14076                          || test ! -s conftest.err'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest.$ac_objext'
14083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084   (eval $ac_try) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); }; }; then
14088   ac_header_compiler=yes
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093 ac_header_compiler=no
14094 fi
14095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14097 echo "${ECHO_T}$ac_header_compiler" >&6
14098
14099 # Is the header present?
14100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 #include <$ac_header>
14109 _ACEOF
14110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14111   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } >/dev/null; then
14118   if test -s conftest.err; then
14119     ac_cpp_err=$ac_c_preproc_warn_flag
14120     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14121   else
14122     ac_cpp_err=
14123   fi
14124 else
14125   ac_cpp_err=yes
14126 fi
14127 if test -z "$ac_cpp_err"; then
14128   ac_header_preproc=yes
14129 else
14130   echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133   ac_header_preproc=no
14134 fi
14135 rm -f conftest.err conftest.$ac_ext
14136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14137 echo "${ECHO_T}$ac_header_preproc" >&6
14138
14139 # So?  What about this header?
14140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14141   yes:no: )
14142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14146     ac_header_preproc=yes
14147     ;;
14148   no:yes:* )
14149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14161     (
14162       cat <<\_ASBOX
14163 ## --------------------------------------------- ##
14164 ## Report this to <http://www.openldap.org/its/> ##
14165 ## --------------------------------------------- ##
14166 _ASBOX
14167     ) |
14168       sed "s/^/$as_me: WARNING:     /" >&2
14169     ;;
14170 esac
14171 echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14174   echo $ECHO_N "(cached) $ECHO_C" >&6
14175 else
14176   eval "$as_ac_Header=\$ac_header_preproc"
14177 fi
14178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14180
14181 fi
14182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14183   cat >>confdefs.h <<_ACEOF
14184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14185 _ACEOF
14186
14187 fi
14188
14189 done
14190
14191 fi
14192
14193
14194 for ac_header in resolv.h
14195 do
14196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14197 echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h.  */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h.  */
14208 $ac_includes_default
14209 #include <netinet/in.h>
14210
14211
14212 #include <$ac_header>
14213 _ACEOF
14214 rm -f conftest.$ac_objext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14216   (eval $ac_compile) 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } &&
14223          { ac_try='test -z "$ac_c_werror_flag"
14224                          || test ! -s conftest.err'
14225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226   (eval $ac_try) 2>&5
14227   ac_status=$?
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); }; } &&
14230          { ac_try='test -s conftest.$ac_objext'
14231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14232   (eval $ac_try) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); }; }; then
14236   eval "$as_ac_Header=yes"
14237 else
14238   echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 eval "$as_ac_Header=no"
14242 fi
14243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14248   cat >>confdefs.h <<_ACEOF
14249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14250 _ACEOF
14251
14252 fi
14253
14254 done
14255
14256
14257
14258 for ac_header in netinet/tcp.h
14259 do
14260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 echo "$as_me:$LINENO: checking for $ac_header" >&5
14262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14264   echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266   cat >conftest.$ac_ext <<_ACEOF
14267 /* confdefs.h.  */
14268 _ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h.  */
14272 $ac_includes_default
14273 #include <netinet/in.h>
14274
14275
14276 #include <$ac_header>
14277 _ACEOF
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14280   (eval $ac_compile) 2>conftest.er1
14281   ac_status=$?
14282   grep -v '^ *+' conftest.er1 >conftest.err
14283   rm -f conftest.er1
14284   cat conftest.err >&5
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); } &&
14287          { ac_try='test -z "$ac_c_werror_flag"
14288                          || test ! -s conftest.err'
14289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290   (eval $ac_try) 2>&5
14291   ac_status=$?
14292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293   (exit $ac_status); }; } &&
14294          { ac_try='test -s conftest.$ac_objext'
14295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14296   (eval $ac_try) 2>&5
14297   ac_status=$?
14298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299   (exit $ac_status); }; }; then
14300   eval "$as_ac_Header=yes"
14301 else
14302   echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14304
14305 eval "$as_ac_Header=no"
14306 fi
14307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14308 fi
14309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312   cat >>confdefs.h <<_ACEOF
14313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14314 _ACEOF
14315
14316 fi
14317
14318 done
14319
14320
14321
14322 for ac_header in sys/ucred.h
14323 do
14324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14325 echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   cat >conftest.$ac_ext <<_ACEOF
14331 /* confdefs.h.  */
14332 _ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h.  */
14336 $ac_includes_default
14337 #ifdef HAVE_SYS_PARAM_H
14338 #include <sys/param.h>
14339 #endif
14340
14341
14342 #include <$ac_header>
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346   (eval $ac_compile) 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag"
14354                          || test ! -s conftest.err'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; } &&
14360          { ac_try='test -s conftest.$ac_objext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   eval "$as_ac_Header=yes"
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 eval "$as_ac_Header=no"
14372 fi
14373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14374 fi
14375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14378   cat >>confdefs.h <<_ACEOF
14379 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14380 _ACEOF
14381
14382 fi
14383
14384 done
14385
14386
14387
14388
14389
14390 for ac_func in sigaction sigset
14391 do
14392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14393 echo "$as_me:$LINENO: checking for $ac_func" >&5
14394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14395 if eval "test \"\${$as_ac_var+set}\" = set"; then
14396   echo $ECHO_N "(cached) $ECHO_C" >&6
14397 else
14398   cat >conftest.$ac_ext <<_ACEOF
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14406 #define $ac_func innocuous_$ac_func
14407
14408 /* System header to define __stub macros and hopefully few prototypes,
14409     which can conflict with char $ac_func (); below.
14410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14411     <limits.h> exists even on freestanding compilers.  */
14412
14413 #ifdef __STDC__
14414 # include <limits.h>
14415 #else
14416 # include <assert.h>
14417 #endif
14418
14419 #undef $ac_func
14420
14421 /* Override any gcc2 internal prototype to avoid an error.  */
14422 #ifdef __cplusplus
14423 extern "C"
14424 {
14425 #endif
14426 /* We use char because int might match the return type of a gcc2
14427    builtin and then its argument prototype would still apply.  */
14428 char $ac_func ();
14429 /* The GNU C library defines this for functions which it implements
14430     to always fail with ENOSYS.  Some functions are actually named
14431     something starting with __ and the normal name is an alias.  */
14432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14433 choke me
14434 #else
14435 char (*f) () = $ac_func;
14436 #endif
14437 #ifdef __cplusplus
14438 }
14439 #endif
14440
14441 int
14442 main ()
14443 {
14444 return f != $ac_func;
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 rm -f conftest.$ac_objext conftest$ac_exeext
14450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14451   (eval $ac_link) 2>conftest.er1
14452   ac_status=$?
14453   grep -v '^ *+' conftest.er1 >conftest.err
14454   rm -f conftest.er1
14455   cat conftest.err >&5
14456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457   (exit $ac_status); } &&
14458          { ac_try='test -z "$ac_c_werror_flag"
14459                          || test ! -s conftest.err'
14460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461   (eval $ac_try) 2>&5
14462   ac_status=$?
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); }; } &&
14465          { ac_try='test -s conftest$ac_exeext'
14466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467   (eval $ac_try) 2>&5
14468   ac_status=$?
14469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470   (exit $ac_status); }; }; then
14471   eval "$as_ac_var=yes"
14472 else
14473   echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 eval "$as_ac_var=no"
14477 fi
14478 rm -f conftest.err conftest.$ac_objext \
14479       conftest$ac_exeext conftest.$ac_ext
14480 fi
14481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14483 if test `eval echo '${'$as_ac_var'}'` = yes; then
14484   cat >>confdefs.h <<_ACEOF
14485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14486 _ACEOF
14487
14488 fi
14489 done
14490
14491
14492 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14493
14494 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14495 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14496 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   ac_check_lib_save_LIBS=$LIBS
14500 LIBS="-lV3  $LIBS"
14501 cat >conftest.$ac_ext <<_ACEOF
14502 /* confdefs.h.  */
14503 _ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h.  */
14507
14508 /* Override any gcc2 internal prototype to avoid an error.  */
14509 #ifdef __cplusplus
14510 extern "C"
14511 #endif
14512 /* We use char because int might match the return type of a gcc2
14513    builtin and then its argument prototype would still apply.  */
14514 char sigset ();
14515 int
14516 main ()
14517 {
14518 sigset ();
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext conftest$ac_exeext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525   (eval $ac_link) 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag"
14533                          || test ! -s conftest.err'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; } &&
14539          { ac_try='test -s conftest$ac_exeext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_cv_lib_V3_sigset=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_cv_lib_V3_sigset=no
14551 fi
14552 rm -f conftest.err conftest.$ac_objext \
14553       conftest$ac_exeext conftest.$ac_ext
14554 LIBS=$ac_check_lib_save_LIBS
14555 fi
14556 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14557 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14558 if test $ac_cv_lib_V3_sigset = yes; then
14559   cat >>confdefs.h <<_ACEOF
14560 #define HAVE_LIBV3 1
14561 _ACEOF
14562
14563   LIBS="-lV3 $LIBS"
14564
14565 fi
14566
14567 fi
14568
14569 if test "$ac_cv_header_winsock_h" = yes; then
14570 echo "$as_me:$LINENO: checking for winsock" >&5
14571 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14572 if test "${ol_cv_winsock+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575   save_LIBS="$LIBS"
14576 for curlib in ws2_32 wsock32; do
14577         LIBS="$LIBS -l$curlib"
14578         cat >conftest.$ac_ext <<_ACEOF
14579 /* confdefs.h.  */
14580 _ACEOF
14581 cat confdefs.h >>conftest.$ac_ext
14582 cat >>conftest.$ac_ext <<_ACEOF
14583 /* end confdefs.h.  */
14584 #include <winsock.h>
14585
14586 int
14587 main ()
14588 {
14589
14590                         socket(0,0,0);
14591                         select(0,NULL,NULL,NULL,NULL);
14592                         closesocket(0);
14593                         gethostname(NULL,0);
14594
14595   ;
14596   return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14601   (eval $ac_link) 2>conftest.er1
14602   ac_status=$?
14603   grep -v '^ *+' conftest.er1 >conftest.err
14604   rm -f conftest.er1
14605   cat conftest.err >&5
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); } &&
14608          { ac_try='test -z "$ac_c_werror_flag"
14609                          || test ! -s conftest.err'
14610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611   (eval $ac_try) 2>&5
14612   ac_status=$?
14613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614   (exit $ac_status); }; } &&
14615          { ac_try='test -s conftest$ac_exeext'
14616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617   (eval $ac_try) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); }; }; then
14621   ol_cv_winsock=yes
14622 else
14623   echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14625
14626 ol_cv_winsock=no
14627 fi
14628 rm -f conftest.err conftest.$ac_objext \
14629       conftest$ac_exeext conftest.$ac_ext
14630
14631         if test $ol_cv_winsock = yes; then
14632
14633 cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_WINSOCK 1
14635 _ACEOF
14636
14637                 ac_cv_func_socket=yes
14638                 ac_cv_func_select=yes
14639                 ac_cv_func_closesocket=yes
14640                 ac_cv_func_gethostname=yes
14641                 if test $curlib = ws2_32; then
14642                         ol_cv_winsock=winsock2
14643
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_WINSOCK2 1
14646 _ACEOF
14647
14648                 fi
14649                 break
14650         fi
14651         LIBS="$save_LIBS"
14652 done
14653 fi
14654 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14655 echo "${ECHO_T}$ol_cv_winsock" >&6
14656 fi
14657
14658
14659 echo "$as_me:$LINENO: checking for socket" >&5
14660 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14661 if test "${ac_cv_func_socket+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14672 #define socket innocuous_socket
14673
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char socket (); below.
14676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677     <limits.h> exists even on freestanding compilers.  */
14678
14679 #ifdef __STDC__
14680 # include <limits.h>
14681 #else
14682 # include <assert.h>
14683 #endif
14684
14685 #undef socket
14686
14687 /* Override any gcc2 internal prototype to avoid an error.  */
14688 #ifdef __cplusplus
14689 extern "C"
14690 {
14691 #endif
14692 /* We use char because int might match the return type of a gcc2
14693    builtin and then its argument prototype would still apply.  */
14694 char socket ();
14695 /* The GNU C library defines this for functions which it implements
14696     to always fail with ENOSYS.  Some functions are actually named
14697     something starting with __ and the normal name is an alias.  */
14698 #if defined (__stub_socket) || defined (__stub___socket)
14699 choke me
14700 #else
14701 char (*f) () = socket;
14702 #endif
14703 #ifdef __cplusplus
14704 }
14705 #endif
14706
14707 int
14708 main ()
14709 {
14710 return f != socket;
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext conftest$ac_exeext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14717   (eval $ac_link) 2>conftest.er1
14718   ac_status=$?
14719   grep -v '^ *+' conftest.er1 >conftest.err
14720   rm -f conftest.er1
14721   cat conftest.err >&5
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -z "$ac_c_werror_flag"
14725                          || test ! -s conftest.err'
14726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727   (eval $ac_try) 2>&5
14728   ac_status=$?
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   (exit $ac_status); }; } &&
14731          { ac_try='test -s conftest$ac_exeext'
14732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733   (eval $ac_try) 2>&5
14734   ac_status=$?
14735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); }; }; then
14737   ac_cv_func_socket=yes
14738 else
14739   echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14741
14742 ac_cv_func_socket=no
14743 fi
14744 rm -f conftest.err conftest.$ac_objext \
14745       conftest$ac_exeext conftest.$ac_ext
14746 fi
14747 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14748 echo "${ECHO_T}$ac_cv_func_socket" >&6
14749 if test $ac_cv_func_socket = yes; then
14750   :
14751 else
14752
14753
14754 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14755 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14756 if test "${ac_cv_lib_socket_main+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   ac_check_lib_save_LIBS=$LIBS
14760 LIBS="-lsocket  $LIBS"
14761 cat >conftest.$ac_ext <<_ACEOF
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767
14768
14769 int
14770 main ()
14771 {
14772 main ();
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext conftest$ac_exeext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14779   (eval $ac_link) 2>conftest.er1
14780   ac_status=$?
14781   grep -v '^ *+' conftest.er1 >conftest.err
14782   rm -f conftest.er1
14783   cat conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } &&
14786          { ac_try='test -z "$ac_c_werror_flag"
14787                          || test ! -s conftest.err'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; } &&
14793          { ac_try='test -s conftest$ac_exeext'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   ac_cv_lib_socket_main=yes
14800 else
14801   echo "$as_me: failed program was:" >&5
14802 sed 's/^/| /' conftest.$ac_ext >&5
14803
14804 ac_cv_lib_socket_main=no
14805 fi
14806 rm -f conftest.err conftest.$ac_objext \
14807       conftest$ac_exeext conftest.$ac_ext
14808 LIBS=$ac_check_lib_save_LIBS
14809 fi
14810 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14811 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14812 if test $ac_cv_lib_socket_main = yes; then
14813   cat >>confdefs.h <<_ACEOF
14814 #define HAVE_LIBSOCKET 1
14815 _ACEOF
14816
14817   LIBS="-lsocket $LIBS"
14818
14819 fi
14820
14821
14822 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14823 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14824 if test "${ac_cv_lib_net_main+set}" = set; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   ac_check_lib_save_LIBS=$LIBS
14828 LIBS="-lnet  $LIBS"
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835
14836
14837 int
14838 main ()
14839 {
14840 main ();
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14847   (eval $ac_link) 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -z "$ac_c_werror_flag"
14855                          || test ! -s conftest.err'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; } &&
14861          { ac_try='test -s conftest$ac_exeext'
14862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863   (eval $ac_try) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_cv_lib_net_main=yes
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872 ac_cv_lib_net_main=no
14873 fi
14874 rm -f conftest.err conftest.$ac_objext \
14875       conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14877 fi
14878 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14879 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14880 if test $ac_cv_lib_net_main = yes; then
14881   cat >>confdefs.h <<_ACEOF
14882 #define HAVE_LIBNET 1
14883 _ACEOF
14884
14885   LIBS="-lnet $LIBS"
14886
14887 fi
14888
14889
14890 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14891 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14892 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   ac_check_lib_save_LIBS=$LIBS
14896 LIBS="-lnsl_s  $LIBS"
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903
14904
14905 int
14906 main ()
14907 {
14908 main ();
14909   ;
14910   return 0;
14911 }
14912 _ACEOF
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915   (eval $ac_link) 2>conftest.er1
14916   ac_status=$?
14917   grep -v '^ *+' conftest.er1 >conftest.err
14918   rm -f conftest.er1
14919   cat conftest.err >&5
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -z "$ac_c_werror_flag"
14923                          || test ! -s conftest.err'
14924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925   (eval $ac_try) 2>&5
14926   ac_status=$?
14927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928   (exit $ac_status); }; } &&
14929          { ac_try='test -s conftest$ac_exeext'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; }; then
14935   ac_cv_lib_nsl_s_main=yes
14936 else
14937   echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ac_cv_lib_nsl_s_main=no
14941 fi
14942 rm -f conftest.err conftest.$ac_objext \
14943       conftest$ac_exeext conftest.$ac_ext
14944 LIBS=$ac_check_lib_save_LIBS
14945 fi
14946 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14947 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14948 if test $ac_cv_lib_nsl_s_main = yes; then
14949   cat >>confdefs.h <<_ACEOF
14950 #define HAVE_LIBNSL_S 1
14951 _ACEOF
14952
14953   LIBS="-lnsl_s $LIBS"
14954
14955 fi
14956
14957
14958 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14959 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14960 if test "${ac_cv_lib_nsl_main+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963   ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lnsl  $LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971
14972
14973 int
14974 main ()
14975 {
14976 main ();
14977   ;
14978   return 0;
14979 }
14980 _ACEOF
14981 rm -f conftest.$ac_objext conftest$ac_exeext
14982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14983   (eval $ac_link) 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag"
14991                          || test ! -s conftest.err'
14992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993   (eval $ac_try) 2>&5
14994   ac_status=$?
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); }; } &&
14997          { ac_try='test -s conftest$ac_exeext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_lib_nsl_main=yes
15004 else
15005   echo "$as_me: failed program was:" >&5
15006 sed 's/^/| /' conftest.$ac_ext >&5
15007
15008 ac_cv_lib_nsl_main=no
15009 fi
15010 rm -f conftest.err conftest.$ac_objext \
15011       conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15013 fi
15014 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15015 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15016 if test $ac_cv_lib_nsl_main = yes; then
15017   cat >>confdefs.h <<_ACEOF
15018 #define HAVE_LIBNSL 1
15019 _ACEOF
15020
15021   LIBS="-lnsl $LIBS"
15022
15023 fi
15024
15025
15026 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15027 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15028 if test "${ac_cv_lib_inet_socket+set}" = set; then
15029   echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031   ac_check_lib_save_LIBS=$LIBS
15032 LIBS="-linet  $LIBS"
15033 cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039
15040 /* Override any gcc2 internal prototype to avoid an error.  */
15041 #ifdef __cplusplus
15042 extern "C"
15043 #endif
15044 /* We use char because int might match the return type of a gcc2
15045    builtin and then its argument prototype would still apply.  */
15046 char socket ();
15047 int
15048 main ()
15049 {
15050 socket ();
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057   (eval $ac_link) 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_c_werror_flag"
15065                          || test ! -s conftest.err'
15066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067   (eval $ac_try) 2>&5
15068   ac_status=$?
15069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070   (exit $ac_status); }; } &&
15071          { ac_try='test -s conftest$ac_exeext'
15072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073   (eval $ac_try) 2>&5
15074   ac_status=$?
15075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076   (exit $ac_status); }; }; then
15077   ac_cv_lib_inet_socket=yes
15078 else
15079   echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.$ac_ext >&5
15081
15082 ac_cv_lib_inet_socket=no
15083 fi
15084 rm -f conftest.err conftest.$ac_objext \
15085       conftest$ac_exeext conftest.$ac_ext
15086 LIBS=$ac_check_lib_save_LIBS
15087 fi
15088 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15089 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15090 if test $ac_cv_lib_inet_socket = yes; then
15091   cat >>confdefs.h <<_ACEOF
15092 #define HAVE_LIBINET 1
15093 _ACEOF
15094
15095   LIBS="-linet $LIBS"
15096
15097 fi
15098
15099
15100 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15101 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15102 if test "${ac_cv_lib_gen_main+set}" = set; then
15103   echo $ECHO_N "(cached) $ECHO_C" >&6
15104 else
15105   ac_check_lib_save_LIBS=$LIBS
15106 LIBS="-lgen  $LIBS"
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113
15114
15115 int
15116 main ()
15117 {
15118 main ();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125   (eval $ac_link) 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } &&
15132          { ac_try='test -z "$ac_c_werror_flag"
15133                          || test ! -s conftest.err'
15134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15135   (eval $ac_try) 2>&5
15136   ac_status=$?
15137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138   (exit $ac_status); }; } &&
15139          { ac_try='test -s conftest$ac_exeext'
15140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141   (eval $ac_try) 2>&5
15142   ac_status=$?
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); }; }; then
15145   ac_cv_lib_gen_main=yes
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150 ac_cv_lib_gen_main=no
15151 fi
15152 rm -f conftest.err conftest.$ac_objext \
15153       conftest$ac_exeext conftest.$ac_ext
15154 LIBS=$ac_check_lib_save_LIBS
15155 fi
15156 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15157 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15158 if test $ac_cv_lib_gen_main = yes; then
15159   cat >>confdefs.h <<_ACEOF
15160 #define HAVE_LIBGEN 1
15161 _ACEOF
15162
15163   LIBS="-lgen $LIBS"
15164
15165 fi
15166
15167
15168 fi
15169
15170
15171 echo "$as_me:$LINENO: checking for select" >&5
15172 echo $ECHO_N "checking for select... $ECHO_C" >&6
15173 if test "${ac_cv_func_select+set}" = set; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176   cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 /* Define select to an innocuous variant, in case <limits.h> declares select.
15183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15184 #define select innocuous_select
15185
15186 /* System header to define __stub macros and hopefully few prototypes,
15187     which can conflict with char select (); below.
15188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15189     <limits.h> exists even on freestanding compilers.  */
15190
15191 #ifdef __STDC__
15192 # include <limits.h>
15193 #else
15194 # include <assert.h>
15195 #endif
15196
15197 #undef select
15198
15199 /* Override any gcc2 internal prototype to avoid an error.  */
15200 #ifdef __cplusplus
15201 extern "C"
15202 {
15203 #endif
15204 /* We use char because int might match the return type of a gcc2
15205    builtin and then its argument prototype would still apply.  */
15206 char select ();
15207 /* The GNU C library defines this for functions which it implements
15208     to always fail with ENOSYS.  Some functions are actually named
15209     something starting with __ and the normal name is an alias.  */
15210 #if defined (__stub_select) || defined (__stub___select)
15211 choke me
15212 #else
15213 char (*f) () = select;
15214 #endif
15215 #ifdef __cplusplus
15216 }
15217 #endif
15218
15219 int
15220 main ()
15221 {
15222 return f != select;
15223   ;
15224   return 0;
15225 }
15226 _ACEOF
15227 rm -f conftest.$ac_objext conftest$ac_exeext
15228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15229   (eval $ac_link) 2>conftest.er1
15230   ac_status=$?
15231   grep -v '^ *+' conftest.er1 >conftest.err
15232   rm -f conftest.er1
15233   cat conftest.err >&5
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); } &&
15236          { ac_try='test -z "$ac_c_werror_flag"
15237                          || test ! -s conftest.err'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; } &&
15243          { ac_try='test -s conftest$ac_exeext'
15244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245   (eval $ac_try) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; }; then
15249   ac_cv_func_select=yes
15250 else
15251   echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254 ac_cv_func_select=no
15255 fi
15256 rm -f conftest.err conftest.$ac_objext \
15257       conftest$ac_exeext conftest.$ac_ext
15258 fi
15259 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15260 echo "${ECHO_T}$ac_cv_func_select" >&6
15261 if test $ac_cv_func_select = yes; then
15262   :
15263 else
15264   { { echo "$as_me:$LINENO: error: select() required." >&5
15265 echo "$as_me: error: select() required." >&2;}
15266    { (exit 1); exit 1; }; }
15267 fi
15268
15269
15270 if test "${ac_cv_header_winsock_h}" != yes; then
15271
15272
15273 for ac_header in sys/select.h sys/socket.h
15274 do
15275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15277   echo "$as_me:$LINENO: checking for $ac_header" >&5
15278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15280   echo $ECHO_N "(cached) $ECHO_C" >&6
15281 fi
15282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15284 else
15285   # Is the header compilable?
15286 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294 $ac_includes_default
15295 #include <$ac_header>
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15299   (eval $ac_compile) 2>conftest.er1
15300   ac_status=$?
15301   grep -v '^ *+' conftest.er1 >conftest.err
15302   rm -f conftest.er1
15303   cat conftest.err >&5
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } &&
15306          { ac_try='test -z "$ac_c_werror_flag"
15307                          || test ! -s conftest.err'
15308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15309   (eval $ac_try) 2>&5
15310   ac_status=$?
15311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312   (exit $ac_status); }; } &&
15313          { ac_try='test -s conftest.$ac_objext'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; }; then
15319   ac_header_compiler=yes
15320 else
15321   echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_header_compiler=no
15325 fi
15326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15327 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15328 echo "${ECHO_T}$ac_header_compiler" >&6
15329
15330 # Is the header present?
15331 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 #include <$ac_header>
15340 _ACEOF
15341 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15342   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } >/dev/null; then
15349   if test -s conftest.err; then
15350     ac_cpp_err=$ac_c_preproc_warn_flag
15351     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15352   else
15353     ac_cpp_err=
15354   fi
15355 else
15356   ac_cpp_err=yes
15357 fi
15358 if test -z "$ac_cpp_err"; then
15359   ac_header_preproc=yes
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364   ac_header_preproc=no
15365 fi
15366 rm -f conftest.err conftest.$ac_ext
15367 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15368 echo "${ECHO_T}$ac_header_preproc" >&6
15369
15370 # So?  What about this header?
15371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15372   yes:no: )
15373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15377     ac_header_preproc=yes
15378     ;;
15379   no:yes:* )
15380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15392     (
15393       cat <<\_ASBOX
15394 ## --------------------------------------------- ##
15395 ## Report this to <http://www.openldap.org/its/> ##
15396 ## --------------------------------------------- ##
15397 _ASBOX
15398     ) |
15399       sed "s/^/$as_me: WARNING:     /" >&2
15400     ;;
15401 esac
15402 echo "$as_me:$LINENO: checking for $ac_header" >&5
15403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15405   echo $ECHO_N "(cached) $ECHO_C" >&6
15406 else
15407   eval "$as_ac_Header=\$ac_header_preproc"
15408 fi
15409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15411
15412 fi
15413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15414   cat >>confdefs.h <<_ACEOF
15415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15416 _ACEOF
15417
15418 fi
15419
15420 done
15421
15422 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15423 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15424 if test "${ac_cv_func_select_args+set}" = set; then
15425   echo $ECHO_N "(cached) $ECHO_C" >&6
15426 else
15427   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15428  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15429   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15430    cat >conftest.$ac_ext <<_ACEOF
15431 /* confdefs.h.  */
15432 _ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h.  */
15436 $ac_includes_default
15437 #if HAVE_SYS_SELECT_H
15438 # include <sys/select.h>
15439 #endif
15440 #if HAVE_SYS_SOCKET_H
15441 # include <sys/socket.h>
15442 #endif
15443
15444 int
15445 main ()
15446 {
15447 extern int select ($ac_arg1,
15448                                             $ac_arg234, $ac_arg234, $ac_arg234,
15449                                             $ac_arg5);
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456   (eval $ac_compile) 2>conftest.er1
15457   ac_status=$?
15458   grep -v '^ *+' conftest.er1 >conftest.err
15459   rm -f conftest.er1
15460   cat conftest.err >&5
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } &&
15463          { ac_try='test -z "$ac_c_werror_flag"
15464                          || test ! -s conftest.err'
15465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466   (eval $ac_try) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; } &&
15470          { ac_try='test -s conftest.$ac_objext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481 fi
15482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15483   done
15484  done
15485 done
15486 # Provide a safe default value.
15487 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15488
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15491 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15492 ac_save_IFS=$IFS; IFS=','
15493 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15494 IFS=$ac_save_IFS
15495 shift
15496
15497 cat >>confdefs.h <<_ACEOF
15498 #define SELECT_TYPE_ARG1 $1
15499 _ACEOF
15500
15501
15502 cat >>confdefs.h <<_ACEOF
15503 #define SELECT_TYPE_ARG234 ($2)
15504 _ACEOF
15505
15506
15507 cat >>confdefs.h <<_ACEOF
15508 #define SELECT_TYPE_ARG5 ($3)
15509 _ACEOF
15510
15511 rm -f conftest*
15512
15513 fi
15514
15515
15516
15517 for ac_func in poll
15518 do
15519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15520 echo "$as_me:$LINENO: checking for $ac_func" >&5
15521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15522 if eval "test \"\${$as_ac_var+set}\" = set"; then
15523   echo $ECHO_N "(cached) $ECHO_C" >&6
15524 else
15525   cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15533 #define $ac_func innocuous_$ac_func
15534
15535 /* System header to define __stub macros and hopefully few prototypes,
15536     which can conflict with char $ac_func (); below.
15537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15538     <limits.h> exists even on freestanding compilers.  */
15539
15540 #ifdef __STDC__
15541 # include <limits.h>
15542 #else
15543 # include <assert.h>
15544 #endif
15545
15546 #undef $ac_func
15547
15548 /* Override any gcc2 internal prototype to avoid an error.  */
15549 #ifdef __cplusplus
15550 extern "C"
15551 {
15552 #endif
15553 /* We use char because int might match the return type of a gcc2
15554    builtin and then its argument prototype would still apply.  */
15555 char $ac_func ();
15556 /* The GNU C library defines this for functions which it implements
15557     to always fail with ENOSYS.  Some functions are actually named
15558     something starting with __ and the normal name is an alias.  */
15559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15560 choke me
15561 #else
15562 char (*f) () = $ac_func;
15563 #endif
15564 #ifdef __cplusplus
15565 }
15566 #endif
15567
15568 int
15569 main ()
15570 {
15571 return f != $ac_func;
15572   ;
15573   return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15578   (eval $ac_link) 2>conftest.er1
15579   ac_status=$?
15580   grep -v '^ *+' conftest.er1 >conftest.err
15581   rm -f conftest.er1
15582   cat conftest.err >&5
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); } &&
15585          { ac_try='test -z "$ac_c_werror_flag"
15586                          || test ! -s conftest.err'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; } &&
15592          { ac_try='test -s conftest$ac_exeext'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   eval "$as_ac_var=yes"
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 eval "$as_ac_var=no"
15604 fi
15605 rm -f conftest.err conftest.$ac_objext \
15606       conftest$ac_exeext conftest.$ac_ext
15607 fi
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15610 if test `eval echo '${'$as_ac_var'}'` = yes; then
15611   cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15613 _ACEOF
15614
15615 fi
15616 done
15617
15618 if test $ac_cv_func_poll = yes; then
15619
15620
15621 for ac_header in poll.h sys/poll.h
15622 do
15623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15625   echo "$as_me:$LINENO: checking for $ac_header" >&5
15626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 fi
15630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15632 else
15633   # Is the header compilable?
15634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 #include <$ac_header>
15644 _ACEOF
15645 rm -f conftest.$ac_objext
15646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15647   (eval $ac_compile) 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag"
15655                          || test ! -s conftest.err'
15656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15657   (eval $ac_try) 2>&5
15658   ac_status=$?
15659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660   (exit $ac_status); }; } &&
15661          { ac_try='test -s conftest.$ac_objext'
15662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663   (eval $ac_try) 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   ac_header_compiler=yes
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672 ac_header_compiler=no
15673 fi
15674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15676 echo "${ECHO_T}$ac_header_compiler" >&6
15677
15678 # Is the header present?
15679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 #include <$ac_header>
15688 _ACEOF
15689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15691   ac_status=$?
15692   grep -v '^ *+' conftest.er1 >conftest.err
15693   rm -f conftest.er1
15694   cat conftest.err >&5
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); } >/dev/null; then
15697   if test -s conftest.err; then
15698     ac_cpp_err=$ac_c_preproc_warn_flag
15699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15700   else
15701     ac_cpp_err=
15702   fi
15703 else
15704   ac_cpp_err=yes
15705 fi
15706 if test -z "$ac_cpp_err"; then
15707   ac_header_preproc=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712   ac_header_preproc=no
15713 fi
15714 rm -f conftest.err conftest.$ac_ext
15715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15716 echo "${ECHO_T}$ac_header_preproc" >&6
15717
15718 # So?  What about this header?
15719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15720   yes:no: )
15721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15725     ac_header_preproc=yes
15726     ;;
15727   no:yes:* )
15728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15740     (
15741       cat <<\_ASBOX
15742 ## --------------------------------------------- ##
15743 ## Report this to <http://www.openldap.org/its/> ##
15744 ## --------------------------------------------- ##
15745 _ASBOX
15746     ) |
15747       sed "s/^/$as_me: WARNING:     /" >&2
15748     ;;
15749 esac
15750 echo "$as_me:$LINENO: checking for $ac_header" >&5
15751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 else
15755   eval "$as_ac_Header=\$ac_header_preproc"
15756 fi
15757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15759
15760 fi
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762   cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 _ACEOF
15765
15766 fi
15767
15768 done
15769
15770 fi
15771
15772
15773 for ac_header in sys/epoll.h
15774 do
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15777   echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15780   echo $ECHO_N "(cached) $ECHO_C" >&6
15781 fi
15782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15784 else
15785   # Is the header compilable?
15786 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15788 cat >conftest.$ac_ext <<_ACEOF
15789 /* confdefs.h.  */
15790 _ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h.  */
15794 $ac_includes_default
15795 #include <$ac_header>
15796 _ACEOF
15797 rm -f conftest.$ac_objext
15798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15799   (eval $ac_compile) 2>conftest.er1
15800   ac_status=$?
15801   grep -v '^ *+' conftest.er1 >conftest.err
15802   rm -f conftest.er1
15803   cat conftest.err >&5
15804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805   (exit $ac_status); } &&
15806          { ac_try='test -z "$ac_c_werror_flag"
15807                          || test ! -s conftest.err'
15808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809   (eval $ac_try) 2>&5
15810   ac_status=$?
15811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812   (exit $ac_status); }; } &&
15813          { ac_try='test -s conftest.$ac_objext'
15814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815   (eval $ac_try) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); }; }; then
15819   ac_header_compiler=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824 ac_header_compiler=no
15825 fi
15826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15828 echo "${ECHO_T}$ac_header_compiler" >&6
15829
15830 # Is the header present?
15831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15833 cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 #include <$ac_header>
15840 _ACEOF
15841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15842   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15843   ac_status=$?
15844   grep -v '^ *+' conftest.er1 >conftest.err
15845   rm -f conftest.er1
15846   cat conftest.err >&5
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); } >/dev/null; then
15849   if test -s conftest.err; then
15850     ac_cpp_err=$ac_c_preproc_warn_flag
15851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15852   else
15853     ac_cpp_err=
15854   fi
15855 else
15856   ac_cpp_err=yes
15857 fi
15858 if test -z "$ac_cpp_err"; then
15859   ac_header_preproc=yes
15860 else
15861   echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864   ac_header_preproc=no
15865 fi
15866 rm -f conftest.err conftest.$ac_ext
15867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15868 echo "${ECHO_T}$ac_header_preproc" >&6
15869
15870 # So?  What about this header?
15871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15872   yes:no: )
15873     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15877     ac_header_preproc=yes
15878     ;;
15879   no:yes:* )
15880     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15882     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15883 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15884     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15886     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15887 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15890     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15892     (
15893       cat <<\_ASBOX
15894 ## --------------------------------------------- ##
15895 ## Report this to <http://www.openldap.org/its/> ##
15896 ## --------------------------------------------- ##
15897 _ASBOX
15898     ) |
15899       sed "s/^/$as_me: WARNING:     /" >&2
15900     ;;
15901 esac
15902 echo "$as_me:$LINENO: checking for $ac_header" >&5
15903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   eval "$as_ac_Header=\$ac_header_preproc"
15908 fi
15909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15911
15912 fi
15913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15914   cat >>confdefs.h <<_ACEOF
15915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15916 _ACEOF
15917
15918 fi
15919
15920 done
15921
15922 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15923         echo "$as_me:$LINENO: checking for epoll system call" >&5
15924 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15925         if test "$cross_compiling" = yes; then
15926   echo "$as_me:$LINENO: result: no" >&5
15927 echo "${ECHO_T}no" >&6
15928 else
15929   cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 int main(int argc, char **argv)
15936 {
15937         int epfd = epoll_create(256);
15938         exit (epfd == -1 ? 1 : 0);
15939 }
15940 _ACEOF
15941 rm -f conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943   (eval $ac_link) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948   (eval $ac_try) 2>&5
15949   ac_status=$?
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); }; }; then
15952   echo "$as_me:$LINENO: result: yes" >&5
15953 echo "${ECHO_T}yes" >&6
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_EPOLL 1
15957 _ACEOF
15958
15959 else
15960   echo "$as_me: program exited with status $ac_status" >&5
15961 echo "$as_me: failed program was:" >&5
15962 sed 's/^/| /' conftest.$ac_ext >&5
15963
15964 ( exit $ac_status )
15965 echo "$as_me:$LINENO: result: no" >&5
15966 echo "${ECHO_T}no" >&6
15967 fi
15968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15969 fi
15970 fi
15971
15972
15973 for ac_header in sys/devpoll.h
15974 do
15975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15977   echo "$as_me:$LINENO: checking for $ac_header" >&5
15978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15980   echo $ECHO_N "(cached) $ECHO_C" >&6
15981 fi
15982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15984 else
15985   # Is the header compilable?
15986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994 $ac_includes_default
15995 #include <$ac_header>
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999   (eval $ac_compile) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } &&
16006          { ac_try='test -z "$ac_c_werror_flag"
16007                          || test ! -s conftest.err'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   ac_header_compiler=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_header_compiler=no
16025 fi
16026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6
16029
16030 # Is the header present?
16031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16033 cat >conftest.$ac_ext <<_ACEOF
16034 /* confdefs.h.  */
16035 _ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h.  */
16039 #include <$ac_header>
16040 _ACEOF
16041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16042   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } >/dev/null; then
16049   if test -s conftest.err; then
16050     ac_cpp_err=$ac_c_preproc_warn_flag
16051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16052   else
16053     ac_cpp_err=
16054   fi
16055 else
16056   ac_cpp_err=yes
16057 fi
16058 if test -z "$ac_cpp_err"; then
16059   ac_header_preproc=yes
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064   ac_header_preproc=no
16065 fi
16066 rm -f conftest.err conftest.$ac_ext
16067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16068 echo "${ECHO_T}$ac_header_preproc" >&6
16069
16070 # So?  What about this header?
16071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16072   yes:no: )
16073     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16077     ac_header_preproc=yes
16078     ;;
16079   no:yes:* )
16080     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16082     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16083 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16084     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16086     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16087 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16088     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16090     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16092     (
16093       cat <<\_ASBOX
16094 ## --------------------------------------------- ##
16095 ## Report this to <http://www.openldap.org/its/> ##
16096 ## --------------------------------------------- ##
16097 _ASBOX
16098     ) |
16099       sed "s/^/$as_me: WARNING:     /" >&2
16100     ;;
16101 esac
16102 echo "$as_me:$LINENO: checking for $ac_header" >&5
16103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   eval "$as_ac_Header=\$ac_header_preproc"
16108 fi
16109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16111
16112 fi
16113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16114   cat >>confdefs.h <<_ACEOF
16115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16116 _ACEOF
16117
16118 fi
16119
16120 done
16121
16122 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16123                 -a "${ac_cv_header_poll_h}" = yes ; \
16124 then
16125         echo "$as_me:$LINENO: checking for /dev/poll" >&5
16126 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16127         if test "$cross_compiling" = yes; then
16128   echo "$as_me:$LINENO: result: no" >&5
16129 echo "${ECHO_T}no" >&6
16130 else
16131   cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 int main(int argc, char **argv)
16138 {
16139         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16140         exit (devpollfd == -1 ? 1 : 0);
16141 }
16142 _ACEOF
16143 rm -f conftest$ac_exeext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16145   (eval $ac_link) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150   (eval $ac_try) 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   echo "$as_me:$LINENO: result: yes" >&5
16155 echo "${ECHO_T}yes" >&6
16156
16157 cat >>confdefs.h <<\_ACEOF
16158 #define HAVE_DEVPOLL 1
16159 _ACEOF
16160
16161 else
16162   echo "$as_me: program exited with status $ac_status" >&5
16163 echo "$as_me: failed program was:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16165
16166 ( exit $ac_status )
16167 echo "$as_me:$LINENO: result: no" >&5
16168 echo "${ECHO_T}no" >&6
16169 fi
16170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16171 fi
16172 fi
16173
16174 # strerror checks
16175 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16176 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16177 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180
16181         cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187
16188 #include <stdio.h>
16189 #include <sys/types.h>
16190 #include <errno.h>
16191 #ifdef _WIN32
16192 #include <stdlib.h>
16193 #endif
16194 int
16195 main ()
16196 {
16197 char *c = (char *) *sys_errlist
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext
16203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16204   (eval $ac_compile) 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } &&
16211          { ac_try='test -z "$ac_c_werror_flag"
16212                          || test ! -s conftest.err'
16213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16214   (eval $ac_try) 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; } &&
16218          { ac_try='test -s conftest.$ac_objext'
16219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16220   (eval $ac_try) 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ol_cv_dcl_sys_errlist=yes
16225         ol_cv_have_sys_errlist=yes
16226 else
16227   echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16229
16230 ol_cv_dcl_sys_errlist=no
16231 fi
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16235 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16236 #
16237 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16238 if test $ol_cv_dcl_sys_errlist = no ; then
16239
16240 cat >>confdefs.h <<\_ACEOF
16241 #define DECL_SYS_ERRLIST 1
16242 _ACEOF
16243
16244
16245         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16246 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16247 if test "${ol_cv_have_sys_errlist+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250
16251                 cat >conftest.$ac_ext <<_ACEOF
16252 /* confdefs.h.  */
16253 _ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h.  */
16257 #include <errno.h>
16258 int
16259 main ()
16260 {
16261 char *c = (char *) *sys_errlist
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268   (eval $ac_link) 2>conftest.er1
16269   ac_status=$?
16270   grep -v '^ *+' conftest.er1 >conftest.err
16271   rm -f conftest.er1
16272   cat conftest.err >&5
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); } &&
16275          { ac_try='test -z "$ac_c_werror_flag"
16276                          || test ! -s conftest.err'
16277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278   (eval $ac_try) 2>&5
16279   ac_status=$?
16280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281   (exit $ac_status); }; } &&
16282          { ac_try='test -s conftest$ac_exeext'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ol_cv_have_sys_errlist=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293 ol_cv_have_sys_errlist=no
16294 fi
16295 rm -f conftest.err conftest.$ac_objext \
16296       conftest$ac_exeext conftest.$ac_ext
16297 fi
16298 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16299 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16300 fi
16301 if test $ol_cv_have_sys_errlist = yes ; then
16302
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE_SYS_ERRLIST 1
16305 _ACEOF
16306
16307 fi
16308
16309
16310 for ac_func in strerror strerror_r
16311 do
16312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16313 echo "$as_me:$LINENO: checking for $ac_func" >&5
16314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16315 if eval "test \"\${$as_ac_var+set}\" = set"; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16326 #define $ac_func innocuous_$ac_func
16327
16328 /* System header to define __stub macros and hopefully few prototypes,
16329     which can conflict with char $ac_func (); below.
16330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16331     <limits.h> exists even on freestanding compilers.  */
16332
16333 #ifdef __STDC__
16334 # include <limits.h>
16335 #else
16336 # include <assert.h>
16337 #endif
16338
16339 #undef $ac_func
16340
16341 /* Override any gcc2 internal prototype to avoid an error.  */
16342 #ifdef __cplusplus
16343 extern "C"
16344 {
16345 #endif
16346 /* We use char because int might match the return type of a gcc2
16347    builtin and then its argument prototype would still apply.  */
16348 char $ac_func ();
16349 /* The GNU C library defines this for functions which it implements
16350     to always fail with ENOSYS.  Some functions are actually named
16351     something starting with __ and the normal name is an alias.  */
16352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16353 choke me
16354 #else
16355 char (*f) () = $ac_func;
16356 #endif
16357 #ifdef __cplusplus
16358 }
16359 #endif
16360
16361 int
16362 main ()
16363 {
16364 return f != $ac_func;
16365   ;
16366   return 0;
16367 }
16368 _ACEOF
16369 rm -f conftest.$ac_objext conftest$ac_exeext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16371   (eval $ac_link) 2>conftest.er1
16372   ac_status=$?
16373   grep -v '^ *+' conftest.er1 >conftest.err
16374   rm -f conftest.er1
16375   cat conftest.err >&5
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); } &&
16378          { ac_try='test -z "$ac_c_werror_flag"
16379                          || test ! -s conftest.err'
16380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16381   (eval $ac_try) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; } &&
16385          { ac_try='test -s conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   eval "$as_ac_var=yes"
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 eval "$as_ac_var=no"
16397 fi
16398 rm -f conftest.err conftest.$ac_objext \
16399       conftest$ac_exeext conftest.$ac_ext
16400 fi
16401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16403 if test `eval echo '${'$as_ac_var'}'` = yes; then
16404   cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406 _ACEOF
16407
16408 fi
16409 done
16410
16411 ol_cv_func_strerror_r=no
16412 if test "${ac_cv_func_strerror_r}" = yes ; then
16413         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16414 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16415 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16416   echo $ECHO_N "(cached) $ECHO_C" >&6
16417 else
16418
16419         cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 #include <string.h>
16426 _ACEOF
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428   $EGREP "strerror_r" >/dev/null 2>&1; then
16429   ol_decl_strerror_r=yes
16430 else
16431   ol_decl_strerror_r=no
16432 fi
16433 rm -f conftest*
16434
16435         if test $ol_decl_strerror_r = yes ; then
16436                 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h.  */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h.  */
16442 #include <string.h>
16443 int
16444 main ()
16445 {
16446    /* from autoconf 2.59 */
16447                                 char buf[100];
16448                                 char x = *strerror_r (0, buf, sizeof buf);
16449                                 char *p = strerror_r (0, buf, sizeof buf);
16450
16451   ;
16452   return 0;
16453 }
16454 _ACEOF
16455 rm -f conftest.$ac_objext
16456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16457   (eval $ac_compile) 2>conftest.er1
16458   ac_status=$?
16459   grep -v '^ *+' conftest.er1 >conftest.err
16460   rm -f conftest.er1
16461   cat conftest.err >&5
16462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); } &&
16464          { ac_try='test -z "$ac_c_werror_flag"
16465                          || test ! -s conftest.err'
16466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467   (eval $ac_try) 2>&5
16468   ac_status=$?
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); }; } &&
16471          { ac_try='test -s conftest.$ac_objext'
16472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16473   (eval $ac_try) 2>&5
16474   ac_status=$?
16475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476   (exit $ac_status); }; }; then
16477   ol_cv_nonposix_strerror_r=yes
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482 ol_cv_nonposix_strerror_r=no
16483 fi
16484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16485         else
16486                 if test "$cross_compiling" = yes; then
16487   ol_cv_nonposix_strerror=no
16488 else
16489   cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495
16496                         main() {
16497                                 char buf[100];
16498                                 buf[0] = 0;
16499                                 strerror_r( 1, buf, sizeof buf );
16500                                 exit( buf[0] == 0 );
16501                         }
16502
16503 _ACEOF
16504 rm -f conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506   (eval $ac_link) 2>&5
16507   ac_status=$?
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511   (eval $ac_try) 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; }; then
16515   ol_cv_nonposix_strerror_r=yes
16516 else
16517   echo "$as_me: program exited with status $ac_status" >&5
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ( exit $ac_status )
16522 ol_cv_nonposix_strerror=no
16523 fi
16524 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16525 fi
16526         fi
16527
16528 fi
16529 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16530 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16531 if test $ol_cv_nonposix_strerror_r = yes ; then
16532
16533 cat >>confdefs.h <<\_ACEOF
16534 #define HAVE_NONPOSIX_STRERROR_R 1
16535 _ACEOF
16536
16537 fi
16538
16539 elif test "${ac_cv_func_strerror}" = no ; then
16540         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16541 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16542 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545
16546         cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h.  */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h.  */
16552
16553 #include <stdio.h>
16554 #include <sys/types.h>
16555 #include <errno.h>
16556 #ifdef _WIN32
16557 #include <stdlib.h>
16558 #endif
16559 int
16560 main ()
16561 {
16562 char *c = (char *) *sys_errlist
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16569   (eval $ac_compile) 2>conftest.er1
16570   ac_status=$?
16571   grep -v '^ *+' conftest.er1 >conftest.err
16572   rm -f conftest.er1
16573   cat conftest.err >&5
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); } &&
16576          { ac_try='test -z "$ac_c_werror_flag"
16577                          || test ! -s conftest.err'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; } &&
16583          { ac_try='test -s conftest.$ac_objext'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ol_cv_dcl_sys_errlist=yes
16590         ol_cv_have_sys_errlist=yes
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ol_cv_dcl_sys_errlist=no
16596 fi
16597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16598 fi
16599 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16600 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16601 #
16602 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16603 if test $ol_cv_dcl_sys_errlist = no ; then
16604
16605 cat >>confdefs.h <<\_ACEOF
16606 #define DECL_SYS_ERRLIST 1
16607 _ACEOF
16608
16609
16610         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16611 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16612 if test "${ol_cv_have_sys_errlist+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615
16616                 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h.  */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h.  */
16622 #include <errno.h>
16623 int
16624 main ()
16625 {
16626 char *c = (char *) *sys_errlist
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 rm -f conftest.$ac_objext conftest$ac_exeext
16632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16633   (eval $ac_link) 2>conftest.er1
16634   ac_status=$?
16635   grep -v '^ *+' conftest.er1 >conftest.err
16636   rm -f conftest.er1
16637   cat conftest.err >&5
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); } &&
16640          { ac_try='test -z "$ac_c_werror_flag"
16641                          || test ! -s conftest.err'
16642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643   (eval $ac_try) 2>&5
16644   ac_status=$?
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); }; } &&
16647          { ac_try='test -s conftest$ac_exeext'
16648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649   (eval $ac_try) 2>&5
16650   ac_status=$?
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); }; }; then
16653   ol_cv_have_sys_errlist=yes
16654 else
16655   echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ol_cv_have_sys_errlist=no
16659 fi
16660 rm -f conftest.err conftest.$ac_objext \
16661       conftest$ac_exeext conftest.$ac_ext
16662 fi
16663 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16664 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16665 fi
16666 if test $ol_cv_have_sys_errlist = yes ; then
16667
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_SYS_ERRLIST 1
16670 _ACEOF
16671
16672 fi
16673
16674 fi
16675
16676
16677
16678 for ac_header in regex.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 echo "$as_me:$LINENO: checking for $ac_header" >&5
16682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16684   echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686   cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h.  */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h.  */
16692 $ac_includes_default
16693 #ifdef HAVE_SYS_TYPES_H
16694 #include <sys/types.h>
16695 #endif
16696
16697
16698 #include <$ac_header>
16699 _ACEOF
16700 rm -f conftest.$ac_objext
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702   (eval $ac_compile) 2>conftest.er1
16703   ac_status=$?
16704   grep -v '^ *+' conftest.er1 >conftest.err
16705   rm -f conftest.er1
16706   cat conftest.err >&5
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); } &&
16709          { ac_try='test -z "$ac_c_werror_flag"
16710                          || test ! -s conftest.err'
16711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16712   (eval $ac_try) 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; } &&
16716          { ac_try='test -s conftest.$ac_objext'
16717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16718   (eval $ac_try) 2>&5
16719   ac_status=$?
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); }; }; then
16722   eval "$as_ac_Header=yes"
16723 else
16724   echo "$as_me: failed program was:" >&5
16725 sed 's/^/| /' conftest.$ac_ext >&5
16726
16727 eval "$as_ac_Header=no"
16728 fi
16729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16730 fi
16731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16734   cat >>confdefs.h <<_ACEOF
16735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16736 _ACEOF
16737
16738 fi
16739
16740 done
16741
16742
16743 if test "$ac_cv_header_regex_h" != yes ; then
16744         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16745 echo "$as_me: error: POSIX regex.h required." >&2;}
16746    { (exit 1); exit 1; }; }
16747 fi
16748 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16749 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16750 if test "${ac_cv_search_regfree+set}" = set; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   ac_func_search_save_LIBS=$LIBS
16754 ac_cv_search_regfree=no
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761
16762 /* Override any gcc2 internal prototype to avoid an error.  */
16763 #ifdef __cplusplus
16764 extern "C"
16765 #endif
16766 /* We use char because int might match the return type of a gcc2
16767    builtin and then its argument prototype would still apply.  */
16768 char regfree ();
16769 int
16770 main ()
16771 {
16772 regfree ();
16773   ;
16774   return 0;
16775 }
16776 _ACEOF
16777 rm -f conftest.$ac_objext conftest$ac_exeext
16778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16779   (eval $ac_link) 2>conftest.er1
16780   ac_status=$?
16781   grep -v '^ *+' conftest.er1 >conftest.err
16782   rm -f conftest.er1
16783   cat conftest.err >&5
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); } &&
16786          { ac_try='test -z "$ac_c_werror_flag"
16787                          || test ! -s conftest.err'
16788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789   (eval $ac_try) 2>&5
16790   ac_status=$?
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); }; } &&
16793          { ac_try='test -s conftest$ac_exeext'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_search_regfree="none required"
16800 else
16801   echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804 fi
16805 rm -f conftest.err conftest.$ac_objext \
16806       conftest$ac_exeext conftest.$ac_ext
16807 if test "$ac_cv_search_regfree" = no; then
16808   for ac_lib in regex gnuregex; do
16809     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16810     cat >conftest.$ac_ext <<_ACEOF
16811 /* confdefs.h.  */
16812 _ACEOF
16813 cat confdefs.h >>conftest.$ac_ext
16814 cat >>conftest.$ac_ext <<_ACEOF
16815 /* end confdefs.h.  */
16816
16817 /* Override any gcc2 internal prototype to avoid an error.  */
16818 #ifdef __cplusplus
16819 extern "C"
16820 #endif
16821 /* We use char because int might match the return type of a gcc2
16822    builtin and then its argument prototype would still apply.  */
16823 char regfree ();
16824 int
16825 main ()
16826 {
16827 regfree ();
16828   ;
16829   return 0;
16830 }
16831 _ACEOF
16832 rm -f conftest.$ac_objext conftest$ac_exeext
16833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16834   (eval $ac_link) 2>conftest.er1
16835   ac_status=$?
16836   grep -v '^ *+' conftest.er1 >conftest.err
16837   rm -f conftest.er1
16838   cat conftest.err >&5
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); } &&
16841          { ac_try='test -z "$ac_c_werror_flag"
16842                          || test ! -s conftest.err'
16843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844   (eval $ac_try) 2>&5
16845   ac_status=$?
16846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847   (exit $ac_status); }; } &&
16848          { ac_try='test -s conftest$ac_exeext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   ac_cv_search_regfree="-l$ac_lib"
16855 break
16856 else
16857   echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 fi
16861 rm -f conftest.err conftest.$ac_objext \
16862       conftest$ac_exeext conftest.$ac_ext
16863   done
16864 fi
16865 LIBS=$ac_func_search_save_LIBS
16866 fi
16867 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16868 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16869 if test "$ac_cv_search_regfree" != no; then
16870   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16871   :
16872 else
16873   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16874 echo "$as_me: error: POSIX regex required." >&2;}
16875    { (exit 1); exit 1; }; }
16876 fi
16877
16878
16879
16880 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16881 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16882 if test "${ol_cv_c_posix_regex+set}" = set; then
16883   echo $ECHO_N "(cached) $ECHO_C" >&6
16884 else
16885
16886         if test "$cross_compiling" = yes; then
16887   ol_cv_c_posix_regex=cross
16888 else
16889   cat >conftest.$ac_ext <<_ACEOF
16890 /* confdefs.h.  */
16891 _ACEOF
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h.  */
16895
16896 #include <sys/types.h>
16897 #include <regex.h>
16898 static char *pattern, *string;
16899 main()
16900 {
16901         int rc;
16902         regex_t re;
16903
16904         pattern = "^A";
16905
16906         if(regcomp(&re, pattern, 0)) {
16907                 return -1;
16908         }
16909
16910         string = "ALL MATCH";
16911
16912         rc = regexec(&re, string, 0, (void*)0, 0);
16913
16914         regfree(&re);
16915
16916         return rc;
16917 }
16918 _ACEOF
16919 rm -f conftest$ac_exeext
16920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16921   (eval $ac_link) 2>&5
16922   ac_status=$?
16923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16926   (eval $ac_try) 2>&5
16927   ac_status=$?
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); }; }; then
16930   ol_cv_c_posix_regex=yes
16931 else
16932   echo "$as_me: program exited with status $ac_status" >&5
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16935
16936 ( exit $ac_status )
16937 ol_cv_c_posix_regex=no
16938 fi
16939 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16940 fi
16941 fi
16942 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16943 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16944
16945 if test "$ol_cv_c_posix_regex" = no ; then
16946         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16947 echo "$as_me: error: broken POSIX regex!" >&2;}
16948    { (exit 1); exit 1; }; }
16949 fi
16950
16951
16952 have_uuid=no
16953
16954 for ac_header in sys/uuid.h
16955 do
16956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16958   echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961   echo $ECHO_N "(cached) $ECHO_C" >&6
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16965 else
16966   # Is the header compilable?
16967 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 $ac_includes_default
16976 #include <$ac_header>
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980   (eval $ac_compile) 2>conftest.er1
16981   ac_status=$?
16982   grep -v '^ *+' conftest.er1 >conftest.err
16983   rm -f conftest.er1
16984   cat conftest.err >&5
16985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986   (exit $ac_status); } &&
16987          { ac_try='test -z "$ac_c_werror_flag"
16988                          || test ! -s conftest.err'
16989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990   (eval $ac_try) 2>&5
16991   ac_status=$?
16992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993   (exit $ac_status); }; } &&
16994          { ac_try='test -s conftest.$ac_objext'
16995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996   (eval $ac_try) 2>&5
16997   ac_status=$?
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); }; }; then
17000   ac_header_compiler=yes
17001 else
17002   echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_header_compiler=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17009 echo "${ECHO_T}$ac_header_compiler" >&6
17010
17011 # Is the header present?
17012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 #include <$ac_header>
17021 _ACEOF
17022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17024   ac_status=$?
17025   grep -v '^ *+' conftest.er1 >conftest.err
17026   rm -f conftest.er1
17027   cat conftest.err >&5
17028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029   (exit $ac_status); } >/dev/null; then
17030   if test -s conftest.err; then
17031     ac_cpp_err=$ac_c_preproc_warn_flag
17032     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17033   else
17034     ac_cpp_err=
17035   fi
17036 else
17037   ac_cpp_err=yes
17038 fi
17039 if test -z "$ac_cpp_err"; then
17040   ac_header_preproc=yes
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045   ac_header_preproc=no
17046 fi
17047 rm -f conftest.err conftest.$ac_ext
17048 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17049 echo "${ECHO_T}$ac_header_preproc" >&6
17050
17051 # So?  What about this header?
17052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17053   yes:no: )
17054     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17058     ac_header_preproc=yes
17059     ;;
17060   no:yes:* )
17061     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17063     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17064 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17065     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17067     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17068 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17071     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17073     (
17074       cat <<\_ASBOX
17075 ## --------------------------------------------- ##
17076 ## Report this to <http://www.openldap.org/its/> ##
17077 ## --------------------------------------------- ##
17078 _ASBOX
17079     ) |
17080       sed "s/^/$as_me: WARNING:     /" >&2
17081     ;;
17082 esac
17083 echo "$as_me:$LINENO: checking for $ac_header" >&5
17084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   eval "$as_ac_Header=\$ac_header_preproc"
17089 fi
17090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17092
17093 fi
17094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17095   cat >>confdefs.h <<_ACEOF
17096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17097 _ACEOF
17098
17099 fi
17100
17101 done
17102
17103 if test $ac_cv_header_sys_uuid_h = yes ; then
17104         save_LIBS="$LIBS"
17105         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17106 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17107 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17108   echo $ECHO_N "(cached) $ECHO_C" >&6
17109 else
17110   ac_func_search_save_LIBS=$LIBS
17111 ac_cv_search_uuid_to_str=no
17112 cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118
17119 /* Override any gcc2 internal prototype to avoid an error.  */
17120 #ifdef __cplusplus
17121 extern "C"
17122 #endif
17123 /* We use char because int might match the return type of a gcc2
17124    builtin and then its argument prototype would still apply.  */
17125 char uuid_to_str ();
17126 int
17127 main ()
17128 {
17129 uuid_to_str ();
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136   (eval $ac_link) 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } &&
17143          { ac_try='test -z "$ac_c_werror_flag"
17144                          || test ! -s conftest.err'
17145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146   (eval $ac_try) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; } &&
17150          { ac_try='test -s conftest$ac_exeext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   ac_cv_search_uuid_to_str="none required"
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 fi
17162 rm -f conftest.err conftest.$ac_objext \
17163       conftest$ac_exeext conftest.$ac_ext
17164 if test "$ac_cv_search_uuid_to_str" = no; then
17165   for ac_lib in uuid; do
17166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17167     cat >conftest.$ac_ext <<_ACEOF
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173
17174 /* Override any gcc2 internal prototype to avoid an error.  */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 /* We use char because int might match the return type of a gcc2
17179    builtin and then its argument prototype would still apply.  */
17180 char uuid_to_str ();
17181 int
17182 main ()
17183 {
17184 uuid_to_str ();
17185   ;
17186   return 0;
17187 }
17188 _ACEOF
17189 rm -f conftest.$ac_objext conftest$ac_exeext
17190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17191   (eval $ac_link) 2>conftest.er1
17192   ac_status=$?
17193   grep -v '^ *+' conftest.er1 >conftest.err
17194   rm -f conftest.er1
17195   cat conftest.err >&5
17196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197   (exit $ac_status); } &&
17198          { ac_try='test -z "$ac_c_werror_flag"
17199                          || test ! -s conftest.err'
17200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201   (eval $ac_try) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); }; } &&
17205          { ac_try='test -s conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   ac_cv_search_uuid_to_str="-l$ac_lib"
17212 break
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 fi
17218 rm -f conftest.err conftest.$ac_objext \
17219       conftest$ac_exeext conftest.$ac_ext
17220   done
17221 fi
17222 LIBS=$ac_func_search_save_LIBS
17223 fi
17224 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17225 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17226 if test "$ac_cv_search_uuid_to_str" != no; then
17227   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17228   have_uuid=yes
17229 else
17230   :
17231 fi
17232
17233         LIBS="$save_LIBS"
17234
17235         if test have_uuid = yes ; then
17236
17237 cat >>confdefs.h <<\_ACEOF
17238 #define HAVE_UUID_TO_STR 1
17239 _ACEOF
17240
17241
17242                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17243                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17244         fi
17245 fi
17246
17247 if test $have_uuid = no ; then
17248         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17249 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17250         save_LIBS="$LIBS"
17251         LIBS="$LIBS -lrpcrt4"
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                 int __stdcall UuidCreate(void *);
17260                 int __stdcall UuidToStringA(void *,void **);
17261
17262 int
17263 main ()
17264 {
17265
17266                 UuidCreate(0);
17267                 UuidToStringA(0,0);
17268
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext conftest$ac_exeext
17274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17275   (eval $ac_link) 2>conftest.er1
17276   ac_status=$?
17277   grep -v '^ *+' conftest.er1 >conftest.err
17278   rm -f conftest.er1
17279   cat conftest.err >&5
17280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281   (exit $ac_status); } &&
17282          { ac_try='test -z "$ac_c_werror_flag"
17283                          || test ! -s conftest.err'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; } &&
17289          { ac_try='test -s conftest$ac_exeext'
17290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17291   (eval $ac_try) 2>&5
17292   ac_status=$?
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); }; }; then
17295   need_rpcrt=yes
17296 else
17297   echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17299
17300 need_rpcrt=no
17301 fi
17302 rm -f conftest.err conftest.$ac_objext \
17303       conftest$ac_exeext conftest.$ac_ext
17304         if test $need_rpcrt = yes; then
17305                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17306         fi
17307         LIBS="$save_LIBS"
17308         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17309 echo "${ECHO_T}$need_rpcrt" >&6
17310 fi
17311
17312 ol_cv_lib_resolver=no
17313 if test $ol_cv_lib_resolver = no ; then
17314         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17315 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17316 if test "${ol_cv_resolver_none+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319
17320         ol_RESOLVER_LIB=
17321         ol_LIBS=$LIBS
17322         LIBS="$ol_RESOLVER_LIB $LIBS"
17323
17324         cat >conftest.$ac_ext <<_ACEOF
17325 /* confdefs.h.  */
17326 _ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h.  */
17330
17331 #ifdef HAVE_SYS_TYPES_H
17332 #       include <sys/types.h>
17333 #endif
17334 #include <netinet/in.h>
17335 #ifdef HAVE_ARPA_NAMESER_H
17336 #       include <arpa/nameser.h>
17337 #endif
17338 #ifdef HAVE_RESOLV_H
17339 #       include <resolv.h>
17340 #endif
17341
17342 int
17343 main ()
17344 {
17345 {
17346         int len, status;
17347         char *request = NULL;
17348         unsigned char reply[64*1024];
17349         unsigned char host[64*1024];
17350         unsigned char *p;
17351
17352 #ifdef NS_HFIXEDSZ
17353         /* Bind 8/9 interface */
17354         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17355 #else
17356         /* Bind 4 interface */
17357 # ifndef T_SRV
17358 #  define T_SRV 33
17359 # endif
17360         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17361 #endif
17362         p = reply;
17363 #ifdef NS_HFIXEDSZ
17364         /* Bind 8/9 interface */
17365         p += NS_HFIXEDSZ;
17366 #elif defined(HFIXEDSZ)
17367         /* Bind 4 interface w/ HFIXEDSZ */
17368         p += HFIXEDSZ;
17369 #else
17370         /* Bind 4 interface w/o HFIXEDSZ */
17371         p += sizeof(HEADER);
17372 #endif
17373         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17374 }
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381   (eval $ac_link) 2>conftest.er1
17382   ac_status=$?
17383   grep -v '^ *+' conftest.er1 >conftest.err
17384   rm -f conftest.er1
17385   cat conftest.err >&5
17386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387   (exit $ac_status); } &&
17388          { ac_try='test -z "$ac_c_werror_flag"
17389                          || test ! -s conftest.err'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; } &&
17395          { ac_try='test -s conftest$ac_exeext'
17396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397   (eval $ac_try) 2>&5
17398   ac_status=$?
17399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400   (exit $ac_status); }; }; then
17401   ol_cv_resolver_none=yes
17402 else
17403   echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 ol_cv_resolver_none=no
17407 fi
17408 rm -f conftest.err conftest.$ac_objext \
17409       conftest$ac_exeext conftest.$ac_ext
17410
17411         LIBS="$ol_LIBS"
17412
17413 fi
17414 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17415 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17416
17417         if test $ol_cv_resolver_none = yes ; then
17418                 ol_cv_lib_resolver=yes
17419         fi
17420 fi
17421
17422 if test $ol_cv_lib_resolver = no ; then
17423         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17424 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17425 if test "${ol_cv_resolver_resolv+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428
17429         ol_RESOLVER_LIB=-lresolv
17430         ol_LIBS=$LIBS
17431         LIBS="$ol_RESOLVER_LIB $LIBS"
17432
17433         cat >conftest.$ac_ext <<_ACEOF
17434 /* confdefs.h.  */
17435 _ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h.  */
17439
17440 #ifdef HAVE_SYS_TYPES_H
17441 #       include <sys/types.h>
17442 #endif
17443 #include <netinet/in.h>
17444 #ifdef HAVE_ARPA_NAMESER_H
17445 #       include <arpa/nameser.h>
17446 #endif
17447 #ifdef HAVE_RESOLV_H
17448 #       include <resolv.h>
17449 #endif
17450
17451 int
17452 main ()
17453 {
17454 {
17455         int len, status;
17456         char *request = NULL;
17457         unsigned char reply[64*1024];
17458         unsigned char host[64*1024];
17459         unsigned char *p;
17460
17461 #ifdef NS_HFIXEDSZ
17462         /* Bind 8/9 interface */
17463         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17464 #else
17465         /* Bind 4 interface */
17466 # ifndef T_SRV
17467 #  define T_SRV 33
17468 # endif
17469         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17470 #endif
17471         p = reply;
17472 #ifdef NS_HFIXEDSZ
17473         /* Bind 8/9 interface */
17474         p += NS_HFIXEDSZ;
17475 #elif defined(HFIXEDSZ)
17476         /* Bind 4 interface w/ HFIXEDSZ */
17477         p += HFIXEDSZ;
17478 #else
17479         /* Bind 4 interface w/o HFIXEDSZ */
17480         p += sizeof(HEADER);
17481 #endif
17482         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17483 }
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17490   (eval $ac_link) 2>conftest.er1
17491   ac_status=$?
17492   grep -v '^ *+' conftest.er1 >conftest.err
17493   rm -f conftest.er1
17494   cat conftest.err >&5
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); } &&
17497          { ac_try='test -z "$ac_c_werror_flag"
17498                          || test ! -s conftest.err'
17499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500   (eval $ac_try) 2>&5
17501   ac_status=$?
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); }; } &&
17504          { ac_try='test -s conftest$ac_exeext'
17505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506   (eval $ac_try) 2>&5
17507   ac_status=$?
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); }; }; then
17510   ol_cv_resolver_resolv=yes
17511 else
17512   echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515 ol_cv_resolver_resolv=no
17516 fi
17517 rm -f conftest.err conftest.$ac_objext \
17518       conftest$ac_exeext conftest.$ac_ext
17519
17520         LIBS="$ol_LIBS"
17521
17522 fi
17523 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17524 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17525
17526         if test $ol_cv_resolver_resolv = yes ; then
17527                 ol_cv_lib_resolver=-lresolv
17528         fi
17529 fi
17530
17531 if test $ol_cv_lib_resolver = no ; then
17532         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17533 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17534 if test "${ol_cv_resolver_bind+set}" = set; then
17535   echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537
17538         ol_RESOLVER_LIB=-lbind
17539         ol_LIBS=$LIBS
17540         LIBS="$ol_RESOLVER_LIB $LIBS"
17541
17542         cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h.  */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h.  */
17548
17549 #ifdef HAVE_SYS_TYPES_H
17550 #       include <sys/types.h>
17551 #endif
17552 #include <netinet/in.h>
17553 #ifdef HAVE_ARPA_NAMESER_H
17554 #       include <arpa/nameser.h>
17555 #endif
17556 #ifdef HAVE_RESOLV_H
17557 #       include <resolv.h>
17558 #endif
17559
17560 int
17561 main ()
17562 {
17563 {
17564         int len, status;
17565         char *request = NULL;
17566         unsigned char reply[64*1024];
17567         unsigned char host[64*1024];
17568         unsigned char *p;
17569
17570 #ifdef NS_HFIXEDSZ
17571         /* Bind 8/9 interface */
17572         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17573 #else
17574         /* Bind 4 interface */
17575 # ifndef T_SRV
17576 #  define T_SRV 33
17577 # endif
17578         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17579 #endif
17580         p = reply;
17581 #ifdef NS_HFIXEDSZ
17582         /* Bind 8/9 interface */
17583         p += NS_HFIXEDSZ;
17584 #elif defined(HFIXEDSZ)
17585         /* Bind 4 interface w/ HFIXEDSZ */
17586         p += HFIXEDSZ;
17587 #else
17588         /* Bind 4 interface w/o HFIXEDSZ */
17589         p += sizeof(HEADER);
17590 #endif
17591         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17592 }
17593   ;
17594   return 0;
17595 }
17596 _ACEOF
17597 rm -f conftest.$ac_objext conftest$ac_exeext
17598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17599   (eval $ac_link) 2>conftest.er1
17600   ac_status=$?
17601   grep -v '^ *+' conftest.er1 >conftest.err
17602   rm -f conftest.er1
17603   cat conftest.err >&5
17604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605   (exit $ac_status); } &&
17606          { ac_try='test -z "$ac_c_werror_flag"
17607                          || test ! -s conftest.err'
17608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609   (eval $ac_try) 2>&5
17610   ac_status=$?
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); }; } &&
17613          { ac_try='test -s conftest$ac_exeext'
17614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615   (eval $ac_try) 2>&5
17616   ac_status=$?
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); }; }; then
17619   ol_cv_resolver_bind=yes
17620 else
17621   echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17623
17624 ol_cv_resolver_bind=no
17625 fi
17626 rm -f conftest.err conftest.$ac_objext \
17627       conftest$ac_exeext conftest.$ac_ext
17628
17629         LIBS="$ol_LIBS"
17630
17631 fi
17632 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17633 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17634
17635         if test $ol_cv_resolver_bind = yes ; then
17636                 ol_cv_lib_resolver=-lbind
17637         fi
17638 fi
17639
17640
17641
17642 ol_link_dnssrv=no
17643 if test "$ol_cv_lib_resolver" != no ; then
17644
17645 cat >>confdefs.h <<\_ACEOF
17646 #define HAVE_RES_QUERY 1
17647 _ACEOF
17648
17649
17650         if test "$ol_enable_dnssrv" != no ; then
17651                 ol_link_dnssrv=yes
17652         fi
17653
17654         if test "$ol_cv_lib_resolver" != yes ; then
17655                 LIBS="$ol_cv_lib_resolver $LIBS"
17656         fi
17657 fi
17658
17659 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17660         if test "$ol_link_dnssrv" = no ; then
17661                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17662 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17663    { (exit 1); exit 1; }; }
17664         fi
17665 else
17666         ol_enable_dnssrv=no
17667 fi
17668
17669
17670 for ac_func in hstrerror
17671 do
17672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17673 echo "$as_me:$LINENO: checking for $ac_func" >&5
17674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17675 if eval "test \"\${$as_ac_var+set}\" = set"; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h.  */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h.  */
17684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17686 #define $ac_func innocuous_$ac_func
17687
17688 /* System header to define __stub macros and hopefully few prototypes,
17689     which can conflict with char $ac_func (); below.
17690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17691     <limits.h> exists even on freestanding compilers.  */
17692
17693 #ifdef __STDC__
17694 # include <limits.h>
17695 #else
17696 # include <assert.h>
17697 #endif
17698
17699 #undef $ac_func
17700
17701 /* Override any gcc2 internal prototype to avoid an error.  */
17702 #ifdef __cplusplus
17703 extern "C"
17704 {
17705 #endif
17706 /* We use char because int might match the return type of a gcc2
17707    builtin and then its argument prototype would still apply.  */
17708 char $ac_func ();
17709 /* The GNU C library defines this for functions which it implements
17710     to always fail with ENOSYS.  Some functions are actually named
17711     something starting with __ and the normal name is an alias.  */
17712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17713 choke me
17714 #else
17715 char (*f) () = $ac_func;
17716 #endif
17717 #ifdef __cplusplus
17718 }
17719 #endif
17720
17721 int
17722 main ()
17723 {
17724 return f != $ac_func;
17725   ;
17726   return 0;
17727 }
17728 _ACEOF
17729 rm -f conftest.$ac_objext conftest$ac_exeext
17730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17731   (eval $ac_link) 2>conftest.er1
17732   ac_status=$?
17733   grep -v '^ *+' conftest.er1 >conftest.err
17734   rm -f conftest.er1
17735   cat conftest.err >&5
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); } &&
17738          { ac_try='test -z "$ac_c_werror_flag"
17739                          || test ! -s conftest.err'
17740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741   (eval $ac_try) 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; } &&
17745          { ac_try='test -s conftest$ac_exeext'
17746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747   (eval $ac_try) 2>&5
17748   ac_status=$?
17749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750   (exit $ac_status); }; }; then
17751   eval "$as_ac_var=yes"
17752 else
17753   echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17755
17756 eval "$as_ac_var=no"
17757 fi
17758 rm -f conftest.err conftest.$ac_objext \
17759       conftest$ac_exeext conftest.$ac_ext
17760 fi
17761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17763 if test `eval echo '${'$as_ac_var'}'` = yes; then
17764   cat >>confdefs.h <<_ACEOF
17765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17766 _ACEOF
17767
17768 fi
17769 done
17770
17771
17772
17773
17774
17775
17776 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17777 do
17778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779 echo "$as_me:$LINENO: checking for $ac_func" >&5
17780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17781 if eval "test \"\${$as_ac_var+set}\" = set"; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   cat >conftest.$ac_ext <<_ACEOF
17785 /* confdefs.h.  */
17786 _ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h.  */
17790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17792 #define $ac_func innocuous_$ac_func
17793
17794 /* System header to define __stub macros and hopefully few prototypes,
17795     which can conflict with char $ac_func (); below.
17796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797     <limits.h> exists even on freestanding compilers.  */
17798
17799 #ifdef __STDC__
17800 # include <limits.h>
17801 #else
17802 # include <assert.h>
17803 #endif
17804
17805 #undef $ac_func
17806
17807 /* Override any gcc2 internal prototype to avoid an error.  */
17808 #ifdef __cplusplus
17809 extern "C"
17810 {
17811 #endif
17812 /* We use char because int might match the return type of a gcc2
17813    builtin and then its argument prototype would still apply.  */
17814 char $ac_func ();
17815 /* The GNU C library defines this for functions which it implements
17816     to always fail with ENOSYS.  Some functions are actually named
17817     something starting with __ and the normal name is an alias.  */
17818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17819 choke me
17820 #else
17821 char (*f) () = $ac_func;
17822 #endif
17823 #ifdef __cplusplus
17824 }
17825 #endif
17826
17827 int
17828 main ()
17829 {
17830 return f != $ac_func;
17831   ;
17832   return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext conftest$ac_exeext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17837   (eval $ac_link) 2>conftest.er1
17838   ac_status=$?
17839   grep -v '^ *+' conftest.er1 >conftest.err
17840   rm -f conftest.er1
17841   cat conftest.err >&5
17842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843   (exit $ac_status); } &&
17844          { ac_try='test -z "$ac_c_werror_flag"
17845                          || test ! -s conftest.err'
17846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847   (eval $ac_try) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); }; } &&
17851          { ac_try='test -s conftest$ac_exeext'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   eval "$as_ac_var=yes"
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 eval "$as_ac_var=no"
17863 fi
17864 rm -f conftest.err conftest.$ac_objext \
17865       conftest$ac_exeext conftest.$ac_ext
17866 fi
17867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17869 if test `eval echo '${'$as_ac_var'}'` = yes; then
17870   cat >>confdefs.h <<_ACEOF
17871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872 _ACEOF
17873
17874 fi
17875 done
17876
17877
17878 ol_link_ipv6=no
17879 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17880         if test $ol_enable_ipv6 = yes ; then
17881                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17882 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17883    { (exit 1); exit 1; }; }
17884         fi
17885 elif test $ol_enable_ipv6 != no ; then
17886         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17887 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17888 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891
17892                 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898
17899 #                       include <netinet/in.h>
17900 #                       ifdef INET6_ADDRSTRLEN
17901                                 __has_inet6_addrstrlen__;
17902 #                       endif
17903
17904 _ACEOF
17905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17906   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17907   ol_cv_inet6_addrstrlen=yes
17908 else
17909   ol_cv_inet6_addrstrlen=no
17910 fi
17911 rm -f conftest*
17912
17913 fi
17914 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17915 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17916
17917
17918         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17919 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17920 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17921   echo $ECHO_N "(cached) $ECHO_C" >&6
17922 else
17923
17924                 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h.  */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h.  */
17930
17931 #include <sys/types.h>
17932 #include <sys/socket.h>
17933
17934 int
17935 main ()
17936 {
17937
17938                         struct sockaddr_storage ss;
17939
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest.$ac_objext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17946   (eval $ac_compile) 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } &&
17953          { ac_try='test -z "$ac_c_werror_flag"
17954                          || test ! -s conftest.err'
17955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956   (eval $ac_try) 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; } &&
17960          { ac_try='test -s conftest.$ac_objext'
17961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17962   (eval $ac_try) 2>&5
17963   ac_status=$?
17964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); }; }; then
17966   ol_cv_struct_sockaddr_storage=yes
17967 else
17968   echo "$as_me: failed program was:" >&5
17969 sed 's/^/| /' conftest.$ac_ext >&5
17970
17971 ol_cv_struct_sockaddr_storage=no
17972 fi
17973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17974 fi
17975 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17976 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17977
17978         if test $ol_cv_inet6_addrstrlen = yes &&
17979            test $ol_cv_struct_sockaddr_storage = yes ; then
17980                 ol_link_ipv6=yes
17981         elif test $ol_enable_ipv6 = yes &&
17982              test $ol_cv_inet6_addrstrlen = no ; then
17983                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17984 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17985    { (exit 1); exit 1; }; }
17986         elif test $ol_enable_ipv6 = yes &&
17987              test $ol_cv_struct_sockaddr_storage = no ; then
17988                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17989 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17990    { (exit 1); exit 1; }; }
17991         fi
17992 fi
17993
17994 if test $ol_enable_local != no ; then
17995
17996 for ac_header in sys/un.h
17997 do
17998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18000   echo "$as_me:$LINENO: checking for $ac_header" >&5
18001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 fi
18005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18007 else
18008   # Is the header compilable?
18009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h.  */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h.  */
18017 $ac_includes_default
18018 #include <$ac_header>
18019 _ACEOF
18020 rm -f conftest.$ac_objext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18022   (eval $ac_compile) 2>conftest.er1
18023   ac_status=$?
18024   grep -v '^ *+' conftest.er1 >conftest.err
18025   rm -f conftest.er1
18026   cat conftest.err >&5
18027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028   (exit $ac_status); } &&
18029          { ac_try='test -z "$ac_c_werror_flag"
18030                          || test ! -s conftest.err'
18031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032   (eval $ac_try) 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest.$ac_objext'
18037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038   (eval $ac_try) 2>&5
18039   ac_status=$?
18040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041   (exit $ac_status); }; }; then
18042   ac_header_compiler=yes
18043 else
18044   echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18046
18047 ac_header_compiler=no
18048 fi
18049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18051 echo "${ECHO_T}$ac_header_compiler" >&6
18052
18053 # Is the header present?
18054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062 #include <$ac_header>
18063 _ACEOF
18064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18066   ac_status=$?
18067   grep -v '^ *+' conftest.er1 >conftest.err
18068   rm -f conftest.er1
18069   cat conftest.err >&5
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } >/dev/null; then
18072   if test -s conftest.err; then
18073     ac_cpp_err=$ac_c_preproc_warn_flag
18074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18075   else
18076     ac_cpp_err=
18077   fi
18078 else
18079   ac_cpp_err=yes
18080 fi
18081 if test -z "$ac_cpp_err"; then
18082   ac_header_preproc=yes
18083 else
18084   echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087   ac_header_preproc=no
18088 fi
18089 rm -f conftest.err conftest.$ac_ext
18090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18091 echo "${ECHO_T}$ac_header_preproc" >&6
18092
18093 # So?  What about this header?
18094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18095   yes:no: )
18096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18100     ac_header_preproc=yes
18101     ;;
18102   no:yes:* )
18103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18115     (
18116       cat <<\_ASBOX
18117 ## --------------------------------------------- ##
18118 ## Report this to <http://www.openldap.org/its/> ##
18119 ## --------------------------------------------- ##
18120 _ASBOX
18121     ) |
18122       sed "s/^/$as_me: WARNING:     /" >&2
18123     ;;
18124 esac
18125 echo "$as_me:$LINENO: checking for $ac_header" >&5
18126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18128   echo $ECHO_N "(cached) $ECHO_C" >&6
18129 else
18130   eval "$as_ac_Header=\$ac_header_preproc"
18131 fi
18132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18134
18135 fi
18136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18137   cat >>confdefs.h <<_ACEOF
18138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18139 _ACEOF
18140
18141 fi
18142
18143 done
18144
18145
18146         if test $ol_enable_local = auto ; then
18147                 ol_enable_local=$ac_cv_header_sys_un_h
18148         elif test $ac_cv_header_sys_un_h = no ; then
18149                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18150 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18151    { (exit 1); exit 1; }; }
18152         fi
18153 fi
18154
18155
18156 if test $ol_with_tls = yes ; then
18157         ol_with_tls=auto
18158 fi
18159
18160 ol_link_tls=no
18161 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
18162
18163 for ac_header in openssl/ssl.h
18164 do
18165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18167   echo "$as_me:$LINENO: checking for $ac_header" >&5
18168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 fi
18172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18174 else
18175   # Is the header compilable?
18176 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18177 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18178 cat >conftest.$ac_ext <<_ACEOF
18179 /* confdefs.h.  */
18180 _ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h.  */
18184 $ac_includes_default
18185 #include <$ac_header>
18186 _ACEOF
18187 rm -f conftest.$ac_objext
18188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18189   (eval $ac_compile) 2>conftest.er1
18190   ac_status=$?
18191   grep -v '^ *+' conftest.er1 >conftest.err
18192   rm -f conftest.er1
18193   cat conftest.err >&5
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); } &&
18196          { ac_try='test -z "$ac_c_werror_flag"
18197                          || test ! -s conftest.err'
18198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18199   (eval $ac_try) 2>&5
18200   ac_status=$?
18201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202   (exit $ac_status); }; } &&
18203          { ac_try='test -s conftest.$ac_objext'
18204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18205   (eval $ac_try) 2>&5
18206   ac_status=$?
18207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18208   (exit $ac_status); }; }; then
18209   ac_header_compiler=yes
18210 else
18211   echo "$as_me: failed program was:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18213
18214 ac_header_compiler=no
18215 fi
18216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18217 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18218 echo "${ECHO_T}$ac_header_compiler" >&6
18219
18220 # Is the header present?
18221 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18223 cat >conftest.$ac_ext <<_ACEOF
18224 /* confdefs.h.  */
18225 _ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h.  */
18229 #include <$ac_header>
18230 _ACEOF
18231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18232   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18233   ac_status=$?
18234   grep -v '^ *+' conftest.er1 >conftest.err
18235   rm -f conftest.er1
18236   cat conftest.err >&5
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); } >/dev/null; then
18239   if test -s conftest.err; then
18240     ac_cpp_err=$ac_c_preproc_warn_flag
18241     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18242   else
18243     ac_cpp_err=
18244   fi
18245 else
18246   ac_cpp_err=yes
18247 fi
18248 if test -z "$ac_cpp_err"; then
18249   ac_header_preproc=yes
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254   ac_header_preproc=no
18255 fi
18256 rm -f conftest.err conftest.$ac_ext
18257 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18258 echo "${ECHO_T}$ac_header_preproc" >&6
18259
18260 # So?  What about this header?
18261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18262   yes:no: )
18263     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18264 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18265     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18266 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18267     ac_header_preproc=yes
18268     ;;
18269   no:yes:* )
18270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18272     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18273 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18274     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18275 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18276     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18277 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18279 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18280     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18281 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18282     (
18283       cat <<\_ASBOX
18284 ## --------------------------------------------- ##
18285 ## Report this to <http://www.openldap.org/its/> ##
18286 ## --------------------------------------------- ##
18287 _ASBOX
18288     ) |
18289       sed "s/^/$as_me: WARNING:     /" >&2
18290     ;;
18291 esac
18292 echo "$as_me:$LINENO: checking for $ac_header" >&5
18293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18295   echo $ECHO_N "(cached) $ECHO_C" >&6
18296 else
18297   eval "$as_ac_Header=\$ac_header_preproc"
18298 fi
18299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18301
18302 fi
18303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18304   cat >>confdefs.h <<_ACEOF
18305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18306 _ACEOF
18307
18308 fi
18309
18310 done
18311
18312
18313         if test $ac_cv_header_openssl_ssl_h = yes ; then
18314                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
18315 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
18316 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
18317   echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319   ac_check_lib_save_LIBS=$LIBS
18320 LIBS="-lssl -lcrypto $LIBS"
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h.  */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h.  */
18327
18328 /* Override any gcc2 internal prototype to avoid an error.  */
18329 #ifdef __cplusplus
18330 extern "C"
18331 #endif
18332 /* We use char because int might match the return type of a gcc2
18333    builtin and then its argument prototype would still apply.  */
18334 char SSL_library_init ();
18335 int
18336 main ()
18337 {
18338 SSL_library_init ();
18339   ;
18340   return 0;
18341 }
18342 _ACEOF
18343 rm -f conftest.$ac_objext conftest$ac_exeext
18344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18345   (eval $ac_link) 2>conftest.er1
18346   ac_status=$?
18347   grep -v '^ *+' conftest.er1 >conftest.err
18348   rm -f conftest.er1
18349   cat conftest.err >&5
18350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351   (exit $ac_status); } &&
18352          { ac_try='test -z "$ac_c_werror_flag"
18353                          || test ! -s conftest.err'
18354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355   (eval $ac_try) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); }; } &&
18359          { ac_try='test -s conftest$ac_exeext'
18360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361   (eval $ac_try) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; }; then
18365   ac_cv_lib_ssl_SSL_library_init=yes
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_cv_lib_ssl_SSL_library_init=no
18371 fi
18372 rm -f conftest.err conftest.$ac_objext \
18373       conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18375 fi
18376 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
18377 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
18378 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
18379   have_openssl=yes
18380                         need_rsaref=no
18381 else
18382   have_openssl=no
18383 fi
18384
18385
18386                 if test $have_openssl = no ; then
18387                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
18388 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
18389 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400
18401 /* Override any gcc2 internal prototype to avoid an error.  */
18402 #ifdef __cplusplus
18403 extern "C"
18404 #endif
18405 /* We use char because int might match the return type of a gcc2
18406    builtin and then its argument prototype would still apply.  */
18407 char ssl3_accept ();
18408 int
18409 main ()
18410 {
18411 ssl3_accept ();
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext conftest$ac_exeext
18417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18418   (eval $ac_link) 2>conftest.er1
18419   ac_status=$?
18420   grep -v '^ *+' conftest.er1 >conftest.err
18421   rm -f conftest.er1
18422   cat conftest.err >&5
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); } &&
18425          { ac_try='test -z "$ac_c_werror_flag"
18426                          || test ! -s conftest.err'
18427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428   (eval $ac_try) 2>&5
18429   ac_status=$?
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); }; } &&
18432          { ac_try='test -s conftest$ac_exeext'
18433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434   (eval $ac_try) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); }; }; then
18438   ac_cv_lib_ssl_ssl3_accept=yes
18439 else
18440   echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_cv_lib_ssl_ssl3_accept=no
18444 fi
18445 rm -f conftest.err conftest.$ac_objext \
18446       conftest$ac_exeext conftest.$ac_ext
18447 LIBS=$ac_check_lib_save_LIBS
18448 fi
18449 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
18450 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
18451 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
18452   have_openssl=yes
18453                                 need_rsaref=yes
18454 else
18455   have_openssl=no
18456 fi
18457
18458                 fi
18459
18460                 if test $have_openssl = yes ; then
18461                         ol_with_tls=openssl
18462                         ol_link_tls=yes
18463
18464
18465 cat >>confdefs.h <<\_ACEOF
18466 #define HAVE_OPENSSL 1
18467 _ACEOF
18468
18469
18470                         if test $need_rsaref = yes; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_RSAREF 1
18474 _ACEOF
18475
18476
18477                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
18478                         else
18479                                 TLS_LIBS="-lssl -lcrypto"
18480                         fi
18481
18482                         echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
18483 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
18484 if test "${ol_cv_ssl_crl_compat+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487
18488                 cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494
18495 #ifdef HAVE_OPENSSL_SSL_H
18496 #include <openssl/ssl.h>
18497 #endif
18498
18499 /* Require 0.9.7d+ */
18500 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
18501         char *__ssl_compat = "0.9.7d";
18502 #endif
18503
18504 _ACEOF
18505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18506   $EGREP "__ssl_compat" >/dev/null 2>&1; then
18507   ol_cv_ssl_crl_compat=yes
18508 else
18509   ol_cv_ssl_crl_compat=no
18510 fi
18511 rm -f conftest*
18512
18513 fi
18514 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
18515 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
18516
18517                         if test $ol_cv_ssl_crl_compat = yes ; then
18518
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_OPENSSL_CRL 1
18521 _ACEOF
18522
18523                         fi
18524                 fi
18525         fi
18526 fi
18527
18528 WITH_TLS=no
18529 if test $ol_link_tls = yes ; then
18530
18531 cat >>confdefs.h <<\_ACEOF
18532 #define HAVE_TLS 1
18533 _ACEOF
18534
18535         WITH_TLS=yes
18536 elif test $ol_with_tls = auto ; then
18537         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
18538 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
18539         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18540 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18541 elif test $ol_with_tls != no ; then
18542         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
18543 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
18544    { (exit 1); exit 1; }; }
18545 else
18546         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
18547 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
18548 fi
18549
18550 if test $ol_enable_lmpasswd != no; then
18551         if test $ol_link_tls != yes ; then
18552                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
18553 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
18554    { (exit 1); exit 1; }; }
18555         fi
18556
18557
18558 cat >>confdefs.h <<\_ACEOF
18559 #define SLAPD_LMHASH 1
18560 _ACEOF
18561
18562 fi
18563
18564 ol_link_threads=no
18565
18566 case $ol_with_threads in auto | yes | nt)
18567
18568
18569         echo "$as_me:$LINENO: checking for _beginthread" >&5
18570 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
18571 if test "${ac_cv_func__beginthread+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
18581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18582 #define _beginthread innocuous__beginthread
18583
18584 /* System header to define __stub macros and hopefully few prototypes,
18585     which can conflict with char _beginthread (); below.
18586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18587     <limits.h> exists even on freestanding compilers.  */
18588
18589 #ifdef __STDC__
18590 # include <limits.h>
18591 #else
18592 # include <assert.h>
18593 #endif
18594
18595 #undef _beginthread
18596
18597 /* Override any gcc2 internal prototype to avoid an error.  */
18598 #ifdef __cplusplus
18599 extern "C"
18600 {
18601 #endif
18602 /* We use char because int might match the return type of a gcc2
18603    builtin and then its argument prototype would still apply.  */
18604 char _beginthread ();
18605 /* The GNU C library defines this for functions which it implements
18606     to always fail with ENOSYS.  Some functions are actually named
18607     something starting with __ and the normal name is an alias.  */
18608 #if defined (__stub__beginthread) || defined (__stub____beginthread)
18609 choke me
18610 #else
18611 char (*f) () = _beginthread;
18612 #endif
18613 #ifdef __cplusplus
18614 }
18615 #endif
18616
18617 int
18618 main ()
18619 {
18620 return f != _beginthread;
18621   ;
18622   return 0;
18623 }
18624 _ACEOF
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18627   (eval $ac_link) 2>conftest.er1
18628   ac_status=$?
18629   grep -v '^ *+' conftest.er1 >conftest.err
18630   rm -f conftest.er1
18631   cat conftest.err >&5
18632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633   (exit $ac_status); } &&
18634          { ac_try='test -z "$ac_c_werror_flag"
18635                          || test ! -s conftest.err'
18636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18637   (eval $ac_try) 2>&5
18638   ac_status=$?
18639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18640   (exit $ac_status); }; } &&
18641          { ac_try='test -s conftest$ac_exeext'
18642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643   (eval $ac_try) 2>&5
18644   ac_status=$?
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); }; }; then
18647   ac_cv_func__beginthread=yes
18648 else
18649   echo "$as_me: failed program was:" >&5
18650 sed 's/^/| /' conftest.$ac_ext >&5
18651
18652 ac_cv_func__beginthread=no
18653 fi
18654 rm -f conftest.err conftest.$ac_objext \
18655       conftest$ac_exeext conftest.$ac_ext
18656 fi
18657 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
18658 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
18659
18660
18661         if test $ac_cv_func__beginthread = yes ; then
18662
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_NT_THREADS 1
18665 _ACEOF
18666
18667                 ol_cv_nt_threads=yes
18668         fi
18669
18670
18671         if test "$ol_cv_nt_threads" = yes ; then
18672                 ol_link_threads=nt
18673                 ol_with_threads=found
18674                 ol_with_yielding_select=yes
18675
18676
18677 cat >>confdefs.h <<\_ACEOF
18678 #define HAVE_NT_SERVICE_MANAGER 1
18679 _ACEOF
18680
18681
18682 cat >>confdefs.h <<\_ACEOF
18683 #define HAVE_NT_EVENT_LOG 1
18684 _ACEOF
18685
18686         fi
18687
18688         if test $ol_with_threads = nt ; then
18689                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
18690 echo "$as_me: error: could not locate NT Threads" >&2;}
18691    { (exit 1); exit 1; }; }
18692         fi
18693         ;;
18694 esac
18695
18696 case $ol_with_threads in auto | yes | posix)
18697
18698
18699 for ac_header in pthread.h
18700 do
18701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18703   echo "$as_me:$LINENO: checking for $ac_header" >&5
18704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 fi
18708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18710 else
18711   # Is the header compilable?
18712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18714 cat >conftest.$ac_ext <<_ACEOF
18715 /* confdefs.h.  */
18716 _ACEOF
18717 cat confdefs.h >>conftest.$ac_ext
18718 cat >>conftest.$ac_ext <<_ACEOF
18719 /* end confdefs.h.  */
18720 $ac_includes_default
18721 #include <$ac_header>
18722 _ACEOF
18723 rm -f conftest.$ac_objext
18724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18725   (eval $ac_compile) 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } &&
18732          { ac_try='test -z "$ac_c_werror_flag"
18733                          || test ! -s conftest.err'
18734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735   (eval $ac_try) 2>&5
18736   ac_status=$?
18737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738   (exit $ac_status); }; } &&
18739          { ac_try='test -s conftest.$ac_objext'
18740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18741   (eval $ac_try) 2>&5
18742   ac_status=$?
18743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744   (exit $ac_status); }; }; then
18745   ac_header_compiler=yes
18746 else
18747   echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_header_compiler=no
18751 fi
18752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18754 echo "${ECHO_T}$ac_header_compiler" >&6
18755
18756 # Is the header present?
18757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18759 cat >conftest.$ac_ext <<_ACEOF
18760 /* confdefs.h.  */
18761 _ACEOF
18762 cat confdefs.h >>conftest.$ac_ext
18763 cat >>conftest.$ac_ext <<_ACEOF
18764 /* end confdefs.h.  */
18765 #include <$ac_header>
18766 _ACEOF
18767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18768   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18769   ac_status=$?
18770   grep -v '^ *+' conftest.er1 >conftest.err
18771   rm -f conftest.er1
18772   cat conftest.err >&5
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } >/dev/null; then
18775   if test -s conftest.err; then
18776     ac_cpp_err=$ac_c_preproc_warn_flag
18777     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18778   else
18779     ac_cpp_err=
18780   fi
18781 else
18782   ac_cpp_err=yes
18783 fi
18784 if test -z "$ac_cpp_err"; then
18785   ac_header_preproc=yes
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790   ac_header_preproc=no
18791 fi
18792 rm -f conftest.err conftest.$ac_ext
18793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18794 echo "${ECHO_T}$ac_header_preproc" >&6
18795
18796 # So?  What about this header?
18797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18798   yes:no: )
18799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18803     ac_header_preproc=yes
18804     ;;
18805   no:yes:* )
18806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18818     (
18819       cat <<\_ASBOX
18820 ## --------------------------------------------- ##
18821 ## Report this to <http://www.openldap.org/its/> ##
18822 ## --------------------------------------------- ##
18823 _ASBOX
18824     ) |
18825       sed "s/^/$as_me: WARNING:     /" >&2
18826     ;;
18827 esac
18828 echo "$as_me:$LINENO: checking for $ac_header" >&5
18829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18831   echo $ECHO_N "(cached) $ECHO_C" >&6
18832 else
18833   eval "$as_ac_Header=\$ac_header_preproc"
18834 fi
18835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18837
18838 fi
18839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18840   cat >>confdefs.h <<_ACEOF
18841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18842 _ACEOF
18843
18844 fi
18845
18846 done
18847
18848
18849         if test $ac_cv_header_pthread_h = yes ; then
18850                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
18851 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
18852 if test "${ol_cv_pthread_version+set}" = set; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855
18856         cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863 #               include <pthread.h>
18864
18865 int
18866 main ()
18867 {
18868
18869                 int i = PTHREAD_CREATE_JOINABLE;
18870
18871   ;
18872   return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877   (eval $ac_compile) 2>conftest.er1
18878   ac_status=$?
18879   grep -v '^ *+' conftest.er1 >conftest.err
18880   rm -f conftest.er1
18881   cat conftest.err >&5
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } &&
18884          { ac_try='test -z "$ac_c_werror_flag"
18885                          || test ! -s conftest.err'
18886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887   (eval $ac_try) 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; } &&
18891          { ac_try='test -s conftest.$ac_objext'
18892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893   (eval $ac_try) 2>&5
18894   ac_status=$?
18895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896   (exit $ac_status); }; }; then
18897
18898         cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h.  */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h.  */
18904 #include <pthread.h>
18905
18906 _ACEOF
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908   $EGREP "pthread_detach" >/dev/null 2>&1; then
18909   ol_cv_pthread_version=10
18910 else
18911   ol_cv_pthread_version=8
18912 fi
18913 rm -f conftest*
18914
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919
18920         cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926
18927 #               include <pthread.h>
18928 #               ifdef PTHREAD_CREATE_UNDETACHED
18929                 draft7
18930 #               endif
18931
18932 _ACEOF
18933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18934   $EGREP "draft7" >/dev/null 2>&1; then
18935   ol_cv_pthread_version=7
18936 else
18937
18938         cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944 #include <pthread.h>
18945
18946 _ACEOF
18947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18948   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
18949   ol_cv_pthread_version=6
18950 else
18951
18952         cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958
18959 #               include <pthread.h>
18960 #ifdef          PTHREAD_MUTEX_INITIALIZER
18961                 draft5
18962 #endif
18963
18964 _ACEOF
18965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18966   $EGREP "draft5" >/dev/null 2>&1; then
18967   ol_cv_pthread_version=5
18968 else
18969   ol_cv_pthread_version=4
18970 fi
18971 rm -f conftest*
18972
18973 fi
18974 rm -f conftest*
18975
18976 fi
18977 rm -f conftest*
18978
18979 fi
18980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18981
18982 fi
18983 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
18984 echo "${ECHO_T}$ol_cv_pthread_version" >&6
18985
18986
18987                 if test $ol_cv_pthread_version != 0 ; then
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define HAVE_PTHREADS $ol_cv_pthread_version
18991 _ACEOF
18992
18993                 else
18994                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
18995 echo "$as_me: error: unknown pthread version" >&2;}
18996    { (exit 1); exit 1; }; }
18997                 fi
18998
18999                 # consider threads found
19000                 ol_with_threads=found
19001
19002
19003         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
19004 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
19005 if test "${ol_cv_header_linux_threads+set}" = set; then
19006   echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008   cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014 #include <pthread.h>
19015 _ACEOF
19016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19017   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
19018   ol_cv_header_linux_threads=yes
19019 else
19020   ol_cv_header_linux_threads=no
19021 fi
19022 rm -f conftest*
19023
19024
19025 fi
19026 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
19027 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
19028         if test $ol_cv_header_linux_threads = yes; then
19029
19030 cat >>confdefs.h <<\_ACEOF
19031 #define HAVE_LINUX_THREADS 1
19032 _ACEOF
19033
19034         fi
19035
19036
19037         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
19038 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
19039 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048 #include <pthread.h>
19049 #ifdef _POSIX_THREAD_IS_GNU_PTH
19050         __gnu_pth__;
19051 #endif
19052
19053 _ACEOF
19054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19055   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
19056   ol_cv_header_gnu_pth_pthread_h=yes
19057 else
19058   ol_cv_header_gnu_pth_pthread_h=no
19059 fi
19060 rm -f conftest*
19061
19062
19063 fi
19064 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
19065 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
19066
19067
19068                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
19069
19070 for ac_header in sched.h
19071 do
19072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19074   echo "$as_me:$LINENO: checking for $ac_header" >&5
19075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 fi
19079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19081 else
19082   # Is the header compilable?
19083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091 $ac_includes_default
19092 #include <$ac_header>
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096   (eval $ac_compile) 2>conftest.er1
19097   ac_status=$?
19098   grep -v '^ *+' conftest.er1 >conftest.err
19099   rm -f conftest.er1
19100   cat conftest.err >&5
19101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102   (exit $ac_status); } &&
19103          { ac_try='test -z "$ac_c_werror_flag"
19104                          || test ! -s conftest.err'
19105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106   (eval $ac_try) 2>&5
19107   ac_status=$?
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); }; } &&
19110          { ac_try='test -s conftest.$ac_objext'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; }; then
19116   ac_header_compiler=yes
19117 else
19118   echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ac_header_compiler=no
19122 fi
19123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19125 echo "${ECHO_T}$ac_header_compiler" >&6
19126
19127 # Is the header present?
19128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19131 /* confdefs.h.  */
19132 _ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h.  */
19136 #include <$ac_header>
19137 _ACEOF
19138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19139   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } >/dev/null; then
19146   if test -s conftest.err; then
19147     ac_cpp_err=$ac_c_preproc_warn_flag
19148     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19149   else
19150     ac_cpp_err=
19151   fi
19152 else
19153   ac_cpp_err=yes
19154 fi
19155 if test -z "$ac_cpp_err"; then
19156   ac_header_preproc=yes
19157 else
19158   echo "$as_me: failed program was:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19160
19161   ac_header_preproc=no
19162 fi
19163 rm -f conftest.err conftest.$ac_ext
19164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19165 echo "${ECHO_T}$ac_header_preproc" >&6
19166
19167 # So?  What about this header?
19168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19169   yes:no: )
19170     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19174     ac_header_preproc=yes
19175     ;;
19176   no:yes:* )
19177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19179     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19180 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19181     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19183     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19184 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19187     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19189     (
19190       cat <<\_ASBOX
19191 ## --------------------------------------------- ##
19192 ## Report this to <http://www.openldap.org/its/> ##
19193 ## --------------------------------------------- ##
19194 _ASBOX
19195     ) |
19196       sed "s/^/$as_me: WARNING:     /" >&2
19197     ;;
19198 esac
19199 echo "$as_me:$LINENO: checking for $ac_header" >&5
19200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19202   echo $ECHO_N "(cached) $ECHO_C" >&6
19203 else
19204   eval "$as_ac_Header=\$ac_header_preproc"
19205 fi
19206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19208
19209 fi
19210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19211   cat >>confdefs.h <<_ACEOF
19212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19213 _ACEOF
19214
19215 fi
19216
19217 done
19218
19219                 fi
19220
19221
19222                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
19223 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
19224 if test "${ol_cv_pthread_create+set}" = set; then
19225   echo $ECHO_N "(cached) $ECHO_C" >&6
19226 else
19227
19228                         if test "$cross_compiling" = yes; then
19229   cat >conftest.$ac_ext <<_ACEOF
19230 /* confdefs.h.  */
19231 _ACEOF
19232 cat confdefs.h >>conftest.$ac_ext
19233 cat >>conftest.$ac_ext <<_ACEOF
19234 /* end confdefs.h.  */
19235
19236 /* pthread test headers */
19237 #include <pthread.h>
19238 #if HAVE_PTHREADS < 7
19239 #include <errno.h>
19240 #endif
19241 #ifndef NULL
19242 #define NULL (void*)0
19243 #endif
19244
19245 static void *task(p)
19246         void *p;
19247 {
19248         return (void *) (p == NULL);
19249 }
19250
19251 int
19252 main ()
19253 {
19254
19255         /* pthread test function */
19256 #ifndef PTHREAD_CREATE_DETACHED
19257 #define PTHREAD_CREATE_DETACHED 1
19258 #endif
19259         pthread_t t;
19260         int status;
19261         int detach = PTHREAD_CREATE_DETACHED;
19262
19263 #if HAVE_PTHREADS > 4
19264         /* Final pthreads */
19265         pthread_attr_t attr;
19266
19267         status = pthread_attr_init(&attr);
19268         if( status ) return status;
19269
19270 #if HAVE_PTHREADS < 7
19271         status = pthread_attr_setdetachstate(&attr, &detach);
19272         if( status < 0 ) status = errno;
19273 #else
19274         status = pthread_attr_setdetachstate(&attr, detach);
19275 #endif
19276         if( status ) return status;
19277         status = pthread_create( &t, &attr, task, NULL );
19278 #if HAVE_PTHREADS < 7
19279         if( status < 0 ) status = errno;
19280 #endif
19281         if( status ) return status;
19282 #else
19283         /* Draft 4 pthreads */
19284         status = pthread_create( &t, pthread_attr_default, task, NULL );
19285         if( status ) return errno;
19286
19287         /* give thread a chance to complete */
19288         /* it should remain joinable and hence detachable */
19289         sleep( 1 );
19290
19291         status = pthread_detach( &t );
19292         if( status ) return errno;
19293 #endif
19294
19295 #ifdef HAVE_LINUX_THREADS
19296         pthread_kill_other_threads_np();
19297 #endif
19298
19299         return 0;
19300
19301   ;
19302   return 0;
19303 }
19304 _ACEOF
19305 rm -f conftest.$ac_objext conftest$ac_exeext
19306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19307   (eval $ac_link) 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } &&
19314          { ac_try='test -z "$ac_c_werror_flag"
19315                          || test ! -s conftest.err'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; } &&
19321          { ac_try='test -s conftest$ac_exeext'
19322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323   (eval $ac_try) 2>&5
19324   ac_status=$?
19325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326   (exit $ac_status); }; }; then
19327   ol_cv_pthread_create=yes
19328 else
19329   echo "$as_me: failed program was:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ol_cv_pthread_create=no
19333 fi
19334 rm -f conftest.err conftest.$ac_objext \
19335       conftest$ac_exeext conftest.$ac_ext
19336 else
19337   cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* pthread test headers */
19345 #include <pthread.h>
19346 #if HAVE_PTHREADS < 7
19347 #include <errno.h>
19348 #endif
19349 #ifndef NULL
19350 #define NULL (void*)0
19351 #endif
19352
19353 static void *task(p)
19354         void *p;
19355 {
19356         return (void *) (p == NULL);
19357 }
19358
19359
19360 int main(argc, argv)
19361         int argc;
19362         char **argv;
19363 {
19364
19365         /* pthread test function */
19366 #ifndef PTHREAD_CREATE_DETACHED
19367 #define PTHREAD_CREATE_DETACHED 1
19368 #endif
19369         pthread_t t;
19370         int status;
19371         int detach = PTHREAD_CREATE_DETACHED;
19372
19373 #if HAVE_PTHREADS > 4
19374         /* Final pthreads */
19375         pthread_attr_t attr;
19376
19377         status = pthread_attr_init(&attr);
19378         if( status ) return status;
19379
19380 #if HAVE_PTHREADS < 7
19381         status = pthread_attr_setdetachstate(&attr, &detach);
19382         if( status < 0 ) status = errno;
19383 #else
19384         status = pthread_attr_setdetachstate(&attr, detach);
19385 #endif
19386         if( status ) return status;
19387         status = pthread_create( &t, &attr, task, NULL );
19388 #if HAVE_PTHREADS < 7
19389         if( status < 0 ) status = errno;
19390 #endif
19391         if( status ) return status;
19392 #else
19393         /* Draft 4 pthreads */
19394         status = pthread_create( &t, pthread_attr_default, task, NULL );
19395         if( status ) return errno;
19396
19397         /* give thread a chance to complete */
19398         /* it should remain joinable and hence detachable */
19399         sleep( 1 );
19400
19401         status = pthread_detach( &t );
19402         if( status ) return errno;
19403 #endif
19404
19405 #ifdef HAVE_LINUX_THREADS
19406         pthread_kill_other_threads_np();
19407 #endif
19408
19409         return 0;
19410
19411 }
19412
19413 _ACEOF
19414 rm -f conftest$ac_exeext
19415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19416   (eval $ac_link) 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; }; then
19425   ol_cv_pthread_create=yes
19426 else
19427   echo "$as_me: program exited with status $ac_status" >&5
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 ( exit $ac_status )
19432 ol_cv_pthread_create=no
19433 fi
19434 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19435 fi
19436 fi
19437 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
19438 echo "${ECHO_T}$ol_cv_pthread_create" >&6
19439
19440                 if test $ol_cv_pthread_create != no ; then
19441                         ol_link_threads=posix
19442                         ol_link_pthreads=""
19443                 fi
19444
19445                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
19446 if test "$ol_link_threads" = no ; then
19447         # try -kthread
19448         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
19449 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
19450 if test "${ol_cv_pthread_kthread+set}" = set; then
19451   echo $ECHO_N "(cached) $ECHO_C" >&6
19452 else
19453
19454                 # save the flags
19455                 ol_LIBS="$LIBS"
19456                 LIBS="-kthread $LIBS"
19457
19458                 if test "$cross_compiling" = yes; then
19459   cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465
19466 /* pthread test headers */
19467 #include <pthread.h>
19468 #if HAVE_PTHREADS < 7
19469 #include <errno.h>
19470 #endif
19471 #ifndef NULL
19472 #define NULL (void*)0
19473 #endif
19474
19475 static void *task(p)
19476         void *p;
19477 {
19478         return (void *) (p == NULL);
19479 }
19480
19481 int
19482 main ()
19483 {
19484
19485         /* pthread test function */
19486 #ifndef PTHREAD_CREATE_DETACHED
19487 #define PTHREAD_CREATE_DETACHED 1
19488 #endif
19489         pthread_t t;
19490         int status;
19491         int detach = PTHREAD_CREATE_DETACHED;
19492
19493 #if HAVE_PTHREADS > 4
19494         /* Final pthreads */
19495         pthread_attr_t attr;
19496
19497         status = pthread_attr_init(&attr);
19498         if( status ) return status;
19499
19500 #if HAVE_PTHREADS < 7
19501         status = pthread_attr_setdetachstate(&attr, &detach);
19502         if( status < 0 ) status = errno;
19503 #else
19504         status = pthread_attr_setdetachstate(&attr, detach);
19505 #endif
19506         if( status ) return status;
19507         status = pthread_create( &t, &attr, task, NULL );
19508 #if HAVE_PTHREADS < 7
19509         if( status < 0 ) status = errno;
19510 #endif
19511         if( status ) return status;
19512 #else
19513         /* Draft 4 pthreads */
19514         status = pthread_create( &t, pthread_attr_default, task, NULL );
19515         if( status ) return errno;
19516
19517         /* give thread a chance to complete */
19518         /* it should remain joinable and hence detachable */
19519         sleep( 1 );
19520
19521         status = pthread_detach( &t );
19522         if( status ) return errno;
19523 #endif
19524
19525 #ifdef HAVE_LINUX_THREADS
19526         pthread_kill_other_threads_np();
19527 #endif
19528
19529         return 0;
19530
19531   ;
19532   return 0;
19533 }
19534 _ACEOF
19535 rm -f conftest.$ac_objext conftest$ac_exeext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19537   (eval $ac_link) 2>conftest.er1
19538   ac_status=$?
19539   grep -v '^ *+' conftest.er1 >conftest.err
19540   rm -f conftest.er1
19541   cat conftest.err >&5
19542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543   (exit $ac_status); } &&
19544          { ac_try='test -z "$ac_c_werror_flag"
19545                          || test ! -s conftest.err'
19546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19547   (eval $ac_try) 2>&5
19548   ac_status=$?
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); }; } &&
19551          { ac_try='test -s conftest$ac_exeext'
19552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553   (eval $ac_try) 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   ol_cv_pthread_kthread=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562 ol_cv_pthread_kthread=no
19563 fi
19564 rm -f conftest.err conftest.$ac_objext \
19565       conftest$ac_exeext conftest.$ac_ext
19566 else
19567   cat >conftest.$ac_ext <<_ACEOF
19568 /* confdefs.h.  */
19569 _ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h.  */
19573
19574 /* pthread test headers */
19575 #include <pthread.h>
19576 #if HAVE_PTHREADS < 7
19577 #include <errno.h>
19578 #endif
19579 #ifndef NULL
19580 #define NULL (void*)0
19581 #endif
19582
19583 static void *task(p)
19584         void *p;
19585 {
19586         return (void *) (p == NULL);
19587 }
19588
19589
19590 int main(argc, argv)
19591         int argc;
19592         char **argv;
19593 {
19594
19595         /* pthread test function */
19596 #ifndef PTHREAD_CREATE_DETACHED
19597 #define PTHREAD_CREATE_DETACHED 1
19598 #endif
19599         pthread_t t;
19600         int status;
19601         int detach = PTHREAD_CREATE_DETACHED;
19602
19603 #if HAVE_PTHREADS > 4
19604         /* Final pthreads */
19605         pthread_attr_t attr;
19606
19607         status = pthread_attr_init(&attr);
19608         if( status ) return status;
19609
19610 #if HAVE_PTHREADS < 7
19611         status = pthread_attr_setdetachstate(&attr, &detach);
19612         if( status < 0 ) status = errno;
19613 #else
19614         status = pthread_attr_setdetachstate(&attr, detach);
19615 #endif
19616         if( status ) return status;
19617         status = pthread_create( &t, &attr, task, NULL );
19618 #if HAVE_PTHREADS < 7
19619         if( status < 0 ) status = errno;
19620 #endif
19621         if( status ) return status;
19622 #else
19623         /* Draft 4 pthreads */
19624         status = pthread_create( &t, pthread_attr_default, task, NULL );
19625         if( status ) return errno;
19626
19627         /* give thread a chance to complete */
19628         /* it should remain joinable and hence detachable */
19629         sleep( 1 );
19630
19631         status = pthread_detach( &t );
19632         if( status ) return errno;
19633 #endif
19634
19635 #ifdef HAVE_LINUX_THREADS
19636         pthread_kill_other_threads_np();
19637 #endif
19638
19639         return 0;
19640
19641 }
19642
19643 _ACEOF
19644 rm -f conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646   (eval $ac_link) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; }; then
19655   ol_cv_pthread_kthread=yes
19656 else
19657   echo "$as_me: program exited with status $ac_status" >&5
19658 echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 ( exit $ac_status )
19662 ol_cv_pthread_kthread=no
19663 fi
19664 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19665 fi
19666
19667                 # restore the LIBS
19668                 LIBS="$ol_LIBS"
19669
19670 fi
19671 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
19672 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
19673
19674         if test $ol_cv_pthread_kthread = yes ; then
19675                 ol_link_pthreads="-kthread"
19676                 ol_link_threads=posix
19677         fi
19678 fi
19679
19680                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
19681 if test "$ol_link_threads" = no ; then
19682         # try -pthread
19683         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
19684 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
19685 if test "${ol_cv_pthread_pthread+set}" = set; then
19686   echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688
19689                 # save the flags
19690                 ol_LIBS="$LIBS"
19691                 LIBS="-pthread $LIBS"
19692
19693                 if test "$cross_compiling" = yes; then
19694   cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700
19701 /* pthread test headers */
19702 #include <pthread.h>
19703 #if HAVE_PTHREADS < 7
19704 #include <errno.h>
19705 #endif
19706 #ifndef NULL
19707 #define NULL (void*)0
19708 #endif
19709
19710 static void *task(p)
19711         void *p;
19712 {
19713         return (void *) (p == NULL);
19714 }
19715
19716 int
19717 main ()
19718 {
19719
19720         /* pthread test function */
19721 #ifndef PTHREAD_CREATE_DETACHED
19722 #define PTHREAD_CREATE_DETACHED 1
19723 #endif
19724         pthread_t t;
19725         int status;
19726         int detach = PTHREAD_CREATE_DETACHED;
19727
19728 #if HAVE_PTHREADS > 4
19729         /* Final pthreads */
19730         pthread_attr_t attr;
19731
19732         status = pthread_attr_init(&attr);
19733         if( status ) return status;
19734
19735 #if HAVE_PTHREADS < 7
19736         status = pthread_attr_setdetachstate(&attr, &detach);
19737         if( status < 0 ) status = errno;
19738 #else
19739         status = pthread_attr_setdetachstate(&attr, detach);
19740 #endif
19741         if( status ) return status;
19742         status = pthread_create( &t, &attr, task, NULL );
19743 #if HAVE_PTHREADS < 7
19744         if( status < 0 ) status = errno;
19745 #endif
19746         if( status ) return status;
19747 #else
19748         /* Draft 4 pthreads */
19749         status = pthread_create( &t, pthread_attr_default, task, NULL );
19750         if( status ) return errno;
19751
19752         /* give thread a chance to complete */
19753         /* it should remain joinable and hence detachable */
19754         sleep( 1 );
19755
19756         status = pthread_detach( &t );
19757         if( status ) return errno;
19758 #endif
19759
19760 #ifdef HAVE_LINUX_THREADS
19761         pthread_kill_other_threads_np();
19762 #endif
19763
19764         return 0;
19765
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext conftest$ac_exeext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772   (eval $ac_link) 2>conftest.er1
19773   ac_status=$?
19774   grep -v '^ *+' conftest.er1 >conftest.err
19775   rm -f conftest.er1
19776   cat conftest.err >&5
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); } &&
19779          { ac_try='test -z "$ac_c_werror_flag"
19780                          || test ! -s conftest.err'
19781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782   (eval $ac_try) 2>&5
19783   ac_status=$?
19784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785   (exit $ac_status); }; } &&
19786          { ac_try='test -s conftest$ac_exeext'
19787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788   (eval $ac_try) 2>&5
19789   ac_status=$?
19790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791   (exit $ac_status); }; }; then
19792   ol_cv_pthread_pthread=yes
19793 else
19794   echo "$as_me: failed program was:" >&5
19795 sed 's/^/| /' conftest.$ac_ext >&5
19796
19797 ol_cv_pthread_pthread=no
19798 fi
19799 rm -f conftest.err conftest.$ac_objext \
19800       conftest$ac_exeext conftest.$ac_ext
19801 else
19802   cat >conftest.$ac_ext <<_ACEOF
19803 /* confdefs.h.  */
19804 _ACEOF
19805 cat confdefs.h >>conftest.$ac_ext
19806 cat >>conftest.$ac_ext <<_ACEOF
19807 /* end confdefs.h.  */
19808
19809 /* pthread test headers */
19810 #include <pthread.h>
19811 #if HAVE_PTHREADS < 7
19812 #include <errno.h>
19813 #endif
19814 #ifndef NULL
19815 #define NULL (void*)0
19816 #endif
19817
19818 static void *task(p)
19819         void *p;
19820 {
19821         return (void *) (p == NULL);
19822 }
19823
19824
19825 int main(argc, argv)
19826         int argc;
19827         char **argv;
19828 {
19829
19830         /* pthread test function */
19831 #ifndef PTHREAD_CREATE_DETACHED
19832 #define PTHREAD_CREATE_DETACHED 1
19833 #endif
19834         pthread_t t;
19835         int status;
19836         int detach = PTHREAD_CREATE_DETACHED;
19837
19838 #if HAVE_PTHREADS > 4
19839         /* Final pthreads */
19840         pthread_attr_t attr;
19841
19842         status = pthread_attr_init(&attr);
19843         if( status ) return status;
19844
19845 #if HAVE_PTHREADS < 7
19846         status = pthread_attr_setdetachstate(&attr, &detach);
19847         if( status < 0 ) status = errno;
19848 #else
19849         status = pthread_attr_setdetachstate(&attr, detach);
19850 #endif
19851         if( status ) return status;
19852         status = pthread_create( &t, &attr, task, NULL );
19853 #if HAVE_PTHREADS < 7
19854         if( status < 0 ) status = errno;
19855 #endif
19856         if( status ) return status;
19857 #else
19858         /* Draft 4 pthreads */
19859         status = pthread_create( &t, pthread_attr_default, task, NULL );
19860         if( status ) return errno;
19861
19862         /* give thread a chance to complete */
19863         /* it should remain joinable and hence detachable */
19864         sleep( 1 );
19865
19866         status = pthread_detach( &t );
19867         if( status ) return errno;
19868 #endif
19869
19870 #ifdef HAVE_LINUX_THREADS
19871         pthread_kill_other_threads_np();
19872 #endif
19873
19874         return 0;
19875
19876 }
19877
19878 _ACEOF
19879 rm -f conftest$ac_exeext
19880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19881   (eval $ac_link) 2>&5
19882   ac_status=$?
19883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19886   (eval $ac_try) 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   ol_cv_pthread_pthread=yes
19891 else
19892   echo "$as_me: program exited with status $ac_status" >&5
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ( exit $ac_status )
19897 ol_cv_pthread_pthread=no
19898 fi
19899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19900 fi
19901
19902                 # restore the LIBS
19903                 LIBS="$ol_LIBS"
19904
19905 fi
19906 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
19907 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
19908
19909         if test $ol_cv_pthread_pthread = yes ; then
19910                 ol_link_pthreads="-pthread"
19911                 ol_link_threads=posix
19912         fi
19913 fi
19914
19915                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
19916 if test "$ol_link_threads" = no ; then
19917         # try -pthreads
19918         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
19919 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
19920 if test "${ol_cv_pthread_pthreads+set}" = set; then
19921   echo $ECHO_N "(cached) $ECHO_C" >&6
19922 else
19923
19924                 # save the flags
19925                 ol_LIBS="$LIBS"
19926                 LIBS="-pthreads $LIBS"
19927
19928                 if test "$cross_compiling" = yes; then
19929   cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h.  */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h.  */
19935
19936 /* pthread test headers */
19937 #include <pthread.h>
19938 #if HAVE_PTHREADS < 7
19939 #include <errno.h>
19940 #endif
19941 #ifndef NULL
19942 #define NULL (void*)0
19943 #endif
19944
19945 static void *task(p)
19946         void *p;
19947 {
19948         return (void *) (p == NULL);
19949 }
19950
19951 int
19952 main ()
19953 {
19954
19955         /* pthread test function */
19956 #ifndef PTHREAD_CREATE_DETACHED
19957 #define PTHREAD_CREATE_DETACHED 1
19958 #endif
19959         pthread_t t;
19960         int status;
19961         int detach = PTHREAD_CREATE_DETACHED;
19962
19963 #if HAVE_PTHREADS > 4
19964         /* Final pthreads */
19965         pthread_attr_t attr;
19966
19967         status = pthread_attr_init(&attr);
19968         if( status ) return status;
19969
19970 #if HAVE_PTHREADS < 7
19971         status = pthread_attr_setdetachstate(&attr, &detach);
19972         if( status < 0 ) status = errno;
19973 #else
19974         status = pthread_attr_setdetachstate(&attr, detach);
19975 #endif
19976         if( status ) return status;
19977         status = pthread_create( &t, &attr, task, NULL );
19978 #if HAVE_PTHREADS < 7
19979         if( status < 0 ) status = errno;
19980 #endif
19981         if( status ) return status;
19982 #else
19983         /* Draft 4 pthreads */
19984         status = pthread_create( &t, pthread_attr_default, task, NULL );
19985         if( status ) return errno;
19986
19987         /* give thread a chance to complete */
19988         /* it should remain joinable and hence detachable */
19989         sleep( 1 );
19990
19991         status = pthread_detach( &t );
19992         if( status ) return errno;
19993 #endif
19994
19995 #ifdef HAVE_LINUX_THREADS
19996         pthread_kill_other_threads_np();
19997 #endif
19998
19999         return 0;
20000
20001   ;
20002   return 0;
20003 }
20004 _ACEOF
20005 rm -f conftest.$ac_objext conftest$ac_exeext
20006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20007   (eval $ac_link) 2>conftest.er1
20008   ac_status=$?
20009   grep -v '^ *+' conftest.er1 >conftest.err
20010   rm -f conftest.er1
20011   cat conftest.err >&5
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); } &&
20014          { ac_try='test -z "$ac_c_werror_flag"
20015                          || test ! -s conftest.err'
20016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017   (eval $ac_try) 2>&5
20018   ac_status=$?
20019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020   (exit $ac_status); }; } &&
20021          { ac_try='test -s conftest$ac_exeext'
20022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023   (eval $ac_try) 2>&5
20024   ac_status=$?
20025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026   (exit $ac_status); }; }; then
20027   ol_cv_pthread_pthreads=yes
20028 else
20029   echo "$as_me: failed program was:" >&5
20030 sed 's/^/| /' conftest.$ac_ext >&5
20031
20032 ol_cv_pthread_pthreads=no
20033 fi
20034 rm -f conftest.err conftest.$ac_objext \
20035       conftest$ac_exeext conftest.$ac_ext
20036 else
20037   cat >conftest.$ac_ext <<_ACEOF
20038 /* confdefs.h.  */
20039 _ACEOF
20040 cat confdefs.h >>conftest.$ac_ext
20041 cat >>conftest.$ac_ext <<_ACEOF
20042 /* end confdefs.h.  */
20043
20044 /* pthread test headers */
20045 #include <pthread.h>
20046 #if HAVE_PTHREADS < 7
20047 #include <errno.h>
20048 #endif
20049 #ifndef NULL
20050 #define NULL (void*)0
20051 #endif
20052
20053 static void *task(p)
20054         void *p;
20055 {
20056         return (void *) (p == NULL);
20057 }
20058
20059
20060 int main(argc, argv)
20061         int argc;
20062         char **argv;
20063 {
20064
20065         /* pthread test function */
20066 #ifndef PTHREAD_CREATE_DETACHED
20067 #define PTHREAD_CREATE_DETACHED 1
20068 #endif
20069         pthread_t t;
20070         int status;
20071         int detach = PTHREAD_CREATE_DETACHED;
20072
20073 #if HAVE_PTHREADS > 4
20074         /* Final pthreads */
20075         pthread_attr_t attr;
20076
20077         status = pthread_attr_init(&attr);
20078         if( status ) return status;
20079
20080 #if HAVE_PTHREADS < 7
20081         status = pthread_attr_setdetachstate(&attr, &detach);
20082         if( status < 0 ) status = errno;
20083 #else
20084         status = pthread_attr_setdetachstate(&attr, detach);
20085 #endif
20086         if( status ) return status;
20087         status = pthread_create( &t, &attr, task, NULL );
20088 #if HAVE_PTHREADS < 7
20089         if( status < 0 ) status = errno;
20090 #endif
20091         if( status ) return status;
20092 #else
20093         /* Draft 4 pthreads */
20094         status = pthread_create( &t, pthread_attr_default, task, NULL );
20095         if( status ) return errno;
20096
20097         /* give thread a chance to complete */
20098         /* it should remain joinable and hence detachable */
20099         sleep( 1 );
20100
20101         status = pthread_detach( &t );
20102         if( status ) return errno;
20103 #endif
20104
20105 #ifdef HAVE_LINUX_THREADS
20106         pthread_kill_other_threads_np();
20107 #endif
20108
20109         return 0;
20110
20111 }
20112
20113 _ACEOF
20114 rm -f conftest$ac_exeext
20115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20116   (eval $ac_link) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ol_cv_pthread_pthreads=yes
20126 else
20127   echo "$as_me: program exited with status $ac_status" >&5
20128 echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 ( exit $ac_status )
20132 ol_cv_pthread_pthreads=no
20133 fi
20134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20135 fi
20136
20137                 # restore the LIBS
20138                 LIBS="$ol_LIBS"
20139
20140 fi
20141 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
20142 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
20143
20144         if test $ol_cv_pthread_pthreads = yes ; then
20145                 ol_link_pthreads="-pthreads"
20146                 ol_link_threads=posix
20147         fi
20148 fi
20149
20150                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
20151 if test "$ol_link_threads" = no ; then
20152         # try -mthreads
20153         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
20154 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
20155 if test "${ol_cv_pthread_mthreads+set}" = set; then
20156   echo $ECHO_N "(cached) $ECHO_C" >&6
20157 else
20158
20159                 # save the flags
20160                 ol_LIBS="$LIBS"
20161                 LIBS="-mthreads $LIBS"
20162
20163                 if test "$cross_compiling" = yes; then
20164   cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170
20171 /* pthread test headers */
20172 #include <pthread.h>
20173 #if HAVE_PTHREADS < 7
20174 #include <errno.h>
20175 #endif
20176 #ifndef NULL
20177 #define NULL (void*)0
20178 #endif
20179
20180 static void *task(p)
20181         void *p;
20182 {
20183         return (void *) (p == NULL);
20184 }
20185
20186 int
20187 main ()
20188 {
20189
20190         /* pthread test function */
20191 #ifndef PTHREAD_CREATE_DETACHED
20192 #define PTHREAD_CREATE_DETACHED 1
20193 #endif
20194         pthread_t t;
20195         int status;
20196         int detach = PTHREAD_CREATE_DETACHED;
20197
20198 #if HAVE_PTHREADS > 4
20199         /* Final pthreads */
20200         pthread_attr_t attr;
20201
20202         status = pthread_attr_init(&attr);
20203         if( status ) return status;
20204
20205 #if HAVE_PTHREADS < 7
20206         status = pthread_attr_setdetachstate(&attr, &detach);
20207         if( status < 0 ) status = errno;
20208 #else
20209         status = pthread_attr_setdetachstate(&attr, detach);
20210 #endif
20211         if( status ) return status;
20212         status = pthread_create( &t, &attr, task, NULL );
20213 #if HAVE_PTHREADS < 7
20214         if( status < 0 ) status = errno;
20215 #endif
20216         if( status ) return status;
20217 #else
20218         /* Draft 4 pthreads */
20219         status = pthread_create( &t, pthread_attr_default, task, NULL );
20220         if( status ) return errno;
20221
20222         /* give thread a chance to complete */
20223         /* it should remain joinable and hence detachable */
20224         sleep( 1 );
20225
20226         status = pthread_detach( &t );
20227         if( status ) return errno;
20228 #endif
20229
20230 #ifdef HAVE_LINUX_THREADS
20231         pthread_kill_other_threads_np();
20232 #endif
20233
20234         return 0;
20235
20236   ;
20237   return 0;
20238 }
20239 _ACEOF
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20242   (eval $ac_link) 2>conftest.er1
20243   ac_status=$?
20244   grep -v '^ *+' conftest.er1 >conftest.err
20245   rm -f conftest.er1
20246   cat conftest.err >&5
20247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248   (exit $ac_status); } &&
20249          { ac_try='test -z "$ac_c_werror_flag"
20250                          || test ! -s conftest.err'
20251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252   (eval $ac_try) 2>&5
20253   ac_status=$?
20254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255   (exit $ac_status); }; } &&
20256          { ac_try='test -s conftest$ac_exeext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ol_cv_pthread_mthreads=yes
20263 else
20264   echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20266
20267 ol_cv_pthread_mthreads=no
20268 fi
20269 rm -f conftest.err conftest.$ac_objext \
20270       conftest$ac_exeext conftest.$ac_ext
20271 else
20272   cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278
20279 /* pthread test headers */
20280 #include <pthread.h>
20281 #if HAVE_PTHREADS < 7
20282 #include <errno.h>
20283 #endif
20284 #ifndef NULL
20285 #define NULL (void*)0
20286 #endif
20287
20288 static void *task(p)
20289         void *p;
20290 {
20291         return (void *) (p == NULL);
20292 }
20293
20294
20295 int main(argc, argv)
20296         int argc;
20297         char **argv;
20298 {
20299
20300         /* pthread test function */
20301 #ifndef PTHREAD_CREATE_DETACHED
20302 #define PTHREAD_CREATE_DETACHED 1
20303 #endif
20304         pthread_t t;
20305         int status;
20306         int detach = PTHREAD_CREATE_DETACHED;
20307
20308 #if HAVE_PTHREADS > 4
20309         /* Final pthreads */
20310         pthread_attr_t attr;
20311
20312         status = pthread_attr_init(&attr);
20313         if( status ) return status;
20314
20315 #if HAVE_PTHREADS < 7
20316         status = pthread_attr_setdetachstate(&attr, &detach);
20317         if( status < 0 ) status = errno;
20318 #else
20319         status = pthread_attr_setdetachstate(&attr, detach);
20320 #endif
20321         if( status ) return status;
20322         status = pthread_create( &t, &attr, task, NULL );
20323 #if HAVE_PTHREADS < 7
20324         if( status < 0 ) status = errno;
20325 #endif
20326         if( status ) return status;
20327 #else
20328         /* Draft 4 pthreads */
20329         status = pthread_create( &t, pthread_attr_default, task, NULL );
20330         if( status ) return errno;
20331
20332         /* give thread a chance to complete */
20333         /* it should remain joinable and hence detachable */
20334         sleep( 1 );
20335
20336         status = pthread_detach( &t );
20337         if( status ) return errno;
20338 #endif
20339
20340 #ifdef HAVE_LINUX_THREADS
20341         pthread_kill_other_threads_np();
20342 #endif
20343
20344         return 0;
20345
20346 }
20347
20348 _ACEOF
20349 rm -f conftest$ac_exeext
20350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20351   (eval $ac_link) 2>&5
20352   ac_status=$?
20353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356   (eval $ac_try) 2>&5
20357   ac_status=$?
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); }; }; then
20360   ol_cv_pthread_mthreads=yes
20361 else
20362   echo "$as_me: program exited with status $ac_status" >&5
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366 ( exit $ac_status )
20367 ol_cv_pthread_mthreads=no
20368 fi
20369 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20370 fi
20371
20372                 # restore the LIBS
20373                 LIBS="$ol_LIBS"
20374
20375 fi
20376 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
20377 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
20378
20379         if test $ol_cv_pthread_mthreads = yes ; then
20380                 ol_link_pthreads="-mthreads"
20381                 ol_link_threads=posix
20382         fi
20383 fi
20384
20385                 # Pthread try link: -thread (ol_cv_pthread_thread)
20386 if test "$ol_link_threads" = no ; then
20387         # try -thread
20388         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
20389 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
20390 if test "${ol_cv_pthread_thread+set}" = set; then
20391   echo $ECHO_N "(cached) $ECHO_C" >&6
20392 else
20393
20394                 # save the flags
20395                 ol_LIBS="$LIBS"
20396                 LIBS="-thread $LIBS"
20397
20398                 if test "$cross_compiling" = yes; then
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405
20406 /* pthread test headers */
20407 #include <pthread.h>
20408 #if HAVE_PTHREADS < 7
20409 #include <errno.h>
20410 #endif
20411 #ifndef NULL
20412 #define NULL (void*)0
20413 #endif
20414
20415 static void *task(p)
20416         void *p;
20417 {
20418         return (void *) (p == NULL);
20419 }
20420
20421 int
20422 main ()
20423 {
20424
20425         /* pthread test function */
20426 #ifndef PTHREAD_CREATE_DETACHED
20427 #define PTHREAD_CREATE_DETACHED 1
20428 #endif
20429         pthread_t t;
20430         int status;
20431         int detach = PTHREAD_CREATE_DETACHED;
20432
20433 #if HAVE_PTHREADS > 4
20434         /* Final pthreads */
20435         pthread_attr_t attr;
20436
20437         status = pthread_attr_init(&attr);
20438         if( status ) return status;
20439
20440 #if HAVE_PTHREADS < 7
20441         status = pthread_attr_setdetachstate(&attr, &detach);
20442         if( status < 0 ) status = errno;
20443 #else
20444         status = pthread_attr_setdetachstate(&attr, detach);
20445 #endif
20446         if( status ) return status;
20447         status = pthread_create( &t, &attr, task, NULL );
20448 #if HAVE_PTHREADS < 7
20449         if( status < 0 ) status = errno;
20450 #endif
20451         if( status ) return status;
20452 #else
20453         /* Draft 4 pthreads */
20454         status = pthread_create( &t, pthread_attr_default, task, NULL );
20455         if( status ) return errno;
20456
20457         /* give thread a chance to complete */
20458         /* it should remain joinable and hence detachable */
20459         sleep( 1 );
20460
20461         status = pthread_detach( &t );
20462         if( status ) return errno;
20463 #endif
20464
20465 #ifdef HAVE_LINUX_THREADS
20466         pthread_kill_other_threads_np();
20467 #endif
20468
20469         return 0;
20470
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20477   (eval $ac_link) 2>conftest.er1
20478   ac_status=$?
20479   grep -v '^ *+' conftest.er1 >conftest.err
20480   rm -f conftest.er1
20481   cat conftest.err >&5
20482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483   (exit $ac_status); } &&
20484          { ac_try='test -z "$ac_c_werror_flag"
20485                          || test ! -s conftest.err'
20486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487   (eval $ac_try) 2>&5
20488   ac_status=$?
20489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490   (exit $ac_status); }; } &&
20491          { ac_try='test -s conftest$ac_exeext'
20492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493   (eval $ac_try) 2>&5
20494   ac_status=$?
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); }; }; then
20497   ol_cv_pthread_thread=yes
20498 else
20499   echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502 ol_cv_pthread_thread=no
20503 fi
20504 rm -f conftest.err conftest.$ac_objext \
20505       conftest$ac_exeext conftest.$ac_ext
20506 else
20507   cat >conftest.$ac_ext <<_ACEOF
20508 /* confdefs.h.  */
20509 _ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h.  */
20513
20514 /* pthread test headers */
20515 #include <pthread.h>
20516 #if HAVE_PTHREADS < 7
20517 #include <errno.h>
20518 #endif
20519 #ifndef NULL
20520 #define NULL (void*)0
20521 #endif
20522
20523 static void *task(p)
20524         void *p;
20525 {
20526         return (void *) (p == NULL);
20527 }
20528
20529
20530 int main(argc, argv)
20531         int argc;
20532         char **argv;
20533 {
20534
20535         /* pthread test function */
20536 #ifndef PTHREAD_CREATE_DETACHED
20537 #define PTHREAD_CREATE_DETACHED 1
20538 #endif
20539         pthread_t t;
20540         int status;
20541         int detach = PTHREAD_CREATE_DETACHED;
20542
20543 #if HAVE_PTHREADS > 4
20544         /* Final pthreads */
20545         pthread_attr_t attr;
20546
20547         status = pthread_attr_init(&attr);
20548         if( status ) return status;
20549
20550 #if HAVE_PTHREADS < 7
20551         status = pthread_attr_setdetachstate(&attr, &detach);
20552         if( status < 0 ) status = errno;
20553 #else
20554         status = pthread_attr_setdetachstate(&attr, detach);
20555 #endif
20556         if( status ) return status;
20557         status = pthread_create( &t, &attr, task, NULL );
20558 #if HAVE_PTHREADS < 7
20559         if( status < 0 ) status = errno;
20560 #endif
20561         if( status ) return status;
20562 #else
20563         /* Draft 4 pthreads */
20564         status = pthread_create( &t, pthread_attr_default, task, NULL );
20565         if( status ) return errno;
20566
20567         /* give thread a chance to complete */
20568         /* it should remain joinable and hence detachable */
20569         sleep( 1 );
20570
20571         status = pthread_detach( &t );
20572         if( status ) return errno;
20573 #endif
20574
20575 #ifdef HAVE_LINUX_THREADS
20576         pthread_kill_other_threads_np();
20577 #endif
20578
20579         return 0;
20580
20581 }
20582
20583 _ACEOF
20584 rm -f conftest$ac_exeext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20586   (eval $ac_link) 2>&5
20587   ac_status=$?
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591   (eval $ac_try) 2>&5
20592   ac_status=$?
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); }; }; then
20595   ol_cv_pthread_thread=yes
20596 else
20597   echo "$as_me: program exited with status $ac_status" >&5
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ( exit $ac_status )
20602 ol_cv_pthread_thread=no
20603 fi
20604 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20605 fi
20606
20607                 # restore the LIBS
20608                 LIBS="$ol_LIBS"
20609
20610 fi
20611 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
20612 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
20613
20614         if test $ol_cv_pthread_thread = yes ; then
20615                 ol_link_pthreads="-thread"
20616                 ol_link_threads=posix
20617         fi
20618 fi
20619
20620
20621                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
20622 if test "$ol_link_threads" = no ; then
20623         # try -lpthread -lmach -lexc -lc_r
20624         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
20625 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
20626 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
20627   echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629
20630                 # save the flags
20631                 ol_LIBS="$LIBS"
20632                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
20633
20634                 if test "$cross_compiling" = yes; then
20635   cat >conftest.$ac_ext <<_ACEOF
20636 /* confdefs.h.  */
20637 _ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h.  */
20641
20642 /* pthread test headers */
20643 #include <pthread.h>
20644 #if HAVE_PTHREADS < 7
20645 #include <errno.h>
20646 #endif
20647 #ifndef NULL
20648 #define NULL (void*)0
20649 #endif
20650
20651 static void *task(p)
20652         void *p;
20653 {
20654         return (void *) (p == NULL);
20655 }
20656
20657 int
20658 main ()
20659 {
20660
20661         /* pthread test function */
20662 #ifndef PTHREAD_CREATE_DETACHED
20663 #define PTHREAD_CREATE_DETACHED 1
20664 #endif
20665         pthread_t t;
20666         int status;
20667         int detach = PTHREAD_CREATE_DETACHED;
20668
20669 #if HAVE_PTHREADS > 4
20670         /* Final pthreads */
20671         pthread_attr_t attr;
20672
20673         status = pthread_attr_init(&attr);
20674         if( status ) return status;
20675
20676 #if HAVE_PTHREADS < 7
20677         status = pthread_attr_setdetachstate(&attr, &detach);
20678         if( status < 0 ) status = errno;
20679 #else
20680         status = pthread_attr_setdetachstate(&attr, detach);
20681 #endif
20682         if( status ) return status;
20683         status = pthread_create( &t, &attr, task, NULL );
20684 #if HAVE_PTHREADS < 7
20685         if( status < 0 ) status = errno;
20686 #endif
20687         if( status ) return status;
20688 #else
20689         /* Draft 4 pthreads */
20690         status = pthread_create( &t, pthread_attr_default, task, NULL );
20691         if( status ) return errno;
20692
20693         /* give thread a chance to complete */
20694         /* it should remain joinable and hence detachable */
20695         sleep( 1 );
20696
20697         status = pthread_detach( &t );
20698         if( status ) return errno;
20699 #endif
20700
20701 #ifdef HAVE_LINUX_THREADS
20702         pthread_kill_other_threads_np();
20703 #endif
20704
20705         return 0;
20706
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext conftest$ac_exeext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20713   (eval $ac_link) 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -z "$ac_c_werror_flag"
20721                          || test ! -s conftest.err'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest$ac_exeext'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; }; then
20733   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20739 fi
20740 rm -f conftest.err conftest.$ac_objext \
20741       conftest$ac_exeext conftest.$ac_ext
20742 else
20743   cat >conftest.$ac_ext <<_ACEOF
20744 /* confdefs.h.  */
20745 _ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h.  */
20749
20750 /* pthread test headers */
20751 #include <pthread.h>
20752 #if HAVE_PTHREADS < 7
20753 #include <errno.h>
20754 #endif
20755 #ifndef NULL
20756 #define NULL (void*)0
20757 #endif
20758
20759 static void *task(p)
20760         void *p;
20761 {
20762         return (void *) (p == NULL);
20763 }
20764
20765
20766 int main(argc, argv)
20767         int argc;
20768         char **argv;
20769 {
20770
20771         /* pthread test function */
20772 #ifndef PTHREAD_CREATE_DETACHED
20773 #define PTHREAD_CREATE_DETACHED 1
20774 #endif
20775         pthread_t t;
20776         int status;
20777         int detach = PTHREAD_CREATE_DETACHED;
20778
20779 #if HAVE_PTHREADS > 4
20780         /* Final pthreads */
20781         pthread_attr_t attr;
20782
20783         status = pthread_attr_init(&attr);
20784         if( status ) return status;
20785
20786 #if HAVE_PTHREADS < 7
20787         status = pthread_attr_setdetachstate(&attr, &detach);
20788         if( status < 0 ) status = errno;
20789 #else
20790         status = pthread_attr_setdetachstate(&attr, detach);
20791 #endif
20792         if( status ) return status;
20793         status = pthread_create( &t, &attr, task, NULL );
20794 #if HAVE_PTHREADS < 7
20795         if( status < 0 ) status = errno;
20796 #endif
20797         if( status ) return status;
20798 #else
20799         /* Draft 4 pthreads */
20800         status = pthread_create( &t, pthread_attr_default, task, NULL );
20801         if( status ) return errno;
20802
20803         /* give thread a chance to complete */
20804         /* it should remain joinable and hence detachable */
20805         sleep( 1 );
20806
20807         status = pthread_detach( &t );
20808         if( status ) return errno;
20809 #endif
20810
20811 #ifdef HAVE_LINUX_THREADS
20812         pthread_kill_other_threads_np();
20813 #endif
20814
20815         return 0;
20816
20817 }
20818
20819 _ACEOF
20820 rm -f conftest$ac_exeext
20821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20822   (eval $ac_link) 2>&5
20823   ac_status=$?
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20827   (eval $ac_try) 2>&5
20828   ac_status=$?
20829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830   (exit $ac_status); }; }; then
20831   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
20832 else
20833   echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 ( exit $ac_status )
20838 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
20839 fi
20840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20841 fi
20842
20843                 # restore the LIBS
20844                 LIBS="$ol_LIBS"
20845
20846 fi
20847 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
20848 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
20849
20850         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
20851                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
20852                 ol_link_threads=posix
20853         fi
20854 fi
20855
20856                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
20857 if test "$ol_link_threads" = no ; then
20858         # try -lpthread -lmach -lexc
20859         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
20860 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
20861 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
20862   echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864
20865                 # save the flags
20866                 ol_LIBS="$LIBS"
20867                 LIBS="-lpthread -lmach -lexc $LIBS"
20868
20869                 if test "$cross_compiling" = yes; then
20870   cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876
20877 /* pthread test headers */
20878 #include <pthread.h>
20879 #if HAVE_PTHREADS < 7
20880 #include <errno.h>
20881 #endif
20882 #ifndef NULL
20883 #define NULL (void*)0
20884 #endif
20885
20886 static void *task(p)
20887         void *p;
20888 {
20889         return (void *) (p == NULL);
20890 }
20891
20892 int
20893 main ()
20894 {
20895
20896         /* pthread test function */
20897 #ifndef PTHREAD_CREATE_DETACHED
20898 #define PTHREAD_CREATE_DETACHED 1
20899 #endif
20900         pthread_t t;
20901         int status;
20902         int detach = PTHREAD_CREATE_DETACHED;
20903
20904 #if HAVE_PTHREADS > 4
20905         /* Final pthreads */
20906         pthread_attr_t attr;
20907
20908         status = pthread_attr_init(&attr);
20909         if( status ) return status;
20910
20911 #if HAVE_PTHREADS < 7
20912         status = pthread_attr_setdetachstate(&attr, &detach);
20913         if( status < 0 ) status = errno;
20914 #else
20915         status = pthread_attr_setdetachstate(&attr, detach);
20916 #endif
20917         if( status ) return status;
20918         status = pthread_create( &t, &attr, task, NULL );
20919 #if HAVE_PTHREADS < 7
20920         if( status < 0 ) status = errno;
20921 #endif
20922         if( status ) return status;
20923 #else
20924         /* Draft 4 pthreads */
20925         status = pthread_create( &t, pthread_attr_default, task, NULL );
20926         if( status ) return errno;
20927
20928         /* give thread a chance to complete */
20929         /* it should remain joinable and hence detachable */
20930         sleep( 1 );
20931
20932         status = pthread_detach( &t );
20933         if( status ) return errno;
20934 #endif
20935
20936 #ifdef HAVE_LINUX_THREADS
20937         pthread_kill_other_threads_np();
20938 #endif
20939
20940         return 0;
20941
20942   ;
20943   return 0;
20944 }
20945 _ACEOF
20946 rm -f conftest.$ac_objext conftest$ac_exeext
20947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20948   (eval $ac_link) 2>conftest.er1
20949   ac_status=$?
20950   grep -v '^ *+' conftest.er1 >conftest.err
20951   rm -f conftest.er1
20952   cat conftest.err >&5
20953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954   (exit $ac_status); } &&
20955          { ac_try='test -z "$ac_c_werror_flag"
20956                          || test ! -s conftest.err'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; } &&
20962          { ac_try='test -s conftest$ac_exeext'
20963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964   (eval $ac_try) 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; }; then
20968   ol_cv_pthread_lpthread_lmach_lexc=yes
20969 else
20970   echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20972
20973 ol_cv_pthread_lpthread_lmach_lexc=no
20974 fi
20975 rm -f conftest.err conftest.$ac_objext \
20976       conftest$ac_exeext conftest.$ac_ext
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984
20985 /* pthread test headers */
20986 #include <pthread.h>
20987 #if HAVE_PTHREADS < 7
20988 #include <errno.h>
20989 #endif
20990 #ifndef NULL
20991 #define NULL (void*)0
20992 #endif
20993
20994 static void *task(p)
20995         void *p;
20996 {
20997         return (void *) (p == NULL);
20998 }
20999
21000
21001 int main(argc, argv)
21002         int argc;
21003         char **argv;
21004 {
21005
21006         /* pthread test function */
21007 #ifndef PTHREAD_CREATE_DETACHED
21008 #define PTHREAD_CREATE_DETACHED 1
21009 #endif
21010         pthread_t t;
21011         int status;
21012         int detach = PTHREAD_CREATE_DETACHED;
21013
21014 #if HAVE_PTHREADS > 4
21015         /* Final pthreads */
21016         pthread_attr_t attr;
21017
21018         status = pthread_attr_init(&attr);
21019         if( status ) return status;
21020
21021 #if HAVE_PTHREADS < 7
21022         status = pthread_attr_setdetachstate(&attr, &detach);
21023         if( status < 0 ) status = errno;
21024 #else
21025         status = pthread_attr_setdetachstate(&attr, detach);
21026 #endif
21027         if( status ) return status;
21028         status = pthread_create( &t, &attr, task, NULL );
21029 #if HAVE_PTHREADS < 7
21030         if( status < 0 ) status = errno;
21031 #endif
21032         if( status ) return status;
21033 #else
21034         /* Draft 4 pthreads */
21035         status = pthread_create( &t, pthread_attr_default, task, NULL );
21036         if( status ) return errno;
21037
21038         /* give thread a chance to complete */
21039         /* it should remain joinable and hence detachable */
21040         sleep( 1 );
21041
21042         status = pthread_detach( &t );
21043         if( status ) return errno;
21044 #endif
21045
21046 #ifdef HAVE_LINUX_THREADS
21047         pthread_kill_other_threads_np();
21048 #endif
21049
21050         return 0;
21051
21052 }
21053
21054 _ACEOF
21055 rm -f conftest$ac_exeext
21056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21057   (eval $ac_link) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ol_cv_pthread_lpthread_lmach_lexc=yes
21067 else
21068   echo "$as_me: program exited with status $ac_status" >&5
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 ( exit $ac_status )
21073 ol_cv_pthread_lpthread_lmach_lexc=no
21074 fi
21075 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21076 fi
21077
21078                 # restore the LIBS
21079                 LIBS="$ol_LIBS"
21080
21081 fi
21082 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
21083 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
21084
21085         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
21086                 ol_link_pthreads="-lpthread -lmach -lexc"
21087                 ol_link_threads=posix
21088         fi
21089 fi
21090
21091
21092                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
21093 if test "$ol_link_threads" = no ; then
21094         # try -lpthread -Wl,-woff,85
21095         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
21096 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
21097 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
21098   echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100
21101                 # save the flags
21102                 ol_LIBS="$LIBS"
21103                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
21104
21105                 if test "$cross_compiling" = yes; then
21106   cat >conftest.$ac_ext <<_ACEOF
21107 /* confdefs.h.  */
21108 _ACEOF
21109 cat confdefs.h >>conftest.$ac_ext
21110 cat >>conftest.$ac_ext <<_ACEOF
21111 /* end confdefs.h.  */
21112
21113 /* pthread test headers */
21114 #include <pthread.h>
21115 #if HAVE_PTHREADS < 7
21116 #include <errno.h>
21117 #endif
21118 #ifndef NULL
21119 #define NULL (void*)0
21120 #endif
21121
21122 static void *task(p)
21123         void *p;
21124 {
21125         return (void *) (p == NULL);
21126 }
21127
21128 int
21129 main ()
21130 {
21131
21132         /* pthread test function */
21133 #ifndef PTHREAD_CREATE_DETACHED
21134 #define PTHREAD_CREATE_DETACHED 1
21135 #endif
21136         pthread_t t;
21137         int status;
21138         int detach = PTHREAD_CREATE_DETACHED;
21139
21140 #if HAVE_PTHREADS > 4
21141         /* Final pthreads */
21142         pthread_attr_t attr;
21143
21144         status = pthread_attr_init(&attr);
21145         if( status ) return status;
21146
21147 #if HAVE_PTHREADS < 7
21148         status = pthread_attr_setdetachstate(&attr, &detach);
21149         if( status < 0 ) status = errno;
21150 #else
21151         status = pthread_attr_setdetachstate(&attr, detach);
21152 #endif
21153         if( status ) return status;
21154         status = pthread_create( &t, &attr, task, NULL );
21155 #if HAVE_PTHREADS < 7
21156         if( status < 0 ) status = errno;
21157 #endif
21158         if( status ) return status;
21159 #else
21160         /* Draft 4 pthreads */
21161         status = pthread_create( &t, pthread_attr_default, task, NULL );
21162         if( status ) return errno;
21163
21164         /* give thread a chance to complete */
21165         /* it should remain joinable and hence detachable */
21166         sleep( 1 );
21167
21168         status = pthread_detach( &t );
21169         if( status ) return errno;
21170 #endif
21171
21172 #ifdef HAVE_LINUX_THREADS
21173         pthread_kill_other_threads_np();
21174 #endif
21175
21176         return 0;
21177
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 rm -f conftest.$ac_objext conftest$ac_exeext
21183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21184   (eval $ac_link) 2>conftest.er1
21185   ac_status=$?
21186   grep -v '^ *+' conftest.er1 >conftest.err
21187   rm -f conftest.er1
21188   cat conftest.err >&5
21189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190   (exit $ac_status); } &&
21191          { ac_try='test -z "$ac_c_werror_flag"
21192                          || test ! -s conftest.err'
21193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21194   (eval $ac_try) 2>&5
21195   ac_status=$?
21196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21197   (exit $ac_status); }; } &&
21198          { ac_try='test -s conftest$ac_exeext'
21199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21200   (eval $ac_try) 2>&5
21201   ac_status=$?
21202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203   (exit $ac_status); }; }; then
21204   ol_cv_pthread_lib_lpthread_woff=yes
21205 else
21206   echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ol_cv_pthread_lib_lpthread_woff=no
21210 fi
21211 rm -f conftest.err conftest.$ac_objext \
21212       conftest$ac_exeext conftest.$ac_ext
21213 else
21214   cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220
21221 /* pthread test headers */
21222 #include <pthread.h>
21223 #if HAVE_PTHREADS < 7
21224 #include <errno.h>
21225 #endif
21226 #ifndef NULL
21227 #define NULL (void*)0
21228 #endif
21229
21230 static void *task(p)
21231         void *p;
21232 {
21233         return (void *) (p == NULL);
21234 }
21235
21236
21237 int main(argc, argv)
21238         int argc;
21239         char **argv;
21240 {
21241
21242         /* pthread test function */
21243 #ifndef PTHREAD_CREATE_DETACHED
21244 #define PTHREAD_CREATE_DETACHED 1
21245 #endif
21246         pthread_t t;
21247         int status;
21248         int detach = PTHREAD_CREATE_DETACHED;
21249
21250 #if HAVE_PTHREADS > 4
21251         /* Final pthreads */
21252         pthread_attr_t attr;
21253
21254         status = pthread_attr_init(&attr);
21255         if( status ) return status;
21256
21257 #if HAVE_PTHREADS < 7
21258         status = pthread_attr_setdetachstate(&attr, &detach);
21259         if( status < 0 ) status = errno;
21260 #else
21261         status = pthread_attr_setdetachstate(&attr, detach);
21262 #endif
21263         if( status ) return status;
21264         status = pthread_create( &t, &attr, task, NULL );
21265 #if HAVE_PTHREADS < 7
21266         if( status < 0 ) status = errno;
21267 #endif
21268         if( status ) return status;
21269 #else
21270         /* Draft 4 pthreads */
21271         status = pthread_create( &t, pthread_attr_default, task, NULL );
21272         if( status ) return errno;
21273
21274         /* give thread a chance to complete */
21275         /* it should remain joinable and hence detachable */
21276         sleep( 1 );
21277
21278         status = pthread_detach( &t );
21279         if( status ) return errno;
21280 #endif
21281
21282 #ifdef HAVE_LINUX_THREADS
21283         pthread_kill_other_threads_np();
21284 #endif
21285
21286         return 0;
21287
21288 }
21289
21290 _ACEOF
21291 rm -f conftest$ac_exeext
21292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21293   (eval $ac_link) 2>&5
21294   ac_status=$?
21295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298   (eval $ac_try) 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ol_cv_pthread_lib_lpthread_woff=yes
21303 else
21304   echo "$as_me: program exited with status $ac_status" >&5
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 ( exit $ac_status )
21309 ol_cv_pthread_lib_lpthread_woff=no
21310 fi
21311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21312 fi
21313
21314                 # restore the LIBS
21315                 LIBS="$ol_LIBS"
21316
21317 fi
21318 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
21319 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
21320
21321         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
21322                 ol_link_pthreads="-lpthread -Wl,-woff,85"
21323                 ol_link_threads=posix
21324         fi
21325 fi
21326
21327
21328                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
21329 if test "$ol_link_threads" = no ; then
21330         # try -lpthread
21331         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
21332 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
21333 if test "${ol_cv_pthread_lpthread+set}" = set; then
21334   echo $ECHO_N "(cached) $ECHO_C" >&6
21335 else
21336
21337                 # save the flags
21338                 ol_LIBS="$LIBS"
21339                 LIBS="-lpthread $LIBS"
21340
21341                 if test "$cross_compiling" = yes; then
21342   cat >conftest.$ac_ext <<_ACEOF
21343 /* confdefs.h.  */
21344 _ACEOF
21345 cat confdefs.h >>conftest.$ac_ext
21346 cat >>conftest.$ac_ext <<_ACEOF
21347 /* end confdefs.h.  */
21348
21349 /* pthread test headers */
21350 #include <pthread.h>
21351 #if HAVE_PTHREADS < 7
21352 #include <errno.h>
21353 #endif
21354 #ifndef NULL
21355 #define NULL (void*)0
21356 #endif
21357
21358 static void *task(p)
21359         void *p;
21360 {
21361         return (void *) (p == NULL);
21362 }
21363
21364 int
21365 main ()
21366 {
21367
21368         /* pthread test function */
21369 #ifndef PTHREAD_CREATE_DETACHED
21370 #define PTHREAD_CREATE_DETACHED 1
21371 #endif
21372         pthread_t t;
21373         int status;
21374         int detach = PTHREAD_CREATE_DETACHED;
21375
21376 #if HAVE_PTHREADS > 4
21377         /* Final pthreads */
21378         pthread_attr_t attr;
21379
21380         status = pthread_attr_init(&attr);
21381         if( status ) return status;
21382
21383 #if HAVE_PTHREADS < 7
21384         status = pthread_attr_setdetachstate(&attr, &detach);
21385         if( status < 0 ) status = errno;
21386 #else
21387         status = pthread_attr_setdetachstate(&attr, detach);
21388 #endif
21389         if( status ) return status;
21390         status = pthread_create( &t, &attr, task, NULL );
21391 #if HAVE_PTHREADS < 7
21392         if( status < 0 ) status = errno;
21393 #endif
21394         if( status ) return status;
21395 #else
21396         /* Draft 4 pthreads */
21397         status = pthread_create( &t, pthread_attr_default, task, NULL );
21398         if( status ) return errno;
21399
21400         /* give thread a chance to complete */
21401         /* it should remain joinable and hence detachable */
21402         sleep( 1 );
21403
21404         status = pthread_detach( &t );
21405         if( status ) return errno;
21406 #endif
21407
21408 #ifdef HAVE_LINUX_THREADS
21409         pthread_kill_other_threads_np();
21410 #endif
21411
21412         return 0;
21413
21414   ;
21415   return 0;
21416 }
21417 _ACEOF
21418 rm -f conftest.$ac_objext conftest$ac_exeext
21419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21420   (eval $ac_link) 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } &&
21427          { ac_try='test -z "$ac_c_werror_flag"
21428                          || test ! -s conftest.err'
21429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21430   (eval $ac_try) 2>&5
21431   ac_status=$?
21432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21433   (exit $ac_status); }; } &&
21434          { ac_try='test -s conftest$ac_exeext'
21435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21436   (eval $ac_try) 2>&5
21437   ac_status=$?
21438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439   (exit $ac_status); }; }; then
21440   ol_cv_pthread_lpthread=yes
21441 else
21442   echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ol_cv_pthread_lpthread=no
21446 fi
21447 rm -f conftest.err conftest.$ac_objext \
21448       conftest$ac_exeext conftest.$ac_ext
21449 else
21450   cat >conftest.$ac_ext <<_ACEOF
21451 /* confdefs.h.  */
21452 _ACEOF
21453 cat confdefs.h >>conftest.$ac_ext
21454 cat >>conftest.$ac_ext <<_ACEOF
21455 /* end confdefs.h.  */
21456
21457 /* pthread test headers */
21458 #include <pthread.h>
21459 #if HAVE_PTHREADS < 7
21460 #include <errno.h>
21461 #endif
21462 #ifndef NULL
21463 #define NULL (void*)0
21464 #endif
21465
21466 static void *task(p)
21467         void *p;
21468 {
21469         return (void *) (p == NULL);
21470 }
21471
21472
21473 int main(argc, argv)
21474         int argc;
21475         char **argv;
21476 {
21477
21478         /* pthread test function */
21479 #ifndef PTHREAD_CREATE_DETACHED
21480 #define PTHREAD_CREATE_DETACHED 1
21481 #endif
21482         pthread_t t;
21483         int status;
21484         int detach = PTHREAD_CREATE_DETACHED;
21485
21486 #if HAVE_PTHREADS > 4
21487         /* Final pthreads */
21488         pthread_attr_t attr;
21489
21490         status = pthread_attr_init(&attr);
21491         if( status ) return status;
21492
21493 #if HAVE_PTHREADS < 7
21494         status = pthread_attr_setdetachstate(&attr, &detach);
21495         if( status < 0 ) status = errno;
21496 #else
21497         status = pthread_attr_setdetachstate(&attr, detach);
21498 #endif
21499         if( status ) return status;
21500         status = pthread_create( &t, &attr, task, NULL );
21501 #if HAVE_PTHREADS < 7
21502         if( status < 0 ) status = errno;
21503 #endif
21504         if( status ) return status;
21505 #else
21506         /* Draft 4 pthreads */
21507         status = pthread_create( &t, pthread_attr_default, task, NULL );
21508         if( status ) return errno;
21509
21510         /* give thread a chance to complete */
21511         /* it should remain joinable and hence detachable */
21512         sleep( 1 );
21513
21514         status = pthread_detach( &t );
21515         if( status ) return errno;
21516 #endif
21517
21518 #ifdef HAVE_LINUX_THREADS
21519         pthread_kill_other_threads_np();
21520 #endif
21521
21522         return 0;
21523
21524 }
21525
21526 _ACEOF
21527 rm -f conftest$ac_exeext
21528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529   (eval $ac_link) 2>&5
21530   ac_status=$?
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534   (eval $ac_try) 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; }; then
21538   ol_cv_pthread_lpthread=yes
21539 else
21540   echo "$as_me: program exited with status $ac_status" >&5
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ( exit $ac_status )
21545 ol_cv_pthread_lpthread=no
21546 fi
21547 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21548 fi
21549
21550                 # restore the LIBS
21551                 LIBS="$ol_LIBS"
21552
21553 fi
21554 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
21555 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
21556
21557         if test $ol_cv_pthread_lpthread = yes ; then
21558                 ol_link_pthreads="-lpthread"
21559                 ol_link_threads=posix
21560         fi
21561 fi
21562
21563                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
21564 if test "$ol_link_threads" = no ; then
21565         # try -lc_r
21566         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
21567 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
21568 if test "${ol_cv_pthread_lc_r+set}" = set; then
21569   echo $ECHO_N "(cached) $ECHO_C" >&6
21570 else
21571
21572                 # save the flags
21573                 ol_LIBS="$LIBS"
21574                 LIBS="-lc_r $LIBS"
21575
21576                 if test "$cross_compiling" = yes; then
21577   cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h.  */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h.  */
21583
21584 /* pthread test headers */
21585 #include <pthread.h>
21586 #if HAVE_PTHREADS < 7
21587 #include <errno.h>
21588 #endif
21589 #ifndef NULL
21590 #define NULL (void*)0
21591 #endif
21592
21593 static void *task(p)
21594         void *p;
21595 {
21596         return (void *) (p == NULL);
21597 }
21598
21599 int
21600 main ()
21601 {
21602
21603         /* pthread test function */
21604 #ifndef PTHREAD_CREATE_DETACHED
21605 #define PTHREAD_CREATE_DETACHED 1
21606 #endif
21607         pthread_t t;
21608         int status;
21609         int detach = PTHREAD_CREATE_DETACHED;
21610
21611 #if HAVE_PTHREADS > 4
21612         /* Final pthreads */
21613         pthread_attr_t attr;
21614
21615         status = pthread_attr_init(&attr);
21616         if( status ) return status;
21617
21618 #if HAVE_PTHREADS < 7
21619         status = pthread_attr_setdetachstate(&attr, &detach);
21620         if( status < 0 ) status = errno;
21621 #else
21622         status = pthread_attr_setdetachstate(&attr, detach);
21623 #endif
21624         if( status ) return status;
21625         status = pthread_create( &t, &attr, task, NULL );
21626 #if HAVE_PTHREADS < 7
21627         if( status < 0 ) status = errno;
21628 #endif
21629         if( status ) return status;
21630 #else
21631         /* Draft 4 pthreads */
21632         status = pthread_create( &t, pthread_attr_default, task, NULL );
21633         if( status ) return errno;
21634
21635         /* give thread a chance to complete */
21636         /* it should remain joinable and hence detachable */
21637         sleep( 1 );
21638
21639         status = pthread_detach( &t );
21640         if( status ) return errno;
21641 #endif
21642
21643 #ifdef HAVE_LINUX_THREADS
21644         pthread_kill_other_threads_np();
21645 #endif
21646
21647         return 0;
21648
21649   ;
21650   return 0;
21651 }
21652 _ACEOF
21653 rm -f conftest.$ac_objext conftest$ac_exeext
21654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21655   (eval $ac_link) 2>conftest.er1
21656   ac_status=$?
21657   grep -v '^ *+' conftest.er1 >conftest.err
21658   rm -f conftest.er1
21659   cat conftest.err >&5
21660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661   (exit $ac_status); } &&
21662          { ac_try='test -z "$ac_c_werror_flag"
21663                          || test ! -s conftest.err'
21664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21665   (eval $ac_try) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; } &&
21669          { ac_try='test -s conftest$ac_exeext'
21670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21671   (eval $ac_try) 2>&5
21672   ac_status=$?
21673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); }; }; then
21675   ol_cv_pthread_lc_r=yes
21676 else
21677   echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680 ol_cv_pthread_lc_r=no
21681 fi
21682 rm -f conftest.err conftest.$ac_objext \
21683       conftest$ac_exeext conftest.$ac_ext
21684 else
21685   cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h.  */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h.  */
21691
21692 /* pthread test headers */
21693 #include <pthread.h>
21694 #if HAVE_PTHREADS < 7
21695 #include <errno.h>
21696 #endif
21697 #ifndef NULL
21698 #define NULL (void*)0
21699 #endif
21700
21701 static void *task(p)
21702         void *p;
21703 {
21704         return (void *) (p == NULL);
21705 }
21706
21707
21708 int main(argc, argv)
21709         int argc;
21710         char **argv;
21711 {
21712
21713         /* pthread test function */
21714 #ifndef PTHREAD_CREATE_DETACHED
21715 #define PTHREAD_CREATE_DETACHED 1
21716 #endif
21717         pthread_t t;
21718         int status;
21719         int detach = PTHREAD_CREATE_DETACHED;
21720
21721 #if HAVE_PTHREADS > 4
21722         /* Final pthreads */
21723         pthread_attr_t attr;
21724
21725         status = pthread_attr_init(&attr);
21726         if( status ) return status;
21727
21728 #if HAVE_PTHREADS < 7
21729         status = pthread_attr_setdetachstate(&attr, &detach);
21730         if( status < 0 ) status = errno;
21731 #else
21732         status = pthread_attr_setdetachstate(&attr, detach);
21733 #endif
21734         if( status ) return status;
21735         status = pthread_create( &t, &attr, task, NULL );
21736 #if HAVE_PTHREADS < 7
21737         if( status < 0 ) status = errno;
21738 #endif
21739         if( status ) return status;
21740 #else
21741         /* Draft 4 pthreads */
21742         status = pthread_create( &t, pthread_attr_default, task, NULL );
21743         if( status ) return errno;
21744
21745         /* give thread a chance to complete */
21746         /* it should remain joinable and hence detachable */
21747         sleep( 1 );
21748
21749         status = pthread_detach( &t );
21750         if( status ) return errno;
21751 #endif
21752
21753 #ifdef HAVE_LINUX_THREADS
21754         pthread_kill_other_threads_np();
21755 #endif
21756
21757         return 0;
21758
21759 }
21760
21761 _ACEOF
21762 rm -f conftest$ac_exeext
21763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21764   (eval $ac_link) 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769   (eval $ac_try) 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   ol_cv_pthread_lc_r=yes
21774 else
21775   echo "$as_me: program exited with status $ac_status" >&5
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ( exit $ac_status )
21780 ol_cv_pthread_lc_r=no
21781 fi
21782 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21783 fi
21784
21785                 # restore the LIBS
21786                 LIBS="$ol_LIBS"
21787
21788 fi
21789 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
21790 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
21791
21792         if test $ol_cv_pthread_lc_r = yes ; then
21793                 ol_link_pthreads="-lc_r"
21794                 ol_link_threads=posix
21795         fi
21796 fi
21797
21798
21799                 # Pthread try link: -threads (ol_cv_pthread_threads)
21800 if test "$ol_link_threads" = no ; then
21801         # try -threads
21802         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
21803 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
21804 if test "${ol_cv_pthread_threads+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807
21808                 # save the flags
21809                 ol_LIBS="$LIBS"
21810                 LIBS="-threads $LIBS"
21811
21812                 if test "$cross_compiling" = yes; then
21813   cat >conftest.$ac_ext <<_ACEOF
21814 /* confdefs.h.  */
21815 _ACEOF
21816 cat confdefs.h >>conftest.$ac_ext
21817 cat >>conftest.$ac_ext <<_ACEOF
21818 /* end confdefs.h.  */
21819
21820 /* pthread test headers */
21821 #include <pthread.h>
21822 #if HAVE_PTHREADS < 7
21823 #include <errno.h>
21824 #endif
21825 #ifndef NULL
21826 #define NULL (void*)0
21827 #endif
21828
21829 static void *task(p)
21830         void *p;
21831 {
21832         return (void *) (p == NULL);
21833 }
21834
21835 int
21836 main ()
21837 {
21838
21839         /* pthread test function */
21840 #ifndef PTHREAD_CREATE_DETACHED
21841 #define PTHREAD_CREATE_DETACHED 1
21842 #endif
21843         pthread_t t;
21844         int status;
21845         int detach = PTHREAD_CREATE_DETACHED;
21846
21847 #if HAVE_PTHREADS > 4
21848         /* Final pthreads */
21849         pthread_attr_t attr;
21850
21851         status = pthread_attr_init(&attr);
21852         if( status ) return status;
21853
21854 #if HAVE_PTHREADS < 7
21855         status = pthread_attr_setdetachstate(&attr, &detach);
21856         if( status < 0 ) status = errno;
21857 #else
21858         status = pthread_attr_setdetachstate(&attr, detach);
21859 #endif
21860         if( status ) return status;
21861         status = pthread_create( &t, &attr, task, NULL );
21862 #if HAVE_PTHREADS < 7
21863         if( status < 0 ) status = errno;
21864 #endif
21865         if( status ) return status;
21866 #else
21867         /* Draft 4 pthreads */
21868         status = pthread_create( &t, pthread_attr_default, task, NULL );
21869         if( status ) return errno;
21870
21871         /* give thread a chance to complete */
21872         /* it should remain joinable and hence detachable */
21873         sleep( 1 );
21874
21875         status = pthread_detach( &t );
21876         if( status ) return errno;
21877 #endif
21878
21879 #ifdef HAVE_LINUX_THREADS
21880         pthread_kill_other_threads_np();
21881 #endif
21882
21883         return 0;
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext conftest$ac_exeext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21891   (eval $ac_link) 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } &&
21898          { ac_try='test -z "$ac_c_werror_flag"
21899                          || test ! -s conftest.err'
21900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901   (eval $ac_try) 2>&5
21902   ac_status=$?
21903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904   (exit $ac_status); }; } &&
21905          { ac_try='test -s conftest$ac_exeext'
21906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907   (eval $ac_try) 2>&5
21908   ac_status=$?
21909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910   (exit $ac_status); }; }; then
21911   ol_cv_pthread_threads=yes
21912 else
21913   echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ol_cv_pthread_threads=no
21917 fi
21918 rm -f conftest.err conftest.$ac_objext \
21919       conftest$ac_exeext conftest.$ac_ext
21920 else
21921   cat >conftest.$ac_ext <<_ACEOF
21922 /* confdefs.h.  */
21923 _ACEOF
21924 cat confdefs.h >>conftest.$ac_ext
21925 cat >>conftest.$ac_ext <<_ACEOF
21926 /* end confdefs.h.  */
21927
21928 /* pthread test headers */
21929 #include <pthread.h>
21930 #if HAVE_PTHREADS < 7
21931 #include <errno.h>
21932 #endif
21933 #ifndef NULL
21934 #define NULL (void*)0
21935 #endif
21936
21937 static void *task(p)
21938         void *p;
21939 {
21940         return (void *) (p == NULL);
21941 }
21942
21943
21944 int main(argc, argv)
21945         int argc;
21946         char **argv;
21947 {
21948
21949         /* pthread test function */
21950 #ifndef PTHREAD_CREATE_DETACHED
21951 #define PTHREAD_CREATE_DETACHED 1
21952 #endif
21953         pthread_t t;
21954         int status;
21955         int detach = PTHREAD_CREATE_DETACHED;
21956
21957 #if HAVE_PTHREADS > 4
21958         /* Final pthreads */
21959         pthread_attr_t attr;
21960
21961         status = pthread_attr_init(&attr);
21962         if( status ) return status;
21963
21964 #if HAVE_PTHREADS < 7
21965         status = pthread_attr_setdetachstate(&attr, &detach);
21966         if( status < 0 ) status = errno;
21967 #else
21968         status = pthread_attr_setdetachstate(&attr, detach);
21969 #endif
21970         if( status ) return status;
21971         status = pthread_create( &t, &attr, task, NULL );
21972 #if HAVE_PTHREADS < 7
21973         if( status < 0 ) status = errno;
21974 #endif
21975         if( status ) return status;
21976 #else
21977         /* Draft 4 pthreads */
21978         status = pthread_create( &t, pthread_attr_default, task, NULL );
21979         if( status ) return errno;
21980
21981         /* give thread a chance to complete */
21982         /* it should remain joinable and hence detachable */
21983         sleep( 1 );
21984
21985         status = pthread_detach( &t );
21986         if( status ) return errno;
21987 #endif
21988
21989 #ifdef HAVE_LINUX_THREADS
21990         pthread_kill_other_threads_np();
21991 #endif
21992
21993         return 0;
21994
21995 }
21996
21997 _ACEOF
21998 rm -f conftest$ac_exeext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22000   (eval $ac_link) 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005   (eval $ac_try) 2>&5
22006   ac_status=$?
22007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008   (exit $ac_status); }; }; then
22009   ol_cv_pthread_threads=yes
22010 else
22011   echo "$as_me: program exited with status $ac_status" >&5
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015 ( exit $ac_status )
22016 ol_cv_pthread_threads=no
22017 fi
22018 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22019 fi
22020
22021                 # restore the LIBS
22022                 LIBS="$ol_LIBS"
22023
22024 fi
22025 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
22026 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
22027
22028         if test $ol_cv_pthread_threads = yes ; then
22029                 ol_link_pthreads="-threads"
22030                 ol_link_threads=posix
22031         fi
22032 fi
22033
22034
22035                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
22036 if test "$ol_link_threads" = no ; then
22037         # try -lpthreads -lmach -lexc -lc_r
22038         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
22039 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
22040 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043
22044                 # save the flags
22045                 ol_LIBS="$LIBS"
22046                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
22047
22048                 if test "$cross_compiling" = yes; then
22049   cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h.  */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h.  */
22055
22056 /* pthread test headers */
22057 #include <pthread.h>
22058 #if HAVE_PTHREADS < 7
22059 #include <errno.h>
22060 #endif
22061 #ifndef NULL
22062 #define NULL (void*)0
22063 #endif
22064
22065 static void *task(p)
22066         void *p;
22067 {
22068         return (void *) (p == NULL);
22069 }
22070
22071 int
22072 main ()
22073 {
22074
22075         /* pthread test function */
22076 #ifndef PTHREAD_CREATE_DETACHED
22077 #define PTHREAD_CREATE_DETACHED 1
22078 #endif
22079         pthread_t t;
22080         int status;
22081         int detach = PTHREAD_CREATE_DETACHED;
22082
22083 #if HAVE_PTHREADS > 4
22084         /* Final pthreads */
22085         pthread_attr_t attr;
22086
22087         status = pthread_attr_init(&attr);
22088         if( status ) return status;
22089
22090 #if HAVE_PTHREADS < 7
22091         status = pthread_attr_setdetachstate(&attr, &detach);
22092         if( status < 0 ) status = errno;
22093 #else
22094         status = pthread_attr_setdetachstate(&attr, detach);
22095 #endif
22096         if( status ) return status;
22097         status = pthread_create( &t, &attr, task, NULL );
22098 #if HAVE_PTHREADS < 7
22099         if( status < 0 ) status = errno;
22100 #endif
22101         if( status ) return status;
22102 #else
22103         /* Draft 4 pthreads */
22104         status = pthread_create( &t, pthread_attr_default, task, NULL );
22105         if( status ) return errno;
22106
22107         /* give thread a chance to complete */
22108         /* it should remain joinable and hence detachable */
22109         sleep( 1 );
22110
22111         status = pthread_detach( &t );
22112         if( status ) return errno;
22113 #endif
22114
22115 #ifdef HAVE_LINUX_THREADS
22116         pthread_kill_other_threads_np();
22117 #endif
22118
22119         return 0;
22120
22121   ;
22122   return 0;
22123 }
22124 _ACEOF
22125 rm -f conftest.$ac_objext conftest$ac_exeext
22126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22127   (eval $ac_link) 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } &&
22134          { ac_try='test -z "$ac_c_werror_flag"
22135                          || test ! -s conftest.err'
22136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22137   (eval $ac_try) 2>&5
22138   ac_status=$?
22139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140   (exit $ac_status); }; } &&
22141          { ac_try='test -s conftest$ac_exeext'
22142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143   (eval $ac_try) 2>&5
22144   ac_status=$?
22145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146   (exit $ac_status); }; }; then
22147   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22148 else
22149   echo "$as_me: failed program was:" >&5
22150 sed 's/^/| /' conftest.$ac_ext >&5
22151
22152 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22153 fi
22154 rm -f conftest.err conftest.$ac_objext \
22155       conftest$ac_exeext conftest.$ac_ext
22156 else
22157   cat >conftest.$ac_ext <<_ACEOF
22158 /* confdefs.h.  */
22159 _ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h.  */
22163
22164 /* pthread test headers */
22165 #include <pthread.h>
22166 #if HAVE_PTHREADS < 7
22167 #include <errno.h>
22168 #endif
22169 #ifndef NULL
22170 #define NULL (void*)0
22171 #endif
22172
22173 static void *task(p)
22174         void *p;
22175 {
22176         return (void *) (p == NULL);
22177 }
22178
22179
22180 int main(argc, argv)
22181         int argc;
22182         char **argv;
22183 {
22184
22185         /* pthread test function */
22186 #ifndef PTHREAD_CREATE_DETACHED
22187 #define PTHREAD_CREATE_DETACHED 1
22188 #endif
22189         pthread_t t;
22190         int status;
22191         int detach = PTHREAD_CREATE_DETACHED;
22192
22193 #if HAVE_PTHREADS > 4
22194         /* Final pthreads */
22195         pthread_attr_t attr;
22196
22197         status = pthread_attr_init(&attr);
22198         if( status ) return status;
22199
22200 #if HAVE_PTHREADS < 7
22201         status = pthread_attr_setdetachstate(&attr, &detach);
22202         if( status < 0 ) status = errno;
22203 #else
22204         status = pthread_attr_setdetachstate(&attr, detach);
22205 #endif
22206         if( status ) return status;
22207         status = pthread_create( &t, &attr, task, NULL );
22208 #if HAVE_PTHREADS < 7
22209         if( status < 0 ) status = errno;
22210 #endif
22211         if( status ) return status;
22212 #else
22213         /* Draft 4 pthreads */
22214         status = pthread_create( &t, pthread_attr_default, task, NULL );
22215         if( status ) return errno;
22216
22217         /* give thread a chance to complete */
22218         /* it should remain joinable and hence detachable */
22219         sleep( 1 );
22220
22221         status = pthread_detach( &t );
22222         if( status ) return errno;
22223 #endif
22224
22225 #ifdef HAVE_LINUX_THREADS
22226         pthread_kill_other_threads_np();
22227 #endif
22228
22229         return 0;
22230
22231 }
22232
22233 _ACEOF
22234 rm -f conftest$ac_exeext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236   (eval $ac_link) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22241   (eval $ac_try) 2>&5
22242   ac_status=$?
22243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244   (exit $ac_status); }; }; then
22245   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
22246 else
22247   echo "$as_me: program exited with status $ac_status" >&5
22248 echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 ( exit $ac_status )
22252 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
22253 fi
22254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22255 fi
22256
22257                 # restore the LIBS
22258                 LIBS="$ol_LIBS"
22259
22260 fi
22261 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
22262 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
22263
22264         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
22265                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
22266                 ol_link_threads=posix
22267         fi
22268 fi
22269
22270                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
22271 if test "$ol_link_threads" = no ; then
22272         # try -lpthreads -lmach -lexc
22273         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
22274 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
22275 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
22276   echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278
22279                 # save the flags
22280                 ol_LIBS="$LIBS"
22281                 LIBS="-lpthreads -lmach -lexc $LIBS"
22282
22283                 if test "$cross_compiling" = yes; then
22284   cat >conftest.$ac_ext <<_ACEOF
22285 /* confdefs.h.  */
22286 _ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h.  */
22290
22291 /* pthread test headers */
22292 #include <pthread.h>
22293 #if HAVE_PTHREADS < 7
22294 #include <errno.h>
22295 #endif
22296 #ifndef NULL
22297 #define NULL (void*)0
22298 #endif
22299
22300 static void *task(p)
22301         void *p;
22302 {
22303         return (void *) (p == NULL);
22304 }
22305
22306 int
22307 main ()
22308 {
22309
22310         /* pthread test function */
22311 #ifndef PTHREAD_CREATE_DETACHED
22312 #define PTHREAD_CREATE_DETACHED 1
22313 #endif
22314         pthread_t t;
22315         int status;
22316         int detach = PTHREAD_CREATE_DETACHED;
22317
22318 #if HAVE_PTHREADS > 4
22319         /* Final pthreads */
22320         pthread_attr_t attr;
22321
22322         status = pthread_attr_init(&attr);
22323         if( status ) return status;
22324
22325 #if HAVE_PTHREADS < 7
22326         status = pthread_attr_setdetachstate(&attr, &detach);
22327         if( status < 0 ) status = errno;
22328 #else
22329         status = pthread_attr_setdetachstate(&attr, detach);
22330 #endif
22331         if( status ) return status;
22332         status = pthread_create( &t, &attr, task, NULL );
22333 #if HAVE_PTHREADS < 7
22334         if( status < 0 ) status = errno;
22335 #endif
22336         if( status ) return status;
22337 #else
22338         /* Draft 4 pthreads */
22339         status = pthread_create( &t, pthread_attr_default, task, NULL );
22340         if( status ) return errno;
22341
22342         /* give thread a chance to complete */
22343         /* it should remain joinable and hence detachable */
22344         sleep( 1 );
22345
22346         status = pthread_detach( &t );
22347         if( status ) return errno;
22348 #endif
22349
22350 #ifdef HAVE_LINUX_THREADS
22351         pthread_kill_other_threads_np();
22352 #endif
22353
22354         return 0;
22355
22356   ;
22357   return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext conftest$ac_exeext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362   (eval $ac_link) 2>conftest.er1
22363   ac_status=$?
22364   grep -v '^ *+' conftest.er1 >conftest.err
22365   rm -f conftest.er1
22366   cat conftest.err >&5
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } &&
22369          { ac_try='test -z "$ac_c_werror_flag"
22370                          || test ! -s conftest.err'
22371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372   (eval $ac_try) 2>&5
22373   ac_status=$?
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); }; } &&
22376          { ac_try='test -s conftest$ac_exeext'
22377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; }; then
22382   ol_cv_pthread_lpthreads_lmach_lexc=yes
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 ol_cv_pthread_lpthreads_lmach_lexc=no
22388 fi
22389 rm -f conftest.err conftest.$ac_objext \
22390       conftest$ac_exeext conftest.$ac_ext
22391 else
22392   cat >conftest.$ac_ext <<_ACEOF
22393 /* confdefs.h.  */
22394 _ACEOF
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h.  */
22398
22399 /* pthread test headers */
22400 #include <pthread.h>
22401 #if HAVE_PTHREADS < 7
22402 #include <errno.h>
22403 #endif
22404 #ifndef NULL
22405 #define NULL (void*)0
22406 #endif
22407
22408 static void *task(p)
22409         void *p;
22410 {
22411         return (void *) (p == NULL);
22412 }
22413
22414
22415 int main(argc, argv)
22416         int argc;
22417         char **argv;
22418 {
22419
22420         /* pthread test function */
22421 #ifndef PTHREAD_CREATE_DETACHED
22422 #define PTHREAD_CREATE_DETACHED 1
22423 #endif
22424         pthread_t t;
22425         int status;
22426         int detach = PTHREAD_CREATE_DETACHED;
22427
22428 #if HAVE_PTHREADS > 4
22429         /* Final pthreads */
22430         pthread_attr_t attr;
22431
22432         status = pthread_attr_init(&attr);
22433         if( status ) return status;
22434
22435 #if HAVE_PTHREADS < 7
22436         status = pthread_attr_setdetachstate(&attr, &detach);
22437         if( status < 0 ) status = errno;
22438 #else
22439         status = pthread_attr_setdetachstate(&attr, detach);
22440 #endif
22441         if( status ) return status;
22442         status = pthread_create( &t, &attr, task, NULL );
22443 #if HAVE_PTHREADS < 7
22444         if( status < 0 ) status = errno;
22445 #endif
22446         if( status ) return status;
22447 #else
22448         /* Draft 4 pthreads */
22449         status = pthread_create( &t, pthread_attr_default, task, NULL );
22450         if( status ) return errno;
22451
22452         /* give thread a chance to complete */
22453         /* it should remain joinable and hence detachable */
22454         sleep( 1 );
22455
22456         status = pthread_detach( &t );
22457         if( status ) return errno;
22458 #endif
22459
22460 #ifdef HAVE_LINUX_THREADS
22461         pthread_kill_other_threads_np();
22462 #endif
22463
22464         return 0;
22465
22466 }
22467
22468 _ACEOF
22469 rm -f conftest$ac_exeext
22470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22471   (eval $ac_link) 2>&5
22472   ac_status=$?
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22476   (eval $ac_try) 2>&5
22477   ac_status=$?
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); }; }; then
22480   ol_cv_pthread_lpthreads_lmach_lexc=yes
22481 else
22482   echo "$as_me: program exited with status $ac_status" >&5
22483 echo "$as_me: failed program was:" >&5
22484 sed 's/^/| /' conftest.$ac_ext >&5
22485
22486 ( exit $ac_status )
22487 ol_cv_pthread_lpthreads_lmach_lexc=no
22488 fi
22489 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22490 fi
22491
22492                 # restore the LIBS
22493                 LIBS="$ol_LIBS"
22494
22495 fi
22496 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
22497 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
22498
22499         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
22500                 ol_link_pthreads="-lpthreads -lmach -lexc"
22501                 ol_link_threads=posix
22502         fi
22503 fi
22504
22505                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
22506 if test "$ol_link_threads" = no ; then
22507         # try -lpthreads -lexc
22508         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
22509 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
22510 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
22511   echo $ECHO_N "(cached) $ECHO_C" >&6
22512 else
22513
22514                 # save the flags
22515                 ol_LIBS="$LIBS"
22516                 LIBS="-lpthreads -lexc $LIBS"
22517
22518                 if test "$cross_compiling" = yes; then
22519   cat >conftest.$ac_ext <<_ACEOF
22520 /* confdefs.h.  */
22521 _ACEOF
22522 cat confdefs.h >>conftest.$ac_ext
22523 cat >>conftest.$ac_ext <<_ACEOF
22524 /* end confdefs.h.  */
22525
22526 /* pthread test headers */
22527 #include <pthread.h>
22528 #if HAVE_PTHREADS < 7
22529 #include <errno.h>
22530 #endif
22531 #ifndef NULL
22532 #define NULL (void*)0
22533 #endif
22534
22535 static void *task(p)
22536         void *p;
22537 {
22538         return (void *) (p == NULL);
22539 }
22540
22541 int
22542 main ()
22543 {
22544
22545         /* pthread test function */
22546 #ifndef PTHREAD_CREATE_DETACHED
22547 #define PTHREAD_CREATE_DETACHED 1
22548 #endif
22549         pthread_t t;
22550         int status;
22551         int detach = PTHREAD_CREATE_DETACHED;
22552
22553 #if HAVE_PTHREADS > 4
22554         /* Final pthreads */
22555         pthread_attr_t attr;
22556
22557         status = pthread_attr_init(&attr);
22558         if( status ) return status;
22559
22560 #if HAVE_PTHREADS < 7
22561         status = pthread_attr_setdetachstate(&attr, &detach);
22562         if( status < 0 ) status = errno;
22563 #else
22564         status = pthread_attr_setdetachstate(&attr, detach);
22565 #endif
22566         if( status ) return status;
22567         status = pthread_create( &t, &attr, task, NULL );
22568 #if HAVE_PTHREADS < 7
22569         if( status < 0 ) status = errno;
22570 #endif
22571         if( status ) return status;
22572 #else
22573         /* Draft 4 pthreads */
22574         status = pthread_create( &t, pthread_attr_default, task, NULL );
22575         if( status ) return errno;
22576
22577         /* give thread a chance to complete */
22578         /* it should remain joinable and hence detachable */
22579         sleep( 1 );
22580
22581         status = pthread_detach( &t );
22582         if( status ) return errno;
22583 #endif
22584
22585 #ifdef HAVE_LINUX_THREADS
22586         pthread_kill_other_threads_np();
22587 #endif
22588
22589         return 0;
22590
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22597   (eval $ac_link) 2>conftest.er1
22598   ac_status=$?
22599   grep -v '^ *+' conftest.er1 >conftest.err
22600   rm -f conftest.er1
22601   cat conftest.err >&5
22602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603   (exit $ac_status); } &&
22604          { ac_try='test -z "$ac_c_werror_flag"
22605                          || test ! -s conftest.err'
22606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607   (eval $ac_try) 2>&5
22608   ac_status=$?
22609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610   (exit $ac_status); }; } &&
22611          { ac_try='test -s conftest$ac_exeext'
22612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613   (eval $ac_try) 2>&5
22614   ac_status=$?
22615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616   (exit $ac_status); }; }; then
22617   ol_cv_pthread_lpthreads_lexc=yes
22618 else
22619   echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22621
22622 ol_cv_pthread_lpthreads_lexc=no
22623 fi
22624 rm -f conftest.err conftest.$ac_objext \
22625       conftest$ac_exeext conftest.$ac_ext
22626 else
22627   cat >conftest.$ac_ext <<_ACEOF
22628 /* confdefs.h.  */
22629 _ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h.  */
22633
22634 /* pthread test headers */
22635 #include <pthread.h>
22636 #if HAVE_PTHREADS < 7
22637 #include <errno.h>
22638 #endif
22639 #ifndef NULL
22640 #define NULL (void*)0
22641 #endif
22642
22643 static void *task(p)
22644         void *p;
22645 {
22646         return (void *) (p == NULL);
22647 }
22648
22649
22650 int main(argc, argv)
22651         int argc;
22652         char **argv;
22653 {
22654
22655         /* pthread test function */
22656 #ifndef PTHREAD_CREATE_DETACHED
22657 #define PTHREAD_CREATE_DETACHED 1
22658 #endif
22659         pthread_t t;
22660         int status;
22661         int detach = PTHREAD_CREATE_DETACHED;
22662
22663 #if HAVE_PTHREADS > 4
22664         /* Final pthreads */
22665         pthread_attr_t attr;
22666
22667         status = pthread_attr_init(&attr);
22668         if( status ) return status;
22669
22670 #if HAVE_PTHREADS < 7
22671         status = pthread_attr_setdetachstate(&attr, &detach);
22672         if( status < 0 ) status = errno;
22673 #else
22674         status = pthread_attr_setdetachstate(&attr, detach);
22675 #endif
22676         if( status ) return status;
22677         status = pthread_create( &t, &attr, task, NULL );
22678 #if HAVE_PTHREADS < 7
22679         if( status < 0 ) status = errno;
22680 #endif
22681         if( status ) return status;
22682 #else
22683         /* Draft 4 pthreads */
22684         status = pthread_create( &t, pthread_attr_default, task, NULL );
22685         if( status ) return errno;
22686
22687         /* give thread a chance to complete */
22688         /* it should remain joinable and hence detachable */
22689         sleep( 1 );
22690
22691         status = pthread_detach( &t );
22692         if( status ) return errno;
22693 #endif
22694
22695 #ifdef HAVE_LINUX_THREADS
22696         pthread_kill_other_threads_np();
22697 #endif
22698
22699         return 0;
22700
22701 }
22702
22703 _ACEOF
22704 rm -f conftest$ac_exeext
22705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22706   (eval $ac_link) 2>&5
22707   ac_status=$?
22708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711   (eval $ac_try) 2>&5
22712   ac_status=$?
22713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714   (exit $ac_status); }; }; then
22715   ol_cv_pthread_lpthreads_lexc=yes
22716 else
22717   echo "$as_me: program exited with status $ac_status" >&5
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721 ( exit $ac_status )
22722 ol_cv_pthread_lpthreads_lexc=no
22723 fi
22724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22725 fi
22726
22727                 # restore the LIBS
22728                 LIBS="$ol_LIBS"
22729
22730 fi
22731 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
22732 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
22733
22734         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
22735                 ol_link_pthreads="-lpthreads -lexc"
22736                 ol_link_threads=posix
22737         fi
22738 fi
22739
22740
22741                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
22742 if test "$ol_link_threads" = no ; then
22743         # try -lpthreads
22744         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
22745 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
22746 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
22747   echo $ECHO_N "(cached) $ECHO_C" >&6
22748 else
22749
22750                 # save the flags
22751                 ol_LIBS="$LIBS"
22752                 LIBS="-lpthreads $LIBS"
22753
22754                 if test "$cross_compiling" = yes; then
22755   cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761
22762 /* pthread test headers */
22763 #include <pthread.h>
22764 #if HAVE_PTHREADS < 7
22765 #include <errno.h>
22766 #endif
22767 #ifndef NULL
22768 #define NULL (void*)0
22769 #endif
22770
22771 static void *task(p)
22772         void *p;
22773 {
22774         return (void *) (p == NULL);
22775 }
22776
22777 int
22778 main ()
22779 {
22780
22781         /* pthread test function */
22782 #ifndef PTHREAD_CREATE_DETACHED
22783 #define PTHREAD_CREATE_DETACHED 1
22784 #endif
22785         pthread_t t;
22786         int status;
22787         int detach = PTHREAD_CREATE_DETACHED;
22788
22789 #if HAVE_PTHREADS > 4
22790         /* Final pthreads */
22791         pthread_attr_t attr;
22792
22793         status = pthread_attr_init(&attr);
22794         if( status ) return status;
22795
22796 #if HAVE_PTHREADS < 7
22797         status = pthread_attr_setdetachstate(&attr, &detach);
22798         if( status < 0 ) status = errno;
22799 #else
22800         status = pthread_attr_setdetachstate(&attr, detach);
22801 #endif
22802         if( status ) return status;
22803         status = pthread_create( &t, &attr, task, NULL );
22804 #if HAVE_PTHREADS < 7
22805         if( status < 0 ) status = errno;
22806 #endif
22807         if( status ) return status;
22808 #else
22809         /* Draft 4 pthreads */
22810         status = pthread_create( &t, pthread_attr_default, task, NULL );
22811         if( status ) return errno;
22812
22813         /* give thread a chance to complete */
22814         /* it should remain joinable and hence detachable */
22815         sleep( 1 );
22816
22817         status = pthread_detach( &t );
22818         if( status ) return errno;
22819 #endif
22820
22821 #ifdef HAVE_LINUX_THREADS
22822         pthread_kill_other_threads_np();
22823 #endif
22824
22825         return 0;
22826
22827   ;
22828   return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833   (eval $ac_link) 2>conftest.er1
22834   ac_status=$?
22835   grep -v '^ *+' conftest.er1 >conftest.err
22836   rm -f conftest.er1
22837   cat conftest.err >&5
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); } &&
22840          { ac_try='test -z "$ac_c_werror_flag"
22841                          || test ! -s conftest.err'
22842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843   (eval $ac_try) 2>&5
22844   ac_status=$?
22845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846   (exit $ac_status); }; } &&
22847          { ac_try='test -s conftest$ac_exeext'
22848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849   (eval $ac_try) 2>&5
22850   ac_status=$?
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); }; }; then
22853   ol_cv_pthread_lib_lpthreads=yes
22854 else
22855   echo "$as_me: failed program was:" >&5
22856 sed 's/^/| /' conftest.$ac_ext >&5
22857
22858 ol_cv_pthread_lib_lpthreads=no
22859 fi
22860 rm -f conftest.err conftest.$ac_objext \
22861       conftest$ac_exeext conftest.$ac_ext
22862 else
22863   cat >conftest.$ac_ext <<_ACEOF
22864 /* confdefs.h.  */
22865 _ACEOF
22866 cat confdefs.h >>conftest.$ac_ext
22867 cat >>conftest.$ac_ext <<_ACEOF
22868 /* end confdefs.h.  */
22869
22870 /* pthread test headers */
22871 #include <pthread.h>
22872 #if HAVE_PTHREADS < 7
22873 #include <errno.h>
22874 #endif
22875 #ifndef NULL
22876 #define NULL (void*)0
22877 #endif
22878
22879 static void *task(p)
22880         void *p;
22881 {
22882         return (void *) (p == NULL);
22883 }
22884
22885
22886 int main(argc, argv)
22887         int argc;
22888         char **argv;
22889 {
22890
22891         /* pthread test function */
22892 #ifndef PTHREAD_CREATE_DETACHED
22893 #define PTHREAD_CREATE_DETACHED 1
22894 #endif
22895         pthread_t t;
22896         int status;
22897         int detach = PTHREAD_CREATE_DETACHED;
22898
22899 #if HAVE_PTHREADS > 4
22900         /* Final pthreads */
22901         pthread_attr_t attr;
22902
22903         status = pthread_attr_init(&attr);
22904         if( status ) return status;
22905
22906 #if HAVE_PTHREADS < 7
22907         status = pthread_attr_setdetachstate(&attr, &detach);
22908         if( status < 0 ) status = errno;
22909 #else
22910         status = pthread_attr_setdetachstate(&attr, detach);
22911 #endif
22912         if( status ) return status;
22913         status = pthread_create( &t, &attr, task, NULL );
22914 #if HAVE_PTHREADS < 7
22915         if( status < 0 ) status = errno;
22916 #endif
22917         if( status ) return status;
22918 #else
22919         /* Draft 4 pthreads */
22920         status = pthread_create( &t, pthread_attr_default, task, NULL );
22921         if( status ) return errno;
22922
22923         /* give thread a chance to complete */
22924         /* it should remain joinable and hence detachable */
22925         sleep( 1 );
22926
22927         status = pthread_detach( &t );
22928         if( status ) return errno;
22929 #endif
22930
22931 #ifdef HAVE_LINUX_THREADS
22932         pthread_kill_other_threads_np();
22933 #endif
22934
22935         return 0;
22936
22937 }
22938
22939 _ACEOF
22940 rm -f conftest$ac_exeext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942   (eval $ac_link) 2>&5
22943   ac_status=$?
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947   (eval $ac_try) 2>&5
22948   ac_status=$?
22949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950   (exit $ac_status); }; }; then
22951   ol_cv_pthread_lib_lpthreads=yes
22952 else
22953   echo "$as_me: program exited with status $ac_status" >&5
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22956
22957 ( exit $ac_status )
22958 ol_cv_pthread_lib_lpthreads=no
22959 fi
22960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22961 fi
22962
22963                 # restore the LIBS
22964                 LIBS="$ol_LIBS"
22965
22966 fi
22967 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
22968 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
22969
22970         if test $ol_cv_pthread_lib_lpthreads = yes ; then
22971                 ol_link_pthreads="-lpthreads"
22972                 ol_link_threads=posix
22973         fi
22974 fi
22975
22976
22977                 if test $ol_link_threads != no ; then
22978                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
22979
22980                                                 save_CPPFLAGS="$CPPFLAGS"
22981                         save_LIBS="$LIBS"
22982                         LIBS="$LTHREAD_LIBS $LIBS"
22983
22984
22985
22986
22987 for ac_func in sched_yield pthread_yield thr_yield
22988 do
22989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22990 echo "$as_me:$LINENO: checking for $ac_func" >&5
22991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22992 if eval "test \"\${$as_ac_var+set}\" = set"; then
22993   echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995   cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23003 #define $ac_func innocuous_$ac_func
23004
23005 /* System header to define __stub macros and hopefully few prototypes,
23006     which can conflict with char $ac_func (); below.
23007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23008     <limits.h> exists even on freestanding compilers.  */
23009
23010 #ifdef __STDC__
23011 # include <limits.h>
23012 #else
23013 # include <assert.h>
23014 #endif
23015
23016 #undef $ac_func
23017
23018 /* Override any gcc2 internal prototype to avoid an error.  */
23019 #ifdef __cplusplus
23020 extern "C"
23021 {
23022 #endif
23023 /* We use char because int might match the return type of a gcc2
23024    builtin and then its argument prototype would still apply.  */
23025 char $ac_func ();
23026 /* The GNU C library defines this for functions which it implements
23027     to always fail with ENOSYS.  Some functions are actually named
23028     something starting with __ and the normal name is an alias.  */
23029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23030 choke me
23031 #else
23032 char (*f) () = $ac_func;
23033 #endif
23034 #ifdef __cplusplus
23035 }
23036 #endif
23037
23038 int
23039 main ()
23040 {
23041 return f != $ac_func;
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 rm -f conftest.$ac_objext conftest$ac_exeext
23047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23048   (eval $ac_link) 2>conftest.er1
23049   ac_status=$?
23050   grep -v '^ *+' conftest.er1 >conftest.err
23051   rm -f conftest.er1
23052   cat conftest.err >&5
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); } &&
23055          { ac_try='test -z "$ac_c_werror_flag"
23056                          || test ! -s conftest.err'
23057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23058   (eval $ac_try) 2>&5
23059   ac_status=$?
23060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061   (exit $ac_status); }; } &&
23062          { ac_try='test -s conftest$ac_exeext'
23063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23064   (eval $ac_try) 2>&5
23065   ac_status=$?
23066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067   (exit $ac_status); }; }; then
23068   eval "$as_ac_var=yes"
23069 else
23070   echo "$as_me: failed program was:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23072
23073 eval "$as_ac_var=no"
23074 fi
23075 rm -f conftest.err conftest.$ac_objext \
23076       conftest$ac_exeext conftest.$ac_ext
23077 fi
23078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23079 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23080 if test `eval echo '${'$as_ac_var'}'` = yes; then
23081   cat >>confdefs.h <<_ACEOF
23082 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23083 _ACEOF
23084
23085 fi
23086 done
23087
23088
23089                         if test $ac_cv_func_sched_yield = no &&
23090                            test $ac_cv_func_pthread_yield = no &&
23091                            test $ac_cv_func_thr_yield = no ; then
23092                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23093 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23094 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23095   echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097   ac_check_lib_save_LIBS=$LIBS
23098 LIBS="-lrt  $LIBS"
23099 cat >conftest.$ac_ext <<_ACEOF
23100 /* confdefs.h.  */
23101 _ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h.  */
23105
23106 /* Override any gcc2 internal prototype to avoid an error.  */
23107 #ifdef __cplusplus
23108 extern "C"
23109 #endif
23110 /* We use char because int might match the return type of a gcc2
23111    builtin and then its argument prototype would still apply.  */
23112 char sched_yield ();
23113 int
23114 main ()
23115 {
23116 sched_yield ();
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext conftest$ac_exeext
23122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23123   (eval $ac_link) 2>conftest.er1
23124   ac_status=$?
23125   grep -v '^ *+' conftest.er1 >conftest.err
23126   rm -f conftest.er1
23127   cat conftest.err >&5
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); } &&
23130          { ac_try='test -z "$ac_c_werror_flag"
23131                          || test ! -s conftest.err'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; } &&
23137          { ac_try='test -s conftest$ac_exeext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_cv_lib_rt_sched_yield=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ac_cv_lib_rt_sched_yield=no
23149 fi
23150 rm -f conftest.err conftest.$ac_objext \
23151       conftest$ac_exeext conftest.$ac_ext
23152 LIBS=$ac_check_lib_save_LIBS
23153 fi
23154 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23155 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23156 if test $ac_cv_lib_rt_sched_yield = yes; then
23157   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
23158
23159 cat >>confdefs.h <<\_ACEOF
23160 #define HAVE_SCHED_YIELD 1
23161 _ACEOF
23162
23163                                         ac_cv_func_sched_yield=yes
23164 else
23165   ac_cv_func_sched_yield=no
23166 fi
23167
23168                         fi
23169                         if test $ac_cv_func_sched_yield = no &&
23170                            test $ac_cv_func_pthread_yield = no &&
23171                            test "$ac_cv_func_thr_yield" = no ; then
23172                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
23173 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
23174                         fi
23175
23176
23177 for ac_func in pthread_kill
23178 do
23179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23180 echo "$as_me:$LINENO: checking for $ac_func" >&5
23181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23182 if eval "test \"\${$as_ac_var+set}\" = set"; then
23183   echo $ECHO_N "(cached) $ECHO_C" >&6
23184 else
23185   cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23193 #define $ac_func innocuous_$ac_func
23194
23195 /* System header to define __stub macros and hopefully few prototypes,
23196     which can conflict with char $ac_func (); below.
23197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23198     <limits.h> exists even on freestanding compilers.  */
23199
23200 #ifdef __STDC__
23201 # include <limits.h>
23202 #else
23203 # include <assert.h>
23204 #endif
23205
23206 #undef $ac_func
23207
23208 /* Override any gcc2 internal prototype to avoid an error.  */
23209 #ifdef __cplusplus
23210 extern "C"
23211 {
23212 #endif
23213 /* We use char because int might match the return type of a gcc2
23214    builtin and then its argument prototype would still apply.  */
23215 char $ac_func ();
23216 /* The GNU C library defines this for functions which it implements
23217     to always fail with ENOSYS.  Some functions are actually named
23218     something starting with __ and the normal name is an alias.  */
23219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23220 choke me
23221 #else
23222 char (*f) () = $ac_func;
23223 #endif
23224 #ifdef __cplusplus
23225 }
23226 #endif
23227
23228 int
23229 main ()
23230 {
23231 return f != $ac_func;
23232   ;
23233   return 0;
23234 }
23235 _ACEOF
23236 rm -f conftest.$ac_objext conftest$ac_exeext
23237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23238   (eval $ac_link) 2>conftest.er1
23239   ac_status=$?
23240   grep -v '^ *+' conftest.er1 >conftest.err
23241   rm -f conftest.er1
23242   cat conftest.err >&5
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } &&
23245          { ac_try='test -z "$ac_c_werror_flag"
23246                          || test ! -s conftest.err'
23247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23248   (eval $ac_try) 2>&5
23249   ac_status=$?
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); }; } &&
23252          { ac_try='test -s conftest$ac_exeext'
23253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254   (eval $ac_try) 2>&5
23255   ac_status=$?
23256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257   (exit $ac_status); }; }; then
23258   eval "$as_ac_var=yes"
23259 else
23260   echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23262
23263 eval "$as_ac_var=no"
23264 fi
23265 rm -f conftest.err conftest.$ac_objext \
23266       conftest$ac_exeext conftest.$ac_ext
23267 fi
23268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23270 if test `eval echo '${'$as_ac_var'}'` = yes; then
23271   cat >>confdefs.h <<_ACEOF
23272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23273 _ACEOF
23274
23275 fi
23276 done
23277
23278
23279                                                                         echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
23280 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
23281 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284
23285                                                                 cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h.  */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h.  */
23291
23292 #include <pthread.h>
23293 pthread_rwlock_t rwlock;
23294
23295 int
23296 main ()
23297 {
23298 pthread_rwlock_destroy(&rwlock);
23299   ;
23300   return 0;
23301 }
23302 _ACEOF
23303 rm -f conftest.$ac_objext conftest$ac_exeext
23304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23305   (eval $ac_link) 2>conftest.er1
23306   ac_status=$?
23307   grep -v '^ *+' conftest.er1 >conftest.err
23308   rm -f conftest.er1
23309   cat conftest.err >&5
23310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311   (exit $ac_status); } &&
23312          { ac_try='test -z "$ac_c_werror_flag"
23313                          || test ! -s conftest.err'
23314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315   (eval $ac_try) 2>&5
23316   ac_status=$?
23317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318   (exit $ac_status); }; } &&
23319          { ac_try='test -s conftest$ac_exeext'
23320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321   (eval $ac_try) 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ol_cv_func_pthread_rwlock_destroy=yes
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330 ol_cv_func_pthread_rwlock_destroy=no
23331 fi
23332 rm -f conftest.err conftest.$ac_objext \
23333       conftest$ac_exeext conftest.$ac_ext
23334
23335 fi
23336 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
23337 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
23338                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
23339
23340 cat >>confdefs.h <<\_ACEOF
23341 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
23342 _ACEOF
23343
23344                         fi
23345
23346                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
23347 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
23348 if test "${ol_cv_func_pthread_detach+set}" = set; then
23349   echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351
23352                                                                 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h.  */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h.  */
23358
23359 #include <pthread.h>
23360 #ifndef NULL
23361 #define NULL (void*)0
23362 #endif
23363
23364 int
23365 main ()
23366 {
23367 pthread_detach(NULL);
23368   ;
23369   return 0;
23370 }
23371 _ACEOF
23372 rm -f conftest.$ac_objext conftest$ac_exeext
23373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23374   (eval $ac_link) 2>conftest.er1
23375   ac_status=$?
23376   grep -v '^ *+' conftest.er1 >conftest.err
23377   rm -f conftest.er1
23378   cat conftest.err >&5
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); } &&
23381          { ac_try='test -z "$ac_c_werror_flag"
23382                          || test ! -s conftest.err'
23383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384   (eval $ac_try) 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest$ac_exeext'
23389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390   (eval $ac_try) 2>&5
23391   ac_status=$?
23392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393   (exit $ac_status); }; }; then
23394   ol_cv_func_pthread_detach=yes
23395 else
23396   echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23398
23399 ol_cv_func_pthread_detach=no
23400 fi
23401 rm -f conftest.err conftest.$ac_objext \
23402       conftest$ac_exeext conftest.$ac_ext
23403
23404 fi
23405 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
23406 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
23407
23408                         if test $ol_cv_func_pthread_detach = no ; then
23409                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
23410 echo "$as_me: error: could not locate pthread_detach()" >&2;}
23411    { (exit 1); exit 1; }; }
23412                         fi
23413
23414
23415 cat >>confdefs.h <<\_ACEOF
23416 #define HAVE_PTHREAD_DETACH 1
23417 _ACEOF
23418
23419
23420
23421
23422
23423
23424 for ac_func in \
23425                                 pthread_setconcurrency \
23426                                 pthread_getconcurrency \
23427                                 thr_setconcurrency \
23428                                 thr_getconcurrency \
23429
23430 do
23431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23432 echo "$as_me:$LINENO: checking for $ac_func" >&5
23433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23434 if eval "test \"\${$as_ac_var+set}\" = set"; then
23435   echo $ECHO_N "(cached) $ECHO_C" >&6
23436 else
23437   cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23445 #define $ac_func innocuous_$ac_func
23446
23447 /* System header to define __stub macros and hopefully few prototypes,
23448     which can conflict with char $ac_func (); below.
23449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23450     <limits.h> exists even on freestanding compilers.  */
23451
23452 #ifdef __STDC__
23453 # include <limits.h>
23454 #else
23455 # include <assert.h>
23456 #endif
23457
23458 #undef $ac_func
23459
23460 /* Override any gcc2 internal prototype to avoid an error.  */
23461 #ifdef __cplusplus
23462 extern "C"
23463 {
23464 #endif
23465 /* We use char because int might match the return type of a gcc2
23466    builtin and then its argument prototype would still apply.  */
23467 char $ac_func ();
23468 /* The GNU C library defines this for functions which it implements
23469     to always fail with ENOSYS.  Some functions are actually named
23470     something starting with __ and the normal name is an alias.  */
23471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23472 choke me
23473 #else
23474 char (*f) () = $ac_func;
23475 #endif
23476 #ifdef __cplusplus
23477 }
23478 #endif
23479
23480 int
23481 main ()
23482 {
23483 return f != $ac_func;
23484   ;
23485   return 0;
23486 }
23487 _ACEOF
23488 rm -f conftest.$ac_objext conftest$ac_exeext
23489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23490   (eval $ac_link) 2>conftest.er1
23491   ac_status=$?
23492   grep -v '^ *+' conftest.er1 >conftest.err
23493   rm -f conftest.er1
23494   cat conftest.err >&5
23495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496   (exit $ac_status); } &&
23497          { ac_try='test -z "$ac_c_werror_flag"
23498                          || test ! -s conftest.err'
23499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500   (eval $ac_try) 2>&5
23501   ac_status=$?
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); }; } &&
23504          { ac_try='test -s conftest$ac_exeext'
23505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506   (eval $ac_try) 2>&5
23507   ac_status=$?
23508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509   (exit $ac_status); }; }; then
23510   eval "$as_ac_var=yes"
23511 else
23512   echo "$as_me: failed program was:" >&5
23513 sed 's/^/| /' conftest.$ac_ext >&5
23514
23515 eval "$as_ac_var=no"
23516 fi
23517 rm -f conftest.err conftest.$ac_objext \
23518       conftest$ac_exeext conftest.$ac_ext
23519 fi
23520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23522 if test `eval echo '${'$as_ac_var'}'` = yes; then
23523   cat >>confdefs.h <<_ACEOF
23524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23525 _ACEOF
23526
23527 fi
23528 done
23529
23530
23531
23532
23533 for ac_func in pthread_kill_other_threads_np
23534 do
23535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23536 echo "$as_me:$LINENO: checking for $ac_func" >&5
23537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23538 if eval "test \"\${$as_ac_var+set}\" = set"; then
23539   echo $ECHO_N "(cached) $ECHO_C" >&6
23540 else
23541   cat >conftest.$ac_ext <<_ACEOF
23542 /* confdefs.h.  */
23543 _ACEOF
23544 cat confdefs.h >>conftest.$ac_ext
23545 cat >>conftest.$ac_ext <<_ACEOF
23546 /* end confdefs.h.  */
23547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23549 #define $ac_func innocuous_$ac_func
23550
23551 /* System header to define __stub macros and hopefully few prototypes,
23552     which can conflict with char $ac_func (); below.
23553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23554     <limits.h> exists even on freestanding compilers.  */
23555
23556 #ifdef __STDC__
23557 # include <limits.h>
23558 #else
23559 # include <assert.h>
23560 #endif
23561
23562 #undef $ac_func
23563
23564 /* Override any gcc2 internal prototype to avoid an error.  */
23565 #ifdef __cplusplus
23566 extern "C"
23567 {
23568 #endif
23569 /* We use char because int might match the return type of a gcc2
23570    builtin and then its argument prototype would still apply.  */
23571 char $ac_func ();
23572 /* The GNU C library defines this for functions which it implements
23573     to always fail with ENOSYS.  Some functions are actually named
23574     something starting with __ and the normal name is an alias.  */
23575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23576 choke me
23577 #else
23578 char (*f) () = $ac_func;
23579 #endif
23580 #ifdef __cplusplus
23581 }
23582 #endif
23583
23584 int
23585 main ()
23586 {
23587 return f != $ac_func;
23588   ;
23589   return 0;
23590 }
23591 _ACEOF
23592 rm -f conftest.$ac_objext conftest$ac_exeext
23593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23594   (eval $ac_link) 2>conftest.er1
23595   ac_status=$?
23596   grep -v '^ *+' conftest.er1 >conftest.err
23597   rm -f conftest.er1
23598   cat conftest.err >&5
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } &&
23601          { ac_try='test -z "$ac_c_werror_flag"
23602                          || test ! -s conftest.err'
23603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604   (eval $ac_try) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); }; } &&
23608          { ac_try='test -s conftest$ac_exeext'
23609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610   (eval $ac_try) 2>&5
23611   ac_status=$?
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); }; }; then
23614   eval "$as_ac_var=yes"
23615 else
23616   echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 eval "$as_ac_var=no"
23620 fi
23621 rm -f conftest.err conftest.$ac_objext \
23622       conftest$ac_exeext conftest.$ac_ext
23623 fi
23624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23626 if test `eval echo '${'$as_ac_var'}'` = yes; then
23627   cat >>confdefs.h <<_ACEOF
23628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23629 _ACEOF
23630
23631 fi
23632 done
23633
23634         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
23635 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
23636 if test "${ol_cv_sys_linux_threads+set}" = set; then
23637   echo $ECHO_N "(cached) $ECHO_C" >&6
23638 else
23639   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
23640 fi
23641 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
23642 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
23643
23644
23645
23646
23647         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
23648 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
23649 if test "${ol_cv_linux_threads+set}" = set; then
23650   echo $ECHO_N "(cached) $ECHO_C" >&6
23651 else
23652
23653                 if test $ol_cv_header_linux_threads = yes &&
23654                    test $ol_cv_sys_linux_threads = yes; then
23655                         ol_cv_linux_threads=yes
23656                 elif test $ol_cv_header_linux_threads = no &&
23657                      test $ol_cv_sys_linux_threads = no; then
23658                         ol_cv_linux_threads=no
23659                 else
23660                         ol_cv_linux_threads=error
23661                 fi
23662
23663 fi
23664 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
23665 echo "${ECHO_T}$ol_cv_linux_threads" >&6
23666
23667
23668                         if test $ol_cv_linux_threads = error; then
23669                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
23670 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
23671    { (exit 1); exit 1; }; };
23672                         fi
23673
23674                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
23675 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
23676 if test "${ol_cv_pthread_create_works+set}" = set; then
23677   echo $ECHO_N "(cached) $ECHO_C" >&6
23678 else
23679
23680                         if test "$cross_compiling" = yes; then
23681                                 ol_cv_pthread_create_works=yes
23682 else
23683   cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689
23690 /* pthread test headers */
23691 #include <pthread.h>
23692 #if HAVE_PTHREADS < 7
23693 #include <errno.h>
23694 #endif
23695 #ifndef NULL
23696 #define NULL (void*)0
23697 #endif
23698
23699 static void *task(p)
23700         void *p;
23701 {
23702         return (void *) (p == NULL);
23703 }
23704
23705
23706 int main(argc, argv)
23707         int argc;
23708         char **argv;
23709 {
23710
23711         /* pthread test function */
23712 #ifndef PTHREAD_CREATE_DETACHED
23713 #define PTHREAD_CREATE_DETACHED 1
23714 #endif
23715         pthread_t t;
23716         int status;
23717         int detach = PTHREAD_CREATE_DETACHED;
23718
23719 #if HAVE_PTHREADS > 4
23720         /* Final pthreads */
23721         pthread_attr_t attr;
23722
23723         status = pthread_attr_init(&attr);
23724         if( status ) return status;
23725
23726 #if HAVE_PTHREADS < 7
23727         status = pthread_attr_setdetachstate(&attr, &detach);
23728         if( status < 0 ) status = errno;
23729 #else
23730         status = pthread_attr_setdetachstate(&attr, detach);
23731 #endif
23732         if( status ) return status;
23733         status = pthread_create( &t, &attr, task, NULL );
23734 #if HAVE_PTHREADS < 7
23735         if( status < 0 ) status = errno;
23736 #endif
23737         if( status ) return status;
23738 #else
23739         /* Draft 4 pthreads */
23740         status = pthread_create( &t, pthread_attr_default, task, NULL );
23741         if( status ) return errno;
23742
23743         /* give thread a chance to complete */
23744         /* it should remain joinable and hence detachable */
23745         sleep( 1 );
23746
23747         status = pthread_detach( &t );
23748         if( status ) return errno;
23749 #endif
23750
23751 #ifdef HAVE_LINUX_THREADS
23752         pthread_kill_other_threads_np();
23753 #endif
23754
23755         return 0;
23756
23757 }
23758
23759 _ACEOF
23760 rm -f conftest$ac_exeext
23761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23762   (eval $ac_link) 2>&5
23763   ac_status=$?
23764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767   (eval $ac_try) 2>&5
23768   ac_status=$?
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); }; }; then
23771   ol_cv_pthread_create_works=yes
23772 else
23773   echo "$as_me: program exited with status $ac_status" >&5
23774 echo "$as_me: failed program was:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23776
23777 ( exit $ac_status )
23778 ol_cv_pthread_create_works=no
23779 fi
23780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23781 fi
23782 fi
23783 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
23784 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
23785
23786                         if test $ol_cv_pthread_create_works = no ; then
23787                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
23788 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
23789    { (exit 1); exit 1; }; }
23790                         fi
23791
23792                         ol_replace_broken_yield=no
23793
23794                         if test $ol_replace_broken_yield = yes ; then
23795
23796 cat >>confdefs.h <<\_ACEOF
23797 #define REPLACE_BROKEN_YIELD 1
23798 _ACEOF
23799
23800                         fi
23801
23802                                                 if test $ol_with_yielding_select = auto ; then
23803                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
23804 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
23805 if test "${ol_cv_pthread_select_yields+set}" = set; then
23806   echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808
23809                                 if test "$cross_compiling" = yes; then
23810   ol_cv_pthread_select_yields=cross
23811 else
23812   cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h.  */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h.  */
23818
23819 #include <sys/types.h>
23820 #include <sys/time.h>
23821 #include <unistd.h>
23822 #include <pthread.h>
23823 #ifndef NULL
23824 #define NULL (void*) 0
23825 #endif
23826
23827 static int fildes[2];
23828
23829 static void *task(p)
23830         void *p;
23831 {
23832         int i;
23833         struct timeval tv;
23834
23835         fd_set rfds;
23836
23837         tv.tv_sec=10;
23838         tv.tv_usec=0;
23839
23840         FD_ZERO(&rfds);
23841         FD_SET(fildes[0], &rfds);
23842
23843         /* we're not interested in any fds */
23844         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
23845
23846         if(i < 0) {
23847                 perror("select");
23848                 exit(10);
23849         }
23850
23851         exit(0); /* if we exit here, the select blocked the whole process */
23852 }
23853
23854 int main(argc, argv)
23855         int argc;
23856         char **argv;
23857 {
23858         pthread_t t;
23859
23860         /* create a pipe to select */
23861         if(pipe(&fildes[0])) {
23862                 perror("select");
23863                 exit(1);
23864         }
23865
23866 #ifdef HAVE_PTHREAD_SETCONCURRENCY
23867         (void) pthread_setconcurrency(2);
23868 #else
23869 #ifdef HAVE_THR_SETCONCURRENCY
23870         /* Set Solaris LWP concurrency to 2 */
23871         thr_setconcurrency(2);
23872 #endif
23873 #endif
23874
23875 #if HAVE_PTHREADS < 6
23876         pthread_create(&t, pthread_attr_default, task, NULL);
23877 #else
23878         pthread_create(&t, NULL, task, NULL);
23879 #endif
23880
23881         /* make sure task runs first */
23882 #if HAVE_THR_YIELD
23883         thr_yield();
23884 #elif defined( HAVE_SCHED_YIELD )
23885         sched_yield();
23886 #elif defined( HAVE_PTHREAD_YIELD )
23887         pthread_yield();
23888 #endif
23889
23890         exit(2);
23891 }
23892 _ACEOF
23893 rm -f conftest$ac_exeext
23894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23895   (eval $ac_link) 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900   (eval $ac_try) 2>&5
23901   ac_status=$?
23902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903   (exit $ac_status); }; }; then
23904   ol_cv_pthread_select_yields=no
23905 else
23906   echo "$as_me: program exited with status $ac_status" >&5
23907 echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910 ( exit $ac_status )
23911 ol_cv_pthread_select_yields=yes
23912 fi
23913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23914 fi
23915 fi
23916 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
23917 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
23918
23919                                 if test $ol_cv_pthread_select_yields = cross ; then
23920                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
23921 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
23922    { (exit 1); exit 1; }; }
23923                                 fi
23924
23925                                 if test $ol_cv_pthread_select_yields = yes ; then
23926                                         ol_with_yielding_select=yes
23927                                 fi
23928                         fi
23929
23930                                                 CPPFLAGS="$save_CPPFLAGS"
23931                         LIBS="$save_LIBS"
23932                 else
23933                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
23934 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
23935    { (exit 1); exit 1; }; }
23936                 fi
23937         fi
23938
23939         if test $ol_with_threads = posix ; then
23940                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
23941 echo "$as_me: error: could not locate POSIX Threads" >&2;}
23942    { (exit 1); exit 1; }; }
23943         fi
23944         ;;
23945 esac
23946
23947 case $ol_with_threads in auto | yes | mach)
23948
23949
23950
23951 for ac_header in mach/cthreads.h cthreads.h
23952 do
23953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23955   echo "$as_me:$LINENO: checking for $ac_header" >&5
23956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23958   echo $ECHO_N "(cached) $ECHO_C" >&6
23959 fi
23960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23961 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23962 else
23963   # Is the header compilable?
23964 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23965 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 $ac_includes_default
23973 #include <$ac_header>
23974 _ACEOF
23975 rm -f conftest.$ac_objext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23977   (eval $ac_compile) 2>conftest.er1
23978   ac_status=$?
23979   grep -v '^ *+' conftest.er1 >conftest.err
23980   rm -f conftest.er1
23981   cat conftest.err >&5
23982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983   (exit $ac_status); } &&
23984          { ac_try='test -z "$ac_c_werror_flag"
23985                          || test ! -s conftest.err'
23986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23987   (eval $ac_try) 2>&5
23988   ac_status=$?
23989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23990   (exit $ac_status); }; } &&
23991          { ac_try='test -s conftest.$ac_objext'
23992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23993   (eval $ac_try) 2>&5
23994   ac_status=$?
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); }; }; then
23997   ac_header_compiler=yes
23998 else
23999   echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 ac_header_compiler=no
24003 fi
24004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24005 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24006 echo "${ECHO_T}$ac_header_compiler" >&6
24007
24008 # Is the header present?
24009 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24010 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24011 cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017 #include <$ac_header>
24018 _ACEOF
24019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24021   ac_status=$?
24022   grep -v '^ *+' conftest.er1 >conftest.err
24023   rm -f conftest.er1
24024   cat conftest.err >&5
24025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026   (exit $ac_status); } >/dev/null; then
24027   if test -s conftest.err; then
24028     ac_cpp_err=$ac_c_preproc_warn_flag
24029     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24030   else
24031     ac_cpp_err=
24032   fi
24033 else
24034   ac_cpp_err=yes
24035 fi
24036 if test -z "$ac_cpp_err"; then
24037   ac_header_preproc=yes
24038 else
24039   echo "$as_me: failed program was:" >&5
24040 sed 's/^/| /' conftest.$ac_ext >&5
24041
24042   ac_header_preproc=no
24043 fi
24044 rm -f conftest.err conftest.$ac_ext
24045 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24046 echo "${ECHO_T}$ac_header_preproc" >&6
24047
24048 # So?  What about this header?
24049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24050   yes:no: )
24051     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24052 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24054 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24055     ac_header_preproc=yes
24056     ;;
24057   no:yes:* )
24058     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24059 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24060     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24061 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24062     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24063 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24064     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24065 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24066     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24067 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24068     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24069 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24070     (
24071       cat <<\_ASBOX
24072 ## --------------------------------------------- ##
24073 ## Report this to <http://www.openldap.org/its/> ##
24074 ## --------------------------------------------- ##
24075 _ASBOX
24076     ) |
24077       sed "s/^/$as_me: WARNING:     /" >&2
24078     ;;
24079 esac
24080 echo "$as_me:$LINENO: checking for $ac_header" >&5
24081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 else
24085   eval "$as_ac_Header=\$ac_header_preproc"
24086 fi
24087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24089
24090 fi
24091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24092   cat >>confdefs.h <<_ACEOF
24093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24094 _ACEOF
24095
24096 fi
24097
24098 done
24099
24100         if test $ac_cv_header_mach_cthreads_h = yes ; then
24101                 ol_with_threads=found
24102
24103                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24104 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24105 if test "${ac_cv_func_cthread_fork+set}" = set; then
24106   echo $ECHO_N "(cached) $ECHO_C" >&6
24107 else
24108   cat >conftest.$ac_ext <<_ACEOF
24109 /* confdefs.h.  */
24110 _ACEOF
24111 cat confdefs.h >>conftest.$ac_ext
24112 cat >>conftest.$ac_ext <<_ACEOF
24113 /* end confdefs.h.  */
24114 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24116 #define cthread_fork innocuous_cthread_fork
24117
24118 /* System header to define __stub macros and hopefully few prototypes,
24119     which can conflict with char cthread_fork (); below.
24120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24121     <limits.h> exists even on freestanding compilers.  */
24122
24123 #ifdef __STDC__
24124 # include <limits.h>
24125 #else
24126 # include <assert.h>
24127 #endif
24128
24129 #undef cthread_fork
24130
24131 /* Override any gcc2 internal prototype to avoid an error.  */
24132 #ifdef __cplusplus
24133 extern "C"
24134 {
24135 #endif
24136 /* We use char because int might match the return type of a gcc2
24137    builtin and then its argument prototype would still apply.  */
24138 char cthread_fork ();
24139 /* The GNU C library defines this for functions which it implements
24140     to always fail with ENOSYS.  Some functions are actually named
24141     something starting with __ and the normal name is an alias.  */
24142 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24143 choke me
24144 #else
24145 char (*f) () = cthread_fork;
24146 #endif
24147 #ifdef __cplusplus
24148 }
24149 #endif
24150
24151 int
24152 main ()
24153 {
24154 return f != cthread_fork;
24155   ;
24156   return 0;
24157 }
24158 _ACEOF
24159 rm -f conftest.$ac_objext conftest$ac_exeext
24160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24161   (eval $ac_link) 2>conftest.er1
24162   ac_status=$?
24163   grep -v '^ *+' conftest.er1 >conftest.err
24164   rm -f conftest.er1
24165   cat conftest.err >&5
24166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167   (exit $ac_status); } &&
24168          { ac_try='test -z "$ac_c_werror_flag"
24169                          || test ! -s conftest.err'
24170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24171   (eval $ac_try) 2>&5
24172   ac_status=$?
24173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174   (exit $ac_status); }; } &&
24175          { ac_try='test -s conftest$ac_exeext'
24176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24177   (eval $ac_try) 2>&5
24178   ac_status=$?
24179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24180   (exit $ac_status); }; }; then
24181   ac_cv_func_cthread_fork=yes
24182 else
24183   echo "$as_me: failed program was:" >&5
24184 sed 's/^/| /' conftest.$ac_ext >&5
24185
24186 ac_cv_func_cthread_fork=no
24187 fi
24188 rm -f conftest.err conftest.$ac_objext \
24189       conftest$ac_exeext conftest.$ac_ext
24190 fi
24191 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24192 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24193 if test $ac_cv_func_cthread_fork = yes; then
24194   ol_link_threads=yes
24195 fi
24196
24197
24198                 if test $ol_link_threads = no ; then
24199                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
24200 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
24201 if test "${ol_cv_cthread_all_load+set}" = set; then
24202   echo $ECHO_N "(cached) $ECHO_C" >&6
24203 else
24204
24205                                                                 save_LIBS="$LIBS"
24206                                 LIBS="-all_load $LIBS"
24207                                 cat >conftest.$ac_ext <<_ACEOF
24208 /* confdefs.h.  */
24209 _ACEOF
24210 cat confdefs.h >>conftest.$ac_ext
24211 cat >>conftest.$ac_ext <<_ACEOF
24212 /* end confdefs.h.  */
24213 #include <mach/cthreads.h>
24214 int
24215 main ()
24216 {
24217
24218                                         cthread_fork((void *)0, (void *)0);
24219
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext conftest$ac_exeext
24225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24226   (eval $ac_link) 2>conftest.er1
24227   ac_status=$?
24228   grep -v '^ *+' conftest.er1 >conftest.err
24229   rm -f conftest.er1
24230   cat conftest.err >&5
24231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24232   (exit $ac_status); } &&
24233          { ac_try='test -z "$ac_c_werror_flag"
24234                          || test ! -s conftest.err'
24235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236   (eval $ac_try) 2>&5
24237   ac_status=$?
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); }; } &&
24240          { ac_try='test -s conftest$ac_exeext'
24241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242   (eval $ac_try) 2>&5
24243   ac_status=$?
24244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245   (exit $ac_status); }; }; then
24246   ol_cv_cthread_all_load=yes
24247 else
24248   echo "$as_me: failed program was:" >&5
24249 sed 's/^/| /' conftest.$ac_ext >&5
24250
24251 ol_cv_cthread_all_load=no
24252 fi
24253 rm -f conftest.err conftest.$ac_objext \
24254       conftest$ac_exeext conftest.$ac_ext
24255                                                                 LIBS="$save_LIBS"
24256
24257 fi
24258 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
24259 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
24260
24261                         if test $ol_cv_cthread_all_load = yes ; then
24262                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
24263                                 ol_link_threads=mach
24264                                 ol_with_threads=found
24265                         fi
24266                 fi
24267
24268         elif test $ac_cv_header_cthreads_h = yes ; then
24269
24270                 ol_with_threads=found
24271
24272                                 save_LIBS="$LIBS"
24273                 LIBS="$LIBS -lthreads"
24274                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
24275 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
24276 if test "${ac_cv_func_cthread_fork+set}" = set; then
24277   echo $ECHO_N "(cached) $ECHO_C" >&6
24278 else
24279   cat >conftest.$ac_ext <<_ACEOF
24280 /* confdefs.h.  */
24281 _ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h.  */
24285 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
24286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24287 #define cthread_fork innocuous_cthread_fork
24288
24289 /* System header to define __stub macros and hopefully few prototypes,
24290     which can conflict with char cthread_fork (); below.
24291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24292     <limits.h> exists even on freestanding compilers.  */
24293
24294 #ifdef __STDC__
24295 # include <limits.h>
24296 #else
24297 # include <assert.h>
24298 #endif
24299
24300 #undef cthread_fork
24301
24302 /* Override any gcc2 internal prototype to avoid an error.  */
24303 #ifdef __cplusplus
24304 extern "C"
24305 {
24306 #endif
24307 /* We use char because int might match the return type of a gcc2
24308    builtin and then its argument prototype would still apply.  */
24309 char cthread_fork ();
24310 /* The GNU C library defines this for functions which it implements
24311     to always fail with ENOSYS.  Some functions are actually named
24312     something starting with __ and the normal name is an alias.  */
24313 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
24314 choke me
24315 #else
24316 char (*f) () = cthread_fork;
24317 #endif
24318 #ifdef __cplusplus
24319 }
24320 #endif
24321
24322 int
24323 main ()
24324 {
24325 return f != cthread_fork;
24326   ;
24327   return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest.$ac_objext conftest$ac_exeext
24331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24332   (eval $ac_link) 2>conftest.er1
24333   ac_status=$?
24334   grep -v '^ *+' conftest.er1 >conftest.err
24335   rm -f conftest.er1
24336   cat conftest.err >&5
24337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24338   (exit $ac_status); } &&
24339          { ac_try='test -z "$ac_c_werror_flag"
24340                          || test ! -s conftest.err'
24341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342   (eval $ac_try) 2>&5
24343   ac_status=$?
24344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345   (exit $ac_status); }; } &&
24346          { ac_try='test -s conftest$ac_exeext'
24347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; }; then
24352   ac_cv_func_cthread_fork=yes
24353 else
24354   echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24356
24357 ac_cv_func_cthread_fork=no
24358 fi
24359 rm -f conftest.err conftest.$ac_objext \
24360       conftest$ac_exeext conftest.$ac_ext
24361 fi
24362 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
24363 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
24364 if test $ac_cv_func_cthread_fork = yes; then
24365   ol_link_threads=yes
24366 fi
24367
24368                 LIBS="$save_LIBS"
24369
24370                 if test $ol_link_threads = yes ; then
24371                         LTHREAD_LIBS="-lthreads"
24372                         ol_link_threads=mach
24373                         ol_with_threads=found
24374                 else
24375                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24376 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24377    { (exit 1); exit 1; }; }
24378                 fi
24379
24380         elif test $ol_with_threads = mach ; then
24381                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
24382 echo "$as_me: error: could not locate Mach CThreads" >&2;}
24383    { (exit 1); exit 1; }; }
24384         fi
24385
24386         if test $ol_link_threads = mach ; then
24387
24388 cat >>confdefs.h <<\_ACEOF
24389 #define HAVE_MACH_CTHREADS 1
24390 _ACEOF
24391
24392         elif test $ol_with_threads = found ; then
24393                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
24394 echo "$as_me: error: could not link with Mach CThreads" >&2;}
24395    { (exit 1); exit 1; }; }
24396         fi
24397         ;;
24398 esac
24399
24400 case $ol_with_threads in auto | yes | pth)
24401
24402
24403 for ac_header in pth.h
24404 do
24405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24407   echo "$as_me:$LINENO: checking for $ac_header" >&5
24408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24410   echo $ECHO_N "(cached) $ECHO_C" >&6
24411 fi
24412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24414 else
24415   # Is the header compilable?
24416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24418 cat >conftest.$ac_ext <<_ACEOF
24419 /* confdefs.h.  */
24420 _ACEOF
24421 cat confdefs.h >>conftest.$ac_ext
24422 cat >>conftest.$ac_ext <<_ACEOF
24423 /* end confdefs.h.  */
24424 $ac_includes_default
24425 #include <$ac_header>
24426 _ACEOF
24427 rm -f conftest.$ac_objext
24428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24429   (eval $ac_compile) 2>conftest.er1
24430   ac_status=$?
24431   grep -v '^ *+' conftest.er1 >conftest.err
24432   rm -f conftest.er1
24433   cat conftest.err >&5
24434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435   (exit $ac_status); } &&
24436          { ac_try='test -z "$ac_c_werror_flag"
24437                          || test ! -s conftest.err'
24438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24439   (eval $ac_try) 2>&5
24440   ac_status=$?
24441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442   (exit $ac_status); }; } &&
24443          { ac_try='test -s conftest.$ac_objext'
24444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24445   (eval $ac_try) 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); }; }; then
24449   ac_header_compiler=yes
24450 else
24451   echo "$as_me: failed program was:" >&5
24452 sed 's/^/| /' conftest.$ac_ext >&5
24453
24454 ac_header_compiler=no
24455 fi
24456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24458 echo "${ECHO_T}$ac_header_compiler" >&6
24459
24460 # Is the header present?
24461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469 #include <$ac_header>
24470 _ACEOF
24471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24473   ac_status=$?
24474   grep -v '^ *+' conftest.er1 >conftest.err
24475   rm -f conftest.er1
24476   cat conftest.err >&5
24477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478   (exit $ac_status); } >/dev/null; then
24479   if test -s conftest.err; then
24480     ac_cpp_err=$ac_c_preproc_warn_flag
24481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24482   else
24483     ac_cpp_err=
24484   fi
24485 else
24486   ac_cpp_err=yes
24487 fi
24488 if test -z "$ac_cpp_err"; then
24489   ac_header_preproc=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494   ac_header_preproc=no
24495 fi
24496 rm -f conftest.err conftest.$ac_ext
24497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24498 echo "${ECHO_T}$ac_header_preproc" >&6
24499
24500 # So?  What about this header?
24501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24502   yes:no: )
24503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24507     ac_header_preproc=yes
24508     ;;
24509   no:yes:* )
24510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24522     (
24523       cat <<\_ASBOX
24524 ## --------------------------------------------- ##
24525 ## Report this to <http://www.openldap.org/its/> ##
24526 ## --------------------------------------------- ##
24527 _ASBOX
24528     ) |
24529       sed "s/^/$as_me: WARNING:     /" >&2
24530     ;;
24531 esac
24532 echo "$as_me:$LINENO: checking for $ac_header" >&5
24533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24535   echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537   eval "$as_ac_Header=\$ac_header_preproc"
24538 fi
24539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24541
24542 fi
24543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24544   cat >>confdefs.h <<_ACEOF
24545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24546 _ACEOF
24547
24548 fi
24549
24550 done
24551
24552
24553         if test $ac_cv_header_pth_h = yes ; then
24554                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
24555 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
24556 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
24557   echo $ECHO_N "(cached) $ECHO_C" >&6
24558 else
24559   ac_check_lib_save_LIBS=$LIBS
24560 LIBS="-lpth  $LIBS"
24561 cat >conftest.$ac_ext <<_ACEOF
24562 /* confdefs.h.  */
24563 _ACEOF
24564 cat confdefs.h >>conftest.$ac_ext
24565 cat >>conftest.$ac_ext <<_ACEOF
24566 /* end confdefs.h.  */
24567
24568 /* Override any gcc2 internal prototype to avoid an error.  */
24569 #ifdef __cplusplus
24570 extern "C"
24571 #endif
24572 /* We use char because int might match the return type of a gcc2
24573    builtin and then its argument prototype would still apply.  */
24574 char pth_version ();
24575 int
24576 main ()
24577 {
24578 pth_version ();
24579   ;
24580   return 0;
24581 }
24582 _ACEOF
24583 rm -f conftest.$ac_objext conftest$ac_exeext
24584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24585   (eval $ac_link) 2>conftest.er1
24586   ac_status=$?
24587   grep -v '^ *+' conftest.er1 >conftest.err
24588   rm -f conftest.er1
24589   cat conftest.err >&5
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); } &&
24592          { ac_try='test -z "$ac_c_werror_flag"
24593                          || test ! -s conftest.err'
24594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595   (eval $ac_try) 2>&5
24596   ac_status=$?
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); }; } &&
24599          { ac_try='test -s conftest$ac_exeext'
24600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24601   (eval $ac_try) 2>&5
24602   ac_status=$?
24603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604   (exit $ac_status); }; }; then
24605   ac_cv_lib_pth_pth_version=yes
24606 else
24607   echo "$as_me: failed program was:" >&5
24608 sed 's/^/| /' conftest.$ac_ext >&5
24609
24610 ac_cv_lib_pth_pth_version=no
24611 fi
24612 rm -f conftest.err conftest.$ac_objext \
24613       conftest$ac_exeext conftest.$ac_ext
24614 LIBS=$ac_check_lib_save_LIBS
24615 fi
24616 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
24617 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
24618 if test $ac_cv_lib_pth_pth_version = yes; then
24619   have_pth=yes
24620 else
24621   have_pth=no
24622 fi
24623
24624
24625                 if test $have_pth = yes ; then
24626
24627 cat >>confdefs.h <<\_ACEOF
24628 #define HAVE_GNU_PTH 1
24629 _ACEOF
24630
24631                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
24632                         ol_link_threads=pth
24633                         ol_with_threads=found
24634
24635                         if test $ol_with_yielding_select = auto ; then
24636                                 ol_with_yielding_select=yes
24637                         fi
24638                 fi
24639         fi
24640         ;;
24641 esac
24642
24643 case $ol_with_threads in auto | yes | lwp)
24644
24645
24646
24647 for ac_header in thread.h synch.h
24648 do
24649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24651   echo "$as_me:$LINENO: checking for $ac_header" >&5
24652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24654   echo $ECHO_N "(cached) $ECHO_C" >&6
24655 fi
24656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24658 else
24659   # Is the header compilable?
24660 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24661 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24662 cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h.  */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h.  */
24668 $ac_includes_default
24669 #include <$ac_header>
24670 _ACEOF
24671 rm -f conftest.$ac_objext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24673   (eval $ac_compile) 2>conftest.er1
24674   ac_status=$?
24675   grep -v '^ *+' conftest.er1 >conftest.err
24676   rm -f conftest.er1
24677   cat conftest.err >&5
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); } &&
24680          { ac_try='test -z "$ac_c_werror_flag"
24681                          || test ! -s conftest.err'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; } &&
24687          { ac_try='test -s conftest.$ac_objext'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   ac_header_compiler=yes
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 ac_header_compiler=no
24699 fi
24700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24701 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24702 echo "${ECHO_T}$ac_header_compiler" >&6
24703
24704 # Is the header present?
24705 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24706 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24707 cat >conftest.$ac_ext <<_ACEOF
24708 /* confdefs.h.  */
24709 _ACEOF
24710 cat confdefs.h >>conftest.$ac_ext
24711 cat >>conftest.$ac_ext <<_ACEOF
24712 /* end confdefs.h.  */
24713 #include <$ac_header>
24714 _ACEOF
24715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24717   ac_status=$?
24718   grep -v '^ *+' conftest.er1 >conftest.err
24719   rm -f conftest.er1
24720   cat conftest.err >&5
24721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722   (exit $ac_status); } >/dev/null; then
24723   if test -s conftest.err; then
24724     ac_cpp_err=$ac_c_preproc_warn_flag
24725     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24726   else
24727     ac_cpp_err=
24728   fi
24729 else
24730   ac_cpp_err=yes
24731 fi
24732 if test -z "$ac_cpp_err"; then
24733   ac_header_preproc=yes
24734 else
24735   echo "$as_me: failed program was:" >&5
24736 sed 's/^/| /' conftest.$ac_ext >&5
24737
24738   ac_header_preproc=no
24739 fi
24740 rm -f conftest.err conftest.$ac_ext
24741 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24742 echo "${ECHO_T}$ac_header_preproc" >&6
24743
24744 # So?  What about this header?
24745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24746   yes:no: )
24747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24751     ac_header_preproc=yes
24752     ;;
24753   no:yes:* )
24754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24766     (
24767       cat <<\_ASBOX
24768 ## --------------------------------------------- ##
24769 ## Report this to <http://www.openldap.org/its/> ##
24770 ## --------------------------------------------- ##
24771 _ASBOX
24772     ) |
24773       sed "s/^/$as_me: WARNING:     /" >&2
24774     ;;
24775 esac
24776 echo "$as_me:$LINENO: checking for $ac_header" >&5
24777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24779   echo $ECHO_N "(cached) $ECHO_C" >&6
24780 else
24781   eval "$as_ac_Header=\$ac_header_preproc"
24782 fi
24783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24785
24786 fi
24787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24788   cat >>confdefs.h <<_ACEOF
24789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24790 _ACEOF
24791
24792 fi
24793
24794 done
24795
24796         if test $ac_cv_header_thread_h = yes &&
24797            test $ac_cv_header_synch_h = yes ; then
24798                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
24799 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
24800 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
24801   echo $ECHO_N "(cached) $ECHO_C" >&6
24802 else
24803   ac_check_lib_save_LIBS=$LIBS
24804 LIBS="-lthread  $LIBS"
24805 cat >conftest.$ac_ext <<_ACEOF
24806 /* confdefs.h.  */
24807 _ACEOF
24808 cat confdefs.h >>conftest.$ac_ext
24809 cat >>conftest.$ac_ext <<_ACEOF
24810 /* end confdefs.h.  */
24811
24812 /* Override any gcc2 internal prototype to avoid an error.  */
24813 #ifdef __cplusplus
24814 extern "C"
24815 #endif
24816 /* We use char because int might match the return type of a gcc2
24817    builtin and then its argument prototype would still apply.  */
24818 char thr_create ();
24819 int
24820 main ()
24821 {
24822 thr_create ();
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest.$ac_objext conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829   (eval $ac_link) 2>conftest.er1
24830   ac_status=$?
24831   grep -v '^ *+' conftest.er1 >conftest.err
24832   rm -f conftest.er1
24833   cat conftest.err >&5
24834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835   (exit $ac_status); } &&
24836          { ac_try='test -z "$ac_c_werror_flag"
24837                          || test ! -s conftest.err'
24838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24839   (eval $ac_try) 2>&5
24840   ac_status=$?
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); }; } &&
24843          { ac_try='test -s conftest$ac_exeext'
24844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24845   (eval $ac_try) 2>&5
24846   ac_status=$?
24847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24848   (exit $ac_status); }; }; then
24849   ac_cv_lib_thread_thr_create=yes
24850 else
24851   echo "$as_me: failed program was:" >&5
24852 sed 's/^/| /' conftest.$ac_ext >&5
24853
24854 ac_cv_lib_thread_thr_create=no
24855 fi
24856 rm -f conftest.err conftest.$ac_objext \
24857       conftest$ac_exeext conftest.$ac_ext
24858 LIBS=$ac_check_lib_save_LIBS
24859 fi
24860 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
24861 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
24862 if test $ac_cv_lib_thread_thr_create = yes; then
24863   have_thr=yes
24864 else
24865   have_thr=no
24866 fi
24867
24868
24869                 if test $have_thr = yes ; then
24870
24871 cat >>confdefs.h <<\_ACEOF
24872 #define HAVE_THR 1
24873 _ACEOF
24874
24875                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
24876                         ol_link_threads=thr
24877
24878                         if test $ol_with_yielding_select = auto ; then
24879                                 ol_with_yielding_select=yes
24880                         fi
24881
24882
24883
24884 for ac_func in \
24885                                 thr_setconcurrency \
24886                                 thr_getconcurrency \
24887
24888 do
24889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24890 echo "$as_me:$LINENO: checking for $ac_func" >&5
24891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24892 if eval "test \"\${$as_ac_var+set}\" = set"; then
24893   echo $ECHO_N "(cached) $ECHO_C" >&6
24894 else
24895   cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24903 #define $ac_func innocuous_$ac_func
24904
24905 /* System header to define __stub macros and hopefully few prototypes,
24906     which can conflict with char $ac_func (); below.
24907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24908     <limits.h> exists even on freestanding compilers.  */
24909
24910 #ifdef __STDC__
24911 # include <limits.h>
24912 #else
24913 # include <assert.h>
24914 #endif
24915
24916 #undef $ac_func
24917
24918 /* Override any gcc2 internal prototype to avoid an error.  */
24919 #ifdef __cplusplus
24920 extern "C"
24921 {
24922 #endif
24923 /* We use char because int might match the return type of a gcc2
24924    builtin and then its argument prototype would still apply.  */
24925 char $ac_func ();
24926 /* The GNU C library defines this for functions which it implements
24927     to always fail with ENOSYS.  Some functions are actually named
24928     something starting with __ and the normal name is an alias.  */
24929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24930 choke me
24931 #else
24932 char (*f) () = $ac_func;
24933 #endif
24934 #ifdef __cplusplus
24935 }
24936 #endif
24937
24938 int
24939 main ()
24940 {
24941 return f != $ac_func;
24942   ;
24943   return 0;
24944 }
24945 _ACEOF
24946 rm -f conftest.$ac_objext conftest$ac_exeext
24947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24948   (eval $ac_link) 2>conftest.er1
24949   ac_status=$?
24950   grep -v '^ *+' conftest.er1 >conftest.err
24951   rm -f conftest.er1
24952   cat conftest.err >&5
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); } &&
24955          { ac_try='test -z "$ac_c_werror_flag"
24956                          || test ! -s conftest.err'
24957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24958   (eval $ac_try) 2>&5
24959   ac_status=$?
24960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961   (exit $ac_status); }; } &&
24962          { ac_try='test -s conftest$ac_exeext'
24963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24964   (eval $ac_try) 2>&5
24965   ac_status=$?
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); }; }; then
24968   eval "$as_ac_var=yes"
24969 else
24970   echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24972
24973 eval "$as_ac_var=no"
24974 fi
24975 rm -f conftest.err conftest.$ac_objext \
24976       conftest$ac_exeext conftest.$ac_ext
24977 fi
24978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24980 if test `eval echo '${'$as_ac_var'}'` = yes; then
24981   cat >>confdefs.h <<_ACEOF
24982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24983 _ACEOF
24984
24985 fi
24986 done
24987
24988                 fi
24989         fi
24990
24991
24992 for ac_header in lwp/lwp.h
24993 do
24994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24996   echo "$as_me:$LINENO: checking for $ac_header" >&5
24997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24999   echo $ECHO_N "(cached) $ECHO_C" >&6
25000 fi
25001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25003 else
25004   # Is the header compilable?
25005 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25006 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25007 cat >conftest.$ac_ext <<_ACEOF
25008 /* confdefs.h.  */
25009 _ACEOF
25010 cat confdefs.h >>conftest.$ac_ext
25011 cat >>conftest.$ac_ext <<_ACEOF
25012 /* end confdefs.h.  */
25013 $ac_includes_default
25014 #include <$ac_header>
25015 _ACEOF
25016 rm -f conftest.$ac_objext
25017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25018   (eval $ac_compile) 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } &&
25025          { ac_try='test -z "$ac_c_werror_flag"
25026                          || test ! -s conftest.err'
25027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028   (eval $ac_try) 2>&5
25029   ac_status=$?
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); }; } &&
25032          { ac_try='test -s conftest.$ac_objext'
25033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25034   (eval $ac_try) 2>&5
25035   ac_status=$?
25036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037   (exit $ac_status); }; }; then
25038   ac_header_compiler=yes
25039 else
25040   echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043 ac_header_compiler=no
25044 fi
25045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25047 echo "${ECHO_T}$ac_header_compiler" >&6
25048
25049 # Is the header present?
25050 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25051 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h.  */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h.  */
25058 #include <$ac_header>
25059 _ACEOF
25060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25061   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25062   ac_status=$?
25063   grep -v '^ *+' conftest.er1 >conftest.err
25064   rm -f conftest.er1
25065   cat conftest.err >&5
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); } >/dev/null; then
25068   if test -s conftest.err; then
25069     ac_cpp_err=$ac_c_preproc_warn_flag
25070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25071   else
25072     ac_cpp_err=
25073   fi
25074 else
25075   ac_cpp_err=yes
25076 fi
25077 if test -z "$ac_cpp_err"; then
25078   ac_header_preproc=yes
25079 else
25080   echo "$as_me: failed program was:" >&5
25081 sed 's/^/| /' conftest.$ac_ext >&5
25082
25083   ac_header_preproc=no
25084 fi
25085 rm -f conftest.err conftest.$ac_ext
25086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25087 echo "${ECHO_T}$ac_header_preproc" >&6
25088
25089 # So?  What about this header?
25090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25091   yes:no: )
25092     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25096     ac_header_preproc=yes
25097     ;;
25098   no:yes:* )
25099     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25101     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25102 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25103     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25105     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25106 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25109     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25111     (
25112       cat <<\_ASBOX
25113 ## --------------------------------------------- ##
25114 ## Report this to <http://www.openldap.org/its/> ##
25115 ## --------------------------------------------- ##
25116 _ASBOX
25117     ) |
25118       sed "s/^/$as_me: WARNING:     /" >&2
25119     ;;
25120 esac
25121 echo "$as_me:$LINENO: checking for $ac_header" >&5
25122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124   echo $ECHO_N "(cached) $ECHO_C" >&6
25125 else
25126   eval "$as_ac_Header=\$ac_header_preproc"
25127 fi
25128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25130
25131 fi
25132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25133   cat >>confdefs.h <<_ACEOF
25134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25135 _ACEOF
25136
25137 fi
25138
25139 done
25140
25141         if test $ac_cv_header_lwp_lwp_h = yes ; then
25142                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
25143 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
25144 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
25145   echo $ECHO_N "(cached) $ECHO_C" >&6
25146 else
25147   ac_check_lib_save_LIBS=$LIBS
25148 LIBS="-llwp  $LIBS"
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
25156 /* Override any gcc2 internal prototype to avoid an error.  */
25157 #ifdef __cplusplus
25158 extern "C"
25159 #endif
25160 /* We use char because int might match the return type of a gcc2
25161    builtin and then its argument prototype would still apply.  */
25162 char lwp_create ();
25163 int
25164 main ()
25165 {
25166 lwp_create ();
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext conftest$ac_exeext
25172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25173   (eval $ac_link) 2>conftest.er1
25174   ac_status=$?
25175   grep -v '^ *+' conftest.er1 >conftest.err
25176   rm -f conftest.er1
25177   cat conftest.err >&5
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); } &&
25180          { ac_try='test -z "$ac_c_werror_flag"
25181                          || test ! -s conftest.err'
25182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25183   (eval $ac_try) 2>&5
25184   ac_status=$?
25185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186   (exit $ac_status); }; } &&
25187          { ac_try='test -s conftest$ac_exeext'
25188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189   (eval $ac_try) 2>&5
25190   ac_status=$?
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); }; }; then
25193   ac_cv_lib_lwp_lwp_create=yes
25194 else
25195   echo "$as_me: failed program was:" >&5
25196 sed 's/^/| /' conftest.$ac_ext >&5
25197
25198 ac_cv_lib_lwp_lwp_create=no
25199 fi
25200 rm -f conftest.err conftest.$ac_objext \
25201       conftest$ac_exeext conftest.$ac_ext
25202 LIBS=$ac_check_lib_save_LIBS
25203 fi
25204 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
25205 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
25206 if test $ac_cv_lib_lwp_lwp_create = yes; then
25207   have_lwp=yes
25208 else
25209   have_lwp=no
25210 fi
25211
25212
25213                 if test $have_lwp = yes ; then
25214
25215 cat >>confdefs.h <<\_ACEOF
25216 #define HAVE_LWP 1
25217 _ACEOF
25218
25219                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
25220                         ol_link_threads=lwp
25221
25222                         if test $ol_with_yielding_select = auto ; then
25223                                 ol_with_yielding_select=no
25224                         fi
25225                 fi
25226         fi
25227         ;;
25228 esac
25229
25230 if test $ol_with_yielding_select = yes ; then
25231
25232 cat >>confdefs.h <<\_ACEOF
25233 #define HAVE_YIELDING_SELECT 1
25234 _ACEOF
25235
25236 fi
25237
25238 if test $ol_with_threads = manual ; then
25239                 ol_link_threads=yes
25240
25241         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
25242 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
25243
25244
25245
25246 for ac_header in pthread.h sched.h
25247 do
25248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25250   echo "$as_me:$LINENO: checking for $ac_header" >&5
25251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25253   echo $ECHO_N "(cached) $ECHO_C" >&6
25254 fi
25255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25257 else
25258   # Is the header compilable?
25259 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25260 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25261 cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267 $ac_includes_default
25268 #include <$ac_header>
25269 _ACEOF
25270 rm -f conftest.$ac_objext
25271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25272   (eval $ac_compile) 2>conftest.er1
25273   ac_status=$?
25274   grep -v '^ *+' conftest.er1 >conftest.err
25275   rm -f conftest.er1
25276   cat conftest.err >&5
25277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278   (exit $ac_status); } &&
25279          { ac_try='test -z "$ac_c_werror_flag"
25280                          || test ! -s conftest.err'
25281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282   (eval $ac_try) 2>&5
25283   ac_status=$?
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); }; } &&
25286          { ac_try='test -s conftest.$ac_objext'
25287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288   (eval $ac_try) 2>&5
25289   ac_status=$?
25290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291   (exit $ac_status); }; }; then
25292   ac_header_compiler=yes
25293 else
25294   echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25296
25297 ac_header_compiler=no
25298 fi
25299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25300 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25301 echo "${ECHO_T}$ac_header_compiler" >&6
25302
25303 # Is the header present?
25304 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25306 cat >conftest.$ac_ext <<_ACEOF
25307 /* confdefs.h.  */
25308 _ACEOF
25309 cat confdefs.h >>conftest.$ac_ext
25310 cat >>conftest.$ac_ext <<_ACEOF
25311 /* end confdefs.h.  */
25312 #include <$ac_header>
25313 _ACEOF
25314 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25315   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25316   ac_status=$?
25317   grep -v '^ *+' conftest.er1 >conftest.err
25318   rm -f conftest.er1
25319   cat conftest.err >&5
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); } >/dev/null; then
25322   if test -s conftest.err; then
25323     ac_cpp_err=$ac_c_preproc_warn_flag
25324     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25325   else
25326     ac_cpp_err=
25327   fi
25328 else
25329   ac_cpp_err=yes
25330 fi
25331 if test -z "$ac_cpp_err"; then
25332   ac_header_preproc=yes
25333 else
25334   echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337   ac_header_preproc=no
25338 fi
25339 rm -f conftest.err conftest.$ac_ext
25340 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25341 echo "${ECHO_T}$ac_header_preproc" >&6
25342
25343 # So?  What about this header?
25344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25345   yes:no: )
25346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25350     ac_header_preproc=yes
25351     ;;
25352   no:yes:* )
25353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25365     (
25366       cat <<\_ASBOX
25367 ## --------------------------------------------- ##
25368 ## Report this to <http://www.openldap.org/its/> ##
25369 ## --------------------------------------------- ##
25370 _ASBOX
25371     ) |
25372       sed "s/^/$as_me: WARNING:     /" >&2
25373     ;;
25374 esac
25375 echo "$as_me:$LINENO: checking for $ac_header" >&5
25376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25378   echo $ECHO_N "(cached) $ECHO_C" >&6
25379 else
25380   eval "$as_ac_Header=\$ac_header_preproc"
25381 fi
25382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25384
25385 fi
25386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25387   cat >>confdefs.h <<_ACEOF
25388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25389 _ACEOF
25390
25391 fi
25392
25393 done
25394
25395
25396
25397 for ac_func in sched_yield pthread_yield
25398 do
25399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25400 echo "$as_me:$LINENO: checking for $ac_func" >&5
25401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25402 if eval "test \"\${$as_ac_var+set}\" = set"; then
25403   echo $ECHO_N "(cached) $ECHO_C" >&6
25404 else
25405   cat >conftest.$ac_ext <<_ACEOF
25406 /* confdefs.h.  */
25407 _ACEOF
25408 cat confdefs.h >>conftest.$ac_ext
25409 cat >>conftest.$ac_ext <<_ACEOF
25410 /* end confdefs.h.  */
25411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25413 #define $ac_func innocuous_$ac_func
25414
25415 /* System header to define __stub macros and hopefully few prototypes,
25416     which can conflict with char $ac_func (); below.
25417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25418     <limits.h> exists even on freestanding compilers.  */
25419
25420 #ifdef __STDC__
25421 # include <limits.h>
25422 #else
25423 # include <assert.h>
25424 #endif
25425
25426 #undef $ac_func
25427
25428 /* Override any gcc2 internal prototype to avoid an error.  */
25429 #ifdef __cplusplus
25430 extern "C"
25431 {
25432 #endif
25433 /* We use char because int might match the return type of a gcc2
25434    builtin and then its argument prototype would still apply.  */
25435 char $ac_func ();
25436 /* The GNU C library defines this for functions which it implements
25437     to always fail with ENOSYS.  Some functions are actually named
25438     something starting with __ and the normal name is an alias.  */
25439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25440 choke me
25441 #else
25442 char (*f) () = $ac_func;
25443 #endif
25444 #ifdef __cplusplus
25445 }
25446 #endif
25447
25448 int
25449 main ()
25450 {
25451 return f != $ac_func;
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext conftest$ac_exeext
25457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458   (eval $ac_link) 2>conftest.er1
25459   ac_status=$?
25460   grep -v '^ *+' conftest.er1 >conftest.err
25461   rm -f conftest.er1
25462   cat conftest.err >&5
25463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464   (exit $ac_status); } &&
25465          { ac_try='test -z "$ac_c_werror_flag"
25466                          || test ! -s conftest.err'
25467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468   (eval $ac_try) 2>&5
25469   ac_status=$?
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); }; } &&
25472          { ac_try='test -s conftest$ac_exeext'
25473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474   (eval $ac_try) 2>&5
25475   ac_status=$?
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); }; }; then
25478   eval "$as_ac_var=yes"
25479 else
25480   echo "$as_me: failed program was:" >&5
25481 sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 eval "$as_ac_var=no"
25484 fi
25485 rm -f conftest.err conftest.$ac_objext \
25486       conftest$ac_exeext conftest.$ac_ext
25487 fi
25488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25489 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25490 if test `eval echo '${'$as_ac_var'}'` = yes; then
25491   cat >>confdefs.h <<_ACEOF
25492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25493 _ACEOF
25494
25495 fi
25496 done
25497
25498
25499         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
25500 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
25501 if test "${ol_cv_header_linux_threads+set}" = set; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504   cat >conftest.$ac_ext <<_ACEOF
25505 /* confdefs.h.  */
25506 _ACEOF
25507 cat confdefs.h >>conftest.$ac_ext
25508 cat >>conftest.$ac_ext <<_ACEOF
25509 /* end confdefs.h.  */
25510 #include <pthread.h>
25511 _ACEOF
25512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25513   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
25514   ol_cv_header_linux_threads=yes
25515 else
25516   ol_cv_header_linux_threads=no
25517 fi
25518 rm -f conftest*
25519
25520
25521 fi
25522 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
25523 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
25524         if test $ol_cv_header_linux_threads = yes; then
25525
25526 cat >>confdefs.h <<\_ACEOF
25527 #define HAVE_LINUX_THREADS 1
25528 _ACEOF
25529
25530         fi
25531
25532
25533
25534 for ac_header in mach/cthreads.h
25535 do
25536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25538   echo "$as_me:$LINENO: checking for $ac_header" >&5
25539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25541   echo $ECHO_N "(cached) $ECHO_C" >&6
25542 fi
25543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25545 else
25546   # Is the header compilable?
25547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25549 cat >conftest.$ac_ext <<_ACEOF
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 $ac_includes_default
25556 #include <$ac_header>
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25560   (eval $ac_compile) 2>conftest.er1
25561   ac_status=$?
25562   grep -v '^ *+' conftest.er1 >conftest.err
25563   rm -f conftest.er1
25564   cat conftest.err >&5
25565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566   (exit $ac_status); } &&
25567          { ac_try='test -z "$ac_c_werror_flag"
25568                          || test ! -s conftest.err'
25569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570   (eval $ac_try) 2>&5
25571   ac_status=$?
25572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573   (exit $ac_status); }; } &&
25574          { ac_try='test -s conftest.$ac_objext'
25575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25576   (eval $ac_try) 2>&5
25577   ac_status=$?
25578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579   (exit $ac_status); }; }; then
25580   ac_header_compiler=yes
25581 else
25582   echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25584
25585 ac_header_compiler=no
25586 fi
25587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25589 echo "${ECHO_T}$ac_header_compiler" >&6
25590
25591 # Is the header present?
25592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25594 cat >conftest.$ac_ext <<_ACEOF
25595 /* confdefs.h.  */
25596 _ACEOF
25597 cat confdefs.h >>conftest.$ac_ext
25598 cat >>conftest.$ac_ext <<_ACEOF
25599 /* end confdefs.h.  */
25600 #include <$ac_header>
25601 _ACEOF
25602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25604   ac_status=$?
25605   grep -v '^ *+' conftest.er1 >conftest.err
25606   rm -f conftest.er1
25607   cat conftest.err >&5
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); } >/dev/null; then
25610   if test -s conftest.err; then
25611     ac_cpp_err=$ac_c_preproc_warn_flag
25612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25613   else
25614     ac_cpp_err=
25615   fi
25616 else
25617   ac_cpp_err=yes
25618 fi
25619 if test -z "$ac_cpp_err"; then
25620   ac_header_preproc=yes
25621 else
25622   echo "$as_me: failed program was:" >&5
25623 sed 's/^/| /' conftest.$ac_ext >&5
25624
25625   ac_header_preproc=no
25626 fi
25627 rm -f conftest.err conftest.$ac_ext
25628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25629 echo "${ECHO_T}$ac_header_preproc" >&6
25630
25631 # So?  What about this header?
25632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25633   yes:no: )
25634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25638     ac_header_preproc=yes
25639     ;;
25640   no:yes:* )
25641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25653     (
25654       cat <<\_ASBOX
25655 ## --------------------------------------------- ##
25656 ## Report this to <http://www.openldap.org/its/> ##
25657 ## --------------------------------------------- ##
25658 _ASBOX
25659     ) |
25660       sed "s/^/$as_me: WARNING:     /" >&2
25661     ;;
25662 esac
25663 echo "$as_me:$LINENO: checking for $ac_header" >&5
25664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25666   echo $ECHO_N "(cached) $ECHO_C" >&6
25667 else
25668   eval "$as_ac_Header=\$ac_header_preproc"
25669 fi
25670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25672
25673 fi
25674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25675   cat >>confdefs.h <<_ACEOF
25676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25677 _ACEOF
25678
25679 fi
25680
25681 done
25682
25683
25684 for ac_header in lwp/lwp.h
25685 do
25686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25688   echo "$as_me:$LINENO: checking for $ac_header" >&5
25689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 fi
25693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25695 else
25696   # Is the header compilable?
25697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
25706 #include <$ac_header>
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710   (eval $ac_compile) 2>conftest.er1
25711   ac_status=$?
25712   grep -v '^ *+' conftest.er1 >conftest.err
25713   rm -f conftest.er1
25714   cat conftest.err >&5
25715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716   (exit $ac_status); } &&
25717          { ac_try='test -z "$ac_c_werror_flag"
25718                          || test ! -s conftest.err'
25719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720   (eval $ac_try) 2>&5
25721   ac_status=$?
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); }; } &&
25724          { ac_try='test -s conftest.$ac_objext'
25725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726   (eval $ac_try) 2>&5
25727   ac_status=$?
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); }; }; then
25730   ac_header_compiler=yes
25731 else
25732   echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25734
25735 ac_header_compiler=no
25736 fi
25737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25739 echo "${ECHO_T}$ac_header_compiler" >&6
25740
25741 # Is the header present?
25742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25744 cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750 #include <$ac_header>
25751 _ACEOF
25752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25754   ac_status=$?
25755   grep -v '^ *+' conftest.er1 >conftest.err
25756   rm -f conftest.er1
25757   cat conftest.err >&5
25758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759   (exit $ac_status); } >/dev/null; then
25760   if test -s conftest.err; then
25761     ac_cpp_err=$ac_c_preproc_warn_flag
25762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25763   else
25764     ac_cpp_err=
25765   fi
25766 else
25767   ac_cpp_err=yes
25768 fi
25769 if test -z "$ac_cpp_err"; then
25770   ac_header_preproc=yes
25771 else
25772   echo "$as_me: failed program was:" >&5
25773 sed 's/^/| /' conftest.$ac_ext >&5
25774
25775   ac_header_preproc=no
25776 fi
25777 rm -f conftest.err conftest.$ac_ext
25778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25779 echo "${ECHO_T}$ac_header_preproc" >&6
25780
25781 # So?  What about this header?
25782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25783   yes:no: )
25784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25788     ac_header_preproc=yes
25789     ;;
25790   no:yes:* )
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25803     (
25804       cat <<\_ASBOX
25805 ## --------------------------------------------- ##
25806 ## Report this to <http://www.openldap.org/its/> ##
25807 ## --------------------------------------------- ##
25808 _ASBOX
25809     ) |
25810       sed "s/^/$as_me: WARNING:     /" >&2
25811     ;;
25812 esac
25813 echo "$as_me:$LINENO: checking for $ac_header" >&5
25814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25816   echo $ECHO_N "(cached) $ECHO_C" >&6
25817 else
25818   eval "$as_ac_Header=\$ac_header_preproc"
25819 fi
25820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25822
25823 fi
25824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25825   cat >>confdefs.h <<_ACEOF
25826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25827 _ACEOF
25828
25829 fi
25830
25831 done
25832
25833
25834
25835 for ac_header in thread.h synch.h
25836 do
25837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25839   echo "$as_me:$LINENO: checking for $ac_header" >&5
25840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25842   echo $ECHO_N "(cached) $ECHO_C" >&6
25843 fi
25844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25846 else
25847   # Is the header compilable?
25848 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25850 cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856 $ac_includes_default
25857 #include <$ac_header>
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25861   (eval $ac_compile) 2>conftest.er1
25862   ac_status=$?
25863   grep -v '^ *+' conftest.er1 >conftest.err
25864   rm -f conftest.er1
25865   cat conftest.err >&5
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); } &&
25868          { ac_try='test -z "$ac_c_werror_flag"
25869                          || test ! -s conftest.err'
25870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25871   (eval $ac_try) 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; } &&
25875          { ac_try='test -s conftest.$ac_objext'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; }; then
25881   ac_header_compiler=yes
25882 else
25883   echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.$ac_ext >&5
25885
25886 ac_header_compiler=no
25887 fi
25888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25890 echo "${ECHO_T}$ac_header_compiler" >&6
25891
25892 # Is the header present?
25893 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25895 cat >conftest.$ac_ext <<_ACEOF
25896 /* confdefs.h.  */
25897 _ACEOF
25898 cat confdefs.h >>conftest.$ac_ext
25899 cat >>conftest.$ac_ext <<_ACEOF
25900 /* end confdefs.h.  */
25901 #include <$ac_header>
25902 _ACEOF
25903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25904   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25905   ac_status=$?
25906   grep -v '^ *+' conftest.er1 >conftest.err
25907   rm -f conftest.er1
25908   cat conftest.err >&5
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); } >/dev/null; then
25911   if test -s conftest.err; then
25912     ac_cpp_err=$ac_c_preproc_warn_flag
25913     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25914   else
25915     ac_cpp_err=
25916   fi
25917 else
25918   ac_cpp_err=yes
25919 fi
25920 if test -z "$ac_cpp_err"; then
25921   ac_header_preproc=yes
25922 else
25923   echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25925
25926   ac_header_preproc=no
25927 fi
25928 rm -f conftest.err conftest.$ac_ext
25929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25930 echo "${ECHO_T}$ac_header_preproc" >&6
25931
25932 # So?  What about this header?
25933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25934   yes:no: )
25935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25939     ac_header_preproc=yes
25940     ;;
25941   no:yes:* )
25942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25954     (
25955       cat <<\_ASBOX
25956 ## --------------------------------------------- ##
25957 ## Report this to <http://www.openldap.org/its/> ##
25958 ## --------------------------------------------- ##
25959 _ASBOX
25960     ) |
25961       sed "s/^/$as_me: WARNING:     /" >&2
25962     ;;
25963 esac
25964 echo "$as_me:$LINENO: checking for $ac_header" >&5
25965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25967   echo $ECHO_N "(cached) $ECHO_C" >&6
25968 else
25969   eval "$as_ac_Header=\$ac_header_preproc"
25970 fi
25971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25972 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25973
25974 fi
25975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25976   cat >>confdefs.h <<_ACEOF
25977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25978 _ACEOF
25979
25980 fi
25981
25982 done
25983
25984 fi
25985
25986 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
25987                         cat >>confdefs.h <<\_ACEOF
25988 #define REENTRANT 1
25989 _ACEOF
25990
25991         cat >>confdefs.h <<\_ACEOF
25992 #define _REENTRANT 1
25993 _ACEOF
25994
25995         cat >>confdefs.h <<\_ACEOF
25996 #define THREAD_SAFE 1
25997 _ACEOF
25998
25999         cat >>confdefs.h <<\_ACEOF
26000 #define _THREAD_SAFE 1
26001 _ACEOF
26002
26003         cat >>confdefs.h <<\_ACEOF
26004 #define THREADSAFE 1
26005 _ACEOF
26006
26007         cat >>confdefs.h <<\_ACEOF
26008 #define _THREADSAFE 1
26009 _ACEOF
26010
26011         cat >>confdefs.h <<\_ACEOF
26012 #define _SGI_MP_SOURCE 1
26013 _ACEOF
26014
26015
26016                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26017 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26018 if test "${ol_cv_errno_thread_specific+set}" = set; then
26019   echo $ECHO_N "(cached) $ECHO_C" >&6
26020 else
26021
26022                 cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028 #include <errno.h>
26029 int
26030 main ()
26031 {
26032 errno = 0;
26033   ;
26034   return 0;
26035 }
26036 _ACEOF
26037 rm -f conftest.$ac_objext conftest$ac_exeext
26038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26039   (eval $ac_link) 2>conftest.er1
26040   ac_status=$?
26041   grep -v '^ *+' conftest.er1 >conftest.err
26042   rm -f conftest.er1
26043   cat conftest.err >&5
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); } &&
26046          { ac_try='test -z "$ac_c_werror_flag"
26047                          || test ! -s conftest.err'
26048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26049   (eval $ac_try) 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); }; } &&
26053          { ac_try='test -s conftest$ac_exeext'
26054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26055   (eval $ac_try) 2>&5
26056   ac_status=$?
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); }; }; then
26059   ol_cv_errno_thread_specific=yes
26060 else
26061   echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26063
26064 ol_cv_errno_thread_specific=no
26065 fi
26066 rm -f conftest.err conftest.$ac_objext \
26067       conftest$ac_exeext conftest.$ac_ext
26068
26069 fi
26070 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
26071 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
26072
26073                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
26074 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
26075 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
26076   echo $ECHO_N "(cached) $ECHO_C" >&6
26077 else
26078
26079                 cat >conftest.$ac_ext <<_ACEOF
26080 /* confdefs.h.  */
26081 _ACEOF
26082 cat confdefs.h >>conftest.$ac_ext
26083 cat >>conftest.$ac_ext <<_ACEOF
26084 /* end confdefs.h.  */
26085 #include <netdb.h>
26086 int
26087 main ()
26088 {
26089 h_errno = 0;
26090   ;
26091   return 0;
26092 }
26093 _ACEOF
26094 rm -f conftest.$ac_objext conftest$ac_exeext
26095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26096   (eval $ac_link) 2>conftest.er1
26097   ac_status=$?
26098   grep -v '^ *+' conftest.er1 >conftest.err
26099   rm -f conftest.er1
26100   cat conftest.err >&5
26101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102   (exit $ac_status); } &&
26103          { ac_try='test -z "$ac_c_werror_flag"
26104                          || test ! -s conftest.err'
26105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106   (eval $ac_try) 2>&5
26107   ac_status=$?
26108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109   (exit $ac_status); }; } &&
26110          { ac_try='test -s conftest$ac_exeext'
26111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112   (eval $ac_try) 2>&5
26113   ac_status=$?
26114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115   (exit $ac_status); }; }; then
26116   ol_cv_h_errno_thread_specific=yes
26117 else
26118   echo "$as_me: failed program was:" >&5
26119 sed 's/^/| /' conftest.$ac_ext >&5
26120
26121 ol_cv_h_errno_thread_specific=no
26122 fi
26123 rm -f conftest.err conftest.$ac_objext \
26124       conftest$ac_exeext conftest.$ac_ext
26125
26126 fi
26127 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
26128 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
26129
26130         if test $ol_cv_errno_thread_specific != yes ||
26131            test $ol_cv_h_errno_thread_specific != yes ; then
26132                 LIBS="$LTHREAD_LIBS $LIBS"
26133                 LTHREAD_LIBS=""
26134         fi
26135
26136 fi
26137
26138 if test $ol_link_threads = no ; then
26139         if test $ol_with_threads = yes ; then
26140                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
26141 echo "$as_me: error: no suitable thread support" >&2;}
26142    { (exit 1); exit 1; }; }
26143         fi
26144
26145         if test $ol_with_threads = auto ; then
26146                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
26147 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
26148                 ol_with_threads=no
26149         fi
26150
26151
26152 cat >>confdefs.h <<\_ACEOF
26153 #define NO_THREADS 1
26154 _ACEOF
26155
26156         LTHREAD_LIBS=""
26157         BUILD_THREAD=no
26158 else
26159         BUILD_THREAD=yes
26160 fi
26161
26162 if test $ol_link_threads != no ; then
26163
26164 cat >>confdefs.h <<\_ACEOF
26165 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
26166 _ACEOF
26167
26168 fi
26169
26170
26171
26172
26173 for ac_func in \
26174         ctime_r                 \
26175         gethostbyname_r gethostbyaddr_r \
26176
26177 do
26178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26179 echo "$as_me:$LINENO: checking for $ac_func" >&5
26180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26181 if eval "test \"\${$as_ac_var+set}\" = set"; then
26182   echo $ECHO_N "(cached) $ECHO_C" >&6
26183 else
26184   cat >conftest.$ac_ext <<_ACEOF
26185 /* confdefs.h.  */
26186 _ACEOF
26187 cat confdefs.h >>conftest.$ac_ext
26188 cat >>conftest.$ac_ext <<_ACEOF
26189 /* end confdefs.h.  */
26190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26192 #define $ac_func innocuous_$ac_func
26193
26194 /* System header to define __stub macros and hopefully few prototypes,
26195     which can conflict with char $ac_func (); below.
26196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26197     <limits.h> exists even on freestanding compilers.  */
26198
26199 #ifdef __STDC__
26200 # include <limits.h>
26201 #else
26202 # include <assert.h>
26203 #endif
26204
26205 #undef $ac_func
26206
26207 /* Override any gcc2 internal prototype to avoid an error.  */
26208 #ifdef __cplusplus
26209 extern "C"
26210 {
26211 #endif
26212 /* We use char because int might match the return type of a gcc2
26213    builtin and then its argument prototype would still apply.  */
26214 char $ac_func ();
26215 /* The GNU C library defines this for functions which it implements
26216     to always fail with ENOSYS.  Some functions are actually named
26217     something starting with __ and the normal name is an alias.  */
26218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26219 choke me
26220 #else
26221 char (*f) () = $ac_func;
26222 #endif
26223 #ifdef __cplusplus
26224 }
26225 #endif
26226
26227 int
26228 main ()
26229 {
26230 return f != $ac_func;
26231   ;
26232   return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26237   (eval $ac_link) 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } &&
26244          { ac_try='test -z "$ac_c_werror_flag"
26245                          || test ! -s conftest.err'
26246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247   (eval $ac_try) 2>&5
26248   ac_status=$?
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); }; } &&
26251          { ac_try='test -s conftest$ac_exeext'
26252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253   (eval $ac_try) 2>&5
26254   ac_status=$?
26255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256   (exit $ac_status); }; }; then
26257   eval "$as_ac_var=yes"
26258 else
26259   echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 eval "$as_ac_var=no"
26263 fi
26264 rm -f conftest.err conftest.$ac_objext \
26265       conftest$ac_exeext conftest.$ac_ext
26266 fi
26267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26269 if test `eval echo '${'$as_ac_var'}'` = yes; then
26270   cat >>confdefs.h <<_ACEOF
26271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26272 _ACEOF
26273
26274 fi
26275 done
26276
26277
26278 if test "$ac_cv_func_ctime_r" = no ; then
26279         ol_cv_func_ctime_r_nargs=0
26280 else
26281         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
26282 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
26283 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
26284   echo $ECHO_N "(cached) $ECHO_C" >&6
26285 else
26286   cat >conftest.$ac_ext <<_ACEOF
26287 /* confdefs.h.  */
26288 _ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h.  */
26292 #include <time.h>
26293 int
26294 main ()
26295 {
26296 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 rm -f conftest.$ac_objext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26303   (eval $ac_compile) 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } &&
26310          { ac_try='test -z "$ac_c_werror_flag"
26311                          || test ! -s conftest.err'
26312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313   (eval $ac_try) 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest.$ac_objext'
26318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319   (eval $ac_try) 2>&5
26320   ac_status=$?
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); }; }; then
26323   ol_cv_func_ctime_r_nargs3=yes
26324 else
26325   echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26327
26328 ol_cv_func_ctime_r_nargs3=no
26329 fi
26330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26331
26332         cat >conftest.$ac_ext <<_ACEOF
26333 /* confdefs.h.  */
26334 _ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h.  */
26338 #include <time.h>
26339 int
26340 main ()
26341 {
26342 time_t ti; char *buffer; ctime_r(&ti,buffer);
26343   ;
26344   return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26349   (eval $ac_compile) 2>conftest.er1
26350   ac_status=$?
26351   grep -v '^ *+' conftest.er1 >conftest.err
26352   rm -f conftest.er1
26353   cat conftest.err >&5
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); } &&
26356          { ac_try='test -z "$ac_c_werror_flag"
26357                          || test ! -s conftest.err'
26358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359   (eval $ac_try) 2>&5
26360   ac_status=$?
26361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362   (exit $ac_status); }; } &&
26363          { ac_try='test -s conftest.$ac_objext'
26364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365   (eval $ac_try) 2>&5
26366   ac_status=$?
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); }; }; then
26369   ol_cv_func_ctime_r_nargs2=yes
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374 ol_cv_func_ctime_r_nargs2=no
26375 fi
26376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26377
26378         if test $ol_cv_func_ctime_r_nargs3 = yes &&
26379            test $ol_cv_func_ctime_r_nargs2 = no ; then
26380
26381                 ol_cv_func_ctime_r_nargs=3
26382
26383         elif test $ol_cv_func_ctime_r_nargs3 = no &&
26384              test $ol_cv_func_ctime_r_nargs2 = yes ; then
26385
26386                 ol_cv_func_ctime_r_nargs=2
26387
26388         else
26389                 ol_cv_func_ctime_r_nargs=0
26390         fi
26391
26392 fi
26393 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
26394 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
26395
26396   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
26397
26398 cat >>confdefs.h <<_ACEOF
26399 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
26400 _ACEOF
26401
26402   fi
26403
26404 fi
26405
26406 if test "$ac_cv_func_gethostbyname_r" = yes ; then
26407         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
26408 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
26409 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
26410   echo $ECHO_N "(cached) $ECHO_C" >&6
26411 else
26412   cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418 #include <sys/types.h>
26419 #include <sys/socket.h>
26420 #include <netinet/in.h>
26421 #include <netdb.h>
26422 #define BUFSIZE (sizeof(struct hostent)+10)
26423 int
26424 main ()
26425 {
26426 struct hostent hent; char buffer[BUFSIZE];
26427                 int bufsize=BUFSIZE;int h_errno;
26428                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
26429                         buffer, bufsize, &h_errno);
26430   ;
26431   return 0;
26432 }
26433 _ACEOF
26434 rm -f conftest.$ac_objext
26435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26436   (eval $ac_compile) 2>conftest.er1
26437   ac_status=$?
26438   grep -v '^ *+' conftest.er1 >conftest.err
26439   rm -f conftest.er1
26440   cat conftest.err >&5
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); } &&
26443          { ac_try='test -z "$ac_c_werror_flag"
26444                          || test ! -s conftest.err'
26445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446   (eval $ac_try) 2>&5
26447   ac_status=$?
26448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449   (exit $ac_status); }; } &&
26450          { ac_try='test -s conftest.$ac_objext'
26451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452   (eval $ac_try) 2>&5
26453   ac_status=$?
26454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455   (exit $ac_status); }; }; then
26456   ol_cv_func_gethostbyname_r_nargs5=yes
26457 else
26458   echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461 ol_cv_func_gethostbyname_r_nargs5=no
26462 fi
26463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26464
26465         cat >conftest.$ac_ext <<_ACEOF
26466 /* confdefs.h.  */
26467 _ACEOF
26468 cat confdefs.h >>conftest.$ac_ext
26469 cat >>conftest.$ac_ext <<_ACEOF
26470 /* end confdefs.h.  */
26471 #include <sys/types.h>
26472 #include <sys/socket.h>
26473 #include <netinet/in.h>
26474 #include <netdb.h>
26475 #define BUFSIZE (sizeof(struct hostent)+10)
26476 int
26477 main ()
26478 {
26479 struct hostent hent;struct hostent *rhent;
26480                 char buffer[BUFSIZE];
26481                 int bufsize=BUFSIZE;int h_errno;
26482                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
26483                         &rhent, &h_errno);
26484   ;
26485   return 0;
26486 }
26487 _ACEOF
26488 rm -f conftest.$ac_objext
26489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26490   (eval $ac_compile) 2>conftest.er1
26491   ac_status=$?
26492   grep -v '^ *+' conftest.er1 >conftest.err
26493   rm -f conftest.er1
26494   cat conftest.err >&5
26495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496   (exit $ac_status); } &&
26497          { ac_try='test -z "$ac_c_werror_flag"
26498                          || test ! -s conftest.err'
26499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26500   (eval $ac_try) 2>&5
26501   ac_status=$?
26502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503   (exit $ac_status); }; } &&
26504          { ac_try='test -s conftest.$ac_objext'
26505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26506   (eval $ac_try) 2>&5
26507   ac_status=$?
26508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509   (exit $ac_status); }; }; then
26510   ol_cv_func_gethostbyname_r_nargs6=yes
26511 else
26512   echo "$as_me: failed program was:" >&5
26513 sed 's/^/| /' conftest.$ac_ext >&5
26514
26515 ol_cv_func_gethostbyname_r_nargs6=no
26516 fi
26517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26518
26519         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
26520            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
26521
26522                 ol_cv_func_gethostbyname_r_nargs=5
26523
26524         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
26525              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
26526
26527                 ol_cv_func_gethostbyname_r_nargs=6
26528
26529         else
26530                 ol_cv_func_gethostbyname_r_nargs=0
26531         fi
26532
26533 fi
26534 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
26535 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
26536   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
26537
26538 cat >>confdefs.h <<_ACEOF
26539 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
26540 _ACEOF
26541
26542   fi
26543
26544 else
26545         ol_cv_func_gethostbyname_r_nargs=0
26546 fi
26547
26548 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
26549         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
26550 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
26551 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
26552   echo $ECHO_N "(cached) $ECHO_C" >&6
26553 else
26554   cat >conftest.$ac_ext <<_ACEOF
26555 /* confdefs.h.  */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h.  */
26560 #include <sys/types.h>
26561 #include <sys/socket.h>
26562 #include <netinet/in.h>
26563 #include <netdb.h>
26564 #define BUFSIZE (sizeof(struct hostent)+10)
26565 int
26566 main ()
26567 {
26568 struct hostent hent; char buffer[BUFSIZE];
26569             struct in_addr add;
26570             size_t alen=sizeof(struct in_addr);
26571             int bufsize=BUFSIZE;int h_errno;
26572                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26573                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext
26579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26580   (eval $ac_compile) 2>conftest.er1
26581   ac_status=$?
26582   grep -v '^ *+' conftest.er1 >conftest.err
26583   rm -f conftest.er1
26584   cat conftest.err >&5
26585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586   (exit $ac_status); } &&
26587          { ac_try='test -z "$ac_c_werror_flag"
26588                          || test ! -s conftest.err'
26589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26590   (eval $ac_try) 2>&5
26591   ac_status=$?
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); }; } &&
26594          { ac_try='test -s conftest.$ac_objext'
26595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26596   (eval $ac_try) 2>&5
26597   ac_status=$?
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); }; }; then
26600   ol_cv_func_gethostbyaddr_r_nargs7=yes
26601 else
26602   echo "$as_me: failed program was:" >&5
26603 sed 's/^/| /' conftest.$ac_ext >&5
26604
26605 ol_cv_func_gethostbyaddr_r_nargs7=no
26606 fi
26607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26608
26609         cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615 #include <sys/types.h>
26616 #include <sys/socket.h>
26617 #include <netinet/in.h>
26618 #include <netdb.h>
26619 #define BUFSIZE (sizeof(struct hostent)+10)
26620 int
26621 main ()
26622 {
26623 struct hostent hent;
26624                 struct hostent *rhent; char buffer[BUFSIZE];
26625                 struct in_addr add;
26626                 size_t alen=sizeof(struct in_addr);
26627                 int bufsize=BUFSIZE;int h_errno;
26628                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
26629                         alen, AF_INET, &hent, buffer, bufsize,
26630                         &rhent, &h_errno);
26631   ;
26632   return 0;
26633 }
26634 _ACEOF
26635 rm -f conftest.$ac_objext
26636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26637   (eval $ac_compile) 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } &&
26644          { ac_try='test -z "$ac_c_werror_flag"
26645                          || test ! -s conftest.err'
26646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647   (eval $ac_try) 2>&5
26648   ac_status=$?
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); }; } &&
26651          { ac_try='test -s conftest.$ac_objext'
26652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653   (eval $ac_try) 2>&5
26654   ac_status=$?
26655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656   (exit $ac_status); }; }; then
26657   ol_cv_func_gethostbyaddr_r_nargs8=yes
26658 else
26659   echo "$as_me: failed program was:" >&5
26660 sed 's/^/| /' conftest.$ac_ext >&5
26661
26662 ol_cv_func_gethostbyaddr_r_nargs8=no
26663 fi
26664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26665
26666         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
26667            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
26668
26669                 ol_cv_func_gethostbyaddr_r_nargs=7
26670
26671         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
26672              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
26673
26674                 ol_cv_func_gethostbyaddr_r_nargs=8
26675
26676         else
26677                 ol_cv_func_gethostbyaddr_r_nargs=0
26678         fi
26679
26680 fi
26681 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
26682 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
26683   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
26684
26685 cat >>confdefs.h <<_ACEOF
26686 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
26687 _ACEOF
26688
26689   fi
26690
26691 else
26692         ol_cv_func_gethostbyaddr_r_nargs=0
26693 fi
26694
26695 ol_link_bdb=no
26696
26697 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
26698         ol_cv_berkeley_db=no
26699
26700 for ac_header in db.h
26701 do
26702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26704   echo "$as_me:$LINENO: checking for $ac_header" >&5
26705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26707   echo $ECHO_N "(cached) $ECHO_C" >&6
26708 fi
26709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26711 else
26712   # Is the header compilable?
26713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26715 cat >conftest.$ac_ext <<_ACEOF
26716 /* confdefs.h.  */
26717 _ACEOF
26718 cat confdefs.h >>conftest.$ac_ext
26719 cat >>conftest.$ac_ext <<_ACEOF
26720 /* end confdefs.h.  */
26721 $ac_includes_default
26722 #include <$ac_header>
26723 _ACEOF
26724 rm -f conftest.$ac_objext
26725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26726   (eval $ac_compile) 2>conftest.er1
26727   ac_status=$?
26728   grep -v '^ *+' conftest.er1 >conftest.err
26729   rm -f conftest.er1
26730   cat conftest.err >&5
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); } &&
26733          { ac_try='test -z "$ac_c_werror_flag"
26734                          || test ! -s conftest.err'
26735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26736   (eval $ac_try) 2>&5
26737   ac_status=$?
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); }; } &&
26740          { ac_try='test -s conftest.$ac_objext'
26741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742   (eval $ac_try) 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; }; then
26746   ac_header_compiler=yes
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751 ac_header_compiler=no
26752 fi
26753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26755 echo "${ECHO_T}$ac_header_compiler" >&6
26756
26757 # Is the header present?
26758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26760 cat >conftest.$ac_ext <<_ACEOF
26761 /* confdefs.h.  */
26762 _ACEOF
26763 cat confdefs.h >>conftest.$ac_ext
26764 cat >>conftest.$ac_ext <<_ACEOF
26765 /* end confdefs.h.  */
26766 #include <$ac_header>
26767 _ACEOF
26768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26770   ac_status=$?
26771   grep -v '^ *+' conftest.er1 >conftest.err
26772   rm -f conftest.er1
26773   cat conftest.err >&5
26774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775   (exit $ac_status); } >/dev/null; then
26776   if test -s conftest.err; then
26777     ac_cpp_err=$ac_c_preproc_warn_flag
26778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26779   else
26780     ac_cpp_err=
26781   fi
26782 else
26783   ac_cpp_err=yes
26784 fi
26785 if test -z "$ac_cpp_err"; then
26786   ac_header_preproc=yes
26787 else
26788   echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26790
26791   ac_header_preproc=no
26792 fi
26793 rm -f conftest.err conftest.$ac_ext
26794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26795 echo "${ECHO_T}$ac_header_preproc" >&6
26796
26797 # So?  What about this header?
26798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26799   yes:no: )
26800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26804     ac_header_preproc=yes
26805     ;;
26806   no:yes:* )
26807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26819     (
26820       cat <<\_ASBOX
26821 ## --------------------------------------------- ##
26822 ## Report this to <http://www.openldap.org/its/> ##
26823 ## --------------------------------------------- ##
26824 _ASBOX
26825     ) |
26826       sed "s/^/$as_me: WARNING:     /" >&2
26827     ;;
26828 esac
26829 echo "$as_me:$LINENO: checking for $ac_header" >&5
26830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26832   echo $ECHO_N "(cached) $ECHO_C" >&6
26833 else
26834   eval "$as_ac_Header=\$ac_header_preproc"
26835 fi
26836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26838
26839 fi
26840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26841   cat >>confdefs.h <<_ACEOF
26842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26843 _ACEOF
26844
26845 fi
26846
26847 done
26848
26849 if test $ac_cv_header_db_h = yes; then
26850         ol_cv_lib_db=no
26851
26852 echo "$as_me:$LINENO: checking for Berkeley DB major version" >&5
26853 echo $ECHO_N "checking for Berkeley DB major version... $ECHO_C" >&6
26854 if test "${ol_cv_bdb_major+set}" = set; then
26855   echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857
26858         ol_cv_bdb_major=0
26859         if test $ol_cv_bdb_major = 0 ; then
26860                 cat >conftest.$ac_ext <<_ACEOF
26861 /* confdefs.h.  */
26862 _ACEOF
26863 cat confdefs.h >>conftest.$ac_ext
26864 cat >>conftest.$ac_ext <<_ACEOF
26865 /* end confdefs.h.  */
26866
26867 #include <db.h>
26868 #ifndef DB_VERSION_MAJOR
26869 #       define DB_VERSION_MAJOR 1
26870 #endif
26871 #if DB_VERSION_MAJOR == 4
26872 __db_version
26873 #endif
26874
26875 _ACEOF
26876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26877   $EGREP "__db_version" >/dev/null 2>&1; then
26878   ol_cv_bdb_major=4
26879 else
26880   :
26881 fi
26882 rm -f conftest*
26883
26884         fi
26885         if test $ol_cv_bdb_major = 0 ; then
26886                 cat >conftest.$ac_ext <<_ACEOF
26887 /* confdefs.h.  */
26888 _ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h.  */
26892
26893 #include <db.h>
26894 #ifndef DB_VERSION_MAJOR
26895 #       define DB_VERSION_MAJOR 1
26896 #endif
26897 #if DB_VERSION_MAJOR == 3
26898 __db_version
26899 #endif
26900
26901 _ACEOF
26902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26903   $EGREP "__db_version" >/dev/null 2>&1; then
26904   ol_cv_bdb_major=3
26905 else
26906   :
26907 fi
26908 rm -f conftest*
26909
26910         fi
26911         if test $ol_cv_bdb_major = 0 ; then
26912                 cat >conftest.$ac_ext <<_ACEOF
26913 /* confdefs.h.  */
26914 _ACEOF
26915 cat confdefs.h >>conftest.$ac_ext
26916 cat >>conftest.$ac_ext <<_ACEOF
26917 /* end confdefs.h.  */
26918
26919 #include <db.h>
26920 #ifndef DB_VERSION_MAJOR
26921 #       define DB_VERSION_MAJOR 1
26922 #endif
26923 #if DB_VERSION_MAJOR == 2
26924 __db_version
26925 #endif
26926
26927 _ACEOF
26928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26929   $EGREP "__db_version" >/dev/null 2>&1; then
26930   ol_cv_bdb_major=2
26931 else
26932   :
26933 fi
26934 rm -f conftest*
26935
26936         fi
26937         if test $ol_cv_bdb_major = 0 ; then
26938                 cat >conftest.$ac_ext <<_ACEOF
26939 /* confdefs.h.  */
26940 _ACEOF
26941 cat confdefs.h >>conftest.$ac_ext
26942 cat >>conftest.$ac_ext <<_ACEOF
26943 /* end confdefs.h.  */
26944
26945 #include <db.h>
26946 #ifndef DB_VERSION_MAJOR
26947 #       define DB_VERSION_MAJOR 1
26948 #endif
26949 #if DB_VERSION_MAJOR == 1
26950 __db_version
26951 #endif
26952
26953 _ACEOF
26954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26955   $EGREP "__db_version" >/dev/null 2>&1; then
26956   ol_cv_bdb_major=1
26957 else
26958   :
26959 fi
26960 rm -f conftest*
26961
26962         fi
26963
26964         if test $ol_cv_bdb_major = 0 ; then
26965                 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version" >&5
26966 echo "$as_me: error: Unknown Berkeley DB major version" >&2;}
26967    { (exit 1); exit 1; }; }
26968         fi
26969
26970 fi
26971 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
26972 echo "${ECHO_T}$ol_cv_bdb_major" >&6
26973
26974 echo "$as_me:$LINENO: checking for Berkeley DB minor version" >&5
26975 echo $ECHO_N "checking for Berkeley DB minor version... $ECHO_C" >&6
26976 if test "${ol_cv_bdb_minor+set}" = set; then
26977   echo $ECHO_N "(cached) $ECHO_C" >&6
26978 else
26979
26980         ol_cv_bdb_minor=0
26981         if test $ol_cv_bdb_minor = 0 ; then
26982                 cat >conftest.$ac_ext <<_ACEOF
26983 /* confdefs.h.  */
26984 _ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h.  */
26988
26989 #include <db.h>
26990 #ifndef DB_VERSION_MINOR
26991 #       define DB_VERSION_MINOR 0
26992 #endif
26993 #if DB_VERSION_MINOR == 9
26994 __db_version
26995 #endif
26996
26997 _ACEOF
26998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26999   $EGREP "__db_version" >/dev/null 2>&1; then
27000   ol_cv_bdb_minor=9
27001 else
27002   :
27003 fi
27004 rm -f conftest*
27005
27006         fi
27007         if test $ol_cv_bdb_minor = 0 ; then
27008                 cat >conftest.$ac_ext <<_ACEOF
27009 /* confdefs.h.  */
27010 _ACEOF
27011 cat confdefs.h >>conftest.$ac_ext
27012 cat >>conftest.$ac_ext <<_ACEOF
27013 /* end confdefs.h.  */
27014
27015 #include <db.h>
27016 #ifndef DB_VERSION_MINOR
27017 #       define DB_VERSION_MINOR 0
27018 #endif
27019 #if DB_VERSION_MINOR == 8
27020 __db_version
27021 #endif
27022
27023 _ACEOF
27024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27025   $EGREP "__db_version" >/dev/null 2>&1; then
27026   ol_cv_bdb_minor=8
27027 else
27028   :
27029 fi
27030 rm -f conftest*
27031
27032         fi
27033         if test $ol_cv_bdb_minor = 0 ; then
27034                 cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040
27041 #include <db.h>
27042 #ifndef DB_VERSION_MINOR
27043 #       define DB_VERSION_MINOR 0
27044 #endif
27045 #if DB_VERSION_MINOR == 7
27046 __db_version
27047 #endif
27048
27049 _ACEOF
27050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27051   $EGREP "__db_version" >/dev/null 2>&1; then
27052   ol_cv_bdb_minor=7
27053 else
27054   :
27055 fi
27056 rm -f conftest*
27057
27058         fi
27059         if test $ol_cv_bdb_minor = 0 ; then
27060                 cat >conftest.$ac_ext <<_ACEOF
27061 /* confdefs.h.  */
27062 _ACEOF
27063 cat confdefs.h >>conftest.$ac_ext
27064 cat >>conftest.$ac_ext <<_ACEOF
27065 /* end confdefs.h.  */
27066
27067 #include <db.h>
27068 #ifndef DB_VERSION_MINOR
27069 #       define DB_VERSION_MINOR 0
27070 #endif
27071 #if DB_VERSION_MINOR == 6
27072 __db_version
27073 #endif
27074
27075 _ACEOF
27076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27077   $EGREP "__db_version" >/dev/null 2>&1; then
27078   ol_cv_bdb_minor=6
27079 else
27080   :
27081 fi
27082 rm -f conftest*
27083
27084         fi
27085         if test $ol_cv_bdb_minor = 0 ; then
27086                 cat >conftest.$ac_ext <<_ACEOF
27087 /* confdefs.h.  */
27088 _ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h.  */
27092
27093 #include <db.h>
27094 #ifndef DB_VERSION_MINOR
27095 #       define DB_VERSION_MINOR 0
27096 #endif
27097 #if DB_VERSION_MINOR == 5
27098 __db_version
27099 #endif
27100
27101 _ACEOF
27102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27103   $EGREP "__db_version" >/dev/null 2>&1; then
27104   ol_cv_bdb_minor=5
27105 else
27106   :
27107 fi
27108 rm -f conftest*
27109
27110         fi
27111         if test $ol_cv_bdb_minor = 0 ; then
27112                 cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h.  */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h.  */
27118
27119 #include <db.h>
27120 #ifndef DB_VERSION_MINOR
27121 #       define DB_VERSION_MINOR 0
27122 #endif
27123 #if DB_VERSION_MINOR == 4
27124 __db_version
27125 #endif
27126
27127 _ACEOF
27128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27129   $EGREP "__db_version" >/dev/null 2>&1; then
27130   ol_cv_bdb_minor=4
27131 else
27132   :
27133 fi
27134 rm -f conftest*
27135
27136         fi
27137         if test $ol_cv_bdb_minor = 0 ; then
27138                 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144
27145 #include <db.h>
27146 #ifndef DB_VERSION_MINOR
27147 #       define DB_VERSION_MINOR 0
27148 #endif
27149 #if DB_VERSION_MINOR == 3
27150 __db_version
27151 #endif
27152
27153 _ACEOF
27154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27155   $EGREP "__db_version" >/dev/null 2>&1; then
27156   ol_cv_bdb_minor=3
27157 else
27158   :
27159 fi
27160 rm -f conftest*
27161
27162         fi
27163         if test $ol_cv_bdb_minor = 0 ; then
27164                 cat >conftest.$ac_ext <<_ACEOF
27165 /* confdefs.h.  */
27166 _ACEOF
27167 cat confdefs.h >>conftest.$ac_ext
27168 cat >>conftest.$ac_ext <<_ACEOF
27169 /* end confdefs.h.  */
27170
27171 #include <db.h>
27172 #ifndef DB_VERSION_MINOR
27173 #       define DB_VERSION_MINOR 0
27174 #endif
27175 #if DB_VERSION_MINOR == 2
27176 __db_version
27177 #endif
27178
27179 _ACEOF
27180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181   $EGREP "__db_version" >/dev/null 2>&1; then
27182   ol_cv_bdb_minor=2
27183 else
27184   :
27185 fi
27186 rm -f conftest*
27187
27188         fi
27189         if test $ol_cv_bdb_minor = 0 ; then
27190                 cat >conftest.$ac_ext <<_ACEOF
27191 /* confdefs.h.  */
27192 _ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h.  */
27196
27197 #include <db.h>
27198 #ifndef DB_VERSION_MINOR
27199 #       define DB_VERSION_MINOR 0
27200 #endif
27201 #if DB_VERSION_MINOR == 1
27202 __db_version
27203 #endif
27204
27205 _ACEOF
27206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27207   $EGREP "__db_version" >/dev/null 2>&1; then
27208   ol_cv_bdb_minor=1
27209 else
27210   :
27211 fi
27212 rm -f conftest*
27213
27214         fi
27215
27216 fi
27217 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
27218 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
27219
27220 if test $ol_cv_bdb_major = 4 ; then
27221         if test $ol_cv_bdb_minor = 4 ; then
27222                 if test $ol_cv_lib_db = no ; then
27223         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb44)" >&5
27224 echo $ECHO_N "checking for Berkeley DB link (-ldb44)... $ECHO_C" >&6
27225 if test "${ol_cv_db_db44+set}" = set; then
27226   echo $ECHO_N "(cached) $ECHO_C" >&6
27227 else
27228
27229         ol_DB_LIB=-ldb44
27230         ol_LIBS=$LIBS
27231         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27232
27233         cat >conftest.$ac_ext <<_ACEOF
27234 /* confdefs.h.  */
27235 _ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h.  */
27239
27240 #ifdef HAVE_DB_185_H
27241 # include <db_185.h>
27242 #else
27243 # include <db.h>
27244 #endif
27245
27246 #ifndef DB_VERSION_MAJOR
27247 # define DB_VERSION_MAJOR 1
27248 #endif
27249
27250 #ifndef NULL
27251 #define NULL ((void*)0)
27252 #endif
27253
27254 int
27255 main ()
27256 {
27257
27258 #if DB_VERSION_MAJOR > 1
27259         {
27260                 char *version;
27261                 int major, minor, patch;
27262
27263                 version = db_version( &major, &minor, &patch );
27264
27265                 if( major != DB_VERSION_MAJOR ||
27266                         minor < DB_VERSION_MINOR )
27267                 {
27268                         printf("Berkeley DB version mismatch\n"
27269                                 "\theader: %s\n\tlibrary: %s\n",
27270                                 DB_VERSION_STRING, version);
27271                         return 1;
27272                 }
27273         }
27274 #endif
27275
27276 #if DB_VERSION_MAJOR > 2
27277         db_env_create( NULL, 0 );
27278 #elif DB_VERSION_MAJOR > 1
27279         db_appexit( NULL );
27280 #else
27281         (void) dbopen( NULL, 0, 0, 0, NULL);
27282 #endif
27283
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 rm -f conftest.$ac_objext conftest$ac_exeext
27289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27290   (eval $ac_link) 2>conftest.er1
27291   ac_status=$?
27292   grep -v '^ *+' conftest.er1 >conftest.err
27293   rm -f conftest.er1
27294   cat conftest.err >&5
27295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296   (exit $ac_status); } &&
27297          { ac_try='test -z "$ac_c_werror_flag"
27298                          || test ! -s conftest.err'
27299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27300   (eval $ac_try) 2>&5
27301   ac_status=$?
27302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303   (exit $ac_status); }; } &&
27304          { ac_try='test -s conftest$ac_exeext'
27305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306   (eval $ac_try) 2>&5
27307   ac_status=$?
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); }; }; then
27310   ol_cv_db_db44=yes
27311 else
27312   echo "$as_me: failed program was:" >&5
27313 sed 's/^/| /' conftest.$ac_ext >&5
27314
27315 ol_cv_db_db44=no
27316 fi
27317 rm -f conftest.err conftest.$ac_objext \
27318       conftest$ac_exeext conftest.$ac_ext
27319
27320         LIBS="$ol_LIBS"
27321
27322 fi
27323 echo "$as_me:$LINENO: result: $ol_cv_db_db44" >&5
27324 echo "${ECHO_T}$ol_cv_db_db44" >&6
27325
27326         if test $ol_cv_db_db44 = yes ; then
27327                 ol_cv_lib_db=-ldb44
27328         fi
27329 fi
27330
27331                 if test $ol_cv_lib_db = no ; then
27332         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-44)" >&5
27333 echo $ECHO_N "checking for Berkeley DB link (-ldb-44)... $ECHO_C" >&6
27334 if test "${ol_cv_db_db_44+set}" = set; then
27335   echo $ECHO_N "(cached) $ECHO_C" >&6
27336 else
27337
27338         ol_DB_LIB=-ldb-44
27339         ol_LIBS=$LIBS
27340         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27341
27342         cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h.  */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h.  */
27348
27349 #ifdef HAVE_DB_185_H
27350 # include <db_185.h>
27351 #else
27352 # include <db.h>
27353 #endif
27354
27355 #ifndef DB_VERSION_MAJOR
27356 # define DB_VERSION_MAJOR 1
27357 #endif
27358
27359 #ifndef NULL
27360 #define NULL ((void*)0)
27361 #endif
27362
27363 int
27364 main ()
27365 {
27366
27367 #if DB_VERSION_MAJOR > 1
27368         {
27369                 char *version;
27370                 int major, minor, patch;
27371
27372                 version = db_version( &major, &minor, &patch );
27373
27374                 if( major != DB_VERSION_MAJOR ||
27375                         minor < DB_VERSION_MINOR )
27376                 {
27377                         printf("Berkeley DB version mismatch\n"
27378                                 "\theader: %s\n\tlibrary: %s\n",
27379                                 DB_VERSION_STRING, version);
27380                         return 1;
27381                 }
27382         }
27383 #endif
27384
27385 #if DB_VERSION_MAJOR > 2
27386         db_env_create( NULL, 0 );
27387 #elif DB_VERSION_MAJOR > 1
27388         db_appexit( NULL );
27389 #else
27390         (void) dbopen( NULL, 0, 0, 0, NULL);
27391 #endif
27392
27393   ;
27394   return 0;
27395 }
27396 _ACEOF
27397 rm -f conftest.$ac_objext conftest$ac_exeext
27398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27399   (eval $ac_link) 2>conftest.er1
27400   ac_status=$?
27401   grep -v '^ *+' conftest.er1 >conftest.err
27402   rm -f conftest.er1
27403   cat conftest.err >&5
27404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405   (exit $ac_status); } &&
27406          { ac_try='test -z "$ac_c_werror_flag"
27407                          || test ! -s conftest.err'
27408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409   (eval $ac_try) 2>&5
27410   ac_status=$?
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); }; } &&
27413          { ac_try='test -s conftest$ac_exeext'
27414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415   (eval $ac_try) 2>&5
27416   ac_status=$?
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); }; }; then
27419   ol_cv_db_db_44=yes
27420 else
27421   echo "$as_me: failed program was:" >&5
27422 sed 's/^/| /' conftest.$ac_ext >&5
27423
27424 ol_cv_db_db_44=no
27425 fi
27426 rm -f conftest.err conftest.$ac_objext \
27427       conftest$ac_exeext conftest.$ac_ext
27428
27429         LIBS="$ol_LIBS"
27430
27431 fi
27432 echo "$as_me:$LINENO: result: $ol_cv_db_db_44" >&5
27433 echo "${ECHO_T}$ol_cv_db_db_44" >&6
27434
27435         if test $ol_cv_db_db_44 = yes ; then
27436                 ol_cv_lib_db=-ldb-44
27437         fi
27438 fi
27439
27440                 if test $ol_cv_lib_db = no ; then
27441         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.4)" >&5
27442 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.4)... $ECHO_C" >&6
27443 if test "${ol_cv_db_db_4_dot_4+set}" = set; then
27444   echo $ECHO_N "(cached) $ECHO_C" >&6
27445 else
27446
27447         ol_DB_LIB=-ldb-4.4
27448         ol_LIBS=$LIBS
27449         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27450
27451         cat >conftest.$ac_ext <<_ACEOF
27452 /* confdefs.h.  */
27453 _ACEOF
27454 cat confdefs.h >>conftest.$ac_ext
27455 cat >>conftest.$ac_ext <<_ACEOF
27456 /* end confdefs.h.  */
27457
27458 #ifdef HAVE_DB_185_H
27459 # include <db_185.h>
27460 #else
27461 # include <db.h>
27462 #endif
27463
27464 #ifndef DB_VERSION_MAJOR
27465 # define DB_VERSION_MAJOR 1
27466 #endif
27467
27468 #ifndef NULL
27469 #define NULL ((void*)0)
27470 #endif
27471
27472 int
27473 main ()
27474 {
27475
27476 #if DB_VERSION_MAJOR > 1
27477         {
27478                 char *version;
27479                 int major, minor, patch;
27480
27481                 version = db_version( &major, &minor, &patch );
27482
27483                 if( major != DB_VERSION_MAJOR ||
27484                         minor < DB_VERSION_MINOR )
27485                 {
27486                         printf("Berkeley DB version mismatch\n"
27487                                 "\theader: %s\n\tlibrary: %s\n",
27488                                 DB_VERSION_STRING, version);
27489                         return 1;
27490                 }
27491         }
27492 #endif
27493
27494 #if DB_VERSION_MAJOR > 2
27495         db_env_create( NULL, 0 );
27496 #elif DB_VERSION_MAJOR > 1
27497         db_appexit( NULL );
27498 #else
27499         (void) dbopen( NULL, 0, 0, 0, NULL);
27500 #endif
27501
27502   ;
27503   return 0;
27504 }
27505 _ACEOF
27506 rm -f conftest.$ac_objext conftest$ac_exeext
27507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27508   (eval $ac_link) 2>conftest.er1
27509   ac_status=$?
27510   grep -v '^ *+' conftest.er1 >conftest.err
27511   rm -f conftest.er1
27512   cat conftest.err >&5
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -z "$ac_c_werror_flag"
27516                          || test ! -s conftest.err'
27517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27518   (eval $ac_try) 2>&5
27519   ac_status=$?
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); }; } &&
27522          { ac_try='test -s conftest$ac_exeext'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; }; then
27528   ol_cv_db_db_4_dot_4=yes
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533 ol_cv_db_db_4_dot_4=no
27534 fi
27535 rm -f conftest.err conftest.$ac_objext \
27536       conftest$ac_exeext conftest.$ac_ext
27537
27538         LIBS="$ol_LIBS"
27539
27540 fi
27541 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_4" >&5
27542 echo "${ECHO_T}$ol_cv_db_db_4_dot_4" >&6
27543
27544         if test $ol_cv_db_db_4_dot_4 = yes ; then
27545                 ol_cv_lib_db=-ldb-4.4
27546         fi
27547 fi
27548
27549                 if test $ol_cv_lib_db = no ; then
27550         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-4)" >&5
27551 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-4)... $ECHO_C" >&6
27552 if test "${ol_cv_db_db_4_4+set}" = set; then
27553   echo $ECHO_N "(cached) $ECHO_C" >&6
27554 else
27555
27556         ol_DB_LIB=-ldb-4-4
27557         ol_LIBS=$LIBS
27558         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27559
27560         cat >conftest.$ac_ext <<_ACEOF
27561 /* confdefs.h.  */
27562 _ACEOF
27563 cat confdefs.h >>conftest.$ac_ext
27564 cat >>conftest.$ac_ext <<_ACEOF
27565 /* end confdefs.h.  */
27566
27567 #ifdef HAVE_DB_185_H
27568 # include <db_185.h>
27569 #else
27570 # include <db.h>
27571 #endif
27572
27573 #ifndef DB_VERSION_MAJOR
27574 # define DB_VERSION_MAJOR 1
27575 #endif
27576
27577 #ifndef NULL
27578 #define NULL ((void*)0)
27579 #endif
27580
27581 int
27582 main ()
27583 {
27584
27585 #if DB_VERSION_MAJOR > 1
27586         {
27587                 char *version;
27588                 int major, minor, patch;
27589
27590                 version = db_version( &major, &minor, &patch );
27591
27592                 if( major != DB_VERSION_MAJOR ||
27593                         minor < DB_VERSION_MINOR )
27594                 {
27595                         printf("Berkeley DB version mismatch\n"
27596                                 "\theader: %s\n\tlibrary: %s\n",
27597                                 DB_VERSION_STRING, version);
27598                         return 1;
27599                 }
27600         }
27601 #endif
27602
27603 #if DB_VERSION_MAJOR > 2
27604         db_env_create( NULL, 0 );
27605 #elif DB_VERSION_MAJOR > 1
27606         db_appexit( NULL );
27607 #else
27608         (void) dbopen( NULL, 0, 0, 0, NULL);
27609 #endif
27610
27611   ;
27612   return 0;
27613 }
27614 _ACEOF
27615 rm -f conftest.$ac_objext conftest$ac_exeext
27616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27617   (eval $ac_link) 2>conftest.er1
27618   ac_status=$?
27619   grep -v '^ *+' conftest.er1 >conftest.err
27620   rm -f conftest.er1
27621   cat conftest.err >&5
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); } &&
27624          { ac_try='test -z "$ac_c_werror_flag"
27625                          || test ! -s conftest.err'
27626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27627   (eval $ac_try) 2>&5
27628   ac_status=$?
27629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27630   (exit $ac_status); }; } &&
27631          { ac_try='test -s conftest$ac_exeext'
27632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633   (eval $ac_try) 2>&5
27634   ac_status=$?
27635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636   (exit $ac_status); }; }; then
27637   ol_cv_db_db_4_4=yes
27638 else
27639   echo "$as_me: failed program was:" >&5
27640 sed 's/^/| /' conftest.$ac_ext >&5
27641
27642 ol_cv_db_db_4_4=no
27643 fi
27644 rm -f conftest.err conftest.$ac_objext \
27645       conftest$ac_exeext conftest.$ac_ext
27646
27647         LIBS="$ol_LIBS"
27648
27649 fi
27650 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_4" >&5
27651 echo "${ECHO_T}$ol_cv_db_db_4_4" >&6
27652
27653         if test $ol_cv_db_db_4_4 = yes ; then
27654                 ol_cv_lib_db=-ldb-4-4
27655         fi
27656 fi
27657
27658         elif test $ol_cv_bdb_minor = 3 ; then
27659                 if test $ol_cv_lib_db = no ; then
27660         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27661 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27662 if test "${ol_cv_db_db43+set}" = set; then
27663   echo $ECHO_N "(cached) $ECHO_C" >&6
27664 else
27665
27666         ol_DB_LIB=-ldb43
27667         ol_LIBS=$LIBS
27668         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27669
27670         cat >conftest.$ac_ext <<_ACEOF
27671 /* confdefs.h.  */
27672 _ACEOF
27673 cat confdefs.h >>conftest.$ac_ext
27674 cat >>conftest.$ac_ext <<_ACEOF
27675 /* end confdefs.h.  */
27676
27677 #ifdef HAVE_DB_185_H
27678 # include <db_185.h>
27679 #else
27680 # include <db.h>
27681 #endif
27682
27683 #ifndef DB_VERSION_MAJOR
27684 # define DB_VERSION_MAJOR 1
27685 #endif
27686
27687 #ifndef NULL
27688 #define NULL ((void*)0)
27689 #endif
27690
27691 int
27692 main ()
27693 {
27694
27695 #if DB_VERSION_MAJOR > 1
27696         {
27697                 char *version;
27698                 int major, minor, patch;
27699
27700                 version = db_version( &major, &minor, &patch );
27701
27702                 if( major != DB_VERSION_MAJOR ||
27703                         minor < DB_VERSION_MINOR )
27704                 {
27705                         printf("Berkeley DB version mismatch\n"
27706                                 "\theader: %s\n\tlibrary: %s\n",
27707                                 DB_VERSION_STRING, version);
27708                         return 1;
27709                 }
27710         }
27711 #endif
27712
27713 #if DB_VERSION_MAJOR > 2
27714         db_env_create( NULL, 0 );
27715 #elif DB_VERSION_MAJOR > 1
27716         db_appexit( NULL );
27717 #else
27718         (void) dbopen( NULL, 0, 0, 0, NULL);
27719 #endif
27720
27721   ;
27722   return 0;
27723 }
27724 _ACEOF
27725 rm -f conftest.$ac_objext conftest$ac_exeext
27726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27727   (eval $ac_link) 2>conftest.er1
27728   ac_status=$?
27729   grep -v '^ *+' conftest.er1 >conftest.err
27730   rm -f conftest.er1
27731   cat conftest.err >&5
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); } &&
27734          { ac_try='test -z "$ac_c_werror_flag"
27735                          || test ! -s conftest.err'
27736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27737   (eval $ac_try) 2>&5
27738   ac_status=$?
27739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27740   (exit $ac_status); }; } &&
27741          { ac_try='test -s conftest$ac_exeext'
27742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27743   (eval $ac_try) 2>&5
27744   ac_status=$?
27745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27746   (exit $ac_status); }; }; then
27747   ol_cv_db_db43=yes
27748 else
27749   echo "$as_me: failed program was:" >&5
27750 sed 's/^/| /' conftest.$ac_ext >&5
27751
27752 ol_cv_db_db43=no
27753 fi
27754 rm -f conftest.err conftest.$ac_objext \
27755       conftest$ac_exeext conftest.$ac_ext
27756
27757         LIBS="$ol_LIBS"
27758
27759 fi
27760 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
27761 echo "${ECHO_T}$ol_cv_db_db43" >&6
27762
27763         if test $ol_cv_db_db43 = yes ; then
27764                 ol_cv_lib_db=-ldb43
27765         fi
27766 fi
27767
27768                 if test $ol_cv_lib_db = no ; then
27769         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
27770 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
27771 if test "${ol_cv_db_db_43+set}" = set; then
27772   echo $ECHO_N "(cached) $ECHO_C" >&6
27773 else
27774
27775         ol_DB_LIB=-ldb-43
27776         ol_LIBS=$LIBS
27777         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27778
27779         cat >conftest.$ac_ext <<_ACEOF
27780 /* confdefs.h.  */
27781 _ACEOF
27782 cat confdefs.h >>conftest.$ac_ext
27783 cat >>conftest.$ac_ext <<_ACEOF
27784 /* end confdefs.h.  */
27785
27786 #ifdef HAVE_DB_185_H
27787 # include <db_185.h>
27788 #else
27789 # include <db.h>
27790 #endif
27791
27792 #ifndef DB_VERSION_MAJOR
27793 # define DB_VERSION_MAJOR 1
27794 #endif
27795
27796 #ifndef NULL
27797 #define NULL ((void*)0)
27798 #endif
27799
27800 int
27801 main ()
27802 {
27803
27804 #if DB_VERSION_MAJOR > 1
27805         {
27806                 char *version;
27807                 int major, minor, patch;
27808
27809                 version = db_version( &major, &minor, &patch );
27810
27811                 if( major != DB_VERSION_MAJOR ||
27812                         minor < DB_VERSION_MINOR )
27813                 {
27814                         printf("Berkeley DB version mismatch\n"
27815                                 "\theader: %s\n\tlibrary: %s\n",
27816                                 DB_VERSION_STRING, version);
27817                         return 1;
27818                 }
27819         }
27820 #endif
27821
27822 #if DB_VERSION_MAJOR > 2
27823         db_env_create( NULL, 0 );
27824 #elif DB_VERSION_MAJOR > 1
27825         db_appexit( NULL );
27826 #else
27827         (void) dbopen( NULL, 0, 0, 0, NULL);
27828 #endif
27829
27830   ;
27831   return 0;
27832 }
27833 _ACEOF
27834 rm -f conftest.$ac_objext conftest$ac_exeext
27835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27836   (eval $ac_link) 2>conftest.er1
27837   ac_status=$?
27838   grep -v '^ *+' conftest.er1 >conftest.err
27839   rm -f conftest.er1
27840   cat conftest.err >&5
27841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27842   (exit $ac_status); } &&
27843          { ac_try='test -z "$ac_c_werror_flag"
27844                          || test ! -s conftest.err'
27845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27846   (eval $ac_try) 2>&5
27847   ac_status=$?
27848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27849   (exit $ac_status); }; } &&
27850          { ac_try='test -s conftest$ac_exeext'
27851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27852   (eval $ac_try) 2>&5
27853   ac_status=$?
27854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855   (exit $ac_status); }; }; then
27856   ol_cv_db_db_43=yes
27857 else
27858   echo "$as_me: failed program was:" >&5
27859 sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 ol_cv_db_db_43=no
27862 fi
27863 rm -f conftest.err conftest.$ac_objext \
27864       conftest$ac_exeext conftest.$ac_ext
27865
27866         LIBS="$ol_LIBS"
27867
27868 fi
27869 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
27870 echo "${ECHO_T}$ol_cv_db_db_43" >&6
27871
27872         if test $ol_cv_db_db_43 = yes ; then
27873                 ol_cv_lib_db=-ldb-43
27874         fi
27875 fi
27876
27877                 if test $ol_cv_lib_db = no ; then
27878         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
27879 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
27880 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
27881   echo $ECHO_N "(cached) $ECHO_C" >&6
27882 else
27883
27884         ol_DB_LIB=-ldb-4.3
27885         ol_LIBS=$LIBS
27886         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27887
27888         cat >conftest.$ac_ext <<_ACEOF
27889 /* confdefs.h.  */
27890 _ACEOF
27891 cat confdefs.h >>conftest.$ac_ext
27892 cat >>conftest.$ac_ext <<_ACEOF
27893 /* end confdefs.h.  */
27894
27895 #ifdef HAVE_DB_185_H
27896 # include <db_185.h>
27897 #else
27898 # include <db.h>
27899 #endif
27900
27901 #ifndef DB_VERSION_MAJOR
27902 # define DB_VERSION_MAJOR 1
27903 #endif
27904
27905 #ifndef NULL
27906 #define NULL ((void*)0)
27907 #endif
27908
27909 int
27910 main ()
27911 {
27912
27913 #if DB_VERSION_MAJOR > 1
27914         {
27915                 char *version;
27916                 int major, minor, patch;
27917
27918                 version = db_version( &major, &minor, &patch );
27919
27920                 if( major != DB_VERSION_MAJOR ||
27921                         minor < DB_VERSION_MINOR )
27922                 {
27923                         printf("Berkeley DB version mismatch\n"
27924                                 "\theader: %s\n\tlibrary: %s\n",
27925                                 DB_VERSION_STRING, version);
27926                         return 1;
27927                 }
27928         }
27929 #endif
27930
27931 #if DB_VERSION_MAJOR > 2
27932         db_env_create( NULL, 0 );
27933 #elif DB_VERSION_MAJOR > 1
27934         db_appexit( NULL );
27935 #else
27936         (void) dbopen( NULL, 0, 0, 0, NULL);
27937 #endif
27938
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 rm -f conftest.$ac_objext conftest$ac_exeext
27944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27945   (eval $ac_link) 2>conftest.er1
27946   ac_status=$?
27947   grep -v '^ *+' conftest.er1 >conftest.err
27948   rm -f conftest.er1
27949   cat conftest.err >&5
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); } &&
27952          { ac_try='test -z "$ac_c_werror_flag"
27953                          || test ! -s conftest.err'
27954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955   (eval $ac_try) 2>&5
27956   ac_status=$?
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); }; } &&
27959          { ac_try='test -s conftest$ac_exeext'
27960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961   (eval $ac_try) 2>&5
27962   ac_status=$?
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); }; }; then
27965   ol_cv_db_db_4_dot_3=yes
27966 else
27967   echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27969
27970 ol_cv_db_db_4_dot_3=no
27971 fi
27972 rm -f conftest.err conftest.$ac_objext \
27973       conftest$ac_exeext conftest.$ac_ext
27974
27975         LIBS="$ol_LIBS"
27976
27977 fi
27978 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
27979 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
27980
27981         if test $ol_cv_db_db_4_dot_3 = yes ; then
27982                 ol_cv_lib_db=-ldb-4.3
27983         fi
27984 fi
27985
27986                 if test $ol_cv_lib_db = no ; then
27987         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
27988 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
27989 if test "${ol_cv_db_db_4_3+set}" = set; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992
27993         ol_DB_LIB=-ldb-4-3
27994         ol_LIBS=$LIBS
27995         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27996
27997         cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003
28004 #ifdef HAVE_DB_185_H
28005 # include <db_185.h>
28006 #else
28007 # include <db.h>
28008 #endif
28009
28010 #ifndef DB_VERSION_MAJOR
28011 # define DB_VERSION_MAJOR 1
28012 #endif
28013
28014 #ifndef NULL
28015 #define NULL ((void*)0)
28016 #endif
28017
28018 int
28019 main ()
28020 {
28021
28022 #if DB_VERSION_MAJOR > 1
28023         {
28024                 char *version;
28025                 int major, minor, patch;
28026
28027                 version = db_version( &major, &minor, &patch );
28028
28029                 if( major != DB_VERSION_MAJOR ||
28030                         minor < DB_VERSION_MINOR )
28031                 {
28032                         printf("Berkeley DB version mismatch\n"
28033                                 "\theader: %s\n\tlibrary: %s\n",
28034                                 DB_VERSION_STRING, version);
28035                         return 1;
28036                 }
28037         }
28038 #endif
28039
28040 #if DB_VERSION_MAJOR > 2
28041         db_env_create( NULL, 0 );
28042 #elif DB_VERSION_MAJOR > 1
28043         db_appexit( NULL );
28044 #else
28045         (void) dbopen( NULL, 0, 0, 0, NULL);
28046 #endif
28047
28048   ;
28049   return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28054   (eval $ac_link) 2>conftest.er1
28055   ac_status=$?
28056   grep -v '^ *+' conftest.er1 >conftest.err
28057   rm -f conftest.er1
28058   cat conftest.err >&5
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } &&
28061          { ac_try='test -z "$ac_c_werror_flag"
28062                          || test ! -s conftest.err'
28063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064   (eval $ac_try) 2>&5
28065   ac_status=$?
28066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067   (exit $ac_status); }; } &&
28068          { ac_try='test -s conftest$ac_exeext'
28069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070   (eval $ac_try) 2>&5
28071   ac_status=$?
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); }; }; then
28074   ol_cv_db_db_4_3=yes
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079 ol_cv_db_db_4_3=no
28080 fi
28081 rm -f conftest.err conftest.$ac_objext \
28082       conftest$ac_exeext conftest.$ac_ext
28083
28084         LIBS="$ol_LIBS"
28085
28086 fi
28087 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28088 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28089
28090         if test $ol_cv_db_db_4_3 = yes ; then
28091                 ol_cv_lib_db=-ldb-4-3
28092         fi
28093 fi
28094
28095         elif test $ol_cv_bdb_minor = 2 ; then
28096                 if test $ol_cv_lib_db = no ; then
28097         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28098 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28099 if test "${ol_cv_db_db42+set}" = set; then
28100   echo $ECHO_N "(cached) $ECHO_C" >&6
28101 else
28102
28103         ol_DB_LIB=-ldb42
28104         ol_LIBS=$LIBS
28105         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28106
28107         cat >conftest.$ac_ext <<_ACEOF
28108 /* confdefs.h.  */
28109 _ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h.  */
28113
28114 #ifdef HAVE_DB_185_H
28115 # include <db_185.h>
28116 #else
28117 # include <db.h>
28118 #endif
28119
28120 #ifndef DB_VERSION_MAJOR
28121 # define DB_VERSION_MAJOR 1
28122 #endif
28123
28124 #ifndef NULL
28125 #define NULL ((void*)0)
28126 #endif
28127
28128 int
28129 main ()
28130 {
28131
28132 #if DB_VERSION_MAJOR > 1
28133         {
28134                 char *version;
28135                 int major, minor, patch;
28136
28137                 version = db_version( &major, &minor, &patch );
28138
28139                 if( major != DB_VERSION_MAJOR ||
28140                         minor < DB_VERSION_MINOR )
28141                 {
28142                         printf("Berkeley DB version mismatch\n"
28143                                 "\theader: %s\n\tlibrary: %s\n",
28144                                 DB_VERSION_STRING, version);
28145                         return 1;
28146                 }
28147         }
28148 #endif
28149
28150 #if DB_VERSION_MAJOR > 2
28151         db_env_create( NULL, 0 );
28152 #elif DB_VERSION_MAJOR > 1
28153         db_appexit( NULL );
28154 #else
28155         (void) dbopen( NULL, 0, 0, 0, NULL);
28156 #endif
28157
28158   ;
28159   return 0;
28160 }
28161 _ACEOF
28162 rm -f conftest.$ac_objext conftest$ac_exeext
28163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164   (eval $ac_link) 2>conftest.er1
28165   ac_status=$?
28166   grep -v '^ *+' conftest.er1 >conftest.err
28167   rm -f conftest.er1
28168   cat conftest.err >&5
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } &&
28171          { ac_try='test -z "$ac_c_werror_flag"
28172                          || test ! -s conftest.err'
28173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174   (eval $ac_try) 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; } &&
28178          { ac_try='test -s conftest$ac_exeext'
28179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180   (eval $ac_try) 2>&5
28181   ac_status=$?
28182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183   (exit $ac_status); }; }; then
28184   ol_cv_db_db42=yes
28185 else
28186   echo "$as_me: failed program was:" >&5
28187 sed 's/^/| /' conftest.$ac_ext >&5
28188
28189 ol_cv_db_db42=no
28190 fi
28191 rm -f conftest.err conftest.$ac_objext \
28192       conftest$ac_exeext conftest.$ac_ext
28193
28194         LIBS="$ol_LIBS"
28195
28196 fi
28197 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28198 echo "${ECHO_T}$ol_cv_db_db42" >&6
28199
28200         if test $ol_cv_db_db42 = yes ; then
28201                 ol_cv_lib_db=-ldb42
28202         fi
28203 fi
28204
28205                 if test $ol_cv_lib_db = no ; then
28206         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28207 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28208 if test "${ol_cv_db_db_42+set}" = set; then
28209   echo $ECHO_N "(cached) $ECHO_C" >&6
28210 else
28211
28212         ol_DB_LIB=-ldb-42
28213         ol_LIBS=$LIBS
28214         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28215
28216         cat >conftest.$ac_ext <<_ACEOF
28217 /* confdefs.h.  */
28218 _ACEOF
28219 cat confdefs.h >>conftest.$ac_ext
28220 cat >>conftest.$ac_ext <<_ACEOF
28221 /* end confdefs.h.  */
28222
28223 #ifdef HAVE_DB_185_H
28224 # include <db_185.h>
28225 #else
28226 # include <db.h>
28227 #endif
28228
28229 #ifndef DB_VERSION_MAJOR
28230 # define DB_VERSION_MAJOR 1
28231 #endif
28232
28233 #ifndef NULL
28234 #define NULL ((void*)0)
28235 #endif
28236
28237 int
28238 main ()
28239 {
28240
28241 #if DB_VERSION_MAJOR > 1
28242         {
28243                 char *version;
28244                 int major, minor, patch;
28245
28246                 version = db_version( &major, &minor, &patch );
28247
28248                 if( major != DB_VERSION_MAJOR ||
28249                         minor < DB_VERSION_MINOR )
28250                 {
28251                         printf("Berkeley DB version mismatch\n"
28252                                 "\theader: %s\n\tlibrary: %s\n",
28253                                 DB_VERSION_STRING, version);
28254                         return 1;
28255                 }
28256         }
28257 #endif
28258
28259 #if DB_VERSION_MAJOR > 2
28260         db_env_create( NULL, 0 );
28261 #elif DB_VERSION_MAJOR > 1
28262         db_appexit( NULL );
28263 #else
28264         (void) dbopen( NULL, 0, 0, 0, NULL);
28265 #endif
28266
28267   ;
28268   return 0;
28269 }
28270 _ACEOF
28271 rm -f conftest.$ac_objext conftest$ac_exeext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28273   (eval $ac_link) 2>conftest.er1
28274   ac_status=$?
28275   grep -v '^ *+' conftest.er1 >conftest.err
28276   rm -f conftest.er1
28277   cat conftest.err >&5
28278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279   (exit $ac_status); } &&
28280          { ac_try='test -z "$ac_c_werror_flag"
28281                          || test ! -s conftest.err'
28282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283   (eval $ac_try) 2>&5
28284   ac_status=$?
28285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286   (exit $ac_status); }; } &&
28287          { ac_try='test -s conftest$ac_exeext'
28288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289   (eval $ac_try) 2>&5
28290   ac_status=$?
28291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292   (exit $ac_status); }; }; then
28293   ol_cv_db_db_42=yes
28294 else
28295   echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28297
28298 ol_cv_db_db_42=no
28299 fi
28300 rm -f conftest.err conftest.$ac_objext \
28301       conftest$ac_exeext conftest.$ac_ext
28302
28303         LIBS="$ol_LIBS"
28304
28305 fi
28306 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28307 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28308
28309         if test $ol_cv_db_db_42 = yes ; then
28310                 ol_cv_lib_db=-ldb-42
28311         fi
28312 fi
28313
28314                 if test $ol_cv_lib_db = no ; then
28315         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28316 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28317 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28318   echo $ECHO_N "(cached) $ECHO_C" >&6
28319 else
28320
28321         ol_DB_LIB=-ldb-4.2
28322         ol_LIBS=$LIBS
28323         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28324
28325         cat >conftest.$ac_ext <<_ACEOF
28326 /* confdefs.h.  */
28327 _ACEOF
28328 cat confdefs.h >>conftest.$ac_ext
28329 cat >>conftest.$ac_ext <<_ACEOF
28330 /* end confdefs.h.  */
28331
28332 #ifdef HAVE_DB_185_H
28333 # include <db_185.h>
28334 #else
28335 # include <db.h>
28336 #endif
28337
28338 #ifndef DB_VERSION_MAJOR
28339 # define DB_VERSION_MAJOR 1
28340 #endif
28341
28342 #ifndef NULL
28343 #define NULL ((void*)0)
28344 #endif
28345
28346 int
28347 main ()
28348 {
28349
28350 #if DB_VERSION_MAJOR > 1
28351         {
28352                 char *version;
28353                 int major, minor, patch;
28354
28355                 version = db_version( &major, &minor, &patch );
28356
28357                 if( major != DB_VERSION_MAJOR ||
28358                         minor < DB_VERSION_MINOR )
28359                 {
28360                         printf("Berkeley DB version mismatch\n"
28361                                 "\theader: %s\n\tlibrary: %s\n",
28362                                 DB_VERSION_STRING, version);
28363                         return 1;
28364                 }
28365         }
28366 #endif
28367
28368 #if DB_VERSION_MAJOR > 2
28369         db_env_create( NULL, 0 );
28370 #elif DB_VERSION_MAJOR > 1
28371         db_appexit( NULL );
28372 #else
28373         (void) dbopen( NULL, 0, 0, 0, NULL);
28374 #endif
28375
28376   ;
28377   return 0;
28378 }
28379 _ACEOF
28380 rm -f conftest.$ac_objext conftest$ac_exeext
28381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28382   (eval $ac_link) 2>conftest.er1
28383   ac_status=$?
28384   grep -v '^ *+' conftest.er1 >conftest.err
28385   rm -f conftest.er1
28386   cat conftest.err >&5
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); } &&
28389          { ac_try='test -z "$ac_c_werror_flag"
28390                          || test ! -s conftest.err'
28391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392   (eval $ac_try) 2>&5
28393   ac_status=$?
28394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); }; } &&
28396          { ac_try='test -s conftest$ac_exeext'
28397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28398   (eval $ac_try) 2>&5
28399   ac_status=$?
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); }; }; then
28402   ol_cv_db_db_4_dot_2=yes
28403 else
28404   echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407 ol_cv_db_db_4_dot_2=no
28408 fi
28409 rm -f conftest.err conftest.$ac_objext \
28410       conftest$ac_exeext conftest.$ac_ext
28411
28412         LIBS="$ol_LIBS"
28413
28414 fi
28415 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28416 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28417
28418         if test $ol_cv_db_db_4_dot_2 = yes ; then
28419                 ol_cv_lib_db=-ldb-4.2
28420         fi
28421 fi
28422
28423                 if test $ol_cv_lib_db = no ; then
28424         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28425 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28426 if test "${ol_cv_db_db_4_2+set}" = set; then
28427   echo $ECHO_N "(cached) $ECHO_C" >&6
28428 else
28429
28430         ol_DB_LIB=-ldb-4-2
28431         ol_LIBS=$LIBS
28432         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28433
28434         cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440
28441 #ifdef HAVE_DB_185_H
28442 # include <db_185.h>
28443 #else
28444 # include <db.h>
28445 #endif
28446
28447 #ifndef DB_VERSION_MAJOR
28448 # define DB_VERSION_MAJOR 1
28449 #endif
28450
28451 #ifndef NULL
28452 #define NULL ((void*)0)
28453 #endif
28454
28455 int
28456 main ()
28457 {
28458
28459 #if DB_VERSION_MAJOR > 1
28460         {
28461                 char *version;
28462                 int major, minor, patch;
28463
28464                 version = db_version( &major, &minor, &patch );
28465
28466                 if( major != DB_VERSION_MAJOR ||
28467                         minor < DB_VERSION_MINOR )
28468                 {
28469                         printf("Berkeley DB version mismatch\n"
28470                                 "\theader: %s\n\tlibrary: %s\n",
28471                                 DB_VERSION_STRING, version);
28472                         return 1;
28473                 }
28474         }
28475 #endif
28476
28477 #if DB_VERSION_MAJOR > 2
28478         db_env_create( NULL, 0 );
28479 #elif DB_VERSION_MAJOR > 1
28480         db_appexit( NULL );
28481 #else
28482         (void) dbopen( NULL, 0, 0, 0, NULL);
28483 #endif
28484
28485   ;
28486   return 0;
28487 }
28488 _ACEOF
28489 rm -f conftest.$ac_objext conftest$ac_exeext
28490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28491   (eval $ac_link) 2>conftest.er1
28492   ac_status=$?
28493   grep -v '^ *+' conftest.er1 >conftest.err
28494   rm -f conftest.er1
28495   cat conftest.err >&5
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); } &&
28498          { ac_try='test -z "$ac_c_werror_flag"
28499                          || test ! -s conftest.err'
28500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501   (eval $ac_try) 2>&5
28502   ac_status=$?
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); }; } &&
28505          { ac_try='test -s conftest$ac_exeext'
28506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28507   (eval $ac_try) 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; }; then
28511   ol_cv_db_db_4_2=yes
28512 else
28513   echo "$as_me: failed program was:" >&5
28514 sed 's/^/| /' conftest.$ac_ext >&5
28515
28516 ol_cv_db_db_4_2=no
28517 fi
28518 rm -f conftest.err conftest.$ac_objext \
28519       conftest$ac_exeext conftest.$ac_ext
28520
28521         LIBS="$ol_LIBS"
28522
28523 fi
28524 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28525 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28526
28527         if test $ol_cv_db_db_4_2 = yes ; then
28528                 ol_cv_lib_db=-ldb-4-2
28529         fi
28530 fi
28531
28532         elif test $ol_cv_bdb_minor = 1 ; then
28533                 if test $ol_cv_lib_db = no ; then
28534         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
28535 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
28536 if test "${ol_cv_db_db41+set}" = set; then
28537   echo $ECHO_N "(cached) $ECHO_C" >&6
28538 else
28539
28540         ol_DB_LIB=-ldb41
28541         ol_LIBS=$LIBS
28542         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28543
28544         cat >conftest.$ac_ext <<_ACEOF
28545 /* confdefs.h.  */
28546 _ACEOF
28547 cat confdefs.h >>conftest.$ac_ext
28548 cat >>conftest.$ac_ext <<_ACEOF
28549 /* end confdefs.h.  */
28550
28551 #ifdef HAVE_DB_185_H
28552 # include <db_185.h>
28553 #else
28554 # include <db.h>
28555 #endif
28556
28557 #ifndef DB_VERSION_MAJOR
28558 # define DB_VERSION_MAJOR 1
28559 #endif
28560
28561 #ifndef NULL
28562 #define NULL ((void*)0)
28563 #endif
28564
28565 int
28566 main ()
28567 {
28568
28569 #if DB_VERSION_MAJOR > 1
28570         {
28571                 char *version;
28572                 int major, minor, patch;
28573
28574                 version = db_version( &major, &minor, &patch );
28575
28576                 if( major != DB_VERSION_MAJOR ||
28577                         minor < DB_VERSION_MINOR )
28578                 {
28579                         printf("Berkeley DB version mismatch\n"
28580                                 "\theader: %s\n\tlibrary: %s\n",
28581                                 DB_VERSION_STRING, version);
28582                         return 1;
28583                 }
28584         }
28585 #endif
28586
28587 #if DB_VERSION_MAJOR > 2
28588         db_env_create( NULL, 0 );
28589 #elif DB_VERSION_MAJOR > 1
28590         db_appexit( NULL );
28591 #else
28592         (void) dbopen( NULL, 0, 0, 0, NULL);
28593 #endif
28594
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28601   (eval $ac_link) 2>conftest.er1
28602   ac_status=$?
28603   grep -v '^ *+' conftest.er1 >conftest.err
28604   rm -f conftest.er1
28605   cat conftest.err >&5
28606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28607   (exit $ac_status); } &&
28608          { ac_try='test -z "$ac_c_werror_flag"
28609                          || test ! -s conftest.err'
28610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611   (eval $ac_try) 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); }; } &&
28615          { ac_try='test -s conftest$ac_exeext'
28616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617   (eval $ac_try) 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ol_cv_db_db41=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626 ol_cv_db_db41=no
28627 fi
28628 rm -f conftest.err conftest.$ac_objext \
28629       conftest$ac_exeext conftest.$ac_ext
28630
28631         LIBS="$ol_LIBS"
28632
28633 fi
28634 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
28635 echo "${ECHO_T}$ol_cv_db_db41" >&6
28636
28637         if test $ol_cv_db_db41 = yes ; then
28638                 ol_cv_lib_db=-ldb41
28639         fi
28640 fi
28641
28642                 if test $ol_cv_lib_db = no ; then
28643         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
28644 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
28645 if test "${ol_cv_db_db_41+set}" = set; then
28646   echo $ECHO_N "(cached) $ECHO_C" >&6
28647 else
28648
28649         ol_DB_LIB=-ldb-41
28650         ol_LIBS=$LIBS
28651         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28652
28653         cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h.  */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h.  */
28659
28660 #ifdef HAVE_DB_185_H
28661 # include <db_185.h>
28662 #else
28663 # include <db.h>
28664 #endif
28665
28666 #ifndef DB_VERSION_MAJOR
28667 # define DB_VERSION_MAJOR 1
28668 #endif
28669
28670 #ifndef NULL
28671 #define NULL ((void*)0)
28672 #endif
28673
28674 int
28675 main ()
28676 {
28677
28678 #if DB_VERSION_MAJOR > 1
28679         {
28680                 char *version;
28681                 int major, minor, patch;
28682
28683                 version = db_version( &major, &minor, &patch );
28684
28685                 if( major != DB_VERSION_MAJOR ||
28686                         minor < DB_VERSION_MINOR )
28687                 {
28688                         printf("Berkeley DB version mismatch\n"
28689                                 "\theader: %s\n\tlibrary: %s\n",
28690                                 DB_VERSION_STRING, version);
28691                         return 1;
28692                 }
28693         }
28694 #endif
28695
28696 #if DB_VERSION_MAJOR > 2
28697         db_env_create( NULL, 0 );
28698 #elif DB_VERSION_MAJOR > 1
28699         db_appexit( NULL );
28700 #else
28701         (void) dbopen( NULL, 0, 0, 0, NULL);
28702 #endif
28703
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710   (eval $ac_link) 2>conftest.er1
28711   ac_status=$?
28712   grep -v '^ *+' conftest.er1 >conftest.err
28713   rm -f conftest.er1
28714   cat conftest.err >&5
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); } &&
28717          { ac_try='test -z "$ac_c_werror_flag"
28718                          || test ! -s conftest.err'
28719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720   (eval $ac_try) 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; } &&
28724          { ac_try='test -s conftest$ac_exeext'
28725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726   (eval $ac_try) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; }; then
28730   ol_cv_db_db_41=yes
28731 else
28732   echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 ol_cv_db_db_41=no
28736 fi
28737 rm -f conftest.err conftest.$ac_objext \
28738       conftest$ac_exeext conftest.$ac_ext
28739
28740         LIBS="$ol_LIBS"
28741
28742 fi
28743 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
28744 echo "${ECHO_T}$ol_cv_db_db_41" >&6
28745
28746         if test $ol_cv_db_db_41 = yes ; then
28747                 ol_cv_lib_db=-ldb-41
28748         fi
28749 fi
28750
28751                 if test $ol_cv_lib_db = no ; then
28752         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
28753 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
28754 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
28755   echo $ECHO_N "(cached) $ECHO_C" >&6
28756 else
28757
28758         ol_DB_LIB=-ldb-4.1
28759         ol_LIBS=$LIBS
28760         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28761
28762         cat >conftest.$ac_ext <<_ACEOF
28763 /* confdefs.h.  */
28764 _ACEOF
28765 cat confdefs.h >>conftest.$ac_ext
28766 cat >>conftest.$ac_ext <<_ACEOF
28767 /* end confdefs.h.  */
28768
28769 #ifdef HAVE_DB_185_H
28770 # include <db_185.h>
28771 #else
28772 # include <db.h>
28773 #endif
28774
28775 #ifndef DB_VERSION_MAJOR
28776 # define DB_VERSION_MAJOR 1
28777 #endif
28778
28779 #ifndef NULL
28780 #define NULL ((void*)0)
28781 #endif
28782
28783 int
28784 main ()
28785 {
28786
28787 #if DB_VERSION_MAJOR > 1
28788         {
28789                 char *version;
28790                 int major, minor, patch;
28791
28792                 version = db_version( &major, &minor, &patch );
28793
28794                 if( major != DB_VERSION_MAJOR ||
28795                         minor < DB_VERSION_MINOR )
28796                 {
28797                         printf("Berkeley DB version mismatch\n"
28798                                 "\theader: %s\n\tlibrary: %s\n",
28799                                 DB_VERSION_STRING, version);
28800                         return 1;
28801                 }
28802         }
28803 #endif
28804
28805 #if DB_VERSION_MAJOR > 2
28806         db_env_create( NULL, 0 );
28807 #elif DB_VERSION_MAJOR > 1
28808         db_appexit( NULL );
28809 #else
28810         (void) dbopen( NULL, 0, 0, 0, NULL);
28811 #endif
28812
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 rm -f conftest.$ac_objext conftest$ac_exeext
28818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28819   (eval $ac_link) 2>conftest.er1
28820   ac_status=$?
28821   grep -v '^ *+' conftest.er1 >conftest.err
28822   rm -f conftest.er1
28823   cat conftest.err >&5
28824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825   (exit $ac_status); } &&
28826          { ac_try='test -z "$ac_c_werror_flag"
28827                          || test ! -s conftest.err'
28828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829   (eval $ac_try) 2>&5
28830   ac_status=$?
28831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832   (exit $ac_status); }; } &&
28833          { ac_try='test -s conftest$ac_exeext'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; }; then
28839   ol_cv_db_db_4_dot_1=yes
28840 else
28841   echo "$as_me: failed program was:" >&5
28842 sed 's/^/| /' conftest.$ac_ext >&5
28843
28844 ol_cv_db_db_4_dot_1=no
28845 fi
28846 rm -f conftest.err conftest.$ac_objext \
28847       conftest$ac_exeext conftest.$ac_ext
28848
28849         LIBS="$ol_LIBS"
28850
28851 fi
28852 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
28853 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
28854
28855         if test $ol_cv_db_db_4_dot_1 = yes ; then
28856                 ol_cv_lib_db=-ldb-4.1
28857         fi
28858 fi
28859
28860                 if test $ol_cv_lib_db = no ; then
28861         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
28862 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
28863 if test "${ol_cv_db_db_4_1+set}" = set; then
28864   echo $ECHO_N "(cached) $ECHO_C" >&6
28865 else
28866
28867         ol_DB_LIB=-ldb-4-1
28868         ol_LIBS=$LIBS
28869         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28870
28871         cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877
28878 #ifdef HAVE_DB_185_H
28879 # include <db_185.h>
28880 #else
28881 # include <db.h>
28882 #endif
28883
28884 #ifndef DB_VERSION_MAJOR
28885 # define DB_VERSION_MAJOR 1
28886 #endif
28887
28888 #ifndef NULL
28889 #define NULL ((void*)0)
28890 #endif
28891
28892 int
28893 main ()
28894 {
28895
28896 #if DB_VERSION_MAJOR > 1
28897         {
28898                 char *version;
28899                 int major, minor, patch;
28900
28901                 version = db_version( &major, &minor, &patch );
28902
28903                 if( major != DB_VERSION_MAJOR ||
28904                         minor < DB_VERSION_MINOR )
28905                 {
28906                         printf("Berkeley DB version mismatch\n"
28907                                 "\theader: %s\n\tlibrary: %s\n",
28908                                 DB_VERSION_STRING, version);
28909                         return 1;
28910                 }
28911         }
28912 #endif
28913
28914 #if DB_VERSION_MAJOR > 2
28915         db_env_create( NULL, 0 );
28916 #elif DB_VERSION_MAJOR > 1
28917         db_appexit( NULL );
28918 #else
28919         (void) dbopen( NULL, 0, 0, 0, NULL);
28920 #endif
28921
28922   ;
28923   return 0;
28924 }
28925 _ACEOF
28926 rm -f conftest.$ac_objext conftest$ac_exeext
28927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28928   (eval $ac_link) 2>conftest.er1
28929   ac_status=$?
28930   grep -v '^ *+' conftest.er1 >conftest.err
28931   rm -f conftest.er1
28932   cat conftest.err >&5
28933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934   (exit $ac_status); } &&
28935          { ac_try='test -z "$ac_c_werror_flag"
28936                          || test ! -s conftest.err'
28937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28938   (eval $ac_try) 2>&5
28939   ac_status=$?
28940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941   (exit $ac_status); }; } &&
28942          { ac_try='test -s conftest$ac_exeext'
28943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28944   (eval $ac_try) 2>&5
28945   ac_status=$?
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); }; }; then
28948   ol_cv_db_db_4_1=yes
28949 else
28950   echo "$as_me: failed program was:" >&5
28951 sed 's/^/| /' conftest.$ac_ext >&5
28952
28953 ol_cv_db_db_4_1=no
28954 fi
28955 rm -f conftest.err conftest.$ac_objext \
28956       conftest$ac_exeext conftest.$ac_ext
28957
28958         LIBS="$ol_LIBS"
28959
28960 fi
28961 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
28962 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
28963
28964         if test $ol_cv_db_db_4_1 = yes ; then
28965                 ol_cv_lib_db=-ldb-4-1
28966         fi
28967 fi
28968
28969         fi
28970         if test $ol_cv_lib_db = no ; then
28971         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28972 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28973 if test "${ol_cv_db_db_4+set}" = set; then
28974   echo $ECHO_N "(cached) $ECHO_C" >&6
28975 else
28976
28977         ol_DB_LIB=-ldb-4
28978         ol_LIBS=$LIBS
28979         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28980
28981         cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987
28988 #ifdef HAVE_DB_185_H
28989 # include <db_185.h>
28990 #else
28991 # include <db.h>
28992 #endif
28993
28994 #ifndef DB_VERSION_MAJOR
28995 # define DB_VERSION_MAJOR 1
28996 #endif
28997
28998 #ifndef NULL
28999 #define NULL ((void*)0)
29000 #endif
29001
29002 int
29003 main ()
29004 {
29005
29006 #if DB_VERSION_MAJOR > 1
29007         {
29008                 char *version;
29009                 int major, minor, patch;
29010
29011                 version = db_version( &major, &minor, &patch );
29012
29013                 if( major != DB_VERSION_MAJOR ||
29014                         minor < DB_VERSION_MINOR )
29015                 {
29016                         printf("Berkeley DB version mismatch\n"
29017                                 "\theader: %s\n\tlibrary: %s\n",
29018                                 DB_VERSION_STRING, version);
29019                         return 1;
29020                 }
29021         }
29022 #endif
29023
29024 #if DB_VERSION_MAJOR > 2
29025         db_env_create( NULL, 0 );
29026 #elif DB_VERSION_MAJOR > 1
29027         db_appexit( NULL );
29028 #else
29029         (void) dbopen( NULL, 0, 0, 0, NULL);
29030 #endif
29031
29032   ;
29033   return 0;
29034 }
29035 _ACEOF
29036 rm -f conftest.$ac_objext conftest$ac_exeext
29037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29038   (eval $ac_link) 2>conftest.er1
29039   ac_status=$?
29040   grep -v '^ *+' conftest.er1 >conftest.err
29041   rm -f conftest.er1
29042   cat conftest.err >&5
29043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044   (exit $ac_status); } &&
29045          { ac_try='test -z "$ac_c_werror_flag"
29046                          || test ! -s conftest.err'
29047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048   (eval $ac_try) 2>&5
29049   ac_status=$?
29050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051   (exit $ac_status); }; } &&
29052          { ac_try='test -s conftest$ac_exeext'
29053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054   (eval $ac_try) 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; }; then
29058   ol_cv_db_db_4=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063 ol_cv_db_db_4=no
29064 fi
29065 rm -f conftest.err conftest.$ac_objext \
29066       conftest$ac_exeext conftest.$ac_ext
29067
29068         LIBS="$ol_LIBS"
29069
29070 fi
29071 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29072 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29073
29074         if test $ol_cv_db_db_4 = yes ; then
29075                 ol_cv_lib_db=-ldb-4
29076         fi
29077 fi
29078
29079         if test $ol_cv_lib_db = no ; then
29080         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29081 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29082 if test "${ol_cv_db_db4+set}" = set; then
29083   echo $ECHO_N "(cached) $ECHO_C" >&6
29084 else
29085
29086         ol_DB_LIB=-ldb4
29087         ol_LIBS=$LIBS
29088         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29089
29090         cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096
29097 #ifdef HAVE_DB_185_H
29098 # include <db_185.h>
29099 #else
29100 # include <db.h>
29101 #endif
29102
29103 #ifndef DB_VERSION_MAJOR
29104 # define DB_VERSION_MAJOR 1
29105 #endif
29106
29107 #ifndef NULL
29108 #define NULL ((void*)0)
29109 #endif
29110
29111 int
29112 main ()
29113 {
29114
29115 #if DB_VERSION_MAJOR > 1
29116         {
29117                 char *version;
29118                 int major, minor, patch;
29119
29120                 version = db_version( &major, &minor, &patch );
29121
29122                 if( major != DB_VERSION_MAJOR ||
29123                         minor < DB_VERSION_MINOR )
29124                 {
29125                         printf("Berkeley DB version mismatch\n"
29126                                 "\theader: %s\n\tlibrary: %s\n",
29127                                 DB_VERSION_STRING, version);
29128                         return 1;
29129                 }
29130         }
29131 #endif
29132
29133 #if DB_VERSION_MAJOR > 2
29134         db_env_create( NULL, 0 );
29135 #elif DB_VERSION_MAJOR > 1
29136         db_appexit( NULL );
29137 #else
29138         (void) dbopen( NULL, 0, 0, 0, NULL);
29139 #endif
29140
29141   ;
29142   return 0;
29143 }
29144 _ACEOF
29145 rm -f conftest.$ac_objext conftest$ac_exeext
29146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29147   (eval $ac_link) 2>conftest.er1
29148   ac_status=$?
29149   grep -v '^ *+' conftest.er1 >conftest.err
29150   rm -f conftest.er1
29151   cat conftest.err >&5
29152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153   (exit $ac_status); } &&
29154          { ac_try='test -z "$ac_c_werror_flag"
29155                          || test ! -s conftest.err'
29156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157   (eval $ac_try) 2>&5
29158   ac_status=$?
29159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160   (exit $ac_status); }; } &&
29161          { ac_try='test -s conftest$ac_exeext'
29162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29163   (eval $ac_try) 2>&5
29164   ac_status=$?
29165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166   (exit $ac_status); }; }; then
29167   ol_cv_db_db4=yes
29168 else
29169   echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29171
29172 ol_cv_db_db4=no
29173 fi
29174 rm -f conftest.err conftest.$ac_objext \
29175       conftest$ac_exeext conftest.$ac_ext
29176
29177         LIBS="$ol_LIBS"
29178
29179 fi
29180 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29181 echo "${ECHO_T}$ol_cv_db_db4" >&6
29182
29183         if test $ol_cv_db_db4 = yes ; then
29184                 ol_cv_lib_db=-ldb4
29185         fi
29186 fi
29187
29188         if test $ol_cv_lib_db = no ; then
29189         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29190 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29191 if test "${ol_cv_db_db+set}" = set; then
29192   echo $ECHO_N "(cached) $ECHO_C" >&6
29193 else
29194
29195         ol_DB_LIB=-ldb
29196         ol_LIBS=$LIBS
29197         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29198
29199         cat >conftest.$ac_ext <<_ACEOF
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205
29206 #ifdef HAVE_DB_185_H
29207 # include <db_185.h>
29208 #else
29209 # include <db.h>
29210 #endif
29211
29212 #ifndef DB_VERSION_MAJOR
29213 # define DB_VERSION_MAJOR 1
29214 #endif
29215
29216 #ifndef NULL
29217 #define NULL ((void*)0)
29218 #endif
29219
29220 int
29221 main ()
29222 {
29223
29224 #if DB_VERSION_MAJOR > 1
29225         {
29226                 char *version;
29227                 int major, minor, patch;
29228
29229                 version = db_version( &major, &minor, &patch );
29230
29231                 if( major != DB_VERSION_MAJOR ||
29232                         minor < DB_VERSION_MINOR )
29233                 {
29234                         printf("Berkeley DB version mismatch\n"
29235                                 "\theader: %s\n\tlibrary: %s\n",
29236                                 DB_VERSION_STRING, version);
29237                         return 1;
29238                 }
29239         }
29240 #endif
29241
29242 #if DB_VERSION_MAJOR > 2
29243         db_env_create( NULL, 0 );
29244 #elif DB_VERSION_MAJOR > 1
29245         db_appexit( NULL );
29246 #else
29247         (void) dbopen( NULL, 0, 0, 0, NULL);
29248 #endif
29249
29250   ;
29251   return 0;
29252 }
29253 _ACEOF
29254 rm -f conftest.$ac_objext conftest$ac_exeext
29255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29256   (eval $ac_link) 2>conftest.er1
29257   ac_status=$?
29258   grep -v '^ *+' conftest.er1 >conftest.err
29259   rm -f conftest.er1
29260   cat conftest.err >&5
29261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262   (exit $ac_status); } &&
29263          { ac_try='test -z "$ac_c_werror_flag"
29264                          || test ! -s conftest.err'
29265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29266   (eval $ac_try) 2>&5
29267   ac_status=$?
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); }; } &&
29270          { ac_try='test -s conftest$ac_exeext'
29271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29272   (eval $ac_try) 2>&5
29273   ac_status=$?
29274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275   (exit $ac_status); }; }; then
29276   ol_cv_db_db=yes
29277 else
29278   echo "$as_me: failed program was:" >&5
29279 sed 's/^/| /' conftest.$ac_ext >&5
29280
29281 ol_cv_db_db=no
29282 fi
29283 rm -f conftest.err conftest.$ac_objext \
29284       conftest$ac_exeext conftest.$ac_ext
29285
29286         LIBS="$ol_LIBS"
29287
29288 fi
29289 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29290 echo "${ECHO_T}$ol_cv_db_db" >&6
29291
29292         if test $ol_cv_db_db = yes ; then
29293                 ol_cv_lib_db=-ldb
29294         fi
29295 fi
29296
29297
29298 elif test $ol_cv_bdb_major = 3 ; then
29299         if test $ol_cv_lib_db = no ; then
29300         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29301 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29302 if test "${ol_cv_db_db3+set}" = set; then
29303   echo $ECHO_N "(cached) $ECHO_C" >&6
29304 else
29305
29306         ol_DB_LIB=-ldb3
29307         ol_LIBS=$LIBS
29308         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29309
29310         cat >conftest.$ac_ext <<_ACEOF
29311 /* confdefs.h.  */
29312 _ACEOF
29313 cat confdefs.h >>conftest.$ac_ext
29314 cat >>conftest.$ac_ext <<_ACEOF
29315 /* end confdefs.h.  */
29316
29317 #ifdef HAVE_DB_185_H
29318 # include <db_185.h>
29319 #else
29320 # include <db.h>
29321 #endif
29322
29323 #ifndef DB_VERSION_MAJOR
29324 # define DB_VERSION_MAJOR 1
29325 #endif
29326
29327 #ifndef NULL
29328 #define NULL ((void*)0)
29329 #endif
29330
29331 int
29332 main ()
29333 {
29334
29335 #if DB_VERSION_MAJOR > 1
29336         {
29337                 char *version;
29338                 int major, minor, patch;
29339
29340                 version = db_version( &major, &minor, &patch );
29341
29342                 if( major != DB_VERSION_MAJOR ||
29343                         minor < DB_VERSION_MINOR )
29344                 {
29345                         printf("Berkeley DB version mismatch\n"
29346                                 "\theader: %s\n\tlibrary: %s\n",
29347                                 DB_VERSION_STRING, version);
29348                         return 1;
29349                 }
29350         }
29351 #endif
29352
29353 #if DB_VERSION_MAJOR > 2
29354         db_env_create( NULL, 0 );
29355 #elif DB_VERSION_MAJOR > 1
29356         db_appexit( NULL );
29357 #else
29358         (void) dbopen( NULL, 0, 0, 0, NULL);
29359 #endif
29360
29361   ;
29362   return 0;
29363 }
29364 _ACEOF
29365 rm -f conftest.$ac_objext conftest$ac_exeext
29366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29367   (eval $ac_link) 2>conftest.er1
29368   ac_status=$?
29369   grep -v '^ *+' conftest.er1 >conftest.err
29370   rm -f conftest.er1
29371   cat conftest.err >&5
29372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373   (exit $ac_status); } &&
29374          { ac_try='test -z "$ac_c_werror_flag"
29375                          || test ! -s conftest.err'
29376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29377   (eval $ac_try) 2>&5
29378   ac_status=$?
29379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29380   (exit $ac_status); }; } &&
29381          { ac_try='test -s conftest$ac_exeext'
29382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29383   (eval $ac_try) 2>&5
29384   ac_status=$?
29385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386   (exit $ac_status); }; }; then
29387   ol_cv_db_db3=yes
29388 else
29389   echo "$as_me: failed program was:" >&5
29390 sed 's/^/| /' conftest.$ac_ext >&5
29391
29392 ol_cv_db_db3=no
29393 fi
29394 rm -f conftest.err conftest.$ac_objext \
29395       conftest$ac_exeext conftest.$ac_ext
29396
29397         LIBS="$ol_LIBS"
29398
29399 fi
29400 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29401 echo "${ECHO_T}$ol_cv_db_db3" >&6
29402
29403         if test $ol_cv_db_db3 = yes ; then
29404                 ol_cv_lib_db=-ldb3
29405         fi
29406 fi
29407
29408         if test $ol_cv_lib_db = no ; then
29409         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29410 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29411 if test "${ol_cv_db_db_3+set}" = set; then
29412   echo $ECHO_N "(cached) $ECHO_C" >&6
29413 else
29414
29415         ol_DB_LIB=-ldb-3
29416         ol_LIBS=$LIBS
29417         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29418
29419         cat >conftest.$ac_ext <<_ACEOF
29420 /* confdefs.h.  */
29421 _ACEOF
29422 cat confdefs.h >>conftest.$ac_ext
29423 cat >>conftest.$ac_ext <<_ACEOF
29424 /* end confdefs.h.  */
29425
29426 #ifdef HAVE_DB_185_H
29427 # include <db_185.h>
29428 #else
29429 # include <db.h>
29430 #endif
29431
29432 #ifndef DB_VERSION_MAJOR
29433 # define DB_VERSION_MAJOR 1
29434 #endif
29435
29436 #ifndef NULL
29437 #define NULL ((void*)0)
29438 #endif
29439
29440 int
29441 main ()
29442 {
29443
29444 #if DB_VERSION_MAJOR > 1
29445         {
29446                 char *version;
29447                 int major, minor, patch;
29448
29449                 version = db_version( &major, &minor, &patch );
29450
29451                 if( major != DB_VERSION_MAJOR ||
29452                         minor < DB_VERSION_MINOR )
29453                 {
29454                         printf("Berkeley DB version mismatch\n"
29455                                 "\theader: %s\n\tlibrary: %s\n",
29456                                 DB_VERSION_STRING, version);
29457                         return 1;
29458                 }
29459         }
29460 #endif
29461
29462 #if DB_VERSION_MAJOR > 2
29463         db_env_create( NULL, 0 );
29464 #elif DB_VERSION_MAJOR > 1
29465         db_appexit( NULL );
29466 #else
29467         (void) dbopen( NULL, 0, 0, 0, NULL);
29468 #endif
29469
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29476   (eval $ac_link) 2>conftest.er1
29477   ac_status=$?
29478   grep -v '^ *+' conftest.er1 >conftest.err
29479   rm -f conftest.er1
29480   cat conftest.err >&5
29481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482   (exit $ac_status); } &&
29483          { ac_try='test -z "$ac_c_werror_flag"
29484                          || test ! -s conftest.err'
29485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29486   (eval $ac_try) 2>&5
29487   ac_status=$?
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); }; } &&
29490          { ac_try='test -s conftest$ac_exeext'
29491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492   (eval $ac_try) 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; }; then
29496   ol_cv_db_db_3=yes
29497 else
29498   echo "$as_me: failed program was:" >&5
29499 sed 's/^/| /' conftest.$ac_ext >&5
29500
29501 ol_cv_db_db_3=no
29502 fi
29503 rm -f conftest.err conftest.$ac_objext \
29504       conftest$ac_exeext conftest.$ac_ext
29505
29506         LIBS="$ol_LIBS"
29507
29508 fi
29509 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29510 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29511
29512         if test $ol_cv_db_db_3 = yes ; then
29513                 ol_cv_lib_db=-ldb-3
29514         fi
29515 fi
29516
29517
29518 elif test $ol_cv_bdb_major = 2 ; then
29519         if test $ol_cv_lib_db = no ; then
29520         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29521 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29522 if test "${ol_cv_db_db2+set}" = set; then
29523   echo $ECHO_N "(cached) $ECHO_C" >&6
29524 else
29525
29526         ol_DB_LIB=-ldb2
29527         ol_LIBS=$LIBS
29528         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29529
29530         cat >conftest.$ac_ext <<_ACEOF
29531 /* confdefs.h.  */
29532 _ACEOF
29533 cat confdefs.h >>conftest.$ac_ext
29534 cat >>conftest.$ac_ext <<_ACEOF
29535 /* end confdefs.h.  */
29536
29537 #ifdef HAVE_DB_185_H
29538 # include <db_185.h>
29539 #else
29540 # include <db.h>
29541 #endif
29542
29543 #ifndef DB_VERSION_MAJOR
29544 # define DB_VERSION_MAJOR 1
29545 #endif
29546
29547 #ifndef NULL
29548 #define NULL ((void*)0)
29549 #endif
29550
29551 int
29552 main ()
29553 {
29554
29555 #if DB_VERSION_MAJOR > 1
29556         {
29557                 char *version;
29558                 int major, minor, patch;
29559
29560                 version = db_version( &major, &minor, &patch );
29561
29562                 if( major != DB_VERSION_MAJOR ||
29563                         minor < DB_VERSION_MINOR )
29564                 {
29565                         printf("Berkeley DB version mismatch\n"
29566                                 "\theader: %s\n\tlibrary: %s\n",
29567                                 DB_VERSION_STRING, version);
29568                         return 1;
29569                 }
29570         }
29571 #endif
29572
29573 #if DB_VERSION_MAJOR > 2
29574         db_env_create( NULL, 0 );
29575 #elif DB_VERSION_MAJOR > 1
29576         db_appexit( NULL );
29577 #else
29578         (void) dbopen( NULL, 0, 0, 0, NULL);
29579 #endif
29580
29581   ;
29582   return 0;
29583 }
29584 _ACEOF
29585 rm -f conftest.$ac_objext conftest$ac_exeext
29586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29587   (eval $ac_link) 2>conftest.er1
29588   ac_status=$?
29589   grep -v '^ *+' conftest.er1 >conftest.err
29590   rm -f conftest.er1
29591   cat conftest.err >&5
29592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593   (exit $ac_status); } &&
29594          { ac_try='test -z "$ac_c_werror_flag"
29595                          || test ! -s conftest.err'
29596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29597   (eval $ac_try) 2>&5
29598   ac_status=$?
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); }; } &&
29601          { ac_try='test -s conftest$ac_exeext'
29602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603   (eval $ac_try) 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; }; then
29607   ol_cv_db_db2=yes
29608 else
29609   echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29611
29612 ol_cv_db_db2=no
29613 fi
29614 rm -f conftest.err conftest.$ac_objext \
29615       conftest$ac_exeext conftest.$ac_ext
29616
29617         LIBS="$ol_LIBS"
29618
29619 fi
29620 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29621 echo "${ECHO_T}$ol_cv_db_db2" >&6
29622
29623         if test $ol_cv_db_db2 = yes ; then
29624                 ol_cv_lib_db=-ldb2
29625         fi
29626 fi
29627
29628         if test $ol_cv_lib_db = no ; then
29629         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29630 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29631 if test "${ol_cv_db_db_2+set}" = set; then
29632   echo $ECHO_N "(cached) $ECHO_C" >&6
29633 else
29634
29635         ol_DB_LIB=-ldb-2
29636         ol_LIBS=$LIBS
29637         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29638
29639         cat >conftest.$ac_ext <<_ACEOF
29640 /* confdefs.h.  */
29641 _ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h.  */
29645
29646 #ifdef HAVE_DB_185_H
29647 # include <db_185.h>
29648 #else
29649 # include <db.h>
29650 #endif
29651
29652 #ifndef DB_VERSION_MAJOR
29653 # define DB_VERSION_MAJOR 1
29654 #endif
29655
29656 #ifndef NULL
29657 #define NULL ((void*)0)
29658 #endif
29659
29660 int
29661 main ()
29662 {
29663
29664 #if DB_VERSION_MAJOR > 1
29665         {
29666                 char *version;
29667                 int major, minor, patch;
29668
29669                 version = db_version( &major, &minor, &patch );
29670
29671                 if( major != DB_VERSION_MAJOR ||
29672                         minor < DB_VERSION_MINOR )
29673                 {
29674                         printf("Berkeley DB version mismatch\n"
29675                                 "\theader: %s\n\tlibrary: %s\n",
29676                                 DB_VERSION_STRING, version);
29677                         return 1;
29678                 }
29679         }
29680 #endif
29681
29682 #if DB_VERSION_MAJOR > 2
29683         db_env_create( NULL, 0 );
29684 #elif DB_VERSION_MAJOR > 1
29685         db_appexit( NULL );
29686 #else
29687         (void) dbopen( NULL, 0, 0, 0, NULL);
29688 #endif
29689
29690   ;
29691   return 0;
29692 }
29693 _ACEOF
29694 rm -f conftest.$ac_objext conftest$ac_exeext
29695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29696   (eval $ac_link) 2>conftest.er1
29697   ac_status=$?
29698   grep -v '^ *+' conftest.er1 >conftest.err
29699   rm -f conftest.er1
29700   cat conftest.err >&5
29701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702   (exit $ac_status); } &&
29703          { ac_try='test -z "$ac_c_werror_flag"
29704                          || test ! -s conftest.err'
29705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706   (eval $ac_try) 2>&5
29707   ac_status=$?
29708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709   (exit $ac_status); }; } &&
29710          { ac_try='test -s conftest$ac_exeext'
29711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29712   (eval $ac_try) 2>&5
29713   ac_status=$?
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); }; }; then
29716   ol_cv_db_db_2=yes
29717 else
29718   echo "$as_me: failed program was:" >&5
29719 sed 's/^/| /' conftest.$ac_ext >&5
29720
29721 ol_cv_db_db_2=no
29722 fi
29723 rm -f conftest.err conftest.$ac_objext \
29724       conftest$ac_exeext conftest.$ac_ext
29725
29726         LIBS="$ol_LIBS"
29727
29728 fi
29729 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
29730 echo "${ECHO_T}$ol_cv_db_db_2" >&6
29731
29732         if test $ol_cv_db_db_2 = yes ; then
29733                 ol_cv_lib_db=-ldb-2
29734         fi
29735 fi
29736
29737
29738 elif test $ol_cv_bdb_major = 1 ; then
29739         if test $ol_cv_lib_db = no ; then
29740         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
29741 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
29742 if test "${ol_cv_db_db1+set}" = set; then
29743   echo $ECHO_N "(cached) $ECHO_C" >&6
29744 else
29745
29746         ol_DB_LIB=-ldb1
29747         ol_LIBS=$LIBS
29748         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29749
29750         cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756
29757 #ifdef HAVE_DB_185_H
29758 # include <db_185.h>
29759 #else
29760 # include <db.h>
29761 #endif
29762
29763 #ifndef DB_VERSION_MAJOR
29764 # define DB_VERSION_MAJOR 1
29765 #endif
29766
29767 #ifndef NULL
29768 #define NULL ((void*)0)
29769 #endif
29770
29771 int
29772 main ()
29773 {
29774
29775 #if DB_VERSION_MAJOR > 1
29776         {
29777                 char *version;
29778                 int major, minor, patch;
29779
29780                 version = db_version( &major, &minor, &patch );
29781
29782                 if( major != DB_VERSION_MAJOR ||
29783                         minor < DB_VERSION_MINOR )
29784                 {
29785                         printf("Berkeley DB version mismatch\n"
29786                                 "\theader: %s\n\tlibrary: %s\n",
29787                                 DB_VERSION_STRING, version);
29788                         return 1;
29789                 }
29790         }
29791 #endif
29792
29793 #if DB_VERSION_MAJOR > 2
29794         db_env_create( NULL, 0 );
29795 #elif DB_VERSION_MAJOR > 1
29796         db_appexit( NULL );
29797 #else
29798         (void) dbopen( NULL, 0, 0, 0, NULL);
29799 #endif
29800
29801   ;
29802   return 0;
29803 }
29804 _ACEOF
29805 rm -f conftest.$ac_objext conftest$ac_exeext
29806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29807   (eval $ac_link) 2>conftest.er1
29808   ac_status=$?
29809   grep -v '^ *+' conftest.er1 >conftest.err
29810   rm -f conftest.er1
29811   cat conftest.err >&5
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); } &&
29814          { ac_try='test -z "$ac_c_werror_flag"
29815                          || test ! -s conftest.err'
29816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29817   (eval $ac_try) 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); }; } &&
29821          { ac_try='test -s conftest$ac_exeext'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; }; then
29827   ol_cv_db_db1=yes
29828 else
29829   echo "$as_me: failed program was:" >&5
29830 sed 's/^/| /' conftest.$ac_ext >&5
29831
29832 ol_cv_db_db1=no
29833 fi
29834 rm -f conftest.err conftest.$ac_objext \
29835       conftest$ac_exeext conftest.$ac_ext
29836
29837         LIBS="$ol_LIBS"
29838
29839 fi
29840 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
29841 echo "${ECHO_T}$ol_cv_db_db1" >&6
29842
29843         if test $ol_cv_db_db1 = yes ; then
29844                 ol_cv_lib_db=-ldb1
29845         fi
29846 fi
29847
29848         if test $ol_cv_lib_db = no ; then
29849         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
29850 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
29851 if test "${ol_cv_db_db_1+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854
29855         ol_DB_LIB=-ldb-1
29856         ol_LIBS=$LIBS
29857         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29858
29859         cat >conftest.$ac_ext <<_ACEOF
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865
29866 #ifdef HAVE_DB_185_H
29867 # include <db_185.h>
29868 #else
29869 # include <db.h>
29870 #endif
29871
29872 #ifndef DB_VERSION_MAJOR
29873 # define DB_VERSION_MAJOR 1
29874 #endif
29875
29876 #ifndef NULL
29877 #define NULL ((void*)0)
29878 #endif
29879
29880 int
29881 main ()
29882 {
29883
29884 #if DB_VERSION_MAJOR > 1
29885         {
29886                 char *version;
29887                 int major, minor, patch;
29888
29889                 version = db_version( &major, &minor, &patch );
29890
29891                 if( major != DB_VERSION_MAJOR ||
29892                         minor < DB_VERSION_MINOR )
29893                 {
29894                         printf("Berkeley DB version mismatch\n"
29895                                 "\theader: %s\n\tlibrary: %s\n",
29896                                 DB_VERSION_STRING, version);
29897                         return 1;
29898                 }
29899         }
29900 #endif
29901
29902 #if DB_VERSION_MAJOR > 2
29903         db_env_create( NULL, 0 );
29904 #elif DB_VERSION_MAJOR > 1
29905         db_appexit( NULL );
29906 #else
29907         (void) dbopen( NULL, 0, 0, 0, NULL);
29908 #endif
29909
29910   ;
29911   return 0;
29912 }
29913 _ACEOF
29914 rm -f conftest.$ac_objext conftest$ac_exeext
29915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29916   (eval $ac_link) 2>conftest.er1
29917   ac_status=$?
29918   grep -v '^ *+' conftest.er1 >conftest.err
29919   rm -f conftest.er1
29920   cat conftest.err >&5
29921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922   (exit $ac_status); } &&
29923          { ac_try='test -z "$ac_c_werror_flag"
29924                          || test ! -s conftest.err'
29925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926   (eval $ac_try) 2>&5
29927   ac_status=$?
29928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929   (exit $ac_status); }; } &&
29930          { ac_try='test -s conftest$ac_exeext'
29931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29932   (eval $ac_try) 2>&5
29933   ac_status=$?
29934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935   (exit $ac_status); }; }; then
29936   ol_cv_db_db_1=yes
29937 else
29938   echo "$as_me: failed program was:" >&5
29939 sed 's/^/| /' conftest.$ac_ext >&5
29940
29941 ol_cv_db_db_1=no
29942 fi
29943 rm -f conftest.err conftest.$ac_objext \
29944       conftest$ac_exeext conftest.$ac_ext
29945
29946         LIBS="$ol_LIBS"
29947
29948 fi
29949 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
29950 echo "${ECHO_T}$ol_cv_db_db_1" >&6
29951
29952         if test $ol_cv_db_db_1 = yes ; then
29953                 ol_cv_lib_db=-ldb-1
29954         fi
29955 fi
29956
29957 fi
29958 if test $ol_cv_lib_db = no ; then
29959         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29960 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
29961 if test "${ol_cv_db_none+set}" = set; then
29962   echo $ECHO_N "(cached) $ECHO_C" >&6
29963 else
29964
29965         ol_DB_LIB=
29966         ol_LIBS=$LIBS
29967         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29968
29969         cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975
29976 #ifdef HAVE_DB_185_H
29977 # include <db_185.h>
29978 #else
29979 # include <db.h>
29980 #endif
29981
29982 #ifndef DB_VERSION_MAJOR
29983 # define DB_VERSION_MAJOR 1
29984 #endif
29985
29986 #ifndef NULL
29987 #define NULL ((void*)0)
29988 #endif
29989
29990 int
29991 main ()
29992 {
29993
29994 #if DB_VERSION_MAJOR > 1
29995         {
29996                 char *version;
29997                 int major, minor, patch;
29998
29999                 version = db_version( &major, &minor, &patch );
30000
30001                 if( major != DB_VERSION_MAJOR ||
30002                         minor < DB_VERSION_MINOR )
30003                 {
30004                         printf("Berkeley DB version mismatch\n"
30005                                 "\theader: %s\n\tlibrary: %s\n",
30006                                 DB_VERSION_STRING, version);
30007                         return 1;
30008                 }
30009         }
30010 #endif
30011
30012 #if DB_VERSION_MAJOR > 2
30013         db_env_create( NULL, 0 );
30014 #elif DB_VERSION_MAJOR > 1
30015         db_appexit( NULL );
30016 #else
30017         (void) dbopen( NULL, 0, 0, 0, NULL);
30018 #endif
30019
30020   ;
30021   return 0;
30022 }
30023 _ACEOF
30024 rm -f conftest.$ac_objext conftest$ac_exeext
30025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30026   (eval $ac_link) 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } &&
30033          { ac_try='test -z "$ac_c_werror_flag"
30034                          || test ! -s conftest.err'
30035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036   (eval $ac_try) 2>&5
30037   ac_status=$?
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); }; } &&
30040          { ac_try='test -s conftest$ac_exeext'
30041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042   (eval $ac_try) 2>&5
30043   ac_status=$?
30044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045   (exit $ac_status); }; }; then
30046   ol_cv_db_none=yes
30047 else
30048   echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051 ol_cv_db_none=no
30052 fi
30053 rm -f conftest.err conftest.$ac_objext \
30054       conftest$ac_exeext conftest.$ac_ext
30055
30056         LIBS="$ol_LIBS"
30057
30058 fi
30059 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30060 echo "${ECHO_T}$ol_cv_db_none" >&6
30061
30062         if test $ol_cv_db_none = yes ; then
30063                 ol_cv_lib_db=yes
30064         fi
30065 fi
30066
30067
30068         if test "$ol_cv_lib_db" != no ; then
30069                 ol_cv_berkeley_db=yes
30070                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
30071 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
30072 if test "${ol_cv_berkeley_db_version+set}" = set; then
30073   echo $ECHO_N "(cached) $ECHO_C" >&6
30074 else
30075
30076         ol_LIBS="$LIBS"
30077         LIBS="$LTHREAD_LIBS $LIBS"
30078         if test $ol_cv_lib_db != yes ; then
30079                 LIBS="$ol_cv_lib_db $LIBS"
30080         fi
30081
30082         if test "$cross_compiling" = yes; then
30083   ol_cv_berkeley_db_version=cross
30084 else
30085   cat >conftest.$ac_ext <<_ACEOF
30086 /* confdefs.h.  */
30087 _ACEOF
30088 cat confdefs.h >>conftest.$ac_ext
30089 cat >>conftest.$ac_ext <<_ACEOF
30090 /* end confdefs.h.  */
30091
30092 #ifdef HAVE_DB_185_H
30093         choke me;
30094 #else
30095 #include <db.h>
30096 #endif
30097 #ifndef DB_VERSION_MAJOR
30098 # define DB_VERSION_MAJOR 1
30099 #endif
30100 #ifndef NULL
30101 #define NULL ((void *)0)
30102 #endif
30103 main()
30104 {
30105 #if DB_VERSION_MAJOR > 1
30106         char *version;
30107         int major, minor, patch;
30108
30109         version = db_version( &major, &minor, &patch );
30110
30111         if( major != DB_VERSION_MAJOR ||
30112                 minor != DB_VERSION_MINOR ||
30113                 patch != DB_VERSION_PATCH )
30114         {
30115                 printf("Berkeley DB version mismatch\n"
30116                         "\theader: %s\n\tlibrary: %s\n",
30117                         DB_VERSION_STRING, version);
30118                 return 1;
30119         }
30120 #endif
30121
30122         return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest$ac_exeext
30126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30127   (eval $ac_link) 2>&5
30128   ac_status=$?
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30132   (eval $ac_try) 2>&5
30133   ac_status=$?
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); }; }; then
30136   ol_cv_berkeley_db_version=yes
30137 else
30138   echo "$as_me: program exited with status $ac_status" >&5
30139 echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30141
30142 ( exit $ac_status )
30143 ol_cv_berkeley_db_version=no
30144 fi
30145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30146 fi
30147
30148         LIBS="$ol_LIBS"
30149
30150 fi
30151 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
30152 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
30153
30154         if test $ol_cv_berkeley_db_version = no ; then
30155                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
30156 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
30157    { (exit 1); exit 1; }; }
30158         fi
30159
30160                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
30161 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
30162 if test "${ol_cv_berkeley_db_thread+set}" = set; then
30163   echo $ECHO_N "(cached) $ECHO_C" >&6
30164 else
30165
30166         ol_LIBS="$LIBS"
30167         LIBS="$LTHREAD_LIBS $LIBS"
30168         if test $ol_cv_lib_db != yes ; then
30169                 LIBS="$ol_cv_lib_db $LIBS"
30170         fi
30171
30172         if test "$cross_compiling" = yes; then
30173   ol_cv_berkeley_db_thread=cross
30174 else
30175   cat >conftest.$ac_ext <<_ACEOF
30176 /* confdefs.h.  */
30177 _ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h.  */
30181
30182 #ifdef HAVE_DB_185_H
30183         choke me;
30184 #else
30185 #include <db.h>
30186 #endif
30187 #ifndef NULL
30188 #define NULL ((void *)0)
30189 #endif
30190 main()
30191 {
30192         int rc;
30193         u_int32_t flags = DB_CREATE |
30194 #ifdef DB_PRIVATE
30195                 DB_PRIVATE |
30196 #endif
30197                 DB_THREAD;
30198
30199 #if DB_VERSION_MAJOR > 2
30200         DB_ENV *env = NULL;
30201
30202         rc = db_env_create( &env, 0 );
30203
30204         flags |= DB_INIT_MPOOL;
30205 #ifdef DB_MPOOL_PRIVATE
30206         flags |= DB_MPOOL_PRIVATE;
30207 #endif
30208
30209         if( rc ) {
30210                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30211                 return rc;
30212         }
30213
30214 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
30215         rc = env->open( env, NULL, flags, 0 );
30216 #else
30217         rc = env->open( env, NULL, NULL, flags, 0 );
30218 #endif
30219
30220         if ( rc == 0 ) {
30221                 rc = env->close( env, 0 );
30222         }
30223
30224         if( rc ) {
30225                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
30226                 return rc;
30227         }
30228
30229 #else
30230         DB_ENV env;
30231         memset( &env, '\0', sizeof(env) );
30232
30233         rc = db_appinit( NULL, NULL, &env, flags );
30234
30235         if( rc == 0 ) {
30236                 db_appexit( &env );
30237         }
30238
30239         unlink("__db_mpool.share");
30240         unlink("__db_lock.share");
30241 #endif
30242
30243         return rc;
30244 }
30245 _ACEOF
30246 rm -f conftest$ac_exeext
30247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30248   (eval $ac_link) 2>&5
30249   ac_status=$?
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253   (eval $ac_try) 2>&5
30254   ac_status=$?
30255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256   (exit $ac_status); }; }; then
30257   ol_cv_berkeley_db_thread=yes
30258 else
30259   echo "$as_me: program exited with status $ac_status" >&5
30260 echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263 ( exit $ac_status )
30264 ol_cv_berkeley_db_thread=no
30265 fi
30266 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30267 fi
30268
30269         LIBS="$ol_LIBS"
30270
30271 fi
30272 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
30273 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
30274
30275         if test $ol_cv_berkeley_db_thread != no ; then
30276
30277 cat >>confdefs.h <<\_ACEOF
30278 #define HAVE_BERKELEY_DB_THREAD 1
30279 _ACEOF
30280
30281         fi
30282
30283         fi
30284 fi
30285
30286
30287         if test $ol_cv_berkeley_db = no ; then
30288                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
30289 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
30290    { (exit 1); exit 1; }; }
30291         fi
30292
30293
30294 cat >>confdefs.h <<\_ACEOF
30295 #define HAVE_BERKELEY_DB 1
30296 _ACEOF
30297
30298
30299                         if test $ol_cv_lib_db != yes ; then
30300                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
30301         fi
30302
30303         echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
30304 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
30305 if test "${ol_cv_bdb_compat+set}" = set; then
30306   echo $ECHO_N "(cached) $ECHO_C" >&6
30307 else
30308
30309         cat >conftest.$ac_ext <<_ACEOF
30310 /* confdefs.h.  */
30311 _ACEOF
30312 cat confdefs.h >>conftest.$ac_ext
30313 cat >>conftest.$ac_ext <<_ACEOF
30314 /* end confdefs.h.  */
30315
30316 #include <db.h>
30317
30318  /* this check could be improved */
30319 #ifndef DB_VERSION_MAJOR
30320 #       define DB_VERSION_MAJOR 1
30321 #endif
30322 #ifndef DB_VERSION_MINOR
30323 #       define DB_VERSION_MINOR 0
30324 #endif
30325
30326 /* require 4.2 or later, but exclude 4.3 */
30327 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2) && (DB_VERSION_MINOR !=3)
30328         __db_version_compat
30329 #endif
30330
30331 _ACEOF
30332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30333   $EGREP "__db_version_compat" >/dev/null 2>&1; then
30334   ol_cv_bdb_compat=yes
30335 else
30336   ol_cv_bdb_compat=no
30337 fi
30338 rm -f conftest*
30339
30340 fi
30341 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
30342 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
30343
30344
30345         if test $ol_cv_bdb_compat != yes ; then
30346                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
30347 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
30348    { (exit 1); exit 1; }; }
30349         fi
30350
30351         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
30352
30353         ol_link_bdb=yes
30354 fi
30355
30356
30357 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
30358         BUILD_LIBS_DYNAMIC=shared
30359
30360 cat >>confdefs.h <<\_ACEOF
30361 #define LDAP_LIBS_DYNAMIC 1
30362 _ACEOF
30363
30364         LTSTATIC=""
30365 else
30366         BUILD_LIBS_DYNAMIC=static
30367         LTSTATIC="-static"
30368 fi
30369
30370 if test $ol_enable_wrappers != no ; then
30371
30372 for ac_header in tcpd.h
30373 do
30374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30376   echo "$as_me:$LINENO: checking for $ac_header" >&5
30377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30379   echo $ECHO_N "(cached) $ECHO_C" >&6
30380 fi
30381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30383 else
30384   # Is the header compilable?
30385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30387 cat >conftest.$ac_ext <<_ACEOF
30388 /* confdefs.h.  */
30389 _ACEOF
30390 cat confdefs.h >>conftest.$ac_ext
30391 cat >>conftest.$ac_ext <<_ACEOF
30392 /* end confdefs.h.  */
30393 $ac_includes_default
30394 #include <$ac_header>
30395 _ACEOF
30396 rm -f conftest.$ac_objext
30397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30398   (eval $ac_compile) 2>conftest.er1
30399   ac_status=$?
30400   grep -v '^ *+' conftest.er1 >conftest.err
30401   rm -f conftest.er1
30402   cat conftest.err >&5
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); } &&
30405          { ac_try='test -z "$ac_c_werror_flag"
30406                          || test ! -s conftest.err'
30407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408   (eval $ac_try) 2>&5
30409   ac_status=$?
30410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411   (exit $ac_status); }; } &&
30412          { ac_try='test -s conftest.$ac_objext'
30413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414   (eval $ac_try) 2>&5
30415   ac_status=$?
30416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417   (exit $ac_status); }; }; then
30418   ac_header_compiler=yes
30419 else
30420   echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30422
30423 ac_header_compiler=no
30424 fi
30425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30426 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30427 echo "${ECHO_T}$ac_header_compiler" >&6
30428
30429 # Is the header present?
30430 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30431 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30432 cat >conftest.$ac_ext <<_ACEOF
30433 /* confdefs.h.  */
30434 _ACEOF
30435 cat confdefs.h >>conftest.$ac_ext
30436 cat >>conftest.$ac_ext <<_ACEOF
30437 /* end confdefs.h.  */
30438 #include <$ac_header>
30439 _ACEOF
30440 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30441   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30442   ac_status=$?
30443   grep -v '^ *+' conftest.er1 >conftest.err
30444   rm -f conftest.er1
30445   cat conftest.err >&5
30446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447   (exit $ac_status); } >/dev/null; then
30448   if test -s conftest.err; then
30449     ac_cpp_err=$ac_c_preproc_warn_flag
30450     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30451   else
30452     ac_cpp_err=
30453   fi
30454 else
30455   ac_cpp_err=yes
30456 fi
30457 if test -z "$ac_cpp_err"; then
30458   ac_header_preproc=yes
30459 else
30460   echo "$as_me: failed program was:" >&5
30461 sed 's/^/| /' conftest.$ac_ext >&5
30462
30463   ac_header_preproc=no
30464 fi
30465 rm -f conftest.err conftest.$ac_ext
30466 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30467 echo "${ECHO_T}$ac_header_preproc" >&6
30468
30469 # So?  What about this header?
30470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30471   yes:no: )
30472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30476     ac_header_preproc=yes
30477     ;;
30478   no:yes:* )
30479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30491     (
30492       cat <<\_ASBOX
30493 ## --------------------------------------------- ##
30494 ## Report this to <http://www.openldap.org/its/> ##
30495 ## --------------------------------------------- ##
30496 _ASBOX
30497     ) |
30498       sed "s/^/$as_me: WARNING:     /" >&2
30499     ;;
30500 esac
30501 echo "$as_me:$LINENO: checking for $ac_header" >&5
30502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30504   echo $ECHO_N "(cached) $ECHO_C" >&6
30505 else
30506   eval "$as_ac_Header=\$ac_header_preproc"
30507 fi
30508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30510
30511 fi
30512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30513   cat >>confdefs.h <<_ACEOF
30514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30515 _ACEOF
30516
30517                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
30518 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
30519                 save_LIBS="$LIBS"
30520                 LIBS="$LIBS -lwrap"
30521                 cat >conftest.$ac_ext <<_ACEOF
30522 /* confdefs.h.  */
30523 _ACEOF
30524 cat confdefs.h >>conftest.$ac_ext
30525 cat >>conftest.$ac_ext <<_ACEOF
30526 /* end confdefs.h.  */
30527
30528 #include <tcpd.h>
30529 int allow_severity = 0;
30530 int deny_severity  = 0;
30531
30532 struct request_info *req;
30533
30534 int
30535 main ()
30536 {
30537
30538 hosts_access(req)
30539
30540   ;
30541   return 0;
30542 }
30543 _ACEOF
30544 rm -f conftest.$ac_objext conftest$ac_exeext
30545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30546   (eval $ac_link) 2>conftest.er1
30547   ac_status=$?
30548   grep -v '^ *+' conftest.er1 >conftest.err
30549   rm -f conftest.er1
30550   cat conftest.err >&5
30551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552   (exit $ac_status); } &&
30553          { ac_try='test -z "$ac_c_werror_flag"
30554                          || test ! -s conftest.err'
30555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556   (eval $ac_try) 2>&5
30557   ac_status=$?
30558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559   (exit $ac_status); }; } &&
30560          { ac_try='test -s conftest$ac_exeext'
30561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562   (eval $ac_try) 2>&5
30563   ac_status=$?
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); }; }; then
30566   echo "$as_me:$LINENO: result: -lwrap" >&5
30567 echo "${ECHO_T}-lwrap" >&6
30568                 have_wrappers=yes
30569                 LIBS="$save_LIBS"
30570 else
30571   echo "$as_me: failed program was:" >&5
30572 sed 's/^/| /' conftest.$ac_ext >&5
30573
30574
30575                                 LIBS="$LIBS -lnsl"
30576                 cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582
30583 #include <tcpd.h>
30584 int allow_severity = 0;
30585 int deny_severity  = 0;
30586
30587 struct request_info *req;
30588
30589 int
30590 main ()
30591 {
30592
30593 hosts_access(req)
30594
30595   ;
30596   return 0;
30597 }
30598 _ACEOF
30599 rm -f conftest.$ac_objext conftest$ac_exeext
30600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30601   (eval $ac_link) 2>conftest.er1
30602   ac_status=$?
30603   grep -v '^ *+' conftest.er1 >conftest.err
30604   rm -f conftest.er1
30605   cat conftest.err >&5
30606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607   (exit $ac_status); } &&
30608          { ac_try='test -z "$ac_c_werror_flag"
30609                          || test ! -s conftest.err'
30610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30611   (eval $ac_try) 2>&5
30612   ac_status=$?
30613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614   (exit $ac_status); }; } &&
30615          { ac_try='test -s conftest$ac_exeext'
30616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30617   (eval $ac_try) 2>&5
30618   ac_status=$?
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); }; }; then
30621   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
30622 echo "${ECHO_T}-lwrap -lnsl" >&6
30623                 have_wrappers=yes
30624                 LIBS="$save_LIBS -lnsl"
30625 else
30626   echo "$as_me: failed program was:" >&5
30627 sed 's/^/| /' conftest.$ac_ext >&5
30628
30629
30630                 echo "$as_me:$LINENO: result: no" >&5
30631 echo "${ECHO_T}no" >&6
30632                 have_wrappers=no
30633                 LIBS=$save_LIBS
30634 fi
30635 rm -f conftest.err conftest.$ac_objext \
30636       conftest$ac_exeext conftest.$ac_ext
30637 fi
30638 rm -f conftest.err conftest.$ac_objext \
30639       conftest$ac_exeext conftest.$ac_ext
30640 else
30641   have_wrappers=no
30642 fi
30643
30644 done
30645
30646
30647         if test $have_wrappers = yes ; then
30648
30649 cat >>confdefs.h <<\_ACEOF
30650 #define HAVE_TCPD 1
30651 _ACEOF
30652
30653                 WRAP_LIBS="-lwrap"
30654         elif test $ol_enable_wrappers = yes ; then
30655                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
30656 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
30657    { (exit 1); exit 1; }; }
30658         else
30659                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
30660 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
30661                 WRAP_LIBS=""
30662         fi
30663 fi
30664
30665 if test $ol_enable_syslog != no ; then
30666         echo "$as_me:$LINENO: checking for openlog" >&5
30667 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
30668 if test "${ac_cv_func_openlog+set}" = set; then
30669   echo $ECHO_N "(cached) $ECHO_C" >&6
30670 else
30671   cat >conftest.$ac_ext <<_ACEOF
30672 /* confdefs.h.  */
30673 _ACEOF
30674 cat confdefs.h >>conftest.$ac_ext
30675 cat >>conftest.$ac_ext <<_ACEOF
30676 /* end confdefs.h.  */
30677 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30679 #define openlog innocuous_openlog
30680
30681 /* System header to define __stub macros and hopefully few prototypes,
30682     which can conflict with char openlog (); below.
30683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30684     <limits.h> exists even on freestanding compilers.  */
30685
30686 #ifdef __STDC__
30687 # include <limits.h>
30688 #else
30689 # include <assert.h>
30690 #endif
30691
30692 #undef openlog
30693
30694 /* Override any gcc2 internal prototype to avoid an error.  */
30695 #ifdef __cplusplus
30696 extern "C"
30697 {
30698 #endif
30699 /* We use char because int might match the return type of a gcc2
30700    builtin and then its argument prototype would still apply.  */
30701 char openlog ();
30702 /* The GNU C library defines this for functions which it implements
30703     to always fail with ENOSYS.  Some functions are actually named
30704     something starting with __ and the normal name is an alias.  */
30705 #if defined (__stub_openlog) || defined (__stub___openlog)
30706 choke me
30707 #else
30708 char (*f) () = openlog;
30709 #endif
30710 #ifdef __cplusplus
30711 }
30712 #endif
30713
30714 int
30715 main ()
30716 {
30717 return f != openlog;
30718   ;
30719   return 0;
30720 }
30721 _ACEOF
30722 rm -f conftest.$ac_objext conftest$ac_exeext
30723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30724   (eval $ac_link) 2>conftest.er1
30725   ac_status=$?
30726   grep -v '^ *+' conftest.er1 >conftest.err
30727   rm -f conftest.er1
30728   cat conftest.err >&5
30729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730   (exit $ac_status); } &&
30731          { ac_try='test -z "$ac_c_werror_flag"
30732                          || test ! -s conftest.err'
30733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734   (eval $ac_try) 2>&5
30735   ac_status=$?
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); }; } &&
30738          { ac_try='test -s conftest$ac_exeext'
30739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740   (eval $ac_try) 2>&5
30741   ac_status=$?
30742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743   (exit $ac_status); }; }; then
30744   ac_cv_func_openlog=yes
30745 else
30746   echo "$as_me: failed program was:" >&5
30747 sed 's/^/| /' conftest.$ac_ext >&5
30748
30749 ac_cv_func_openlog=no
30750 fi
30751 rm -f conftest.err conftest.$ac_objext \
30752       conftest$ac_exeext conftest.$ac_ext
30753 fi
30754 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30755 echo "${ECHO_T}$ac_cv_func_openlog" >&6
30756
30757         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30758                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30759 echo "$as_me: error: could not find syslog" >&2;}
30760    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30761         fi
30762         ol_enable_syslog=$ac_cv_func_openlog
30763 fi
30764
30765 ol_link_sql=no
30766 if test $ol_enable_sql != no ; then
30767
30768
30769 for ac_header in sql.h sqlext.h
30770 do
30771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30773   echo "$as_me:$LINENO: checking for $ac_header" >&5
30774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30776   echo $ECHO_N "(cached) $ECHO_C" >&6
30777 fi
30778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30780 else
30781   # Is the header compilable?
30782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30784 cat >conftest.$ac_ext <<_ACEOF
30785 /* confdefs.h.  */
30786 _ACEOF
30787 cat confdefs.h >>conftest.$ac_ext
30788 cat >>conftest.$ac_ext <<_ACEOF
30789 /* end confdefs.h.  */
30790 $ac_includes_default
30791 #include <$ac_header>
30792 _ACEOF
30793 rm -f conftest.$ac_objext
30794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30795   (eval $ac_compile) 2>conftest.er1
30796   ac_status=$?
30797   grep -v '^ *+' conftest.er1 >conftest.err
30798   rm -f conftest.er1
30799   cat conftest.err >&5
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); } &&
30802          { ac_try='test -z "$ac_c_werror_flag"
30803                          || test ! -s conftest.err'
30804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805   (eval $ac_try) 2>&5
30806   ac_status=$?
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); }; } &&
30809          { ac_try='test -s conftest.$ac_objext'
30810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811   (eval $ac_try) 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; }; then
30815   ac_header_compiler=yes
30816 else
30817   echo "$as_me: failed program was:" >&5
30818 sed 's/^/| /' conftest.$ac_ext >&5
30819
30820 ac_header_compiler=no
30821 fi
30822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30824 echo "${ECHO_T}$ac_header_compiler" >&6
30825
30826 # Is the header present?
30827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30829 cat >conftest.$ac_ext <<_ACEOF
30830 /* confdefs.h.  */
30831 _ACEOF
30832 cat confdefs.h >>conftest.$ac_ext
30833 cat >>conftest.$ac_ext <<_ACEOF
30834 /* end confdefs.h.  */
30835 #include <$ac_header>
30836 _ACEOF
30837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30839   ac_status=$?
30840   grep -v '^ *+' conftest.er1 >conftest.err
30841   rm -f conftest.er1
30842   cat conftest.err >&5
30843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844   (exit $ac_status); } >/dev/null; then
30845   if test -s conftest.err; then
30846     ac_cpp_err=$ac_c_preproc_warn_flag
30847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30848   else
30849     ac_cpp_err=
30850   fi
30851 else
30852   ac_cpp_err=yes
30853 fi
30854 if test -z "$ac_cpp_err"; then
30855   ac_header_preproc=yes
30856 else
30857   echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30859
30860   ac_header_preproc=no
30861 fi
30862 rm -f conftest.err conftest.$ac_ext
30863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30864 echo "${ECHO_T}$ac_header_preproc" >&6
30865
30866 # So?  What about this header?
30867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30868   yes:no: )
30869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30873     ac_header_preproc=yes
30874     ;;
30875   no:yes:* )
30876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30888     (
30889       cat <<\_ASBOX
30890 ## --------------------------------------------- ##
30891 ## Report this to <http://www.openldap.org/its/> ##
30892 ## --------------------------------------------- ##
30893 _ASBOX
30894     ) |
30895       sed "s/^/$as_me: WARNING:     /" >&2
30896     ;;
30897 esac
30898 echo "$as_me:$LINENO: checking for $ac_header" >&5
30899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30901   echo $ECHO_N "(cached) $ECHO_C" >&6
30902 else
30903   eval "$as_ac_Header=\$ac_header_preproc"
30904 fi
30905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30907
30908 fi
30909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30910   cat >>confdefs.h <<_ACEOF
30911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30912 _ACEOF
30913
30914 else
30915
30916                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30917 echo "$as_me: error: could not locate SQL headers" >&2;}
30918    { (exit 1); exit 1; }; }
30919
30920 fi
30921
30922 done
30923
30924
30925         sql_LIBS="$LIBS"
30926         LIBS="$LTHREAD_LIBS"
30927
30928         if test $ol_with_odbc = auto ; then
30929                 ol_with_odbc="iodbc unixodbc"
30930         fi
30931
30932         for odbc in $ol_with_odbc ; do
30933                 if test $ol_link_sql = no ; then
30934                         case $odbc in
30935                         iodbc)
30936                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30937 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
30938 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30939   echo $ECHO_N "(cached) $ECHO_C" >&6
30940 else
30941   ac_check_lib_save_LIBS=$LIBS
30942 LIBS="-liodbc  $LIBS"
30943 cat >conftest.$ac_ext <<_ACEOF
30944 /* confdefs.h.  */
30945 _ACEOF
30946 cat confdefs.h >>conftest.$ac_ext
30947 cat >>conftest.$ac_ext <<_ACEOF
30948 /* end confdefs.h.  */
30949
30950 /* Override any gcc2 internal prototype to avoid an error.  */
30951 #ifdef __cplusplus
30952 extern "C"
30953 #endif
30954 /* We use char because int might match the return type of a gcc2
30955    builtin and then its argument prototype would still apply.  */
30956 char SQLDriverConnect ();
30957 int
30958 main ()
30959 {
30960 SQLDriverConnect ();
30961   ;
30962   return 0;
30963 }
30964 _ACEOF
30965 rm -f conftest.$ac_objext conftest$ac_exeext
30966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30967   (eval $ac_link) 2>conftest.er1
30968   ac_status=$?
30969   grep -v '^ *+' conftest.er1 >conftest.err
30970   rm -f conftest.er1
30971   cat conftest.err >&5
30972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973   (exit $ac_status); } &&
30974          { ac_try='test -z "$ac_c_werror_flag"
30975                          || test ! -s conftest.err'
30976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977   (eval $ac_try) 2>&5
30978   ac_status=$?
30979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980   (exit $ac_status); }; } &&
30981          { ac_try='test -s conftest$ac_exeext'
30982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30983   (eval $ac_try) 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; }; then
30987   ac_cv_lib_iodbc_SQLDriverConnect=yes
30988 else
30989   echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992 ac_cv_lib_iodbc_SQLDriverConnect=no
30993 fi
30994 rm -f conftest.err conftest.$ac_objext \
30995       conftest$ac_exeext conftest.$ac_ext
30996 LIBS=$ac_check_lib_save_LIBS
30997 fi
30998 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30999 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
31000 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
31001   have_iodbc=yes
31002 else
31003   have_iodbc=no
31004 fi
31005
31006                                 if test $have_iodbc = yes ; then
31007                                         ol_link_sql="-liodbc"
31008                                 fi
31009                                 ;;
31010
31011                         unixodbc)
31012                                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
31013 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
31014 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
31015   echo $ECHO_N "(cached) $ECHO_C" >&6
31016 else
31017   ac_check_lib_save_LIBS=$LIBS
31018 LIBS="-lodbc  $LIBS"
31019 cat >conftest.$ac_ext <<_ACEOF
31020 /* confdefs.h.  */
31021 _ACEOF
31022 cat confdefs.h >>conftest.$ac_ext
31023 cat >>conftest.$ac_ext <<_ACEOF
31024 /* end confdefs.h.  */
31025
31026 /* Override any gcc2 internal prototype to avoid an error.  */
31027 #ifdef __cplusplus
31028 extern "C"
31029 #endif
31030 /* We use char because int might match the return type of a gcc2
31031    builtin and then its argument prototype would still apply.  */
31032 char SQLDriverConnect ();
31033 int
31034 main ()
31035 {
31036 SQLDriverConnect ();
31037   ;
31038   return 0;
31039 }
31040 _ACEOF
31041 rm -f conftest.$ac_objext conftest$ac_exeext
31042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31043   (eval $ac_link) 2>conftest.er1
31044   ac_status=$?
31045   grep -v '^ *+' conftest.er1 >conftest.err
31046   rm -f conftest.er1
31047   cat conftest.err >&5
31048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31049   (exit $ac_status); } &&
31050          { ac_try='test -z "$ac_c_werror_flag"
31051                          || test ! -s conftest.err'
31052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31053   (eval $ac_try) 2>&5
31054   ac_status=$?
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); }; } &&
31057          { ac_try='test -s conftest$ac_exeext'
31058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31059   (eval $ac_try) 2>&5
31060   ac_status=$?
31061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062   (exit $ac_status); }; }; then
31063   ac_cv_lib_odbc_SQLDriverConnect=yes
31064 else
31065   echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31067
31068 ac_cv_lib_odbc_SQLDriverConnect=no
31069 fi
31070 rm -f conftest.err conftest.$ac_objext \
31071       conftest$ac_exeext conftest.$ac_ext
31072 LIBS=$ac_check_lib_save_LIBS
31073 fi
31074 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
31075 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
31076 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
31077   have_odbc=yes
31078 else
31079   have_odbc=no
31080 fi
31081
31082                                 if test $have_odbc = yes ; then
31083                                         ol_link_sql="-lodbc"
31084                                 fi
31085                                 ;;
31086
31087                         *)
31088                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
31089 echo "$as_me: error: unknown ODBC library" >&2;}
31090    { (exit 1); exit 1; }; }
31091                                 ;;
31092                         esac
31093                 fi
31094         done
31095
31096         LIBS="$sql_LIBS"
31097
31098         if test $ol_link_sql != no ; then
31099                 SLAPD_SQL_LIBS="$ol_link_sql"
31100
31101         elif test $ol_enable_sql != auto ; then
31102                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
31103 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
31104    { (exit 1); exit 1; }; }
31105         fi
31106 fi
31107
31108 ol_icu=no
31109
31110 for ac_header in unicode/utypes.h
31111 do
31112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31114   echo "$as_me:$LINENO: checking for $ac_header" >&5
31115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31117   echo $ECHO_N "(cached) $ECHO_C" >&6
31118 fi
31119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31121 else
31122   # Is the header compilable?
31123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31125 cat >conftest.$ac_ext <<_ACEOF
31126 /* confdefs.h.  */
31127 _ACEOF
31128 cat confdefs.h >>conftest.$ac_ext
31129 cat >>conftest.$ac_ext <<_ACEOF
31130 /* end confdefs.h.  */
31131 $ac_includes_default
31132 #include <$ac_header>
31133 _ACEOF
31134 rm -f conftest.$ac_objext
31135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31136   (eval $ac_compile) 2>conftest.er1
31137   ac_status=$?
31138   grep -v '^ *+' conftest.er1 >conftest.err
31139   rm -f conftest.er1
31140   cat conftest.err >&5
31141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142   (exit $ac_status); } &&
31143          { ac_try='test -z "$ac_c_werror_flag"
31144                          || test ! -s conftest.err'
31145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31146   (eval $ac_try) 2>&5
31147   ac_status=$?
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); }; } &&
31150          { ac_try='test -s conftest.$ac_objext'
31151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152   (eval $ac_try) 2>&5
31153   ac_status=$?
31154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155   (exit $ac_status); }; }; then
31156   ac_header_compiler=yes
31157 else
31158   echo "$as_me: failed program was:" >&5
31159 sed 's/^/| /' conftest.$ac_ext >&5
31160
31161 ac_header_compiler=no
31162 fi
31163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31165 echo "${ECHO_T}$ac_header_compiler" >&6
31166
31167 # Is the header present?
31168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31170 cat >conftest.$ac_ext <<_ACEOF
31171 /* confdefs.h.  */
31172 _ACEOF
31173 cat confdefs.h >>conftest.$ac_ext
31174 cat >>conftest.$ac_ext <<_ACEOF
31175 /* end confdefs.h.  */
31176 #include <$ac_header>
31177 _ACEOF
31178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31179   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } >/dev/null; then
31186   if test -s conftest.err; then
31187     ac_cpp_err=$ac_c_preproc_warn_flag
31188     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31189   else
31190     ac_cpp_err=
31191   fi
31192 else
31193   ac_cpp_err=yes
31194 fi
31195 if test -z "$ac_cpp_err"; then
31196   ac_header_preproc=yes
31197 else
31198   echo "$as_me: failed program was:" >&5
31199 sed 's/^/| /' conftest.$ac_ext >&5
31200
31201   ac_header_preproc=no
31202 fi
31203 rm -f conftest.err conftest.$ac_ext
31204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31205 echo "${ECHO_T}$ac_header_preproc" >&6
31206
31207 # So?  What about this header?
31208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31209   yes:no: )
31210     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31212     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31214     ac_header_preproc=yes
31215     ;;
31216   no:yes:* )
31217     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31219     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31220 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31221     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31223     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31224 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31225     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31227     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31229     (
31230       cat <<\_ASBOX
31231 ## --------------------------------------------- ##
31232 ## Report this to <http://www.openldap.org/its/> ##
31233 ## --------------------------------------------- ##
31234 _ASBOX
31235     ) |
31236       sed "s/^/$as_me: WARNING:     /" >&2
31237     ;;
31238 esac
31239 echo "$as_me:$LINENO: checking for $ac_header" >&5
31240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31242   echo $ECHO_N "(cached) $ECHO_C" >&6
31243 else
31244   eval "$as_ac_Header=\$ac_header_preproc"
31245 fi
31246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31248
31249 fi
31250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31251   cat >>confdefs.h <<_ACEOF
31252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31253 _ACEOF
31254
31255 fi
31256
31257 done
31258
31259 if test $ac_cv_header_unicode_utypes_h = yes ; then
31260                 OL_ICULIBS="-licuuc -licudata"
31261
31262         echo "$as_me:$LINENO: checking for ICU libraries" >&5
31263 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
31264 if test "${ol_cv_lib_icu+set}" = set; then
31265   echo $ECHO_N "(cached) $ECHO_C" >&6
31266 else
31267
31268                 ol_LIBS="$LIBS"
31269                 LIBS="$OL_ICULIBS $LIBS"
31270                 cat >conftest.$ac_ext <<_ACEOF
31271 /* confdefs.h.  */
31272 _ACEOF
31273 cat confdefs.h >>conftest.$ac_ext
31274 cat >>conftest.$ac_ext <<_ACEOF
31275 /* end confdefs.h.  */
31276
31277 #include <unicode/utypes.h>
31278
31279 int
31280 main ()
31281 {
31282
31283 (void) u_errorName(0);
31284
31285   ;
31286   return 0;
31287 }
31288 _ACEOF
31289 rm -f conftest.$ac_objext conftest$ac_exeext
31290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31291   (eval $ac_link) 2>conftest.er1
31292   ac_status=$?
31293   grep -v '^ *+' conftest.er1 >conftest.err
31294   rm -f conftest.er1
31295   cat conftest.err >&5
31296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); } &&
31298          { ac_try='test -z "$ac_c_werror_flag"
31299                          || test ! -s conftest.err'
31300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31301   (eval $ac_try) 2>&5
31302   ac_status=$?
31303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304   (exit $ac_status); }; } &&
31305          { ac_try='test -s conftest$ac_exeext'
31306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31307   (eval $ac_try) 2>&5
31308   ac_status=$?
31309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310   (exit $ac_status); }; }; then
31311   ol_cv_lib_icu=yes
31312 else
31313   echo "$as_me: failed program was:" >&5
31314 sed 's/^/| /' conftest.$ac_ext >&5
31315
31316 ol_cv_lib_icu=no
31317 fi
31318 rm -f conftest.err conftest.$ac_objext \
31319       conftest$ac_exeext conftest.$ac_ext
31320                 LIBS="$ol_LIBS"
31321
31322 fi
31323 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
31324 echo "${ECHO_T}$ol_cv_lib_icu" >&6
31325
31326         if test $ol_cv_lib_icu != no ; then
31327                 ol_icu="$OL_ICULIBS"
31328
31329 cat >>confdefs.h <<\_ACEOF
31330 #define HAVE_ICU 1
31331 _ACEOF
31332
31333         fi
31334 fi
31335
31336 if test "$ol_icu" = no ; then
31337         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
31338 echo "$as_me: WARNING: ICU not available" >&2;}
31339 else
31340         ICU_LIBS="$ol_icu"
31341 fi
31342 WITH_SASL=no
31343 ol_link_sasl=no
31344 ol_link_spasswd=no
31345 if test $ol_with_cyrus_sasl != no ; then
31346
31347
31348 for ac_header in sasl/sasl.h sasl.h
31349 do
31350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31352   echo "$as_me:$LINENO: checking for $ac_header" >&5
31353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31355   echo $ECHO_N "(cached) $ECHO_C" >&6
31356 fi
31357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31359 else
31360   # Is the header compilable?
31361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31363 cat >conftest.$ac_ext <<_ACEOF
31364 /* confdefs.h.  */
31365 _ACEOF
31366 cat confdefs.h >>conftest.$ac_ext
31367 cat >>conftest.$ac_ext <<_ACEOF
31368 /* end confdefs.h.  */
31369 $ac_includes_default
31370 #include <$ac_header>
31371 _ACEOF
31372 rm -f conftest.$ac_objext
31373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31374   (eval $ac_compile) 2>conftest.er1
31375   ac_status=$?
31376   grep -v '^ *+' conftest.er1 >conftest.err
31377   rm -f conftest.er1
31378   cat conftest.err >&5
31379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380   (exit $ac_status); } &&
31381          { ac_try='test -z "$ac_c_werror_flag"
31382                          || test ! -s conftest.err'
31383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384   (eval $ac_try) 2>&5
31385   ac_status=$?
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); }; } &&
31388          { ac_try='test -s conftest.$ac_objext'
31389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390   (eval $ac_try) 2>&5
31391   ac_status=$?
31392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393   (exit $ac_status); }; }; then
31394   ac_header_compiler=yes
31395 else
31396   echo "$as_me: failed program was:" >&5
31397 sed 's/^/| /' conftest.$ac_ext >&5
31398
31399 ac_header_compiler=no
31400 fi
31401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31403 echo "${ECHO_T}$ac_header_compiler" >&6
31404
31405 # Is the header present?
31406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31408 cat >conftest.$ac_ext <<_ACEOF
31409 /* confdefs.h.  */
31410 _ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h.  */
31414 #include <$ac_header>
31415 _ACEOF
31416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } >/dev/null; then
31424   if test -s conftest.err; then
31425     ac_cpp_err=$ac_c_preproc_warn_flag
31426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31427   else
31428     ac_cpp_err=
31429   fi
31430 else
31431   ac_cpp_err=yes
31432 fi
31433 if test -z "$ac_cpp_err"; then
31434   ac_header_preproc=yes
31435 else
31436   echo "$as_me: failed program was:" >&5
31437 sed 's/^/| /' conftest.$ac_ext >&5
31438
31439   ac_header_preproc=no
31440 fi
31441 rm -f conftest.err conftest.$ac_ext
31442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31443 echo "${ECHO_T}$ac_header_preproc" >&6
31444
31445 # So?  What about this header?
31446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31447   yes:no: )
31448     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31450     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31452     ac_header_preproc=yes
31453     ;;
31454   no:yes:* )
31455     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31457     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31458 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31459     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31461     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31462 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31463     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31465     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31467     (
31468       cat <<\_ASBOX
31469 ## --------------------------------------------- ##
31470 ## Report this to <http://www.openldap.org/its/> ##
31471 ## --------------------------------------------- ##
31472 _ASBOX
31473     ) |
31474       sed "s/^/$as_me: WARNING:     /" >&2
31475     ;;
31476 esac
31477 echo "$as_me:$LINENO: checking for $ac_header" >&5
31478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31480   echo $ECHO_N "(cached) $ECHO_C" >&6
31481 else
31482   eval "$as_ac_Header=\$ac_header_preproc"
31483 fi
31484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31486
31487 fi
31488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31489   cat >>confdefs.h <<_ACEOF
31490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31491 _ACEOF
31492
31493 fi
31494
31495 done
31496
31497
31498         if test $ac_cv_header_sasl_sasl_h = yes ||
31499            test $ac_cv_header_sasl_h = yes; then
31500                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31501 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
31502 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31503   echo $ECHO_N "(cached) $ECHO_C" >&6
31504 else
31505   ac_check_lib_save_LIBS=$LIBS
31506 LIBS="-lsasl2  $LIBS"
31507 cat >conftest.$ac_ext <<_ACEOF
31508 /* confdefs.h.  */
31509 _ACEOF
31510 cat confdefs.h >>conftest.$ac_ext
31511 cat >>conftest.$ac_ext <<_ACEOF
31512 /* end confdefs.h.  */
31513
31514 /* Override any gcc2 internal prototype to avoid an error.  */
31515 #ifdef __cplusplus
31516 extern "C"
31517 #endif
31518 /* We use char because int might match the return type of a gcc2
31519    builtin and then its argument prototype would still apply.  */
31520 char sasl_client_init ();
31521 int
31522 main ()
31523 {
31524 sasl_client_init ();
31525   ;
31526   return 0;
31527 }
31528 _ACEOF
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31531   (eval $ac_link) 2>conftest.er1
31532   ac_status=$?
31533   grep -v '^ *+' conftest.er1 >conftest.err
31534   rm -f conftest.er1
31535   cat conftest.err >&5
31536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537   (exit $ac_status); } &&
31538          { ac_try='test -z "$ac_c_werror_flag"
31539                          || test ! -s conftest.err'
31540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541   (eval $ac_try) 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; } &&
31545          { ac_try='test -s conftest$ac_exeext'
31546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547   (eval $ac_try) 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; }; then
31551   ac_cv_lib_sasl2_sasl_client_init=yes
31552 else
31553   echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 ac_cv_lib_sasl2_sasl_client_init=no
31557 fi
31558 rm -f conftest.err conftest.$ac_objext \
31559       conftest$ac_exeext conftest.$ac_ext
31560 LIBS=$ac_check_lib_save_LIBS
31561 fi
31562 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31563 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
31564 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31565   ol_link_sasl="-lsasl2"
31566 else
31567   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31568 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
31569 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31570   echo $ECHO_N "(cached) $ECHO_C" >&6
31571 else
31572   ac_check_lib_save_LIBS=$LIBS
31573 LIBS="-lsasl  $LIBS"
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h.  */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h.  */
31580
31581 /* Override any gcc2 internal prototype to avoid an error.  */
31582 #ifdef __cplusplus
31583 extern "C"
31584 #endif
31585 /* We use char because int might match the return type of a gcc2
31586    builtin and then its argument prototype would still apply.  */
31587 char sasl_client_init ();
31588 int
31589 main ()
31590 {
31591 sasl_client_init ();
31592   ;
31593   return 0;
31594 }
31595 _ACEOF
31596 rm -f conftest.$ac_objext conftest$ac_exeext
31597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31598   (eval $ac_link) 2>conftest.er1
31599   ac_status=$?
31600   grep -v '^ *+' conftest.er1 >conftest.err
31601   rm -f conftest.er1
31602   cat conftest.err >&5
31603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604   (exit $ac_status); } &&
31605          { ac_try='test -z "$ac_c_werror_flag"
31606                          || test ! -s conftest.err'
31607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31608   (eval $ac_try) 2>&5
31609   ac_status=$?
31610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611   (exit $ac_status); }; } &&
31612          { ac_try='test -s conftest$ac_exeext'
31613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614   (eval $ac_try) 2>&5
31615   ac_status=$?
31616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617   (exit $ac_status); }; }; then
31618   ac_cv_lib_sasl_sasl_client_init=yes
31619 else
31620   echo "$as_me: failed program was:" >&5
31621 sed 's/^/| /' conftest.$ac_ext >&5
31622
31623 ac_cv_lib_sasl_sasl_client_init=no
31624 fi
31625 rm -f conftest.err conftest.$ac_objext \
31626       conftest$ac_exeext conftest.$ac_ext
31627 LIBS=$ac_check_lib_save_LIBS
31628 fi
31629 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31630 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
31631 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31632   ol_link_sasl="-lsasl"
31633 fi
31634
31635 fi
31636
31637         fi
31638
31639         if test $ol_link_sasl = no ; then
31640                 if test $ol_with_cyrus_sasl != auto ; then
31641                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31642 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31643    { (exit 1); exit 1; }; }
31644                 else
31645                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31646 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31647                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31648 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31649                         if test $ol_link_tls = no ; then
31650                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31651 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31652                         fi
31653                 fi
31654         else
31655                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31656 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
31657 if test "${ol_cv_sasl_compat+set}" = set; then
31658   echo $ECHO_N "(cached) $ECHO_C" >&6
31659 else
31660
31661         cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667
31668 #ifdef HAVE_SASL_SASL_H
31669 #include <sasl/sasl.h>
31670 #else
31671 #include <sasl.h>
31672 #endif
31673
31674 /* Require 2.1.15+ */
31675 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31676         char *__sasl_compat = "2.2+ or better okay (we guess)";
31677 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31678         && SASL_VERSION_STEP >=15
31679         char *__sasl_compat = "2.1.15+ or better okay";
31680 #endif
31681
31682 _ACEOF
31683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31684   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31685   ol_cv_sasl_compat=yes
31686 else
31687   ol_cv_sasl_compat=no
31688 fi
31689 rm -f conftest*
31690
31691 fi
31692 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31693 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
31694
31695                 if test $ol_cv_sasl_compat = no ; then
31696                         ol_link_sasl=no
31697                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31698 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31699    { (exit 1); exit 1; }; }
31700                 fi
31701
31702
31703 cat >>confdefs.h <<\_ACEOF
31704 #define HAVE_CYRUS_SASL 1
31705 _ACEOF
31706
31707                 SASL_LIBS="$ol_link_sasl"
31708                 if test $ol_enable_spasswd != no ; then
31709                         ol_link_spasswd=yes
31710                 fi
31711
31712                 ac_save_LIBS="$LIBS"
31713                 LIBS="$LIBS $ol_link_sasl"
31714                 echo "$as_me:$LINENO: checking for sasl_version" >&5
31715 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
31716 if test "${ac_cv_func_sasl_version+set}" = set; then
31717   echo $ECHO_N "(cached) $ECHO_C" >&6
31718 else
31719   cat >conftest.$ac_ext <<_ACEOF
31720 /* confdefs.h.  */
31721 _ACEOF
31722 cat confdefs.h >>conftest.$ac_ext
31723 cat >>conftest.$ac_ext <<_ACEOF
31724 /* end confdefs.h.  */
31725 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31727 #define sasl_version innocuous_sasl_version
31728
31729 /* System header to define __stub macros and hopefully few prototypes,
31730     which can conflict with char sasl_version (); below.
31731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31732     <limits.h> exists even on freestanding compilers.  */
31733
31734 #ifdef __STDC__
31735 # include <limits.h>
31736 #else
31737 # include <assert.h>
31738 #endif
31739
31740 #undef sasl_version
31741
31742 /* Override any gcc2 internal prototype to avoid an error.  */
31743 #ifdef __cplusplus
31744 extern "C"
31745 {
31746 #endif
31747 /* We use char because int might match the return type of a gcc2
31748    builtin and then its argument prototype would still apply.  */
31749 char sasl_version ();
31750 /* The GNU C library defines this for functions which it implements
31751     to always fail with ENOSYS.  Some functions are actually named
31752     something starting with __ and the normal name is an alias.  */
31753 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
31754 choke me
31755 #else
31756 char (*f) () = sasl_version;
31757 #endif
31758 #ifdef __cplusplus
31759 }
31760 #endif
31761
31762 int
31763 main ()
31764 {
31765 return f != sasl_version;
31766   ;
31767   return 0;
31768 }
31769 _ACEOF
31770 rm -f conftest.$ac_objext conftest$ac_exeext
31771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31772   (eval $ac_link) 2>conftest.er1
31773   ac_status=$?
31774   grep -v '^ *+' conftest.er1 >conftest.err
31775   rm -f conftest.er1
31776   cat conftest.err >&5
31777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778   (exit $ac_status); } &&
31779          { ac_try='test -z "$ac_c_werror_flag"
31780                          || test ! -s conftest.err'
31781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782   (eval $ac_try) 2>&5
31783   ac_status=$?
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); }; } &&
31786          { ac_try='test -s conftest$ac_exeext'
31787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31788   (eval $ac_try) 2>&5
31789   ac_status=$?
31790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791   (exit $ac_status); }; }; then
31792   ac_cv_func_sasl_version=yes
31793 else
31794   echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31796
31797 ac_cv_func_sasl_version=no
31798 fi
31799 rm -f conftest.err conftest.$ac_objext \
31800       conftest$ac_exeext conftest.$ac_ext
31801 fi
31802 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31803 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31804 if test $ac_cv_func_sasl_version = yes; then
31805
31806 cat >>confdefs.h <<\_ACEOF
31807 #define HAVE_SASL_VERSION 1
31808 _ACEOF
31809
31810 fi
31811
31812                 LIBS="$ac_save_LIBS"
31813
31814                 WITH_SASL=yes
31815         fi
31816
31817 else
31818         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31819 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31820         if test $ol_link_tls = no ; then
31821                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31822 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31823         fi
31824 fi
31825
31826 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31827         dev=no
31828         if test -r /dev/urandom ; then
31829                 dev="/dev/urandom";
31830         elif test -r /idev/urandom ; then
31831                 dev="/idev/urandom";
31832         elif test -r /dev/srandom ; then
31833                 dev="/dev/srandom";
31834         elif test -r /dev/random ; then
31835                 dev="/dev/random";
31836         elif test -r /idev/random ; then
31837                 dev="/idev/random";
31838         fi
31839
31840         if test $dev != no ; then
31841
31842 cat >>confdefs.h <<_ACEOF
31843 #define URANDOM_DEVICE "$dev"
31844 _ACEOF
31845
31846         fi
31847 fi
31848
31849 ol_link_fetch=no
31850 if test $ol_with_fetch != no ; then
31851         ol_LIBS=$LIBS
31852 LIBS="-lfetch -lcom_err $LIBS"
31853 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31854 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31855 if test "${ol_cv_lib_fetch+set}" = set; then
31856   echo $ECHO_N "(cached) $ECHO_C" >&6
31857 else
31858
31859         cat >conftest.$ac_ext <<_ACEOF
31860 /* confdefs.h.  */
31861 _ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h.  */
31865
31866 #include <sys/param.h>
31867 #include <stdio.h>
31868 #include <fetch.h>
31869 int
31870 main ()
31871 {
31872 struct url *u = fetchParseURL("file:///");
31873   ;
31874   return 0;
31875 }
31876 _ACEOF
31877 rm -f conftest.$ac_objext conftest$ac_exeext
31878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31879   (eval $ac_link) 2>conftest.er1
31880   ac_status=$?
31881   grep -v '^ *+' conftest.er1 >conftest.err
31882   rm -f conftest.er1
31883   cat conftest.err >&5
31884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885   (exit $ac_status); } &&
31886          { ac_try='test -z "$ac_c_werror_flag"
31887                          || test ! -s conftest.err'
31888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31889   (eval $ac_try) 2>&5
31890   ac_status=$?
31891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892   (exit $ac_status); }; } &&
31893          { ac_try='test -s conftest$ac_exeext'
31894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31895   (eval $ac_try) 2>&5
31896   ac_status=$?
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); }; }; then
31899   ol_cv_lib_fetch=yes
31900 else
31901   echo "$as_me: failed program was:" >&5
31902 sed 's/^/| /' conftest.$ac_ext >&5
31903
31904 ol_cv_lib_fetch=no
31905 fi
31906 rm -f conftest.err conftest.$ac_objext \
31907       conftest$ac_exeext conftest.$ac_ext
31908 fi
31909 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31910 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31911 LIBS=$ol_LIBS
31912 if test $ol_cv_lib_fetch != no ; then
31913         ol_link_fetch="-lfetch -lcom_err"
31914
31915 cat >>confdefs.h <<\_ACEOF
31916 #define HAVE_FETCH 1
31917 _ACEOF
31918
31919 fi
31920
31921
31922         if test $ol_cv_lib_fetch != no ; then
31923                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31924                 ol_link_fetch=freebsd
31925
31926         elif test $ol_with_fetch != auto ; then
31927                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31928 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31929    { (exit 1); exit 1; }; }
31930         fi
31931 fi
31932
31933 if test $ol_enable_crypt != no ; then
31934         save_LIBS="$LIBS"
31935         LIBS="$TLS_LIBS $LIBS"
31936
31937         echo "$as_me:$LINENO: checking for crypt" >&5
31938 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31939 if test "${ac_cv_func_crypt+set}" = set; then
31940   echo $ECHO_N "(cached) $ECHO_C" >&6
31941 else
31942   cat >conftest.$ac_ext <<_ACEOF
31943 /* confdefs.h.  */
31944 _ACEOF
31945 cat confdefs.h >>conftest.$ac_ext
31946 cat >>conftest.$ac_ext <<_ACEOF
31947 /* end confdefs.h.  */
31948 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31950 #define crypt innocuous_crypt
31951
31952 /* System header to define __stub macros and hopefully few prototypes,
31953     which can conflict with char crypt (); below.
31954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31955     <limits.h> exists even on freestanding compilers.  */
31956
31957 #ifdef __STDC__
31958 # include <limits.h>
31959 #else
31960 # include <assert.h>
31961 #endif
31962
31963 #undef crypt
31964
31965 /* Override any gcc2 internal prototype to avoid an error.  */
31966 #ifdef __cplusplus
31967 extern "C"
31968 {
31969 #endif
31970 /* We use char because int might match the return type of a gcc2
31971    builtin and then its argument prototype would still apply.  */
31972 char crypt ();
31973 /* The GNU C library defines this for functions which it implements
31974     to always fail with ENOSYS.  Some functions are actually named
31975     something starting with __ and the normal name is an alias.  */
31976 #if defined (__stub_crypt) || defined (__stub___crypt)
31977 choke me
31978 #else
31979 char (*f) () = crypt;
31980 #endif
31981 #ifdef __cplusplus
31982 }
31983 #endif
31984
31985 int
31986 main ()
31987 {
31988 return f != crypt;
31989   ;
31990   return 0;
31991 }
31992 _ACEOF
31993 rm -f conftest.$ac_objext conftest$ac_exeext
31994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31995   (eval $ac_link) 2>conftest.er1
31996   ac_status=$?
31997   grep -v '^ *+' conftest.er1 >conftest.err
31998   rm -f conftest.er1
31999   cat conftest.err >&5
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); } &&
32002          { ac_try='test -z "$ac_c_werror_flag"
32003                          || test ! -s conftest.err'
32004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32005   (eval $ac_try) 2>&5
32006   ac_status=$?
32007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32008   (exit $ac_status); }; } &&
32009          { ac_try='test -s conftest$ac_exeext'
32010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32011   (eval $ac_try) 2>&5
32012   ac_status=$?
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); }; }; then
32015   ac_cv_func_crypt=yes
32016 else
32017   echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32019
32020 ac_cv_func_crypt=no
32021 fi
32022 rm -f conftest.err conftest.$ac_objext \
32023       conftest$ac_exeext conftest.$ac_ext
32024 fi
32025 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
32026 echo "${ECHO_T}$ac_cv_func_crypt" >&6
32027 if test $ac_cv_func_crypt = yes; then
32028   have_crypt=yes
32029 else
32030
32031                 LIBS="$save_LIBS"
32032                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
32033 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
32034 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
32035   echo $ECHO_N "(cached) $ECHO_C" >&6
32036 else
32037   ac_check_lib_save_LIBS=$LIBS
32038 LIBS="-lcrypt  $LIBS"
32039 cat >conftest.$ac_ext <<_ACEOF
32040 /* confdefs.h.  */
32041 _ACEOF
32042 cat confdefs.h >>conftest.$ac_ext
32043 cat >>conftest.$ac_ext <<_ACEOF
32044 /* end confdefs.h.  */
32045
32046 /* Override any gcc2 internal prototype to avoid an error.  */
32047 #ifdef __cplusplus
32048 extern "C"
32049 #endif
32050 /* We use char because int might match the return type of a gcc2
32051    builtin and then its argument prototype would still apply.  */
32052 char crypt ();
32053 int
32054 main ()
32055 {
32056 crypt ();
32057   ;
32058   return 0;
32059 }
32060 _ACEOF
32061 rm -f conftest.$ac_objext conftest$ac_exeext
32062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32063   (eval $ac_link) 2>conftest.er1
32064   ac_status=$?
32065   grep -v '^ *+' conftest.er1 >conftest.err
32066   rm -f conftest.er1
32067   cat conftest.err >&5
32068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069   (exit $ac_status); } &&
32070          { ac_try='test -z "$ac_c_werror_flag"
32071                          || test ! -s conftest.err'
32072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32073   (eval $ac_try) 2>&5
32074   ac_status=$?
32075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076   (exit $ac_status); }; } &&
32077          { ac_try='test -s conftest$ac_exeext'
32078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079   (eval $ac_try) 2>&5
32080   ac_status=$?
32081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082   (exit $ac_status); }; }; then
32083   ac_cv_lib_crypt_crypt=yes
32084 else
32085   echo "$as_me: failed program was:" >&5
32086 sed 's/^/| /' conftest.$ac_ext >&5
32087
32088 ac_cv_lib_crypt_crypt=no
32089 fi
32090 rm -f conftest.err conftest.$ac_objext \
32091       conftest$ac_exeext conftest.$ac_ext
32092 LIBS=$ac_check_lib_save_LIBS
32093 fi
32094 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
32095 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
32096 if test $ac_cv_lib_crypt_crypt = yes; then
32097   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
32098                         have_crypt=yes
32099 else
32100   have_crypt=no
32101 fi
32102
32103 fi
32104
32105
32106         LIBS="$save_LIBS"
32107
32108         if test $have_crypt = yes ; then
32109
32110 cat >>confdefs.h <<\_ACEOF
32111 #define HAVE_CRYPT 1
32112 _ACEOF
32113
32114         else
32115                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
32116 echo "$as_me: WARNING: could not find crypt" >&2;}
32117                 if test $ol_enable_crypt = yes ; then
32118                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
32119 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
32120    { (exit 1); exit 1; }; }
32121                 fi
32122
32123                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
32124 echo "$as_me: WARNING: disabling crypt support" >&2;}
32125                 ol_enable_crypt=no
32126         fi
32127 fi
32128
32129 if test $ol_enable_proctitle != no ; then
32130         echo "$as_me:$LINENO: checking for setproctitle" >&5
32131 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
32132 if test "${ac_cv_func_setproctitle+set}" = set; then
32133   echo $ECHO_N "(cached) $ECHO_C" >&6
32134 else
32135   cat >conftest.$ac_ext <<_ACEOF
32136 /* confdefs.h.  */
32137 _ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h.  */
32141 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
32142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32143 #define setproctitle innocuous_setproctitle
32144
32145 /* System header to define __stub macros and hopefully few prototypes,
32146     which can conflict with char setproctitle (); below.
32147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32148     <limits.h> exists even on freestanding compilers.  */
32149
32150 #ifdef __STDC__
32151 # include <limits.h>
32152 #else
32153 # include <assert.h>
32154 #endif
32155
32156 #undef setproctitle
32157
32158 /* Override any gcc2 internal prototype to avoid an error.  */
32159 #ifdef __cplusplus
32160 extern "C"
32161 {
32162 #endif
32163 /* We use char because int might match the return type of a gcc2
32164    builtin and then its argument prototype would still apply.  */
32165 char setproctitle ();
32166 /* The GNU C library defines this for functions which it implements
32167     to always fail with ENOSYS.  Some functions are actually named
32168     something starting with __ and the normal name is an alias.  */
32169 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
32170 choke me
32171 #else
32172 char (*f) () = setproctitle;
32173 #endif
32174 #ifdef __cplusplus
32175 }
32176 #endif
32177
32178 int
32179 main ()
32180 {
32181 return f != setproctitle;
32182   ;
32183   return 0;
32184 }
32185 _ACEOF
32186 rm -f conftest.$ac_objext conftest$ac_exeext
32187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32188   (eval $ac_link) 2>conftest.er1
32189   ac_status=$?
32190   grep -v '^ *+' conftest.er1 >conftest.err
32191   rm -f conftest.er1
32192   cat conftest.err >&5
32193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194   (exit $ac_status); } &&
32195          { ac_try='test -z "$ac_c_werror_flag"
32196                          || test ! -s conftest.err'
32197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32198   (eval $ac_try) 2>&5
32199   ac_status=$?
32200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201   (exit $ac_status); }; } &&
32202          { ac_try='test -s conftest$ac_exeext'
32203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204   (eval $ac_try) 2>&5
32205   ac_status=$?
32206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207   (exit $ac_status); }; }; then
32208   ac_cv_func_setproctitle=yes
32209 else
32210   echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.$ac_ext >&5
32212
32213 ac_cv_func_setproctitle=no
32214 fi
32215 rm -f conftest.err conftest.$ac_objext \
32216       conftest$ac_exeext conftest.$ac_ext
32217 fi
32218 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
32219 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
32220 if test $ac_cv_func_setproctitle = yes; then
32221   have_setproctitle=yes
32222 else
32223
32224                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
32225 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
32226 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
32227   echo $ECHO_N "(cached) $ECHO_C" >&6
32228 else
32229   ac_check_lib_save_LIBS=$LIBS
32230 LIBS="-lutil  $LIBS"
32231 cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h.  */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h.  */
32237
32238 /* Override any gcc2 internal prototype to avoid an error.  */
32239 #ifdef __cplusplus
32240 extern "C"
32241 #endif
32242 /* We use char because int might match the return type of a gcc2
32243    builtin and then its argument prototype would still apply.  */
32244 char setproctitle ();
32245 int
32246 main ()
32247 {
32248 setproctitle ();
32249   ;
32250   return 0;
32251 }
32252 _ACEOF
32253 rm -f conftest.$ac_objext conftest$ac_exeext
32254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32255   (eval $ac_link) 2>conftest.er1
32256   ac_status=$?
32257   grep -v '^ *+' conftest.er1 >conftest.err
32258   rm -f conftest.er1
32259   cat conftest.err >&5
32260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261   (exit $ac_status); } &&
32262          { ac_try='test -z "$ac_c_werror_flag"
32263                          || test ! -s conftest.err'
32264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32265   (eval $ac_try) 2>&5
32266   ac_status=$?
32267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32268   (exit $ac_status); }; } &&
32269          { ac_try='test -s conftest$ac_exeext'
32270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32271   (eval $ac_try) 2>&5
32272   ac_status=$?
32273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274   (exit $ac_status); }; }; then
32275   ac_cv_lib_util_setproctitle=yes
32276 else
32277   echo "$as_me: failed program was:" >&5
32278 sed 's/^/| /' conftest.$ac_ext >&5
32279
32280 ac_cv_lib_util_setproctitle=no
32281 fi
32282 rm -f conftest.err conftest.$ac_objext \
32283       conftest$ac_exeext conftest.$ac_ext
32284 LIBS=$ac_check_lib_save_LIBS
32285 fi
32286 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
32287 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
32288 if test $ac_cv_lib_util_setproctitle = yes; then
32289   have_setproctitle=yes
32290                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
32291 else
32292   have_setproctitle=no
32293                         case $LIBOBJS in
32294     "setproctitle.$ac_objext"   | \
32295   *" setproctitle.$ac_objext"   | \
32296     "setproctitle.$ac_objext "* | \
32297   *" setproctitle.$ac_objext "* ) ;;
32298   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
32299 esac
32300
32301                         LIBSRCS="$LIBSRCS setproctitle.c"
32302 fi
32303
32304 fi
32305
32306
32307         if test $have_setproctitle = yes ; then
32308
32309 cat >>confdefs.h <<\_ACEOF
32310 #define HAVE_SETPROCTITLE 1
32311 _ACEOF
32312
32313         fi
32314 fi
32315
32316 if test $ol_enable_slp != no ; then
32317
32318 for ac_header in slp.h
32319 do
32320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32322   echo "$as_me:$LINENO: checking for $ac_header" >&5
32323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32325   echo $ECHO_N "(cached) $ECHO_C" >&6
32326 fi
32327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32329 else
32330   # Is the header compilable?
32331 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32332 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32333 cat >conftest.$ac_ext <<_ACEOF
32334 /* confdefs.h.  */
32335 _ACEOF
32336 cat confdefs.h >>conftest.$ac_ext
32337 cat >>conftest.$ac_ext <<_ACEOF
32338 /* end confdefs.h.  */
32339 $ac_includes_default
32340 #include <$ac_header>
32341 _ACEOF
32342 rm -f conftest.$ac_objext
32343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32344   (eval $ac_compile) 2>conftest.er1
32345   ac_status=$?
32346   grep -v '^ *+' conftest.er1 >conftest.err
32347   rm -f conftest.er1
32348   cat conftest.err >&5
32349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32350   (exit $ac_status); } &&
32351          { ac_try='test -z "$ac_c_werror_flag"
32352                          || test ! -s conftest.err'
32353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354   (eval $ac_try) 2>&5
32355   ac_status=$?
32356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357   (exit $ac_status); }; } &&
32358          { ac_try='test -s conftest.$ac_objext'
32359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360   (eval $ac_try) 2>&5
32361   ac_status=$?
32362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363   (exit $ac_status); }; }; then
32364   ac_header_compiler=yes
32365 else
32366   echo "$as_me: failed program was:" >&5
32367 sed 's/^/| /' conftest.$ac_ext >&5
32368
32369 ac_header_compiler=no
32370 fi
32371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32372 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32373 echo "${ECHO_T}$ac_header_compiler" >&6
32374
32375 # Is the header present?
32376 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32378 cat >conftest.$ac_ext <<_ACEOF
32379 /* confdefs.h.  */
32380 _ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h.  */
32384 #include <$ac_header>
32385 _ACEOF
32386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32387   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32388   ac_status=$?
32389   grep -v '^ *+' conftest.er1 >conftest.err
32390   rm -f conftest.er1
32391   cat conftest.err >&5
32392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393   (exit $ac_status); } >/dev/null; then
32394   if test -s conftest.err; then
32395     ac_cpp_err=$ac_c_preproc_warn_flag
32396     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32397   else
32398     ac_cpp_err=
32399   fi
32400 else
32401   ac_cpp_err=yes
32402 fi
32403 if test -z "$ac_cpp_err"; then
32404   ac_header_preproc=yes
32405 else
32406   echo "$as_me: failed program was:" >&5
32407 sed 's/^/| /' conftest.$ac_ext >&5
32408
32409   ac_header_preproc=no
32410 fi
32411 rm -f conftest.err conftest.$ac_ext
32412 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32413 echo "${ECHO_T}$ac_header_preproc" >&6
32414
32415 # So?  What about this header?
32416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32417   yes:no: )
32418     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32422     ac_header_preproc=yes
32423     ;;
32424   no:yes:* )
32425     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32427     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32428 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32429     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32431     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32432 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32435     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32437     (
32438       cat <<\_ASBOX
32439 ## --------------------------------------------- ##
32440 ## Report this to <http://www.openldap.org/its/> ##
32441 ## --------------------------------------------- ##
32442 _ASBOX
32443     ) |
32444       sed "s/^/$as_me: WARNING:     /" >&2
32445     ;;
32446 esac
32447 echo "$as_me:$LINENO: checking for $ac_header" >&5
32448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32450   echo $ECHO_N "(cached) $ECHO_C" >&6
32451 else
32452   eval "$as_ac_Header=\$ac_header_preproc"
32453 fi
32454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32456
32457 fi
32458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32459   cat >>confdefs.h <<_ACEOF
32460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32461 _ACEOF
32462
32463 fi
32464
32465 done
32466
32467
32468         if test $ac_cv_header_slp_h = yes ; then
32469                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
32470 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
32471 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
32472   echo $ECHO_N "(cached) $ECHO_C" >&6
32473 else
32474   ac_check_lib_save_LIBS=$LIBS
32475 LIBS="-lslp  $LIBS"
32476 cat >conftest.$ac_ext <<_ACEOF
32477 /* confdefs.h.  */
32478 _ACEOF
32479 cat confdefs.h >>conftest.$ac_ext
32480 cat >>conftest.$ac_ext <<_ACEOF
32481 /* end confdefs.h.  */
32482
32483 /* Override any gcc2 internal prototype to avoid an error.  */
32484 #ifdef __cplusplus
32485 extern "C"
32486 #endif
32487 /* We use char because int might match the return type of a gcc2
32488    builtin and then its argument prototype would still apply.  */
32489 char SLPOpen ();
32490 int
32491 main ()
32492 {
32493 SLPOpen ();
32494   ;
32495   return 0;
32496 }
32497 _ACEOF
32498 rm -f conftest.$ac_objext conftest$ac_exeext
32499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32500   (eval $ac_link) 2>conftest.er1
32501   ac_status=$?
32502   grep -v '^ *+' conftest.er1 >conftest.err
32503   rm -f conftest.er1
32504   cat conftest.err >&5
32505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506   (exit $ac_status); } &&
32507          { ac_try='test -z "$ac_c_werror_flag"
32508                          || test ! -s conftest.err'
32509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32510   (eval $ac_try) 2>&5
32511   ac_status=$?
32512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513   (exit $ac_status); }; } &&
32514          { ac_try='test -s conftest$ac_exeext'
32515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516   (eval $ac_try) 2>&5
32517   ac_status=$?
32518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519   (exit $ac_status); }; }; then
32520   ac_cv_lib_slp_SLPOpen=yes
32521 else
32522   echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.$ac_ext >&5
32524
32525 ac_cv_lib_slp_SLPOpen=no
32526 fi
32527 rm -f conftest.err conftest.$ac_objext \
32528       conftest$ac_exeext conftest.$ac_ext
32529 LIBS=$ac_check_lib_save_LIBS
32530 fi
32531 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32532 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
32533 if test $ac_cv_lib_slp_SLPOpen = yes; then
32534   have_slp=yes
32535 else
32536   have_slp=no
32537 fi
32538
32539                 if test $have_slp = yes ; then
32540
32541 cat >>confdefs.h <<\_ACEOF
32542 #define HAVE_SLP 1
32543 _ACEOF
32544
32545                         SLAPD_SLP_LIBS=-lslp
32546                 fi
32547
32548         elif test $ol_enable_slp = yes ; then
32549                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32550 echo "$as_me: error: SLP not found" >&2;}
32551    { (exit 1); exit 1; }; }
32552         fi
32553 fi
32554
32555
32556 echo "$as_me:$LINENO: checking for mode_t" >&5
32557 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32558 if test "${ac_cv_type_mode_t+set}" = set; then
32559   echo $ECHO_N "(cached) $ECHO_C" >&6
32560 else
32561   cat >conftest.$ac_ext <<_ACEOF
32562 /* confdefs.h.  */
32563 _ACEOF
32564 cat confdefs.h >>conftest.$ac_ext
32565 cat >>conftest.$ac_ext <<_ACEOF
32566 /* end confdefs.h.  */
32567 $ac_includes_default
32568 int
32569 main ()
32570 {
32571 if ((mode_t *) 0)
32572   return 0;
32573 if (sizeof (mode_t))
32574   return 0;
32575   ;
32576   return 0;
32577 }
32578 _ACEOF
32579 rm -f conftest.$ac_objext
32580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32581   (eval $ac_compile) 2>conftest.er1
32582   ac_status=$?
32583   grep -v '^ *+' conftest.er1 >conftest.err
32584   rm -f conftest.er1
32585   cat conftest.err >&5
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); } &&
32588          { ac_try='test -z "$ac_c_werror_flag"
32589                          || test ! -s conftest.err'
32590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32591   (eval $ac_try) 2>&5
32592   ac_status=$?
32593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594   (exit $ac_status); }; } &&
32595          { ac_try='test -s conftest.$ac_objext'
32596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32597   (eval $ac_try) 2>&5
32598   ac_status=$?
32599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600   (exit $ac_status); }; }; then
32601   ac_cv_type_mode_t=yes
32602 else
32603   echo "$as_me: failed program was:" >&5
32604 sed 's/^/| /' conftest.$ac_ext >&5
32605
32606 ac_cv_type_mode_t=no
32607 fi
32608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32609 fi
32610 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32611 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32612 if test $ac_cv_type_mode_t = yes; then
32613   :
32614 else
32615
32616 cat >>confdefs.h <<_ACEOF
32617 #define mode_t int
32618 _ACEOF
32619
32620 fi
32621
32622 echo "$as_me:$LINENO: checking for off_t" >&5
32623 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32624 if test "${ac_cv_type_off_t+set}" = set; then
32625   echo $ECHO_N "(cached) $ECHO_C" >&6
32626 else
32627   cat >conftest.$ac_ext <<_ACEOF
32628 /* confdefs.h.  */
32629 _ACEOF
32630 cat confdefs.h >>conftest.$ac_ext
32631 cat >>conftest.$ac_ext <<_ACEOF
32632 /* end confdefs.h.  */
32633 $ac_includes_default
32634 int
32635 main ()
32636 {
32637 if ((off_t *) 0)
32638   return 0;
32639 if (sizeof (off_t))
32640   return 0;
32641   ;
32642   return 0;
32643 }
32644 _ACEOF
32645 rm -f conftest.$ac_objext
32646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32647   (eval $ac_compile) 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } &&
32654          { ac_try='test -z "$ac_c_werror_flag"
32655                          || test ! -s conftest.err'
32656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32657   (eval $ac_try) 2>&5
32658   ac_status=$?
32659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660   (exit $ac_status); }; } &&
32661          { ac_try='test -s conftest.$ac_objext'
32662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32663   (eval $ac_try) 2>&5
32664   ac_status=$?
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); }; }; then
32667   ac_cv_type_off_t=yes
32668 else
32669   echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32671
32672 ac_cv_type_off_t=no
32673 fi
32674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32675 fi
32676 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32677 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32678 if test $ac_cv_type_off_t = yes; then
32679   :
32680 else
32681
32682 cat >>confdefs.h <<_ACEOF
32683 #define off_t long
32684 _ACEOF
32685
32686 fi
32687
32688 echo "$as_me:$LINENO: checking for pid_t" >&5
32689 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32690 if test "${ac_cv_type_pid_t+set}" = set; then
32691   echo $ECHO_N "(cached) $ECHO_C" >&6
32692 else
32693   cat >conftest.$ac_ext <<_ACEOF
32694 /* confdefs.h.  */
32695 _ACEOF
32696 cat confdefs.h >>conftest.$ac_ext
32697 cat >>conftest.$ac_ext <<_ACEOF
32698 /* end confdefs.h.  */
32699 $ac_includes_default
32700 int
32701 main ()
32702 {
32703 if ((pid_t *) 0)
32704   return 0;
32705 if (sizeof (pid_t))
32706   return 0;
32707   ;
32708   return 0;
32709 }
32710 _ACEOF
32711 rm -f conftest.$ac_objext
32712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32713   (eval $ac_compile) 2>conftest.er1
32714   ac_status=$?
32715   grep -v '^ *+' conftest.er1 >conftest.err
32716   rm -f conftest.er1
32717   cat conftest.err >&5
32718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719   (exit $ac_status); } &&
32720          { ac_try='test -z "$ac_c_werror_flag"
32721                          || test ! -s conftest.err'
32722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723   (eval $ac_try) 2>&5
32724   ac_status=$?
32725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726   (exit $ac_status); }; } &&
32727          { ac_try='test -s conftest.$ac_objext'
32728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729   (eval $ac_try) 2>&5
32730   ac_status=$?
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); }; }; then
32733   ac_cv_type_pid_t=yes
32734 else
32735   echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32737
32738 ac_cv_type_pid_t=no
32739 fi
32740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32741 fi
32742 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32743 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32744 if test $ac_cv_type_pid_t = yes; then
32745   :
32746 else
32747
32748 cat >>confdefs.h <<_ACEOF
32749 #define pid_t int
32750 _ACEOF
32751
32752 fi
32753
32754 echo "$as_me:$LINENO: checking for ssize_t" >&5
32755 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32756 if test "${ac_cv_type_ssize_t+set}" = set; then
32757   echo $ECHO_N "(cached) $ECHO_C" >&6
32758 else
32759   cat >conftest.$ac_ext <<_ACEOF
32760 /* confdefs.h.  */
32761 _ACEOF
32762 cat confdefs.h >>conftest.$ac_ext
32763 cat >>conftest.$ac_ext <<_ACEOF
32764 /* end confdefs.h.  */
32765 $ac_includes_default
32766 int
32767 main ()
32768 {
32769 if ((ssize_t *) 0)
32770   return 0;
32771 if (sizeof (ssize_t))
32772   return 0;
32773   ;
32774   return 0;
32775 }
32776 _ACEOF
32777 rm -f conftest.$ac_objext
32778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32779   (eval $ac_compile) 2>conftest.er1
32780   ac_status=$?
32781   grep -v '^ *+' conftest.er1 >conftest.err
32782   rm -f conftest.er1
32783   cat conftest.err >&5
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); } &&
32786          { ac_try='test -z "$ac_c_werror_flag"
32787                          || test ! -s conftest.err'
32788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32789   (eval $ac_try) 2>&5
32790   ac_status=$?
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); }; } &&
32793          { ac_try='test -s conftest.$ac_objext'
32794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32795   (eval $ac_try) 2>&5
32796   ac_status=$?
32797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798   (exit $ac_status); }; }; then
32799   ac_cv_type_ssize_t=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804 ac_cv_type_ssize_t=no
32805 fi
32806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32807 fi
32808 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32809 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32810 if test $ac_cv_type_ssize_t = yes; then
32811   :
32812 else
32813
32814 cat >>confdefs.h <<_ACEOF
32815 #define ssize_t signed int
32816 _ACEOF
32817
32818 fi
32819
32820 echo "$as_me:$LINENO: checking for caddr_t" >&5
32821 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32822 if test "${ac_cv_type_caddr_t+set}" = set; then
32823   echo $ECHO_N "(cached) $ECHO_C" >&6
32824 else
32825   cat >conftest.$ac_ext <<_ACEOF
32826 /* confdefs.h.  */
32827 _ACEOF
32828 cat confdefs.h >>conftest.$ac_ext
32829 cat >>conftest.$ac_ext <<_ACEOF
32830 /* end confdefs.h.  */
32831 $ac_includes_default
32832 int
32833 main ()
32834 {
32835 if ((caddr_t *) 0)
32836   return 0;
32837 if (sizeof (caddr_t))
32838   return 0;
32839   ;
32840   return 0;
32841 }
32842 _ACEOF
32843 rm -f conftest.$ac_objext
32844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32845   (eval $ac_compile) 2>conftest.er1
32846   ac_status=$?
32847   grep -v '^ *+' conftest.er1 >conftest.err
32848   rm -f conftest.er1
32849   cat conftest.err >&5
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); } &&
32852          { ac_try='test -z "$ac_c_werror_flag"
32853                          || test ! -s conftest.err'
32854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855   (eval $ac_try) 2>&5
32856   ac_status=$?
32857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858   (exit $ac_status); }; } &&
32859          { ac_try='test -s conftest.$ac_objext'
32860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32861   (eval $ac_try) 2>&5
32862   ac_status=$?
32863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864   (exit $ac_status); }; }; then
32865   ac_cv_type_caddr_t=yes
32866 else
32867   echo "$as_me: failed program was:" >&5
32868 sed 's/^/| /' conftest.$ac_ext >&5
32869
32870 ac_cv_type_caddr_t=no
32871 fi
32872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32873 fi
32874 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32875 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32876 if test $ac_cv_type_caddr_t = yes; then
32877   :
32878 else
32879
32880 cat >>confdefs.h <<_ACEOF
32881 #define caddr_t char *
32882 _ACEOF
32883
32884 fi
32885
32886 echo "$as_me:$LINENO: checking for size_t" >&5
32887 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32888 if test "${ac_cv_type_size_t+set}" = set; then
32889   echo $ECHO_N "(cached) $ECHO_C" >&6
32890 else
32891   cat >conftest.$ac_ext <<_ACEOF
32892 /* confdefs.h.  */
32893 _ACEOF
32894 cat confdefs.h >>conftest.$ac_ext
32895 cat >>conftest.$ac_ext <<_ACEOF
32896 /* end confdefs.h.  */
32897 $ac_includes_default
32898 int
32899 main ()
32900 {
32901 if ((size_t *) 0)
32902   return 0;
32903 if (sizeof (size_t))
32904   return 0;
32905   ;
32906   return 0;
32907 }
32908 _ACEOF
32909 rm -f conftest.$ac_objext
32910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32911   (eval $ac_compile) 2>conftest.er1
32912   ac_status=$?
32913   grep -v '^ *+' conftest.er1 >conftest.err
32914   rm -f conftest.er1
32915   cat conftest.err >&5
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); } &&
32918          { ac_try='test -z "$ac_c_werror_flag"
32919                          || test ! -s conftest.err'
32920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921   (eval $ac_try) 2>&5
32922   ac_status=$?
32923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924   (exit $ac_status); }; } &&
32925          { ac_try='test -s conftest.$ac_objext'
32926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927   (eval $ac_try) 2>&5
32928   ac_status=$?
32929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930   (exit $ac_status); }; }; then
32931   ac_cv_type_size_t=yes
32932 else
32933   echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.$ac_ext >&5
32935
32936 ac_cv_type_size_t=no
32937 fi
32938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32939 fi
32940 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32941 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32942 if test $ac_cv_type_size_t = yes; then
32943   :
32944 else
32945
32946 cat >>confdefs.h <<_ACEOF
32947 #define size_t unsigned
32948 _ACEOF
32949
32950 fi
32951
32952
32953 echo "$as_me:$LINENO: checking for long long" >&5
32954 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32955 if test "${ac_cv_type_long_long+set}" = set; then
32956   echo $ECHO_N "(cached) $ECHO_C" >&6
32957 else
32958   cat >conftest.$ac_ext <<_ACEOF
32959 /* confdefs.h.  */
32960 _ACEOF
32961 cat confdefs.h >>conftest.$ac_ext
32962 cat >>conftest.$ac_ext <<_ACEOF
32963 /* end confdefs.h.  */
32964 $ac_includes_default
32965 int
32966 main ()
32967 {
32968 if ((long long *) 0)
32969   return 0;
32970 if (sizeof (long long))
32971   return 0;
32972   ;
32973   return 0;
32974 }
32975 _ACEOF
32976 rm -f conftest.$ac_objext
32977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32978   (eval $ac_compile) 2>conftest.er1
32979   ac_status=$?
32980   grep -v '^ *+' conftest.er1 >conftest.err
32981   rm -f conftest.er1
32982   cat conftest.err >&5
32983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984   (exit $ac_status); } &&
32985          { ac_try='test -z "$ac_c_werror_flag"
32986                          || test ! -s conftest.err'
32987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988   (eval $ac_try) 2>&5
32989   ac_status=$?
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); }; } &&
32992          { ac_try='test -s conftest.$ac_objext'
32993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32994   (eval $ac_try) 2>&5
32995   ac_status=$?
32996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997   (exit $ac_status); }; }; then
32998   ac_cv_type_long_long=yes
32999 else
33000   echo "$as_me: failed program was:" >&5
33001 sed 's/^/| /' conftest.$ac_ext >&5
33002
33003 ac_cv_type_long_long=no
33004 fi
33005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33006 fi
33007 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
33008 echo "${ECHO_T}$ac_cv_type_long_long" >&6
33009 if test $ac_cv_type_long_long = yes; then
33010
33011 cat >>confdefs.h <<_ACEOF
33012 #define HAVE_LONG_LONG 1
33013 _ACEOF
33014
33015
33016 fi
33017
33018 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
33019 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
33020 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
33021   echo $ECHO_N "(cached) $ECHO_C" >&6
33022 else
33023   cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029 $ac_includes_default
33030 int
33031 main ()
33032 {
33033 if ((ptrdiff_t *) 0)
33034   return 0;
33035 if (sizeof (ptrdiff_t))
33036   return 0;
33037   ;
33038   return 0;
33039 }
33040 _ACEOF
33041 rm -f conftest.$ac_objext
33042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33043   (eval $ac_compile) 2>conftest.er1
33044   ac_status=$?
33045   grep -v '^ *+' conftest.er1 >conftest.err
33046   rm -f conftest.er1
33047   cat conftest.err >&5
33048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049   (exit $ac_status); } &&
33050          { ac_try='test -z "$ac_c_werror_flag"
33051                          || test ! -s conftest.err'
33052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053   (eval $ac_try) 2>&5
33054   ac_status=$?
33055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056   (exit $ac_status); }; } &&
33057          { ac_try='test -s conftest.$ac_objext'
33058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059   (eval $ac_try) 2>&5
33060   ac_status=$?
33061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062   (exit $ac_status); }; }; then
33063   ac_cv_type_ptrdiff_t=yes
33064 else
33065   echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068 ac_cv_type_ptrdiff_t=no
33069 fi
33070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33071 fi
33072 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
33073 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
33074 if test $ac_cv_type_ptrdiff_t = yes; then
33075
33076 cat >>confdefs.h <<_ACEOF
33077 #define HAVE_PTRDIFF_T 1
33078 _ACEOF
33079
33080
33081 fi
33082
33083
33084 echo "$as_me:$LINENO: checking for socklen_t" >&5
33085 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
33086 if test "${ac_cv_type_socklen_t+set}" = set; then
33087   echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089   cat >conftest.$ac_ext <<_ACEOF
33090 /* confdefs.h.  */
33091 _ACEOF
33092 cat confdefs.h >>conftest.$ac_ext
33093 cat >>conftest.$ac_ext <<_ACEOF
33094 /* end confdefs.h.  */
33095 $ac_includes_default
33096 #ifdef HAVE_SYS_SOCKET_H
33097 #include <sys/socket.h>
33098 #endif
33099
33100
33101 int
33102 main ()
33103 {
33104 if ((socklen_t *) 0)
33105   return 0;
33106 if (sizeof (socklen_t))
33107   return 0;
33108   ;
33109   return 0;
33110 }
33111 _ACEOF
33112 rm -f conftest.$ac_objext
33113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33114   (eval $ac_compile) 2>conftest.er1
33115   ac_status=$?
33116   grep -v '^ *+' conftest.er1 >conftest.err
33117   rm -f conftest.er1
33118   cat conftest.err >&5
33119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33120   (exit $ac_status); } &&
33121          { ac_try='test -z "$ac_c_werror_flag"
33122                          || test ! -s conftest.err'
33123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33124   (eval $ac_try) 2>&5
33125   ac_status=$?
33126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127   (exit $ac_status); }; } &&
33128          { ac_try='test -s conftest.$ac_objext'
33129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33130   (eval $ac_try) 2>&5
33131   ac_status=$?
33132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133   (exit $ac_status); }; }; then
33134   ac_cv_type_socklen_t=yes
33135 else
33136   echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.$ac_ext >&5
33138
33139 ac_cv_type_socklen_t=no
33140 fi
33141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33142 fi
33143 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
33144 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
33145 if test $ac_cv_type_socklen_t = yes; then
33146   :
33147 else
33148
33149 cat >>confdefs.h <<_ACEOF
33150 #define socklen_t int
33151 _ACEOF
33152
33153 fi
33154
33155
33156 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33157 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
33158 if test "${ac_cv_type_signal+set}" = set; then
33159   echo $ECHO_N "(cached) $ECHO_C" >&6
33160 else
33161   cat >conftest.$ac_ext <<_ACEOF
33162 /* confdefs.h.  */
33163 _ACEOF
33164 cat confdefs.h >>conftest.$ac_ext
33165 cat >>conftest.$ac_ext <<_ACEOF
33166 /* end confdefs.h.  */
33167 #include <sys/types.h>
33168 #include <signal.h>
33169 #ifdef signal
33170 # undef signal
33171 #endif
33172 #ifdef __cplusplus
33173 extern "C" void (*signal (int, void (*)(int)))(int);
33174 #else
33175 void (*signal ()) ();
33176 #endif
33177
33178 int
33179 main ()
33180 {
33181 int i;
33182   ;
33183   return 0;
33184 }
33185 _ACEOF
33186 rm -f conftest.$ac_objext
33187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33188   (eval $ac_compile) 2>conftest.er1
33189   ac_status=$?
33190   grep -v '^ *+' conftest.er1 >conftest.err
33191   rm -f conftest.er1
33192   cat conftest.err >&5
33193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194   (exit $ac_status); } &&
33195          { ac_try='test -z "$ac_c_werror_flag"
33196                          || test ! -s conftest.err'
33197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33198   (eval $ac_try) 2>&5
33199   ac_status=$?
33200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201   (exit $ac_status); }; } &&
33202          { ac_try='test -s conftest.$ac_objext'
33203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33204   (eval $ac_try) 2>&5
33205   ac_status=$?
33206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207   (exit $ac_status); }; }; then
33208   ac_cv_type_signal=void
33209 else
33210   echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33212
33213 ac_cv_type_signal=int
33214 fi
33215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33216 fi
33217 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33218 echo "${ECHO_T}$ac_cv_type_signal" >&6
33219
33220 cat >>confdefs.h <<_ACEOF
33221 #define RETSIGTYPE $ac_cv_type_signal
33222 _ACEOF
33223
33224
33225
33226 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
33227 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
33228 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231   cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h.  */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h.  */
33237 $ac_includes_default
33238 #include <signal.h>
33239
33240
33241 int
33242 main ()
33243 {
33244 if ((sig_atomic_t *) 0)
33245   return 0;
33246 if (sizeof (sig_atomic_t))
33247   return 0;
33248   ;
33249   return 0;
33250 }
33251 _ACEOF
33252 rm -f conftest.$ac_objext
33253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33254   (eval $ac_compile) 2>conftest.er1
33255   ac_status=$?
33256   grep -v '^ *+' conftest.er1 >conftest.err
33257   rm -f conftest.er1
33258   cat conftest.err >&5
33259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33260   (exit $ac_status); } &&
33261          { ac_try='test -z "$ac_c_werror_flag"
33262                          || test ! -s conftest.err'
33263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264   (eval $ac_try) 2>&5
33265   ac_status=$?
33266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267   (exit $ac_status); }; } &&
33268          { ac_try='test -s conftest.$ac_objext'
33269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270   (eval $ac_try) 2>&5
33271   ac_status=$?
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); }; }; then
33274   ac_cv_type_sig_atomic_t=yes
33275 else
33276   echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.$ac_ext >&5
33278
33279 ac_cv_type_sig_atomic_t=no
33280 fi
33281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33282 fi
33283 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
33284 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
33285 if test $ac_cv_type_sig_atomic_t = yes; then
33286   :
33287 else
33288
33289 cat >>confdefs.h <<_ACEOF
33290 #define sig_atomic_t int
33291 _ACEOF
33292
33293 fi
33294
33295
33296 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33297 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33298 if test "${ac_cv_type_uid_t+set}" = set; then
33299   echo $ECHO_N "(cached) $ECHO_C" >&6
33300 else
33301   cat >conftest.$ac_ext <<_ACEOF
33302 /* confdefs.h.  */
33303 _ACEOF
33304 cat confdefs.h >>conftest.$ac_ext
33305 cat >>conftest.$ac_ext <<_ACEOF
33306 /* end confdefs.h.  */
33307 #include <sys/types.h>
33308
33309 _ACEOF
33310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33311   $EGREP "uid_t" >/dev/null 2>&1; then
33312   ac_cv_type_uid_t=yes
33313 else
33314   ac_cv_type_uid_t=no
33315 fi
33316 rm -f conftest*
33317
33318 fi
33319 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33320 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33321 if test $ac_cv_type_uid_t = no; then
33322
33323 cat >>confdefs.h <<\_ACEOF
33324 #define uid_t int
33325 _ACEOF
33326
33327
33328 cat >>confdefs.h <<\_ACEOF
33329 #define gid_t int
33330 _ACEOF
33331
33332 fi
33333
33334
33335 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
33336 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
33337 if test "${ac_cv_header_time+set}" = set; then
33338   echo $ECHO_N "(cached) $ECHO_C" >&6
33339 else
33340   cat >conftest.$ac_ext <<_ACEOF
33341 /* confdefs.h.  */
33342 _ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h.  */
33346 #include <sys/types.h>
33347 #include <sys/time.h>
33348 #include <time.h>
33349
33350 int
33351 main ()
33352 {
33353 if ((struct tm *) 0)
33354 return 0;
33355   ;
33356   return 0;
33357 }
33358 _ACEOF
33359 rm -f conftest.$ac_objext
33360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33361   (eval $ac_compile) 2>conftest.er1
33362   ac_status=$?
33363   grep -v '^ *+' conftest.er1 >conftest.err
33364   rm -f conftest.er1
33365   cat conftest.err >&5
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); } &&
33368          { ac_try='test -z "$ac_c_werror_flag"
33369                          || test ! -s conftest.err'
33370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371   (eval $ac_try) 2>&5
33372   ac_status=$?
33373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374   (exit $ac_status); }; } &&
33375          { ac_try='test -s conftest.$ac_objext'
33376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377   (eval $ac_try) 2>&5
33378   ac_status=$?
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); }; }; then
33381   ac_cv_header_time=yes
33382 else
33383   echo "$as_me: failed program was:" >&5
33384 sed 's/^/| /' conftest.$ac_ext >&5
33385
33386 ac_cv_header_time=no
33387 fi
33388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33389 fi
33390 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
33391 echo "${ECHO_T}$ac_cv_header_time" >&6
33392 if test $ac_cv_header_time = yes; then
33393
33394 cat >>confdefs.h <<\_ACEOF
33395 #define TIME_WITH_SYS_TIME 1
33396 _ACEOF
33397
33398 fi
33399
33400 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
33401 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
33402 if test "${ac_cv_struct_tm+set}" = set; then
33403   echo $ECHO_N "(cached) $ECHO_C" >&6
33404 else
33405   cat >conftest.$ac_ext <<_ACEOF
33406 /* confdefs.h.  */
33407 _ACEOF
33408 cat confdefs.h >>conftest.$ac_ext
33409 cat >>conftest.$ac_ext <<_ACEOF
33410 /* end confdefs.h.  */
33411 #include <sys/types.h>
33412 #include <time.h>
33413
33414 int
33415 main ()
33416 {
33417 struct tm *tp; tp->tm_sec;
33418   ;
33419   return 0;
33420 }
33421 _ACEOF
33422 rm -f conftest.$ac_objext
33423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33424   (eval $ac_compile) 2>conftest.er1
33425   ac_status=$?
33426   grep -v '^ *+' conftest.er1 >conftest.err
33427   rm -f conftest.er1
33428   cat conftest.err >&5
33429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430   (exit $ac_status); } &&
33431          { ac_try='test -z "$ac_c_werror_flag"
33432                          || test ! -s conftest.err'
33433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434   (eval $ac_try) 2>&5
33435   ac_status=$?
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); }; } &&
33438          { ac_try='test -s conftest.$ac_objext'
33439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440   (eval $ac_try) 2>&5
33441   ac_status=$?
33442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443   (exit $ac_status); }; }; then
33444   ac_cv_struct_tm=time.h
33445 else
33446   echo "$as_me: failed program was:" >&5
33447 sed 's/^/| /' conftest.$ac_ext >&5
33448
33449 ac_cv_struct_tm=sys/time.h
33450 fi
33451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33452 fi
33453 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33454 echo "${ECHO_T}$ac_cv_struct_tm" >&6
33455 if test $ac_cv_struct_tm = sys/time.h; then
33456
33457 cat >>confdefs.h <<\_ACEOF
33458 #define TM_IN_SYS_TIME 1
33459 _ACEOF
33460
33461 fi
33462
33463 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33464 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
33465 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33466   echo $ECHO_N "(cached) $ECHO_C" >&6
33467 else
33468   cat >conftest.$ac_ext <<_ACEOF
33469 /* confdefs.h.  */
33470 _ACEOF
33471 cat confdefs.h >>conftest.$ac_ext
33472 cat >>conftest.$ac_ext <<_ACEOF
33473 /* end confdefs.h.  */
33474 $ac_includes_default
33475 int
33476 main ()
33477 {
33478 static struct stat ac_aggr;
33479 if (ac_aggr.st_blksize)
33480 return 0;
33481   ;
33482   return 0;
33483 }
33484 _ACEOF
33485 rm -f conftest.$ac_objext
33486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33487   (eval $ac_compile) 2>conftest.er1
33488   ac_status=$?
33489   grep -v '^ *+' conftest.er1 >conftest.err
33490   rm -f conftest.er1
33491   cat conftest.err >&5
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); } &&
33494          { ac_try='test -z "$ac_c_werror_flag"
33495                          || test ! -s conftest.err'
33496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33497   (eval $ac_try) 2>&5
33498   ac_status=$?
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); }; } &&
33501          { ac_try='test -s conftest.$ac_objext'
33502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33503   (eval $ac_try) 2>&5
33504   ac_status=$?
33505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33506   (exit $ac_status); }; }; then
33507   ac_cv_member_struct_stat_st_blksize=yes
33508 else
33509   echo "$as_me: failed program was:" >&5
33510 sed 's/^/| /' conftest.$ac_ext >&5
33511
33512 cat >conftest.$ac_ext <<_ACEOF
33513 /* confdefs.h.  */
33514 _ACEOF
33515 cat confdefs.h >>conftest.$ac_ext
33516 cat >>conftest.$ac_ext <<_ACEOF
33517 /* end confdefs.h.  */
33518 $ac_includes_default
33519 int
33520 main ()
33521 {
33522 static struct stat ac_aggr;
33523 if (sizeof ac_aggr.st_blksize)
33524 return 0;
33525   ;
33526   return 0;
33527 }
33528 _ACEOF
33529 rm -f conftest.$ac_objext
33530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33531   (eval $ac_compile) 2>conftest.er1
33532   ac_status=$?
33533   grep -v '^ *+' conftest.er1 >conftest.err
33534   rm -f conftest.er1
33535   cat conftest.err >&5
33536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33537   (exit $ac_status); } &&
33538          { ac_try='test -z "$ac_c_werror_flag"
33539                          || test ! -s conftest.err'
33540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33541   (eval $ac_try) 2>&5
33542   ac_status=$?
33543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544   (exit $ac_status); }; } &&
33545          { ac_try='test -s conftest.$ac_objext'
33546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33547   (eval $ac_try) 2>&5
33548   ac_status=$?
33549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550   (exit $ac_status); }; }; then
33551   ac_cv_member_struct_stat_st_blksize=yes
33552 else
33553   echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33555
33556 ac_cv_member_struct_stat_st_blksize=no
33557 fi
33558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33559 fi
33560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33561 fi
33562 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33563 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
33564 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33565
33566 cat >>confdefs.h <<_ACEOF
33567 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33568 _ACEOF
33569
33570
33571 fi
33572
33573 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33574 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
33575 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33576   echo $ECHO_N "(cached) $ECHO_C" >&6
33577 else
33578   cat >conftest.$ac_ext <<_ACEOF
33579 /* confdefs.h.  */
33580 _ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h.  */
33584 $ac_includes_default
33585 #include <pwd.h>
33586
33587 int
33588 main ()
33589 {
33590 static struct passwd ac_aggr;
33591 if (ac_aggr.pw_gecos)
33592 return 0;
33593   ;
33594   return 0;
33595 }
33596 _ACEOF
33597 rm -f conftest.$ac_objext
33598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33599   (eval $ac_compile) 2>conftest.er1
33600   ac_status=$?
33601   grep -v '^ *+' conftest.er1 >conftest.err
33602   rm -f conftest.er1
33603   cat conftest.err >&5
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); } &&
33606          { ac_try='test -z "$ac_c_werror_flag"
33607                          || test ! -s conftest.err'
33608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33609   (eval $ac_try) 2>&5
33610   ac_status=$?
33611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33612   (exit $ac_status); }; } &&
33613          { ac_try='test -s conftest.$ac_objext'
33614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615   (eval $ac_try) 2>&5
33616   ac_status=$?
33617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618   (exit $ac_status); }; }; then
33619   ac_cv_member_struct_passwd_pw_gecos=yes
33620 else
33621   echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33623
33624 cat >conftest.$ac_ext <<_ACEOF
33625 /* confdefs.h.  */
33626 _ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h.  */
33630 $ac_includes_default
33631 #include <pwd.h>
33632
33633 int
33634 main ()
33635 {
33636 static struct passwd ac_aggr;
33637 if (sizeof ac_aggr.pw_gecos)
33638 return 0;
33639   ;
33640   return 0;
33641 }
33642 _ACEOF
33643 rm -f conftest.$ac_objext
33644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33645   (eval $ac_compile) 2>conftest.er1
33646   ac_status=$?
33647   grep -v '^ *+' conftest.er1 >conftest.err
33648   rm -f conftest.er1
33649   cat conftest.err >&5
33650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651   (exit $ac_status); } &&
33652          { ac_try='test -z "$ac_c_werror_flag"
33653                          || test ! -s conftest.err'
33654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33655   (eval $ac_try) 2>&5
33656   ac_status=$?
33657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33658   (exit $ac_status); }; } &&
33659          { ac_try='test -s conftest.$ac_objext'
33660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33661   (eval $ac_try) 2>&5
33662   ac_status=$?
33663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33664   (exit $ac_status); }; }; then
33665   ac_cv_member_struct_passwd_pw_gecos=yes
33666 else
33667   echo "$as_me: failed program was:" >&5
33668 sed 's/^/| /' conftest.$ac_ext >&5
33669
33670 ac_cv_member_struct_passwd_pw_gecos=no
33671 fi
33672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33673 fi
33674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33675 fi
33676 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33677 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
33678 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33679
33680 cat >>confdefs.h <<_ACEOF
33681 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33682 _ACEOF
33683
33684
33685 fi
33686
33687 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33688 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
33689 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33690   echo $ECHO_N "(cached) $ECHO_C" >&6
33691 else
33692   cat >conftest.$ac_ext <<_ACEOF
33693 /* confdefs.h.  */
33694 _ACEOF
33695 cat confdefs.h >>conftest.$ac_ext
33696 cat >>conftest.$ac_ext <<_ACEOF
33697 /* end confdefs.h.  */
33698 $ac_includes_default
33699 #include <pwd.h>
33700
33701 int
33702 main ()
33703 {
33704 static struct passwd ac_aggr;
33705 if (ac_aggr.pw_passwd)
33706 return 0;
33707   ;
33708   return 0;
33709 }
33710 _ACEOF
33711 rm -f conftest.$ac_objext
33712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33713   (eval $ac_compile) 2>conftest.er1
33714   ac_status=$?
33715   grep -v '^ *+' conftest.er1 >conftest.err
33716   rm -f conftest.er1
33717   cat conftest.err >&5
33718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719   (exit $ac_status); } &&
33720          { ac_try='test -z "$ac_c_werror_flag"
33721                          || test ! -s conftest.err'
33722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723   (eval $ac_try) 2>&5
33724   ac_status=$?
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); }; } &&
33727          { ac_try='test -s conftest.$ac_objext'
33728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33729   (eval $ac_try) 2>&5
33730   ac_status=$?
33731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33732   (exit $ac_status); }; }; then
33733   ac_cv_member_struct_passwd_pw_passwd=yes
33734 else
33735   echo "$as_me: failed program was:" >&5
33736 sed 's/^/| /' conftest.$ac_ext >&5
33737
33738 cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h.  */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h.  */
33744 $ac_includes_default
33745 #include <pwd.h>
33746
33747 int
33748 main ()
33749 {
33750 static struct passwd ac_aggr;
33751 if (sizeof ac_aggr.pw_passwd)
33752 return 0;
33753   ;
33754   return 0;
33755 }
33756 _ACEOF
33757 rm -f conftest.$ac_objext
33758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33759   (eval $ac_compile) 2>conftest.er1
33760   ac_status=$?
33761   grep -v '^ *+' conftest.er1 >conftest.err
33762   rm -f conftest.er1
33763   cat conftest.err >&5
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); } &&
33766          { ac_try='test -z "$ac_c_werror_flag"
33767                          || test ! -s conftest.err'
33768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33769   (eval $ac_try) 2>&5
33770   ac_status=$?
33771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772   (exit $ac_status); }; } &&
33773          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33779   ac_cv_member_struct_passwd_pw_passwd=yes
33780 else
33781   echo "$as_me: failed program was:" >&5
33782 sed 's/^/| /' conftest.$ac_ext >&5
33783
33784 ac_cv_member_struct_passwd_pw_passwd=no
33785 fi
33786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33787 fi
33788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33789 fi
33790 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33791 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33792 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33793
33794 cat >>confdefs.h <<_ACEOF
33795 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33796 _ACEOF
33797
33798
33799 fi
33800
33801
33802 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33803 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33804 if test "${ol_cv_c_upper_lower+set}" = set; then
33805   echo $ECHO_N "(cached) $ECHO_C" >&6
33806 else
33807
33808         if test "$cross_compiling" = yes; then
33809   ol_cv_c_upper_lower=safe
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
33818 #include <ctype.h>
33819 main()
33820 {
33821         if ('C' == toupper('C'))
33822                 exit(0);
33823         else
33824                 exit(1);
33825 }
33826 _ACEOF
33827 rm -f conftest$ac_exeext
33828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33829   (eval $ac_link) 2>&5
33830   ac_status=$?
33831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33834   (eval $ac_try) 2>&5
33835   ac_status=$?
33836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33837   (exit $ac_status); }; }; then
33838   ol_cv_c_upper_lower=no
33839 else
33840   echo "$as_me: program exited with status $ac_status" >&5
33841 echo "$as_me: failed program was:" >&5
33842 sed 's/^/| /' conftest.$ac_ext >&5
33843
33844 ( exit $ac_status )
33845 ol_cv_c_upper_lower=yes
33846 fi
33847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33848 fi
33849 fi
33850 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33851 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33852 if test $ol_cv_c_upper_lower != no ; then
33853
33854 cat >>confdefs.h <<\_ACEOF
33855 #define C_UPPER_LOWER 1
33856 _ACEOF
33857
33858 fi
33859
33860 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33861 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33862 if test "${ac_cv_c_const+set}" = set; then
33863   echo $ECHO_N "(cached) $ECHO_C" >&6
33864 else
33865   cat >conftest.$ac_ext <<_ACEOF
33866 /* confdefs.h.  */
33867 _ACEOF
33868 cat confdefs.h >>conftest.$ac_ext
33869 cat >>conftest.$ac_ext <<_ACEOF
33870 /* end confdefs.h.  */
33871
33872 int
33873 main ()
33874 {
33875 /* FIXME: Include the comments suggested by Paul. */
33876 #ifndef __cplusplus
33877   /* Ultrix mips cc rejects this.  */
33878   typedef int charset[2];
33879   const charset x;
33880   /* SunOS 4.1.1 cc rejects this.  */
33881   char const *const *ccp;
33882   char **p;
33883   /* NEC SVR4.0.2 mips cc rejects this.  */
33884   struct point {int x, y;};
33885   static struct point const zero = {0,0};
33886   /* AIX XL C 1.02.0.0 rejects this.
33887      It does not let you subtract one const X* pointer from another in
33888      an arm of an if-expression whose if-part is not a constant
33889      expression */
33890   const char *g = "string";
33891   ccp = &g + (g ? g-g : 0);
33892   /* HPUX 7.0 cc rejects these. */
33893   ++ccp;
33894   p = (char**) ccp;
33895   ccp = (char const *const *) p;
33896   { /* SCO 3.2v4 cc rejects this.  */
33897     char *t;
33898     char const *s = 0 ? (char *) 0 : (char const *) 0;
33899
33900     *t++ = 0;
33901   }
33902   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33903     int x[] = {25, 17};
33904     const int *foo = &x[0];
33905     ++foo;
33906   }
33907   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33908     typedef const int *iptr;
33909     iptr p = 0;
33910     ++p;
33911   }
33912   { /* AIX XL C 1.02.0.0 rejects this saying
33913        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33914     struct s { int j; const int *ap[3]; };
33915     struct s *b; b->j = 5;
33916   }
33917   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33918     const int foo = 10;
33919   }
33920 #endif
33921
33922   ;
33923   return 0;
33924 }
33925 _ACEOF
33926 rm -f conftest.$ac_objext
33927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33928   (eval $ac_compile) 2>conftest.er1
33929   ac_status=$?
33930   grep -v '^ *+' conftest.er1 >conftest.err
33931   rm -f conftest.er1
33932   cat conftest.err >&5
33933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934   (exit $ac_status); } &&
33935          { ac_try='test -z "$ac_c_werror_flag"
33936                          || test ! -s conftest.err'
33937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938   (eval $ac_try) 2>&5
33939   ac_status=$?
33940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941   (exit $ac_status); }; } &&
33942          { ac_try='test -s conftest.$ac_objext'
33943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944   (eval $ac_try) 2>&5
33945   ac_status=$?
33946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947   (exit $ac_status); }; }; then
33948   ac_cv_c_const=yes
33949 else
33950   echo "$as_me: failed program was:" >&5
33951 sed 's/^/| /' conftest.$ac_ext >&5
33952
33953 ac_cv_c_const=no
33954 fi
33955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33956 fi
33957 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33958 echo "${ECHO_T}$ac_cv_c_const" >&6
33959 if test $ac_cv_c_const = no; then
33960
33961 cat >>confdefs.h <<\_ACEOF
33962 #define const
33963 _ACEOF
33964
33965 fi
33966
33967 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33968 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33969 if test "${ol_cv_c_volatile+set}" = set; then
33970   echo $ECHO_N "(cached) $ECHO_C" >&6
33971 else
33972   cat >conftest.$ac_ext <<_ACEOF
33973 /* confdefs.h.  */
33974 _ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h.  */
33978 int x, y, z;
33979 int
33980 main ()
33981 {
33982 volatile int a; int * volatile b = x ? &y : &z;
33983       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33984       *b = 0;
33985   ;
33986   return 0;
33987 }
33988 _ACEOF
33989 rm -f conftest.$ac_objext
33990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33991   (eval $ac_compile) 2>conftest.er1
33992   ac_status=$?
33993   grep -v '^ *+' conftest.er1 >conftest.err
33994   rm -f conftest.er1
33995   cat conftest.err >&5
33996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33997   (exit $ac_status); } &&
33998          { ac_try='test -z "$ac_c_werror_flag"
33999                          || test ! -s conftest.err'
34000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34001   (eval $ac_try) 2>&5
34002   ac_status=$?
34003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34004   (exit $ac_status); }; } &&
34005          { ac_try='test -s conftest.$ac_objext'
34006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34007   (eval $ac_try) 2>&5
34008   ac_status=$?
34009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34010   (exit $ac_status); }; }; then
34011   ol_cv_c_volatile=yes
34012 else
34013   echo "$as_me: failed program was:" >&5
34014 sed 's/^/| /' conftest.$ac_ext >&5
34015
34016 ol_cv_c_volatile=no
34017 fi
34018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34019 fi
34020 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
34021 echo "${ECHO_T}$ol_cv_c_volatile" >&6
34022   if test $ol_cv_c_volatile = yes; then
34023     :
34024   else
34025
34026 cat >>confdefs.h <<\_ACEOF
34027 #define volatile
34028 _ACEOF
34029
34030   fi
34031
34032
34033 if test $cross_compiling = yes ; then
34034         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
34035 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
34036
34037 cat >>confdefs.h <<\_ACEOF
34038 #define CROSS_COMPILING 1
34039 _ACEOF
34040
34041 else
34042         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34043 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
34044 if test "${ac_cv_c_bigendian+set}" = set; then
34045   echo $ECHO_N "(cached) $ECHO_C" >&6
34046 else
34047   # See if sys/param.h defines the BYTE_ORDER macro.
34048 cat >conftest.$ac_ext <<_ACEOF
34049 /* confdefs.h.  */
34050 _ACEOF
34051 cat confdefs.h >>conftest.$ac_ext
34052 cat >>conftest.$ac_ext <<_ACEOF
34053 /* end confdefs.h.  */
34054 #include <sys/types.h>
34055 #include <sys/param.h>
34056
34057 int
34058 main ()
34059 {
34060 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
34061  bogus endian macros
34062 #endif
34063
34064   ;
34065   return 0;
34066 }
34067 _ACEOF
34068 rm -f conftest.$ac_objext
34069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34070   (eval $ac_compile) 2>conftest.er1
34071   ac_status=$?
34072   grep -v '^ *+' conftest.er1 >conftest.err
34073   rm -f conftest.er1
34074   cat conftest.err >&5
34075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076   (exit $ac_status); } &&
34077          { ac_try='test -z "$ac_c_werror_flag"
34078                          || test ! -s conftest.err'
34079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34080   (eval $ac_try) 2>&5
34081   ac_status=$?
34082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34083   (exit $ac_status); }; } &&
34084          { ac_try='test -s conftest.$ac_objext'
34085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086   (eval $ac_try) 2>&5
34087   ac_status=$?
34088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089   (exit $ac_status); }; }; then
34090   # It does; now see whether it defined to BIG_ENDIAN or not.
34091 cat >conftest.$ac_ext <<_ACEOF
34092 /* confdefs.h.  */
34093 _ACEOF
34094 cat confdefs.h >>conftest.$ac_ext
34095 cat >>conftest.$ac_ext <<_ACEOF
34096 /* end confdefs.h.  */
34097 #include <sys/types.h>
34098 #include <sys/param.h>
34099
34100 int
34101 main ()
34102 {
34103 #if BYTE_ORDER != BIG_ENDIAN
34104  not big endian
34105 #endif
34106
34107   ;
34108   return 0;
34109 }
34110 _ACEOF
34111 rm -f conftest.$ac_objext
34112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34113   (eval $ac_compile) 2>conftest.er1
34114   ac_status=$?
34115   grep -v '^ *+' conftest.er1 >conftest.err
34116   rm -f conftest.er1
34117   cat conftest.err >&5
34118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34119   (exit $ac_status); } &&
34120          { ac_try='test -z "$ac_c_werror_flag"
34121                          || test ! -s conftest.err'
34122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34123   (eval $ac_try) 2>&5
34124   ac_status=$?
34125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126   (exit $ac_status); }; } &&
34127          { ac_try='test -s conftest.$ac_objext'
34128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34129   (eval $ac_try) 2>&5
34130   ac_status=$?
34131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34132   (exit $ac_status); }; }; then
34133   ac_cv_c_bigendian=yes
34134 else
34135   echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34137
34138 ac_cv_c_bigendian=no
34139 fi
34140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34141 else
34142   echo "$as_me: failed program was:" >&5
34143 sed 's/^/| /' conftest.$ac_ext >&5
34144
34145 # It does not; compile a test program.
34146 if test "$cross_compiling" = yes; then
34147   # try to guess the endianness by grepping values into an object file
34148   ac_cv_c_bigendian=unknown
34149   cat >conftest.$ac_ext <<_ACEOF
34150 /* confdefs.h.  */
34151 _ACEOF
34152 cat confdefs.h >>conftest.$ac_ext
34153 cat >>conftest.$ac_ext <<_ACEOF
34154 /* end confdefs.h.  */
34155 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34156 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34157 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34158 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34159 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34160 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34161 int
34162 main ()
34163 {
34164  _ascii (); _ebcdic ();
34165   ;
34166   return 0;
34167 }
34168 _ACEOF
34169 rm -f conftest.$ac_objext
34170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34171   (eval $ac_compile) 2>conftest.er1
34172   ac_status=$?
34173   grep -v '^ *+' conftest.er1 >conftest.err
34174   rm -f conftest.er1
34175   cat conftest.err >&5
34176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34177   (exit $ac_status); } &&
34178          { ac_try='test -z "$ac_c_werror_flag"
34179                          || test ! -s conftest.err'
34180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34181   (eval $ac_try) 2>&5
34182   ac_status=$?
34183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184   (exit $ac_status); }; } &&
34185          { ac_try='test -s conftest.$ac_objext'
34186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34187   (eval $ac_try) 2>&5
34188   ac_status=$?
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); }; }; then
34191   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34192   ac_cv_c_bigendian=yes
34193 fi
34194 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34195   if test "$ac_cv_c_bigendian" = unknown; then
34196     ac_cv_c_bigendian=no
34197   else
34198     # finding both strings is unlikely to happen, but who knows?
34199     ac_cv_c_bigendian=unknown
34200   fi
34201 fi
34202 else
34203   echo "$as_me: failed program was:" >&5
34204 sed 's/^/| /' conftest.$ac_ext >&5
34205
34206 fi
34207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34208 else
34209   cat >conftest.$ac_ext <<_ACEOF
34210 /* confdefs.h.  */
34211 _ACEOF
34212 cat confdefs.h >>conftest.$ac_ext
34213 cat >>conftest.$ac_ext <<_ACEOF
34214 /* end confdefs.h.  */
34215 int
34216 main ()
34217 {
34218   /* Are we little or big endian?  From Harbison&Steele.  */
34219   union
34220   {
34221     long l;
34222     char c[sizeof (long)];
34223   } u;
34224   u.l = 1;
34225   exit (u.c[sizeof (long) - 1] == 1);
34226 }
34227 _ACEOF
34228 rm -f conftest$ac_exeext
34229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34230   (eval $ac_link) 2>&5
34231   ac_status=$?
34232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235   (eval $ac_try) 2>&5
34236   ac_status=$?
34237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238   (exit $ac_status); }; }; then
34239   ac_cv_c_bigendian=no
34240 else
34241   echo "$as_me: program exited with status $ac_status" >&5
34242 echo "$as_me: failed program was:" >&5
34243 sed 's/^/| /' conftest.$ac_ext >&5
34244
34245 ( exit $ac_status )
34246 ac_cv_c_bigendian=yes
34247 fi
34248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34249 fi
34250 fi
34251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34252 fi
34253 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34254 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
34255 case $ac_cv_c_bigendian in
34256   yes)
34257
34258 cat >>confdefs.h <<\_ACEOF
34259 #define WORDS_BIGENDIAN 1
34260 _ACEOF
34261  ;;
34262   no)
34263      ;;
34264   *)
34265     { { echo "$as_me:$LINENO: error: unknown endianness
34266 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34267 echo "$as_me: error: unknown endianness
34268 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34269    { (exit 1); exit 1; }; } ;;
34270 esac
34271
34272 fi
34273
34274 echo "$as_me:$LINENO: checking for short" >&5
34275 echo $ECHO_N "checking for short... $ECHO_C" >&6
34276 if test "${ac_cv_type_short+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 $ac_includes_default
34286 int
34287 main ()
34288 {
34289 if ((short *) 0)
34290   return 0;
34291 if (sizeof (short))
34292   return 0;
34293   ;
34294   return 0;
34295 }
34296 _ACEOF
34297 rm -f conftest.$ac_objext
34298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34299   (eval $ac_compile) 2>conftest.er1
34300   ac_status=$?
34301   grep -v '^ *+' conftest.er1 >conftest.err
34302   rm -f conftest.er1
34303   cat conftest.err >&5
34304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305   (exit $ac_status); } &&
34306          { ac_try='test -z "$ac_c_werror_flag"
34307                          || test ! -s conftest.err'
34308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34309   (eval $ac_try) 2>&5
34310   ac_status=$?
34311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34312   (exit $ac_status); }; } &&
34313          { ac_try='test -s conftest.$ac_objext'
34314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34315   (eval $ac_try) 2>&5
34316   ac_status=$?
34317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34318   (exit $ac_status); }; }; then
34319   ac_cv_type_short=yes
34320 else
34321   echo "$as_me: failed program was:" >&5
34322 sed 's/^/| /' conftest.$ac_ext >&5
34323
34324 ac_cv_type_short=no
34325 fi
34326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34327 fi
34328 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
34329 echo "${ECHO_T}$ac_cv_type_short" >&6
34330
34331 echo "$as_me:$LINENO: checking size of short" >&5
34332 echo $ECHO_N "checking size of short... $ECHO_C" >&6
34333 if test "${ac_cv_sizeof_short+set}" = set; then
34334   echo $ECHO_N "(cached) $ECHO_C" >&6
34335 else
34336   if test "$ac_cv_type_short" = yes; then
34337   # The cast to unsigned long works around a bug in the HP C Compiler
34338   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34339   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34340   # This bug is HP SR number 8606223364.
34341   if test "$cross_compiling" = yes; then
34342   # Depending upon the size, compute the lo and hi bounds.
34343 cat >conftest.$ac_ext <<_ACEOF
34344 /* confdefs.h.  */
34345 _ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h.  */
34349 $ac_includes_default
34350 int
34351 main ()
34352 {
34353 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
34354 test_array [0] = 0
34355
34356   ;
34357   return 0;
34358 }
34359 _ACEOF
34360 rm -f conftest.$ac_objext
34361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34362   (eval $ac_compile) 2>conftest.er1
34363   ac_status=$?
34364   grep -v '^ *+' conftest.er1 >conftest.err
34365   rm -f conftest.er1
34366   cat conftest.err >&5
34367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34368   (exit $ac_status); } &&
34369          { ac_try='test -z "$ac_c_werror_flag"
34370                          || test ! -s conftest.err'
34371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372   (eval $ac_try) 2>&5
34373   ac_status=$?
34374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375   (exit $ac_status); }; } &&
34376          { ac_try='test -s conftest.$ac_objext'
34377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378   (eval $ac_try) 2>&5
34379   ac_status=$?
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); }; }; then
34382   ac_lo=0 ac_mid=0
34383   while :; do
34384     cat >conftest.$ac_ext <<_ACEOF
34385 /* confdefs.h.  */
34386 _ACEOF
34387 cat confdefs.h >>conftest.$ac_ext
34388 cat >>conftest.$ac_ext <<_ACEOF
34389 /* end confdefs.h.  */
34390 $ac_includes_default
34391 int
34392 main ()
34393 {
34394 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34395 test_array [0] = 0
34396
34397   ;
34398   return 0;
34399 }
34400 _ACEOF
34401 rm -f conftest.$ac_objext
34402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34403   (eval $ac_compile) 2>conftest.er1
34404   ac_status=$?
34405   grep -v '^ *+' conftest.er1 >conftest.err
34406   rm -f conftest.er1
34407   cat conftest.err >&5
34408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409   (exit $ac_status); } &&
34410          { ac_try='test -z "$ac_c_werror_flag"
34411                          || test ! -s conftest.err'
34412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413   (eval $ac_try) 2>&5
34414   ac_status=$?
34415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416   (exit $ac_status); }; } &&
34417          { ac_try='test -s conftest.$ac_objext'
34418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419   (eval $ac_try) 2>&5
34420   ac_status=$?
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); }; }; then
34423   ac_hi=$ac_mid; break
34424 else
34425   echo "$as_me: failed program was:" >&5
34426 sed 's/^/| /' conftest.$ac_ext >&5
34427
34428 ac_lo=`expr $ac_mid + 1`
34429                     if test $ac_lo -le $ac_mid; then
34430                       ac_lo= ac_hi=
34431                       break
34432                     fi
34433                     ac_mid=`expr 2 '*' $ac_mid + 1`
34434 fi
34435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34436   done
34437 else
34438   echo "$as_me: failed program was:" >&5
34439 sed 's/^/| /' conftest.$ac_ext >&5
34440
34441 cat >conftest.$ac_ext <<_ACEOF
34442 /* confdefs.h.  */
34443 _ACEOF
34444 cat confdefs.h >>conftest.$ac_ext
34445 cat >>conftest.$ac_ext <<_ACEOF
34446 /* end confdefs.h.  */
34447 $ac_includes_default
34448 int
34449 main ()
34450 {
34451 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
34452 test_array [0] = 0
34453
34454   ;
34455   return 0;
34456 }
34457 _ACEOF
34458 rm -f conftest.$ac_objext
34459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34460   (eval $ac_compile) 2>conftest.er1
34461   ac_status=$?
34462   grep -v '^ *+' conftest.er1 >conftest.err
34463   rm -f conftest.er1
34464   cat conftest.err >&5
34465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466   (exit $ac_status); } &&
34467          { ac_try='test -z "$ac_c_werror_flag"
34468                          || test ! -s conftest.err'
34469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470   (eval $ac_try) 2>&5
34471   ac_status=$?
34472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473   (exit $ac_status); }; } &&
34474          { ac_try='test -s conftest.$ac_objext'
34475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476   (eval $ac_try) 2>&5
34477   ac_status=$?
34478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479   (exit $ac_status); }; }; then
34480   ac_hi=-1 ac_mid=-1
34481   while :; do
34482     cat >conftest.$ac_ext <<_ACEOF
34483 /* confdefs.h.  */
34484 _ACEOF
34485 cat confdefs.h >>conftest.$ac_ext
34486 cat >>conftest.$ac_ext <<_ACEOF
34487 /* end confdefs.h.  */
34488 $ac_includes_default
34489 int
34490 main ()
34491 {
34492 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
34493 test_array [0] = 0
34494
34495   ;
34496   return 0;
34497 }
34498 _ACEOF
34499 rm -f conftest.$ac_objext
34500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34501   (eval $ac_compile) 2>conftest.er1
34502   ac_status=$?
34503   grep -v '^ *+' conftest.er1 >conftest.err
34504   rm -f conftest.er1
34505   cat conftest.err >&5
34506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507   (exit $ac_status); } &&
34508          { ac_try='test -z "$ac_c_werror_flag"
34509                          || test ! -s conftest.err'
34510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34511   (eval $ac_try) 2>&5
34512   ac_status=$?
34513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514   (exit $ac_status); }; } &&
34515          { ac_try='test -s conftest.$ac_objext'
34516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517   (eval $ac_try) 2>&5
34518   ac_status=$?
34519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520   (exit $ac_status); }; }; then
34521   ac_lo=$ac_mid; break
34522 else
34523   echo "$as_me: failed program was:" >&5
34524 sed 's/^/| /' conftest.$ac_ext >&5
34525
34526 ac_hi=`expr '(' $ac_mid ')' - 1`
34527                        if test $ac_mid -le $ac_hi; then
34528                          ac_lo= ac_hi=
34529                          break
34530                        fi
34531                        ac_mid=`expr 2 '*' $ac_mid`
34532 fi
34533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34534   done
34535 else
34536   echo "$as_me: failed program was:" >&5
34537 sed 's/^/| /' conftest.$ac_ext >&5
34538
34539 ac_lo= ac_hi=
34540 fi
34541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34542 fi
34543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34544 # Binary search between lo and hi bounds.
34545 while test "x$ac_lo" != "x$ac_hi"; do
34546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34547   cat >conftest.$ac_ext <<_ACEOF
34548 /* confdefs.h.  */
34549 _ACEOF
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h.  */
34553 $ac_includes_default
34554 int
34555 main ()
34556 {
34557 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34558 test_array [0] = 0
34559
34560   ;
34561   return 0;
34562 }
34563 _ACEOF
34564 rm -f conftest.$ac_objext
34565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34566   (eval $ac_compile) 2>conftest.er1
34567   ac_status=$?
34568   grep -v '^ *+' conftest.er1 >conftest.err
34569   rm -f conftest.er1
34570   cat conftest.err >&5
34571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572   (exit $ac_status); } &&
34573          { ac_try='test -z "$ac_c_werror_flag"
34574                          || test ! -s conftest.err'
34575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576   (eval $ac_try) 2>&5
34577   ac_status=$?
34578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579   (exit $ac_status); }; } &&
34580          { ac_try='test -s conftest.$ac_objext'
34581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582   (eval $ac_try) 2>&5
34583   ac_status=$?
34584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585   (exit $ac_status); }; }; then
34586   ac_hi=$ac_mid
34587 else
34588   echo "$as_me: failed program was:" >&5
34589 sed 's/^/| /' conftest.$ac_ext >&5
34590
34591 ac_lo=`expr '(' $ac_mid ')' + 1`
34592 fi
34593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34594 done
34595 case $ac_lo in
34596 ?*) ac_cv_sizeof_short=$ac_lo;;
34597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34598 See \`config.log' for more details." >&5
34599 echo "$as_me: error: cannot compute sizeof (short), 77
34600 See \`config.log' for more details." >&2;}
34601    { (exit 1); exit 1; }; } ;;
34602 esac
34603 else
34604   if test "$cross_compiling" = yes; then
34605   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34606 See \`config.log' for more details." >&5
34607 echo "$as_me: error: cannot run test program while cross compiling
34608 See \`config.log' for more details." >&2;}
34609    { (exit 1); exit 1; }; }
34610 else
34611   cat >conftest.$ac_ext <<_ACEOF
34612 /* confdefs.h.  */
34613 _ACEOF
34614 cat confdefs.h >>conftest.$ac_ext
34615 cat >>conftest.$ac_ext <<_ACEOF
34616 /* end confdefs.h.  */
34617 $ac_includes_default
34618 long longval () { return (long) (sizeof (short)); }
34619 unsigned long ulongval () { return (long) (sizeof (short)); }
34620 #include <stdio.h>
34621 #include <stdlib.h>
34622 int
34623 main ()
34624 {
34625
34626   FILE *f = fopen ("conftest.val", "w");
34627   if (! f)
34628     exit (1);
34629   if (((long) (sizeof (short))) < 0)
34630     {
34631       long i = longval ();
34632       if (i != ((long) (sizeof (short))))
34633         exit (1);
34634       fprintf (f, "%ld\n", i);
34635     }
34636   else
34637     {
34638       unsigned long i = ulongval ();
34639       if (i != ((long) (sizeof (short))))
34640         exit (1);
34641       fprintf (f, "%lu\n", i);
34642     }
34643   exit (ferror (f) || fclose (f) != 0);
34644
34645   ;
34646   return 0;
34647 }
34648 _ACEOF
34649 rm -f conftest$ac_exeext
34650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34651   (eval $ac_link) 2>&5
34652   ac_status=$?
34653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656   (eval $ac_try) 2>&5
34657   ac_status=$?
34658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659   (exit $ac_status); }; }; then
34660   ac_cv_sizeof_short=`cat conftest.val`
34661 else
34662   echo "$as_me: program exited with status $ac_status" >&5
34663 echo "$as_me: failed program was:" >&5
34664 sed 's/^/| /' conftest.$ac_ext >&5
34665
34666 ( exit $ac_status )
34667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34668 See \`config.log' for more details." >&5
34669 echo "$as_me: error: cannot compute sizeof (short), 77
34670 See \`config.log' for more details." >&2;}
34671    { (exit 1); exit 1; }; }
34672 fi
34673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34674 fi
34675 fi
34676 rm -f conftest.val
34677 else
34678   ac_cv_sizeof_short=0
34679 fi
34680 fi
34681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34682 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
34683 cat >>confdefs.h <<_ACEOF
34684 #define SIZEOF_SHORT $ac_cv_sizeof_short
34685 _ACEOF
34686
34687
34688 echo "$as_me:$LINENO: checking for int" >&5
34689 echo $ECHO_N "checking for int... $ECHO_C" >&6
34690 if test "${ac_cv_type_int+set}" = set; then
34691   echo $ECHO_N "(cached) $ECHO_C" >&6
34692 else
34693   cat >conftest.$ac_ext <<_ACEOF
34694 /* confdefs.h.  */
34695 _ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h.  */
34699 $ac_includes_default
34700 int
34701 main ()
34702 {
34703 if ((int *) 0)
34704   return 0;
34705 if (sizeof (int))
34706   return 0;
34707   ;
34708   return 0;
34709 }
34710 _ACEOF
34711 rm -f conftest.$ac_objext
34712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34713   (eval $ac_compile) 2>conftest.er1
34714   ac_status=$?
34715   grep -v '^ *+' conftest.er1 >conftest.err
34716   rm -f conftest.er1
34717   cat conftest.err >&5
34718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719   (exit $ac_status); } &&
34720          { ac_try='test -z "$ac_c_werror_flag"
34721                          || test ! -s conftest.err'
34722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34723   (eval $ac_try) 2>&5
34724   ac_status=$?
34725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34726   (exit $ac_status); }; } &&
34727          { ac_try='test -s conftest.$ac_objext'
34728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729   (eval $ac_try) 2>&5
34730   ac_status=$?
34731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732   (exit $ac_status); }; }; then
34733   ac_cv_type_int=yes
34734 else
34735   echo "$as_me: failed program was:" >&5
34736 sed 's/^/| /' conftest.$ac_ext >&5
34737
34738 ac_cv_type_int=no
34739 fi
34740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34741 fi
34742 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34743 echo "${ECHO_T}$ac_cv_type_int" >&6
34744
34745 echo "$as_me:$LINENO: checking size of int" >&5
34746 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34747 if test "${ac_cv_sizeof_int+set}" = set; then
34748   echo $ECHO_N "(cached) $ECHO_C" >&6
34749 else
34750   if test "$ac_cv_type_int" = yes; then
34751   # The cast to unsigned long works around a bug in the HP C Compiler
34752   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34753   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34754   # This bug is HP SR number 8606223364.
34755   if test "$cross_compiling" = yes; then
34756   # Depending upon the size, compute the lo and hi bounds.
34757 cat >conftest.$ac_ext <<_ACEOF
34758 /* confdefs.h.  */
34759 _ACEOF
34760 cat confdefs.h >>conftest.$ac_ext
34761 cat >>conftest.$ac_ext <<_ACEOF
34762 /* end confdefs.h.  */
34763 $ac_includes_default
34764 int
34765 main ()
34766 {
34767 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34768 test_array [0] = 0
34769
34770   ;
34771   return 0;
34772 }
34773 _ACEOF
34774 rm -f conftest.$ac_objext
34775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34776   (eval $ac_compile) 2>conftest.er1
34777   ac_status=$?
34778   grep -v '^ *+' conftest.er1 >conftest.err
34779   rm -f conftest.er1
34780   cat conftest.err >&5
34781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782   (exit $ac_status); } &&
34783          { ac_try='test -z "$ac_c_werror_flag"
34784                          || test ! -s conftest.err'
34785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34786   (eval $ac_try) 2>&5
34787   ac_status=$?
34788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789   (exit $ac_status); }; } &&
34790          { ac_try='test -s conftest.$ac_objext'
34791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34792   (eval $ac_try) 2>&5
34793   ac_status=$?
34794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795   (exit $ac_status); }; }; then
34796   ac_lo=0 ac_mid=0
34797   while :; do
34798     cat >conftest.$ac_ext <<_ACEOF
34799 /* confdefs.h.  */
34800 _ACEOF
34801 cat confdefs.h >>conftest.$ac_ext
34802 cat >>conftest.$ac_ext <<_ACEOF
34803 /* end confdefs.h.  */
34804 $ac_includes_default
34805 int
34806 main ()
34807 {
34808 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34809 test_array [0] = 0
34810
34811   ;
34812   return 0;
34813 }
34814 _ACEOF
34815 rm -f conftest.$ac_objext
34816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34817   (eval $ac_compile) 2>conftest.er1
34818   ac_status=$?
34819   grep -v '^ *+' conftest.er1 >conftest.err
34820   rm -f conftest.er1
34821   cat conftest.err >&5
34822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34823   (exit $ac_status); } &&
34824          { ac_try='test -z "$ac_c_werror_flag"
34825                          || test ! -s conftest.err'
34826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34827   (eval $ac_try) 2>&5
34828   ac_status=$?
34829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34830   (exit $ac_status); }; } &&
34831          { ac_try='test -s conftest.$ac_objext'
34832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34833   (eval $ac_try) 2>&5
34834   ac_status=$?
34835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34836   (exit $ac_status); }; }; then
34837   ac_hi=$ac_mid; break
34838 else
34839   echo "$as_me: failed program was:" >&5
34840 sed 's/^/| /' conftest.$ac_ext >&5
34841
34842 ac_lo=`expr $ac_mid + 1`
34843                     if test $ac_lo -le $ac_mid; then
34844                       ac_lo= ac_hi=
34845                       break
34846                     fi
34847                     ac_mid=`expr 2 '*' $ac_mid + 1`
34848 fi
34849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34850   done
34851 else
34852   echo "$as_me: failed program was:" >&5
34853 sed 's/^/| /' conftest.$ac_ext >&5
34854
34855 cat >conftest.$ac_ext <<_ACEOF
34856 /* confdefs.h.  */
34857 _ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h.  */
34861 $ac_includes_default
34862 int
34863 main ()
34864 {
34865 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34866 test_array [0] = 0
34867
34868   ;
34869   return 0;
34870 }
34871 _ACEOF
34872 rm -f conftest.$ac_objext
34873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34874   (eval $ac_compile) 2>conftest.er1
34875   ac_status=$?
34876   grep -v '^ *+' conftest.er1 >conftest.err
34877   rm -f conftest.er1
34878   cat conftest.err >&5
34879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880   (exit $ac_status); } &&
34881          { ac_try='test -z "$ac_c_werror_flag"
34882                          || test ! -s conftest.err'
34883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34884   (eval $ac_try) 2>&5
34885   ac_status=$?
34886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34887   (exit $ac_status); }; } &&
34888          { ac_try='test -s conftest.$ac_objext'
34889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34890   (eval $ac_try) 2>&5
34891   ac_status=$?
34892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34893   (exit $ac_status); }; }; then
34894   ac_hi=-1 ac_mid=-1
34895   while :; do
34896     cat >conftest.$ac_ext <<_ACEOF
34897 /* confdefs.h.  */
34898 _ACEOF
34899 cat confdefs.h >>conftest.$ac_ext
34900 cat >>conftest.$ac_ext <<_ACEOF
34901 /* end confdefs.h.  */
34902 $ac_includes_default
34903 int
34904 main ()
34905 {
34906 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34907 test_array [0] = 0
34908
34909   ;
34910   return 0;
34911 }
34912 _ACEOF
34913 rm -f conftest.$ac_objext
34914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34915   (eval $ac_compile) 2>conftest.er1
34916   ac_status=$?
34917   grep -v '^ *+' conftest.er1 >conftest.err
34918   rm -f conftest.er1
34919   cat conftest.err >&5
34920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921   (exit $ac_status); } &&
34922          { ac_try='test -z "$ac_c_werror_flag"
34923                          || test ! -s conftest.err'
34924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34925   (eval $ac_try) 2>&5
34926   ac_status=$?
34927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34928   (exit $ac_status); }; } &&
34929          { ac_try='test -s conftest.$ac_objext'
34930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34931   (eval $ac_try) 2>&5
34932   ac_status=$?
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); }; }; then
34935   ac_lo=$ac_mid; break
34936 else
34937   echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34939
34940 ac_hi=`expr '(' $ac_mid ')' - 1`
34941                        if test $ac_mid -le $ac_hi; then
34942                          ac_lo= ac_hi=
34943                          break
34944                        fi
34945                        ac_mid=`expr 2 '*' $ac_mid`
34946 fi
34947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34948   done
34949 else
34950   echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 ac_lo= ac_hi=
34954 fi
34955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34956 fi
34957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34958 # Binary search between lo and hi bounds.
34959 while test "x$ac_lo" != "x$ac_hi"; do
34960   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34961   cat >conftest.$ac_ext <<_ACEOF
34962 /* confdefs.h.  */
34963 _ACEOF
34964 cat confdefs.h >>conftest.$ac_ext
34965 cat >>conftest.$ac_ext <<_ACEOF
34966 /* end confdefs.h.  */
34967 $ac_includes_default
34968 int
34969 main ()
34970 {
34971 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34972 test_array [0] = 0
34973
34974   ;
34975   return 0;
34976 }
34977 _ACEOF
34978 rm -f conftest.$ac_objext
34979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34980   (eval $ac_compile) 2>conftest.er1
34981   ac_status=$?
34982   grep -v '^ *+' conftest.er1 >conftest.err
34983   rm -f conftest.er1
34984   cat conftest.err >&5
34985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986   (exit $ac_status); } &&
34987          { ac_try='test -z "$ac_c_werror_flag"
34988                          || test ! -s conftest.err'
34989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34990   (eval $ac_try) 2>&5
34991   ac_status=$?
34992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993   (exit $ac_status); }; } &&
34994          { ac_try='test -s conftest.$ac_objext'
34995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34996   (eval $ac_try) 2>&5
34997   ac_status=$?
34998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999   (exit $ac_status); }; }; then
35000   ac_hi=$ac_mid
35001 else
35002   echo "$as_me: failed program was:" >&5
35003 sed 's/^/| /' conftest.$ac_ext >&5
35004
35005 ac_lo=`expr '(' $ac_mid ')' + 1`
35006 fi
35007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35008 done
35009 case $ac_lo in
35010 ?*) ac_cv_sizeof_int=$ac_lo;;
35011 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35012 See \`config.log' for more details." >&5
35013 echo "$as_me: error: cannot compute sizeof (int), 77
35014 See \`config.log' for more details." >&2;}
35015    { (exit 1); exit 1; }; } ;;
35016 esac
35017 else
35018   if test "$cross_compiling" = yes; then
35019   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35020 See \`config.log' for more details." >&5
35021 echo "$as_me: error: cannot run test program while cross compiling
35022 See \`config.log' for more details." >&2;}
35023    { (exit 1); exit 1; }; }
35024 else
35025   cat >conftest.$ac_ext <<_ACEOF
35026 /* confdefs.h.  */
35027 _ACEOF
35028 cat confdefs.h >>conftest.$ac_ext
35029 cat >>conftest.$ac_ext <<_ACEOF
35030 /* end confdefs.h.  */
35031 $ac_includes_default
35032 long longval () { return (long) (sizeof (int)); }
35033 unsigned long ulongval () { return (long) (sizeof (int)); }
35034 #include <stdio.h>
35035 #include <stdlib.h>
35036 int
35037 main ()
35038 {
35039
35040   FILE *f = fopen ("conftest.val", "w");
35041   if (! f)
35042     exit (1);
35043   if (((long) (sizeof (int))) < 0)
35044     {
35045       long i = longval ();
35046       if (i != ((long) (sizeof (int))))
35047         exit (1);
35048       fprintf (f, "%ld\n", i);
35049     }
35050   else
35051     {
35052       unsigned long i = ulongval ();
35053       if (i != ((long) (sizeof (int))))
35054         exit (1);
35055       fprintf (f, "%lu\n", i);
35056     }
35057   exit (ferror (f) || fclose (f) != 0);
35058
35059   ;
35060   return 0;
35061 }
35062 _ACEOF
35063 rm -f conftest$ac_exeext
35064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35065   (eval $ac_link) 2>&5
35066   ac_status=$?
35067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070   (eval $ac_try) 2>&5
35071   ac_status=$?
35072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073   (exit $ac_status); }; }; then
35074   ac_cv_sizeof_int=`cat conftest.val`
35075 else
35076   echo "$as_me: program exited with status $ac_status" >&5
35077 echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35079
35080 ( exit $ac_status )
35081 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
35082 See \`config.log' for more details." >&5
35083 echo "$as_me: error: cannot compute sizeof (int), 77
35084 See \`config.log' for more details." >&2;}
35085    { (exit 1); exit 1; }; }
35086 fi
35087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35088 fi
35089 fi
35090 rm -f conftest.val
35091 else
35092   ac_cv_sizeof_int=0
35093 fi
35094 fi
35095 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35096 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
35097 cat >>confdefs.h <<_ACEOF
35098 #define SIZEOF_INT $ac_cv_sizeof_int
35099 _ACEOF
35100
35101
35102 echo "$as_me:$LINENO: checking for long" >&5
35103 echo $ECHO_N "checking for long... $ECHO_C" >&6
35104 if test "${ac_cv_type_long+set}" = set; then
35105   echo $ECHO_N "(cached) $ECHO_C" >&6
35106 else
35107   cat >conftest.$ac_ext <<_ACEOF
35108 /* confdefs.h.  */
35109 _ACEOF
35110 cat confdefs.h >>conftest.$ac_ext
35111 cat >>conftest.$ac_ext <<_ACEOF
35112 /* end confdefs.h.  */
35113 $ac_includes_default
35114 int
35115 main ()
35116 {
35117 if ((long *) 0)
35118   return 0;
35119 if (sizeof (long))
35120   return 0;
35121   ;
35122   return 0;
35123 }
35124 _ACEOF
35125 rm -f conftest.$ac_objext
35126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35127   (eval $ac_compile) 2>conftest.er1
35128   ac_status=$?
35129   grep -v '^ *+' conftest.er1 >conftest.err
35130   rm -f conftest.er1
35131   cat conftest.err >&5
35132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133   (exit $ac_status); } &&
35134          { ac_try='test -z "$ac_c_werror_flag"
35135                          || test ! -s conftest.err'
35136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35137   (eval $ac_try) 2>&5
35138   ac_status=$?
35139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35140   (exit $ac_status); }; } &&
35141          { ac_try='test -s conftest.$ac_objext'
35142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35143   (eval $ac_try) 2>&5
35144   ac_status=$?
35145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146   (exit $ac_status); }; }; then
35147   ac_cv_type_long=yes
35148 else
35149   echo "$as_me: failed program was:" >&5
35150 sed 's/^/| /' conftest.$ac_ext >&5
35151
35152 ac_cv_type_long=no
35153 fi
35154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35155 fi
35156 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
35157 echo "${ECHO_T}$ac_cv_type_long" >&6
35158
35159 echo "$as_me:$LINENO: checking size of long" >&5
35160 echo $ECHO_N "checking size of long... $ECHO_C" >&6
35161 if test "${ac_cv_sizeof_long+set}" = set; then
35162   echo $ECHO_N "(cached) $ECHO_C" >&6
35163 else
35164   if test "$ac_cv_type_long" = yes; then
35165   # The cast to unsigned long works around a bug in the HP C Compiler
35166   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35167   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35168   # This bug is HP SR number 8606223364.
35169   if test "$cross_compiling" = yes; then
35170   # Depending upon the size, compute the lo and hi bounds.
35171 cat >conftest.$ac_ext <<_ACEOF
35172 /* confdefs.h.  */
35173 _ACEOF
35174 cat confdefs.h >>conftest.$ac_ext
35175 cat >>conftest.$ac_ext <<_ACEOF
35176 /* end confdefs.h.  */
35177 $ac_includes_default
35178 int
35179 main ()
35180 {
35181 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
35182 test_array [0] = 0
35183
35184   ;
35185   return 0;
35186 }
35187 _ACEOF
35188 rm -f conftest.$ac_objext
35189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35190   (eval $ac_compile) 2>conftest.er1
35191   ac_status=$?
35192   grep -v '^ *+' conftest.er1 >conftest.err
35193   rm -f conftest.er1
35194   cat conftest.err >&5
35195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196   (exit $ac_status); } &&
35197          { ac_try='test -z "$ac_c_werror_flag"
35198                          || test ! -s conftest.err'
35199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35200   (eval $ac_try) 2>&5
35201   ac_status=$?
35202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203   (exit $ac_status); }; } &&
35204          { ac_try='test -s conftest.$ac_objext'
35205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206   (eval $ac_try) 2>&5
35207   ac_status=$?
35208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209   (exit $ac_status); }; }; then
35210   ac_lo=0 ac_mid=0
35211   while :; do
35212     cat >conftest.$ac_ext <<_ACEOF
35213 /* confdefs.h.  */
35214 _ACEOF
35215 cat confdefs.h >>conftest.$ac_ext
35216 cat >>conftest.$ac_ext <<_ACEOF
35217 /* end confdefs.h.  */
35218 $ac_includes_default
35219 int
35220 main ()
35221 {
35222 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35223 test_array [0] = 0
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_hi=$ac_mid; break
35252 else
35253   echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35255
35256 ac_lo=`expr $ac_mid + 1`
35257                     if test $ac_lo -le $ac_mid; then
35258                       ac_lo= ac_hi=
35259                       break
35260                     fi
35261                     ac_mid=`expr 2 '*' $ac_mid + 1`
35262 fi
35263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35264   done
35265 else
35266   echo "$as_me: failed program was:" >&5
35267 sed 's/^/| /' conftest.$ac_ext >&5
35268
35269 cat >conftest.$ac_ext <<_ACEOF
35270 /* confdefs.h.  */
35271 _ACEOF
35272 cat confdefs.h >>conftest.$ac_ext
35273 cat >>conftest.$ac_ext <<_ACEOF
35274 /* end confdefs.h.  */
35275 $ac_includes_default
35276 int
35277 main ()
35278 {
35279 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
35280 test_array [0] = 0
35281
35282   ;
35283   return 0;
35284 }
35285 _ACEOF
35286 rm -f conftest.$ac_objext
35287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35288   (eval $ac_compile) 2>conftest.er1
35289   ac_status=$?
35290   grep -v '^ *+' conftest.er1 >conftest.err
35291   rm -f conftest.er1
35292   cat conftest.err >&5
35293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294   (exit $ac_status); } &&
35295          { ac_try='test -z "$ac_c_werror_flag"
35296                          || test ! -s conftest.err'
35297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35298   (eval $ac_try) 2>&5
35299   ac_status=$?
35300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35301   (exit $ac_status); }; } &&
35302          { ac_try='test -s conftest.$ac_objext'
35303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35304   (eval $ac_try) 2>&5
35305   ac_status=$?
35306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35307   (exit $ac_status); }; }; then
35308   ac_hi=-1 ac_mid=-1
35309   while :; do
35310     cat >conftest.$ac_ext <<_ACEOF
35311 /* confdefs.h.  */
35312 _ACEOF
35313 cat confdefs.h >>conftest.$ac_ext
35314 cat >>conftest.$ac_ext <<_ACEOF
35315 /* end confdefs.h.  */
35316 $ac_includes_default
35317 int
35318 main ()
35319 {
35320 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
35321 test_array [0] = 0
35322
35323   ;
35324   return 0;
35325 }
35326 _ACEOF
35327 rm -f conftest.$ac_objext
35328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35329   (eval $ac_compile) 2>conftest.er1
35330   ac_status=$?
35331   grep -v '^ *+' conftest.er1 >conftest.err
35332   rm -f conftest.er1
35333   cat conftest.err >&5
35334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35335   (exit $ac_status); } &&
35336          { ac_try='test -z "$ac_c_werror_flag"
35337                          || test ! -s conftest.err'
35338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35339   (eval $ac_try) 2>&5
35340   ac_status=$?
35341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35342   (exit $ac_status); }; } &&
35343          { ac_try='test -s conftest.$ac_objext'
35344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35345   (eval $ac_try) 2>&5
35346   ac_status=$?
35347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35348   (exit $ac_status); }; }; then
35349   ac_lo=$ac_mid; break
35350 else
35351   echo "$as_me: failed program was:" >&5
35352 sed 's/^/| /' conftest.$ac_ext >&5
35353
35354 ac_hi=`expr '(' $ac_mid ')' - 1`
35355                        if test $ac_mid -le $ac_hi; then
35356                          ac_lo= ac_hi=
35357                          break
35358                        fi
35359                        ac_mid=`expr 2 '*' $ac_mid`
35360 fi
35361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35362   done
35363 else
35364   echo "$as_me: failed program was:" >&5
35365 sed 's/^/| /' conftest.$ac_ext >&5
35366
35367 ac_lo= ac_hi=
35368 fi
35369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35370 fi
35371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35372 # Binary search between lo and hi bounds.
35373 while test "x$ac_lo" != "x$ac_hi"; do
35374   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35375   cat >conftest.$ac_ext <<_ACEOF
35376 /* confdefs.h.  */
35377 _ACEOF
35378 cat confdefs.h >>conftest.$ac_ext
35379 cat >>conftest.$ac_ext <<_ACEOF
35380 /* end confdefs.h.  */
35381 $ac_includes_default
35382 int
35383 main ()
35384 {
35385 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
35386 test_array [0] = 0
35387
35388   ;
35389   return 0;
35390 }
35391 _ACEOF
35392 rm -f conftest.$ac_objext
35393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35394   (eval $ac_compile) 2>conftest.er1
35395   ac_status=$?
35396   grep -v '^ *+' conftest.er1 >conftest.err
35397   rm -f conftest.er1
35398   cat conftest.err >&5
35399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400   (exit $ac_status); } &&
35401          { ac_try='test -z "$ac_c_werror_flag"
35402                          || test ! -s conftest.err'
35403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404   (eval $ac_try) 2>&5
35405   ac_status=$?
35406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407   (exit $ac_status); }; } &&
35408          { ac_try='test -s conftest.$ac_objext'
35409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410   (eval $ac_try) 2>&5
35411   ac_status=$?
35412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413   (exit $ac_status); }; }; then
35414   ac_hi=$ac_mid
35415 else
35416   echo "$as_me: failed program was:" >&5
35417 sed 's/^/| /' conftest.$ac_ext >&5
35418
35419 ac_lo=`expr '(' $ac_mid ')' + 1`
35420 fi
35421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35422 done
35423 case $ac_lo in
35424 ?*) ac_cv_sizeof_long=$ac_lo;;
35425 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35426 See \`config.log' for more details." >&5
35427 echo "$as_me: error: cannot compute sizeof (long), 77
35428 See \`config.log' for more details." >&2;}
35429    { (exit 1); exit 1; }; } ;;
35430 esac
35431 else
35432   if test "$cross_compiling" = yes; then
35433   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35434 See \`config.log' for more details." >&5
35435 echo "$as_me: error: cannot run test program while cross compiling
35436 See \`config.log' for more details." >&2;}
35437    { (exit 1); exit 1; }; }
35438 else
35439   cat >conftest.$ac_ext <<_ACEOF
35440 /* confdefs.h.  */
35441 _ACEOF
35442 cat confdefs.h >>conftest.$ac_ext
35443 cat >>conftest.$ac_ext <<_ACEOF
35444 /* end confdefs.h.  */
35445 $ac_includes_default
35446 long longval () { return (long) (sizeof (long)); }
35447 unsigned long ulongval () { return (long) (sizeof (long)); }
35448 #include <stdio.h>
35449 #include <stdlib.h>
35450 int
35451 main ()
35452 {
35453
35454   FILE *f = fopen ("conftest.val", "w");
35455   if (! f)
35456     exit (1);
35457   if (((long) (sizeof (long))) < 0)
35458     {
35459       long i = longval ();
35460       if (i != ((long) (sizeof (long))))
35461         exit (1);
35462       fprintf (f, "%ld\n", i);
35463     }
35464   else
35465     {
35466       unsigned long i = ulongval ();
35467       if (i != ((long) (sizeof (long))))
35468         exit (1);
35469       fprintf (f, "%lu\n", i);
35470     }
35471   exit (ferror (f) || fclose (f) != 0);
35472
35473   ;
35474   return 0;
35475 }
35476 _ACEOF
35477 rm -f conftest$ac_exeext
35478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35479   (eval $ac_link) 2>&5
35480   ac_status=$?
35481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35484   (eval $ac_try) 2>&5
35485   ac_status=$?
35486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487   (exit $ac_status); }; }; then
35488   ac_cv_sizeof_long=`cat conftest.val`
35489 else
35490   echo "$as_me: program exited with status $ac_status" >&5
35491 echo "$as_me: failed program was:" >&5
35492 sed 's/^/| /' conftest.$ac_ext >&5
35493
35494 ( exit $ac_status )
35495 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35496 See \`config.log' for more details." >&5
35497 echo "$as_me: error: cannot compute sizeof (long), 77
35498 See \`config.log' for more details." >&2;}
35499    { (exit 1); exit 1; }; }
35500 fi
35501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35502 fi
35503 fi
35504 rm -f conftest.val
35505 else
35506   ac_cv_sizeof_long=0
35507 fi
35508 fi
35509 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35510 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
35511 cat >>confdefs.h <<_ACEOF
35512 #define SIZEOF_LONG $ac_cv_sizeof_long
35513 _ACEOF
35514
35515
35516 echo "$as_me:$LINENO: checking for long long" >&5
35517 echo $ECHO_N "checking for long long... $ECHO_C" >&6
35518 if test "${ac_cv_type_long_long+set}" = set; then
35519   echo $ECHO_N "(cached) $ECHO_C" >&6
35520 else
35521   cat >conftest.$ac_ext <<_ACEOF
35522 /* confdefs.h.  */
35523 _ACEOF
35524 cat confdefs.h >>conftest.$ac_ext
35525 cat >>conftest.$ac_ext <<_ACEOF
35526 /* end confdefs.h.  */
35527 $ac_includes_default
35528 int
35529 main ()
35530 {
35531 if ((long long *) 0)
35532   return 0;
35533 if (sizeof (long long))
35534   return 0;
35535   ;
35536   return 0;
35537 }
35538 _ACEOF
35539 rm -f conftest.$ac_objext
35540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35541   (eval $ac_compile) 2>conftest.er1
35542   ac_status=$?
35543   grep -v '^ *+' conftest.er1 >conftest.err
35544   rm -f conftest.er1
35545   cat conftest.err >&5
35546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35547   (exit $ac_status); } &&
35548          { ac_try='test -z "$ac_c_werror_flag"
35549                          || test ! -s conftest.err'
35550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551   (eval $ac_try) 2>&5
35552   ac_status=$?
35553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554   (exit $ac_status); }; } &&
35555          { ac_try='test -s conftest.$ac_objext'
35556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35557   (eval $ac_try) 2>&5
35558   ac_status=$?
35559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35560   (exit $ac_status); }; }; then
35561   ac_cv_type_long_long=yes
35562 else
35563   echo "$as_me: failed program was:" >&5
35564 sed 's/^/| /' conftest.$ac_ext >&5
35565
35566 ac_cv_type_long_long=no
35567 fi
35568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35569 fi
35570 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35571 echo "${ECHO_T}$ac_cv_type_long_long" >&6
35572
35573 echo "$as_me:$LINENO: checking size of long long" >&5
35574 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
35575 if test "${ac_cv_sizeof_long_long+set}" = set; then
35576   echo $ECHO_N "(cached) $ECHO_C" >&6
35577 else
35578   if test "$ac_cv_type_long_long" = yes; then
35579   # The cast to unsigned long works around a bug in the HP C Compiler
35580   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35581   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35582   # This bug is HP SR number 8606223364.
35583   if test "$cross_compiling" = yes; then
35584   # Depending upon the size, compute the lo and hi bounds.
35585 cat >conftest.$ac_ext <<_ACEOF
35586 /* confdefs.h.  */
35587 _ACEOF
35588 cat confdefs.h >>conftest.$ac_ext
35589 cat >>conftest.$ac_ext <<_ACEOF
35590 /* end confdefs.h.  */
35591 $ac_includes_default
35592 int
35593 main ()
35594 {
35595 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
35596 test_array [0] = 0
35597
35598   ;
35599   return 0;
35600 }
35601 _ACEOF
35602 rm -f conftest.$ac_objext
35603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35604   (eval $ac_compile) 2>conftest.er1
35605   ac_status=$?
35606   grep -v '^ *+' conftest.er1 >conftest.err
35607   rm -f conftest.er1
35608   cat conftest.err >&5
35609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35610   (exit $ac_status); } &&
35611          { ac_try='test -z "$ac_c_werror_flag"
35612                          || test ! -s conftest.err'
35613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35614   (eval $ac_try) 2>&5
35615   ac_status=$?
35616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35617   (exit $ac_status); }; } &&
35618          { ac_try='test -s conftest.$ac_objext'
35619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35620   (eval $ac_try) 2>&5
35621   ac_status=$?
35622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623   (exit $ac_status); }; }; then
35624   ac_lo=0 ac_mid=0
35625   while :; do
35626     cat >conftest.$ac_ext <<_ACEOF
35627 /* confdefs.h.  */
35628 _ACEOF
35629 cat confdefs.h >>conftest.$ac_ext
35630 cat >>conftest.$ac_ext <<_ACEOF
35631 /* end confdefs.h.  */
35632 $ac_includes_default
35633 int
35634 main ()
35635 {
35636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35637 test_array [0] = 0
35638
35639   ;
35640   return 0;
35641 }
35642 _ACEOF
35643 rm -f conftest.$ac_objext
35644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35645   (eval $ac_compile) 2>conftest.er1
35646   ac_status=$?
35647   grep -v '^ *+' conftest.er1 >conftest.err
35648   rm -f conftest.er1
35649   cat conftest.err >&5
35650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651   (exit $ac_status); } &&
35652          { ac_try='test -z "$ac_c_werror_flag"
35653                          || test ! -s conftest.err'
35654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655   (eval $ac_try) 2>&5
35656   ac_status=$?
35657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658   (exit $ac_status); }; } &&
35659          { ac_try='test -s conftest.$ac_objext'
35660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661   (eval $ac_try) 2>&5
35662   ac_status=$?
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); }; }; then
35665   ac_hi=$ac_mid; break
35666 else
35667   echo "$as_me: failed program was:" >&5
35668 sed 's/^/| /' conftest.$ac_ext >&5
35669
35670 ac_lo=`expr $ac_mid + 1`
35671                     if test $ac_lo -le $ac_mid; then
35672                       ac_lo= ac_hi=
35673                       break
35674                     fi
35675                     ac_mid=`expr 2 '*' $ac_mid + 1`
35676 fi
35677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35678   done
35679 else
35680   echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35682
35683 cat >conftest.$ac_ext <<_ACEOF
35684 /* confdefs.h.  */
35685 _ACEOF
35686 cat confdefs.h >>conftest.$ac_ext
35687 cat >>conftest.$ac_ext <<_ACEOF
35688 /* end confdefs.h.  */
35689 $ac_includes_default
35690 int
35691 main ()
35692 {
35693 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
35694 test_array [0] = 0
35695
35696   ;
35697   return 0;
35698 }
35699 _ACEOF
35700 rm -f conftest.$ac_objext
35701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35702   (eval $ac_compile) 2>conftest.er1
35703   ac_status=$?
35704   grep -v '^ *+' conftest.er1 >conftest.err
35705   rm -f conftest.er1
35706   cat conftest.err >&5
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); } &&
35709          { ac_try='test -z "$ac_c_werror_flag"
35710                          || test ! -s conftest.err'
35711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35712   (eval $ac_try) 2>&5
35713   ac_status=$?
35714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715   (exit $ac_status); }; } &&
35716          { ac_try='test -s conftest.$ac_objext'
35717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35718   (eval $ac_try) 2>&5
35719   ac_status=$?
35720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721   (exit $ac_status); }; }; then
35722   ac_hi=-1 ac_mid=-1
35723   while :; do
35724     cat >conftest.$ac_ext <<_ACEOF
35725 /* confdefs.h.  */
35726 _ACEOF
35727 cat confdefs.h >>conftest.$ac_ext
35728 cat >>conftest.$ac_ext <<_ACEOF
35729 /* end confdefs.h.  */
35730 $ac_includes_default
35731 int
35732 main ()
35733 {
35734 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35735 test_array [0] = 0
35736
35737   ;
35738   return 0;
35739 }
35740 _ACEOF
35741 rm -f conftest.$ac_objext
35742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35743   (eval $ac_compile) 2>conftest.er1
35744   ac_status=$?
35745   grep -v '^ *+' conftest.er1 >conftest.err
35746   rm -f conftest.er1
35747   cat conftest.err >&5
35748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35749   (exit $ac_status); } &&
35750          { ac_try='test -z "$ac_c_werror_flag"
35751                          || test ! -s conftest.err'
35752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35753   (eval $ac_try) 2>&5
35754   ac_status=$?
35755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756   (exit $ac_status); }; } &&
35757          { ac_try='test -s conftest.$ac_objext'
35758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35759   (eval $ac_try) 2>&5
35760   ac_status=$?
35761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762   (exit $ac_status); }; }; then
35763   ac_lo=$ac_mid; break
35764 else
35765   echo "$as_me: failed program was:" >&5
35766 sed 's/^/| /' conftest.$ac_ext >&5
35767
35768 ac_hi=`expr '(' $ac_mid ')' - 1`
35769                        if test $ac_mid -le $ac_hi; then
35770                          ac_lo= ac_hi=
35771                          break
35772                        fi
35773                        ac_mid=`expr 2 '*' $ac_mid`
35774 fi
35775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35776   done
35777 else
35778   echo "$as_me: failed program was:" >&5
35779 sed 's/^/| /' conftest.$ac_ext >&5
35780
35781 ac_lo= ac_hi=
35782 fi
35783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35784 fi
35785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35786 # Binary search between lo and hi bounds.
35787 while test "x$ac_lo" != "x$ac_hi"; do
35788   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35789   cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795 $ac_includes_default
35796 int
35797 main ()
35798 {
35799 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35800 test_array [0] = 0
35801
35802   ;
35803   return 0;
35804 }
35805 _ACEOF
35806 rm -f conftest.$ac_objext
35807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35808   (eval $ac_compile) 2>conftest.er1
35809   ac_status=$?
35810   grep -v '^ *+' conftest.er1 >conftest.err
35811   rm -f conftest.er1
35812   cat conftest.err >&5
35813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35814   (exit $ac_status); } &&
35815          { ac_try='test -z "$ac_c_werror_flag"
35816                          || test ! -s conftest.err'
35817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35818   (eval $ac_try) 2>&5
35819   ac_status=$?
35820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35821   (exit $ac_status); }; } &&
35822          { ac_try='test -s conftest.$ac_objext'
35823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35824   (eval $ac_try) 2>&5
35825   ac_status=$?
35826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35827   (exit $ac_status); }; }; then
35828   ac_hi=$ac_mid
35829 else
35830   echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35832
35833 ac_lo=`expr '(' $ac_mid ')' + 1`
35834 fi
35835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35836 done
35837 case $ac_lo in
35838 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35840 See \`config.log' for more details." >&5
35841 echo "$as_me: error: cannot compute sizeof (long long), 77
35842 See \`config.log' for more details." >&2;}
35843    { (exit 1); exit 1; }; } ;;
35844 esac
35845 else
35846   if test "$cross_compiling" = yes; then
35847   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35848 See \`config.log' for more details." >&5
35849 echo "$as_me: error: cannot run test program while cross compiling
35850 See \`config.log' for more details." >&2;}
35851    { (exit 1); exit 1; }; }
35852 else
35853   cat >conftest.$ac_ext <<_ACEOF
35854 /* confdefs.h.  */
35855 _ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h.  */
35859 $ac_includes_default
35860 long longval () { return (long) (sizeof (long long)); }
35861 unsigned long ulongval () { return (long) (sizeof (long long)); }
35862 #include <stdio.h>
35863 #include <stdlib.h>
35864 int
35865 main ()
35866 {
35867
35868   FILE *f = fopen ("conftest.val", "w");
35869   if (! f)
35870     exit (1);
35871   if (((long) (sizeof (long long))) < 0)
35872     {
35873       long i = longval ();
35874       if (i != ((long) (sizeof (long long))))
35875         exit (1);
35876       fprintf (f, "%ld\n", i);
35877     }
35878   else
35879     {
35880       unsigned long i = ulongval ();
35881       if (i != ((long) (sizeof (long long))))
35882         exit (1);
35883       fprintf (f, "%lu\n", i);
35884     }
35885   exit (ferror (f) || fclose (f) != 0);
35886
35887   ;
35888   return 0;
35889 }
35890 _ACEOF
35891 rm -f conftest$ac_exeext
35892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35893   (eval $ac_link) 2>&5
35894   ac_status=$?
35895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35898   (eval $ac_try) 2>&5
35899   ac_status=$?
35900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35901   (exit $ac_status); }; }; then
35902   ac_cv_sizeof_long_long=`cat conftest.val`
35903 else
35904   echo "$as_me: program exited with status $ac_status" >&5
35905 echo "$as_me: failed program was:" >&5
35906 sed 's/^/| /' conftest.$ac_ext >&5
35907
35908 ( exit $ac_status )
35909 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35910 See \`config.log' for more details." >&5
35911 echo "$as_me: error: cannot compute sizeof (long long), 77
35912 See \`config.log' for more details." >&2;}
35913    { (exit 1); exit 1; }; }
35914 fi
35915 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35916 fi
35917 fi
35918 rm -f conftest.val
35919 else
35920   ac_cv_sizeof_long_long=0
35921 fi
35922 fi
35923 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35924 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35925 cat >>confdefs.h <<_ACEOF
35926 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35927 _ACEOF
35928
35929
35930 echo "$as_me:$LINENO: checking for wchar_t" >&5
35931 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35932 if test "${ac_cv_type_wchar_t+set}" = set; then
35933   echo $ECHO_N "(cached) $ECHO_C" >&6
35934 else
35935   cat >conftest.$ac_ext <<_ACEOF
35936 /* confdefs.h.  */
35937 _ACEOF
35938 cat confdefs.h >>conftest.$ac_ext
35939 cat >>conftest.$ac_ext <<_ACEOF
35940 /* end confdefs.h.  */
35941 $ac_includes_default
35942 int
35943 main ()
35944 {
35945 if ((wchar_t *) 0)
35946   return 0;
35947 if (sizeof (wchar_t))
35948   return 0;
35949   ;
35950   return 0;
35951 }
35952 _ACEOF
35953 rm -f conftest.$ac_objext
35954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35955   (eval $ac_compile) 2>conftest.er1
35956   ac_status=$?
35957   grep -v '^ *+' conftest.er1 >conftest.err
35958   rm -f conftest.er1
35959   cat conftest.err >&5
35960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35961   (exit $ac_status); } &&
35962          { ac_try='test -z "$ac_c_werror_flag"
35963                          || test ! -s conftest.err'
35964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965   (eval $ac_try) 2>&5
35966   ac_status=$?
35967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968   (exit $ac_status); }; } &&
35969          { ac_try='test -s conftest.$ac_objext'
35970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971   (eval $ac_try) 2>&5
35972   ac_status=$?
35973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974   (exit $ac_status); }; }; then
35975   ac_cv_type_wchar_t=yes
35976 else
35977   echo "$as_me: failed program was:" >&5
35978 sed 's/^/| /' conftest.$ac_ext >&5
35979
35980 ac_cv_type_wchar_t=no
35981 fi
35982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35983 fi
35984 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35985 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35986
35987 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35988 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35989 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35990   echo $ECHO_N "(cached) $ECHO_C" >&6
35991 else
35992   if test "$ac_cv_type_wchar_t" = yes; then
35993   # The cast to unsigned long works around a bug in the HP C Compiler
35994   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35995   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35996   # This bug is HP SR number 8606223364.
35997   if test "$cross_compiling" = yes; then
35998   # Depending upon the size, compute the lo and hi bounds.
35999 cat >conftest.$ac_ext <<_ACEOF
36000 /* confdefs.h.  */
36001 _ACEOF
36002 cat confdefs.h >>conftest.$ac_ext
36003 cat >>conftest.$ac_ext <<_ACEOF
36004 /* end confdefs.h.  */
36005 $ac_includes_default
36006 int
36007 main ()
36008 {
36009 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
36010 test_array [0] = 0
36011
36012   ;
36013   return 0;
36014 }
36015 _ACEOF
36016 rm -f conftest.$ac_objext
36017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36018   (eval $ac_compile) 2>conftest.er1
36019   ac_status=$?
36020   grep -v '^ *+' conftest.er1 >conftest.err
36021   rm -f conftest.er1
36022   cat conftest.err >&5
36023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024   (exit $ac_status); } &&
36025          { ac_try='test -z "$ac_c_werror_flag"
36026                          || test ! -s conftest.err'
36027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36028   (eval $ac_try) 2>&5
36029   ac_status=$?
36030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031   (exit $ac_status); }; } &&
36032          { ac_try='test -s conftest.$ac_objext'
36033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36034   (eval $ac_try) 2>&5
36035   ac_status=$?
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); }; }; then
36038   ac_lo=0 ac_mid=0
36039   while :; do
36040     cat >conftest.$ac_ext <<_ACEOF
36041 /* confdefs.h.  */
36042 _ACEOF
36043 cat confdefs.h >>conftest.$ac_ext
36044 cat >>conftest.$ac_ext <<_ACEOF
36045 /* end confdefs.h.  */
36046 $ac_includes_default
36047 int
36048 main ()
36049 {
36050 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36051 test_array [0] = 0
36052
36053   ;
36054   return 0;
36055 }
36056 _ACEOF
36057 rm -f conftest.$ac_objext
36058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36059   (eval $ac_compile) 2>conftest.er1
36060   ac_status=$?
36061   grep -v '^ *+' conftest.er1 >conftest.err
36062   rm -f conftest.er1
36063   cat conftest.err >&5
36064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065   (exit $ac_status); } &&
36066          { ac_try='test -z "$ac_c_werror_flag"
36067                          || test ! -s conftest.err'
36068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36069   (eval $ac_try) 2>&5
36070   ac_status=$?
36071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36072   (exit $ac_status); }; } &&
36073          { ac_try='test -s conftest.$ac_objext'
36074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36075   (eval $ac_try) 2>&5
36076   ac_status=$?
36077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078   (exit $ac_status); }; }; then
36079   ac_hi=$ac_mid; break
36080 else
36081   echo "$as_me: failed program was:" >&5
36082 sed 's/^/| /' conftest.$ac_ext >&5
36083
36084 ac_lo=`expr $ac_mid + 1`
36085                     if test $ac_lo -le $ac_mid; then
36086                       ac_lo= ac_hi=
36087                       break
36088                     fi
36089                     ac_mid=`expr 2 '*' $ac_mid + 1`
36090 fi
36091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36092   done
36093 else
36094   echo "$as_me: failed program was:" >&5
36095 sed 's/^/| /' conftest.$ac_ext >&5
36096
36097 cat >conftest.$ac_ext <<_ACEOF
36098 /* confdefs.h.  */
36099 _ACEOF
36100 cat confdefs.h >>conftest.$ac_ext
36101 cat >>conftest.$ac_ext <<_ACEOF
36102 /* end confdefs.h.  */
36103 $ac_includes_default
36104 int
36105 main ()
36106 {
36107 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
36108 test_array [0] = 0
36109
36110   ;
36111   return 0;
36112 }
36113 _ACEOF
36114 rm -f conftest.$ac_objext
36115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36116   (eval $ac_compile) 2>conftest.er1
36117   ac_status=$?
36118   grep -v '^ *+' conftest.er1 >conftest.err
36119   rm -f conftest.er1
36120   cat conftest.err >&5
36121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36122   (exit $ac_status); } &&
36123          { ac_try='test -z "$ac_c_werror_flag"
36124                          || test ! -s conftest.err'
36125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36126   (eval $ac_try) 2>&5
36127   ac_status=$?
36128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129   (exit $ac_status); }; } &&
36130          { ac_try='test -s conftest.$ac_objext'
36131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36132   (eval $ac_try) 2>&5
36133   ac_status=$?
36134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135   (exit $ac_status); }; }; then
36136   ac_hi=-1 ac_mid=-1
36137   while :; do
36138     cat >conftest.$ac_ext <<_ACEOF
36139 /* confdefs.h.  */
36140 _ACEOF
36141 cat confdefs.h >>conftest.$ac_ext
36142 cat >>conftest.$ac_ext <<_ACEOF
36143 /* end confdefs.h.  */
36144 $ac_includes_default
36145 int
36146 main ()
36147 {
36148 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
36149 test_array [0] = 0
36150
36151   ;
36152   return 0;
36153 }
36154 _ACEOF
36155 rm -f conftest.$ac_objext
36156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36157   (eval $ac_compile) 2>conftest.er1
36158   ac_status=$?
36159   grep -v '^ *+' conftest.er1 >conftest.err
36160   rm -f conftest.er1
36161   cat conftest.err >&5
36162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); } &&
36164          { ac_try='test -z "$ac_c_werror_flag"
36165                          || test ! -s conftest.err'
36166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36167   (eval $ac_try) 2>&5
36168   ac_status=$?
36169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36170   (exit $ac_status); }; } &&
36171          { ac_try='test -s conftest.$ac_objext'
36172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36173   (eval $ac_try) 2>&5
36174   ac_status=$?
36175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36176   (exit $ac_status); }; }; then
36177   ac_lo=$ac_mid; break
36178 else
36179   echo "$as_me: failed program was:" >&5
36180 sed 's/^/| /' conftest.$ac_ext >&5
36181
36182 ac_hi=`expr '(' $ac_mid ')' - 1`
36183                        if test $ac_mid -le $ac_hi; then
36184                          ac_lo= ac_hi=
36185                          break
36186                        fi
36187                        ac_mid=`expr 2 '*' $ac_mid`
36188 fi
36189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36190   done
36191 else
36192   echo "$as_me: failed program was:" >&5
36193 sed 's/^/| /' conftest.$ac_ext >&5
36194
36195 ac_lo= ac_hi=
36196 fi
36197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36198 fi
36199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36200 # Binary search between lo and hi bounds.
36201 while test "x$ac_lo" != "x$ac_hi"; do
36202   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36203   cat >conftest.$ac_ext <<_ACEOF
36204 /* confdefs.h.  */
36205 _ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h.  */
36209 $ac_includes_default
36210 int
36211 main ()
36212 {
36213 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
36214 test_array [0] = 0
36215
36216   ;
36217   return 0;
36218 }
36219 _ACEOF
36220 rm -f conftest.$ac_objext
36221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36222   (eval $ac_compile) 2>conftest.er1
36223   ac_status=$?
36224   grep -v '^ *+' conftest.er1 >conftest.err
36225   rm -f conftest.er1
36226   cat conftest.err >&5
36227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228   (exit $ac_status); } &&
36229          { ac_try='test -z "$ac_c_werror_flag"
36230                          || test ! -s conftest.err'
36231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36232   (eval $ac_try) 2>&5
36233   ac_status=$?
36234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235   (exit $ac_status); }; } &&
36236          { ac_try='test -s conftest.$ac_objext'
36237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36238   (eval $ac_try) 2>&5
36239   ac_status=$?
36240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241   (exit $ac_status); }; }; then
36242   ac_hi=$ac_mid
36243 else
36244   echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36246
36247 ac_lo=`expr '(' $ac_mid ')' + 1`
36248 fi
36249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36250 done
36251 case $ac_lo in
36252 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
36253 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36254 See \`config.log' for more details." >&5
36255 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36256 See \`config.log' for more details." >&2;}
36257    { (exit 1); exit 1; }; } ;;
36258 esac
36259 else
36260   if test "$cross_compiling" = yes; then
36261   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36262 See \`config.log' for more details." >&5
36263 echo "$as_me: error: cannot run test program while cross compiling
36264 See \`config.log' for more details." >&2;}
36265    { (exit 1); exit 1; }; }
36266 else
36267   cat >conftest.$ac_ext <<_ACEOF
36268 /* confdefs.h.  */
36269 _ACEOF
36270 cat confdefs.h >>conftest.$ac_ext
36271 cat >>conftest.$ac_ext <<_ACEOF
36272 /* end confdefs.h.  */
36273 $ac_includes_default
36274 long longval () { return (long) (sizeof (wchar_t)); }
36275 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
36276 #include <stdio.h>
36277 #include <stdlib.h>
36278 int
36279 main ()
36280 {
36281
36282   FILE *f = fopen ("conftest.val", "w");
36283   if (! f)
36284     exit (1);
36285   if (((long) (sizeof (wchar_t))) < 0)
36286     {
36287       long i = longval ();
36288       if (i != ((long) (sizeof (wchar_t))))
36289         exit (1);
36290       fprintf (f, "%ld\n", i);
36291     }
36292   else
36293     {
36294       unsigned long i = ulongval ();
36295       if (i != ((long) (sizeof (wchar_t))))
36296         exit (1);
36297       fprintf (f, "%lu\n", i);
36298     }
36299   exit (ferror (f) || fclose (f) != 0);
36300
36301   ;
36302   return 0;
36303 }
36304 _ACEOF
36305 rm -f conftest$ac_exeext
36306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36307   (eval $ac_link) 2>&5
36308   ac_status=$?
36309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36310   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312   (eval $ac_try) 2>&5
36313   ac_status=$?
36314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); }; }; then
36316   ac_cv_sizeof_wchar_t=`cat conftest.val`
36317 else
36318   echo "$as_me: program exited with status $ac_status" >&5
36319 echo "$as_me: failed program was:" >&5
36320 sed 's/^/| /' conftest.$ac_ext >&5
36321
36322 ( exit $ac_status )
36323 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
36324 See \`config.log' for more details." >&5
36325 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
36326 See \`config.log' for more details." >&2;}
36327    { (exit 1); exit 1; }; }
36328 fi
36329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36330 fi
36331 fi
36332 rm -f conftest.val
36333 else
36334   ac_cv_sizeof_wchar_t=0
36335 fi
36336 fi
36337 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
36338 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
36339 cat >>confdefs.h <<_ACEOF
36340 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
36341 _ACEOF
36342
36343
36344
36345 if test "$ac_cv_sizeof_int" -lt 4 ; then
36346         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
36347 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
36348
36349
36350 cat >>confdefs.h <<\_ACEOF
36351 #define LBER_INT_T long
36352 _ACEOF
36353
36354 else
36355
36356 cat >>confdefs.h <<\_ACEOF
36357 #define LBER_INT_T int
36358 _ACEOF
36359
36360 fi
36361
36362
36363 cat >>confdefs.h <<\_ACEOF
36364 #define LBER_LEN_T long
36365 _ACEOF
36366
36367
36368 cat >>confdefs.h <<\_ACEOF
36369 #define LBER_SOCKET_T int
36370 _ACEOF
36371
36372
36373 cat >>confdefs.h <<\_ACEOF
36374 #define LBER_TAG_T long
36375 _ACEOF
36376
36377
36378 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
36379         if test $ac_cv_sizeof_long_long -gt 4 ; then
36380                 ol_with_mp=longlong
36381
36382 cat >>confdefs.h <<\_ACEOF
36383 #define USE_MP_LONG_LONG 1
36384 _ACEOF
36385
36386         elif test $ol_with_mp = longlong ; then
36387                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
36388 echo "$as_me: error: long long unusable for multiple precision" >&2;}
36389    { (exit 1); exit 1; }; }
36390         fi
36391 fi
36392 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
36393         if test $ac_cv_sizeof_long -gt 4 ; then
36394                 ol_with_mp=long
36395
36396 cat >>confdefs.h <<\_ACEOF
36397 #define USE_MP_LONG 1
36398 _ACEOF
36399
36400         elif test $ol_with_mp = long ; then
36401                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
36402 echo "$as_me: error: long unusable for multiple precision" >&2;}
36403    { (exit 1); exit 1; }; }
36404         fi
36405 fi
36406 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
36407
36408 for ac_header in openssl/bn.h
36409 do
36410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36412   echo "$as_me:$LINENO: checking for $ac_header" >&5
36413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36415   echo $ECHO_N "(cached) $ECHO_C" >&6
36416 fi
36417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36419 else
36420   # Is the header compilable?
36421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36423 cat >conftest.$ac_ext <<_ACEOF
36424 /* confdefs.h.  */
36425 _ACEOF
36426 cat confdefs.h >>conftest.$ac_ext
36427 cat >>conftest.$ac_ext <<_ACEOF
36428 /* end confdefs.h.  */
36429 $ac_includes_default
36430 #include <$ac_header>
36431 _ACEOF
36432 rm -f conftest.$ac_objext
36433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36434   (eval $ac_compile) 2>conftest.er1
36435   ac_status=$?
36436   grep -v '^ *+' conftest.er1 >conftest.err
36437   rm -f conftest.er1
36438   cat conftest.err >&5
36439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440   (exit $ac_status); } &&
36441          { ac_try='test -z "$ac_c_werror_flag"
36442                          || test ! -s conftest.err'
36443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36444   (eval $ac_try) 2>&5
36445   ac_status=$?
36446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447   (exit $ac_status); }; } &&
36448          { ac_try='test -s conftest.$ac_objext'
36449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36450   (eval $ac_try) 2>&5
36451   ac_status=$?
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); }; }; then
36454   ac_header_compiler=yes
36455 else
36456   echo "$as_me: failed program was:" >&5
36457 sed 's/^/| /' conftest.$ac_ext >&5
36458
36459 ac_header_compiler=no
36460 fi
36461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36463 echo "${ECHO_T}$ac_header_compiler" >&6
36464
36465 # Is the header present?
36466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36468 cat >conftest.$ac_ext <<_ACEOF
36469 /* confdefs.h.  */
36470 _ACEOF
36471 cat confdefs.h >>conftest.$ac_ext
36472 cat >>conftest.$ac_ext <<_ACEOF
36473 /* end confdefs.h.  */
36474 #include <$ac_header>
36475 _ACEOF
36476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36478   ac_status=$?
36479   grep -v '^ *+' conftest.er1 >conftest.err
36480   rm -f conftest.er1
36481   cat conftest.err >&5
36482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483   (exit $ac_status); } >/dev/null; then
36484   if test -s conftest.err; then
36485     ac_cpp_err=$ac_c_preproc_warn_flag
36486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36487   else
36488     ac_cpp_err=
36489   fi
36490 else
36491   ac_cpp_err=yes
36492 fi
36493 if test -z "$ac_cpp_err"; then
36494   ac_header_preproc=yes
36495 else
36496   echo "$as_me: failed program was:" >&5
36497 sed 's/^/| /' conftest.$ac_ext >&5
36498
36499   ac_header_preproc=no
36500 fi
36501 rm -f conftest.err conftest.$ac_ext
36502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36503 echo "${ECHO_T}$ac_header_preproc" >&6
36504
36505 # So?  What about this header?
36506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36507   yes:no: )
36508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36512     ac_header_preproc=yes
36513     ;;
36514   no:yes:* )
36515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36527     (
36528       cat <<\_ASBOX
36529 ## --------------------------------------------- ##
36530 ## Report this to <http://www.openldap.org/its/> ##
36531 ## --------------------------------------------- ##
36532 _ASBOX
36533     ) |
36534       sed "s/^/$as_me: WARNING:     /" >&2
36535     ;;
36536 esac
36537 echo "$as_me:$LINENO: checking for $ac_header" >&5
36538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36540   echo $ECHO_N "(cached) $ECHO_C" >&6
36541 else
36542   eval "$as_ac_Header=\$ac_header_preproc"
36543 fi
36544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36546
36547 fi
36548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36549   cat >>confdefs.h <<_ACEOF
36550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36551 _ACEOF
36552
36553 fi
36554
36555 done
36556
36557
36558 for ac_header in openssl/crypto.h
36559 do
36560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36562   echo "$as_me:$LINENO: checking for $ac_header" >&5
36563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36565   echo $ECHO_N "(cached) $ECHO_C" >&6
36566 fi
36567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36569 else
36570   # Is the header compilable?
36571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36573 cat >conftest.$ac_ext <<_ACEOF
36574 /* confdefs.h.  */
36575 _ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h.  */
36579 $ac_includes_default
36580 #include <$ac_header>
36581 _ACEOF
36582 rm -f conftest.$ac_objext
36583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36584   (eval $ac_compile) 2>conftest.er1
36585   ac_status=$?
36586   grep -v '^ *+' conftest.er1 >conftest.err
36587   rm -f conftest.er1
36588   cat conftest.err >&5
36589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590   (exit $ac_status); } &&
36591          { ac_try='test -z "$ac_c_werror_flag"
36592                          || test ! -s conftest.err'
36593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36594   (eval $ac_try) 2>&5
36595   ac_status=$?
36596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597   (exit $ac_status); }; } &&
36598          { ac_try='test -s conftest.$ac_objext'
36599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36600   (eval $ac_try) 2>&5
36601   ac_status=$?
36602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603   (exit $ac_status); }; }; then
36604   ac_header_compiler=yes
36605 else
36606   echo "$as_me: failed program was:" >&5
36607 sed 's/^/| /' conftest.$ac_ext >&5
36608
36609 ac_header_compiler=no
36610 fi
36611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36613 echo "${ECHO_T}$ac_header_compiler" >&6
36614
36615 # Is the header present?
36616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36618 cat >conftest.$ac_ext <<_ACEOF
36619 /* confdefs.h.  */
36620 _ACEOF
36621 cat confdefs.h >>conftest.$ac_ext
36622 cat >>conftest.$ac_ext <<_ACEOF
36623 /* end confdefs.h.  */
36624 #include <$ac_header>
36625 _ACEOF
36626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36628   ac_status=$?
36629   grep -v '^ *+' conftest.er1 >conftest.err
36630   rm -f conftest.er1
36631   cat conftest.err >&5
36632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633   (exit $ac_status); } >/dev/null; then
36634   if test -s conftest.err; then
36635     ac_cpp_err=$ac_c_preproc_warn_flag
36636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36637   else
36638     ac_cpp_err=
36639   fi
36640 else
36641   ac_cpp_err=yes
36642 fi
36643 if test -z "$ac_cpp_err"; then
36644   ac_header_preproc=yes
36645 else
36646   echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.$ac_ext >&5
36648
36649   ac_header_preproc=no
36650 fi
36651 rm -f conftest.err conftest.$ac_ext
36652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36653 echo "${ECHO_T}$ac_header_preproc" >&6
36654
36655 # So?  What about this header?
36656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36657   yes:no: )
36658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36662     ac_header_preproc=yes
36663     ;;
36664   no:yes:* )
36665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36677     (
36678       cat <<\_ASBOX
36679 ## --------------------------------------------- ##
36680 ## Report this to <http://www.openldap.org/its/> ##
36681 ## --------------------------------------------- ##
36682 _ASBOX
36683     ) |
36684       sed "s/^/$as_me: WARNING:     /" >&2
36685     ;;
36686 esac
36687 echo "$as_me:$LINENO: checking for $ac_header" >&5
36688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36690   echo $ECHO_N "(cached) $ECHO_C" >&6
36691 else
36692   eval "$as_ac_Header=\$ac_header_preproc"
36693 fi
36694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36696
36697 fi
36698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36699   cat >>confdefs.h <<_ACEOF
36700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36701 _ACEOF
36702
36703 fi
36704
36705 done
36706
36707         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36708                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36709                 test "$ol_with_tls" = "found" ; then
36710                 ol_with_mp=bignum
36711
36712 cat >>confdefs.h <<\_ACEOF
36713 #define USE_MP_BIGNUM 1
36714 _ACEOF
36715
36716         elif test $ol_with_mp = bignum ; then
36717                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36718 echo "$as_me: error: bignum not available" >&2;}
36719    { (exit 1); exit 1; }; }
36720         fi
36721 fi
36722 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36723
36724 for ac_header in gmp.h
36725 do
36726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36728   echo "$as_me:$LINENO: checking for $ac_header" >&5
36729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36731   echo $ECHO_N "(cached) $ECHO_C" >&6
36732 fi
36733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36735 else
36736   # Is the header compilable?
36737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36739 cat >conftest.$ac_ext <<_ACEOF
36740 /* confdefs.h.  */
36741 _ACEOF
36742 cat confdefs.h >>conftest.$ac_ext
36743 cat >>conftest.$ac_ext <<_ACEOF
36744 /* end confdefs.h.  */
36745 $ac_includes_default
36746 #include <$ac_header>
36747 _ACEOF
36748 rm -f conftest.$ac_objext
36749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36750   (eval $ac_compile) 2>conftest.er1
36751   ac_status=$?
36752   grep -v '^ *+' conftest.er1 >conftest.err
36753   rm -f conftest.er1
36754   cat conftest.err >&5
36755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756   (exit $ac_status); } &&
36757          { ac_try='test -z "$ac_c_werror_flag"
36758                          || test ! -s conftest.err'
36759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36760   (eval $ac_try) 2>&5
36761   ac_status=$?
36762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763   (exit $ac_status); }; } &&
36764          { ac_try='test -s conftest.$ac_objext'
36765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36766   (eval $ac_try) 2>&5
36767   ac_status=$?
36768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36769   (exit $ac_status); }; }; then
36770   ac_header_compiler=yes
36771 else
36772   echo "$as_me: failed program was:" >&5
36773 sed 's/^/| /' conftest.$ac_ext >&5
36774
36775 ac_header_compiler=no
36776 fi
36777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36779 echo "${ECHO_T}$ac_header_compiler" >&6
36780
36781 # Is the header present?
36782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36784 cat >conftest.$ac_ext <<_ACEOF
36785 /* confdefs.h.  */
36786 _ACEOF
36787 cat confdefs.h >>conftest.$ac_ext
36788 cat >>conftest.$ac_ext <<_ACEOF
36789 /* end confdefs.h.  */
36790 #include <$ac_header>
36791 _ACEOF
36792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36794   ac_status=$?
36795   grep -v '^ *+' conftest.er1 >conftest.err
36796   rm -f conftest.er1
36797   cat conftest.err >&5
36798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36799   (exit $ac_status); } >/dev/null; then
36800   if test -s conftest.err; then
36801     ac_cpp_err=$ac_c_preproc_warn_flag
36802     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36803   else
36804     ac_cpp_err=
36805   fi
36806 else
36807   ac_cpp_err=yes
36808 fi
36809 if test -z "$ac_cpp_err"; then
36810   ac_header_preproc=yes
36811 else
36812   echo "$as_me: failed program was:" >&5
36813 sed 's/^/| /' conftest.$ac_ext >&5
36814
36815   ac_header_preproc=no
36816 fi
36817 rm -f conftest.err conftest.$ac_ext
36818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36819 echo "${ECHO_T}$ac_header_preproc" >&6
36820
36821 # So?  What about this header?
36822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36823   yes:no: )
36824     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36828     ac_header_preproc=yes
36829     ;;
36830   no:yes:* )
36831     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36833     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36834 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36835     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36837     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36838 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36841     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36843     (
36844       cat <<\_ASBOX
36845 ## --------------------------------------------- ##
36846 ## Report this to <http://www.openldap.org/its/> ##
36847 ## --------------------------------------------- ##
36848 _ASBOX
36849     ) |
36850       sed "s/^/$as_me: WARNING:     /" >&2
36851     ;;
36852 esac
36853 echo "$as_me:$LINENO: checking for $ac_header" >&5
36854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36856   echo $ECHO_N "(cached) $ECHO_C" >&6
36857 else
36858   eval "$as_ac_Header=\$ac_header_preproc"
36859 fi
36860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36862
36863 fi
36864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36865   cat >>confdefs.h <<_ACEOF
36866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36867 _ACEOF
36868
36869 fi
36870
36871 done
36872
36873
36874 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36875 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36876 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36877   echo $ECHO_N "(cached) $ECHO_C" >&6
36878 else
36879   ac_check_lib_save_LIBS=$LIBS
36880 LIBS="-lgmp  $LIBS"
36881 cat >conftest.$ac_ext <<_ACEOF
36882 /* confdefs.h.  */
36883 _ACEOF
36884 cat confdefs.h >>conftest.$ac_ext
36885 cat >>conftest.$ac_ext <<_ACEOF
36886 /* end confdefs.h.  */
36887
36888 /* Override any gcc2 internal prototype to avoid an error.  */
36889 #ifdef __cplusplus
36890 extern "C"
36891 #endif
36892 /* We use char because int might match the return type of a gcc2
36893    builtin and then its argument prototype would still apply.  */
36894 char __gmpz_add_ui ();
36895 int
36896 main ()
36897 {
36898 __gmpz_add_ui ();
36899   ;
36900   return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext conftest$ac_exeext
36904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36905   (eval $ac_link) 2>conftest.er1
36906   ac_status=$?
36907   grep -v '^ *+' conftest.er1 >conftest.err
36908   rm -f conftest.er1
36909   cat conftest.err >&5
36910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911   (exit $ac_status); } &&
36912          { ac_try='test -z "$ac_c_werror_flag"
36913                          || test ! -s conftest.err'
36914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36915   (eval $ac_try) 2>&5
36916   ac_status=$?
36917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918   (exit $ac_status); }; } &&
36919          { ac_try='test -s conftest$ac_exeext'
36920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921   (eval $ac_try) 2>&5
36922   ac_status=$?
36923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924   (exit $ac_status); }; }; then
36925   ac_cv_lib_gmp___gmpz_add_ui=yes
36926 else
36927   echo "$as_me: failed program was:" >&5
36928 sed 's/^/| /' conftest.$ac_ext >&5
36929
36930 ac_cv_lib_gmp___gmpz_add_ui=no
36931 fi
36932 rm -f conftest.err conftest.$ac_objext \
36933       conftest$ac_exeext conftest.$ac_ext
36934 LIBS=$ac_check_lib_save_LIBS
36935 fi
36936 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36937 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36938 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36939   cat >>confdefs.h <<_ACEOF
36940 #define HAVE_LIBGMP 1
36941 _ACEOF
36942
36943   LIBS="-lgmp $LIBS"
36944
36945 fi
36946
36947         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36948
36949 cat >>confdefs.h <<\_ACEOF
36950 #define USE_MP_GMP 1
36951 _ACEOF
36952
36953                 ol_with_mp=gmp
36954         elif test $ol_with_mp = gmp ; then
36955                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36956 echo "$as_me: error: gmp not available" >&2;}
36957    { (exit 1); exit 1; }; }
36958         fi
36959 fi
36960 if test $ol_with_mp = auto ; then
36961         ol_with_mp=no
36962 fi
36963
36964 echo "$as_me:$LINENO: checking for working memcmp" >&5
36965 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36966 if test "${ac_cv_func_memcmp_working+set}" = set; then
36967   echo $ECHO_N "(cached) $ECHO_C" >&6
36968 else
36969   if test "$cross_compiling" = yes; then
36970   ac_cv_func_memcmp_working=no
36971 else
36972   cat >conftest.$ac_ext <<_ACEOF
36973 /* confdefs.h.  */
36974 _ACEOF
36975 cat confdefs.h >>conftest.$ac_ext
36976 cat >>conftest.$ac_ext <<_ACEOF
36977 /* end confdefs.h.  */
36978 $ac_includes_default
36979 int
36980 main ()
36981 {
36982
36983   /* Some versions of memcmp are not 8-bit clean.  */
36984   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36985   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36986     exit (1);
36987
36988   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36989      or more and with at least one buffer not starting on a 4-byte boundary.
36990      William Lewis provided this test program.   */
36991   {
36992     char foo[21];
36993     char bar[21];
36994     int i;
36995     for (i = 0; i < 4; i++)
36996       {
36997         char *a = foo + i;
36998         char *b = bar + i;
36999         strcpy (a, "--------01111111");
37000         strcpy (b, "--------10000000");
37001         if (memcmp (a, b, 16) >= 0)
37002           exit (1);
37003       }
37004     exit (0);
37005   }
37006
37007   ;
37008   return 0;
37009 }
37010 _ACEOF
37011 rm -f conftest$ac_exeext
37012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37013   (eval $ac_link) 2>&5
37014   ac_status=$?
37015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37018   (eval $ac_try) 2>&5
37019   ac_status=$?
37020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37021   (exit $ac_status); }; }; then
37022   ac_cv_func_memcmp_working=yes
37023 else
37024   echo "$as_me: program exited with status $ac_status" >&5
37025 echo "$as_me: failed program was:" >&5
37026 sed 's/^/| /' conftest.$ac_ext >&5
37027
37028 ( exit $ac_status )
37029 ac_cv_func_memcmp_working=no
37030 fi
37031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37032 fi
37033 fi
37034 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
37035 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
37036 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
37037     "memcmp.$ac_objext"   | \
37038   *" memcmp.$ac_objext"   | \
37039     "memcmp.$ac_objext "* | \
37040   *" memcmp.$ac_objext "* ) ;;
37041   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
37042 esac
37043
37044
37045
37046 if test $ac_cv_func_memcmp_working = no ; then
37047
37048 cat >>confdefs.h <<\_ACEOF
37049 #define NEED_MEMCMP_REPLACEMENT 1
37050 _ACEOF
37051
37052 fi
37053
37054
37055 for ac_func in strftime
37056 do
37057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37058 echo "$as_me:$LINENO: checking for $ac_func" >&5
37059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37060 if eval "test \"\${$as_ac_var+set}\" = set"; then
37061   echo $ECHO_N "(cached) $ECHO_C" >&6
37062 else
37063   cat >conftest.$ac_ext <<_ACEOF
37064 /* confdefs.h.  */
37065 _ACEOF
37066 cat confdefs.h >>conftest.$ac_ext
37067 cat >>conftest.$ac_ext <<_ACEOF
37068 /* end confdefs.h.  */
37069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37071 #define $ac_func innocuous_$ac_func
37072
37073 /* System header to define __stub macros and hopefully few prototypes,
37074     which can conflict with char $ac_func (); below.
37075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37076     <limits.h> exists even on freestanding compilers.  */
37077
37078 #ifdef __STDC__
37079 # include <limits.h>
37080 #else
37081 # include <assert.h>
37082 #endif
37083
37084 #undef $ac_func
37085
37086 /* Override any gcc2 internal prototype to avoid an error.  */
37087 #ifdef __cplusplus
37088 extern "C"
37089 {
37090 #endif
37091 /* We use char because int might match the return type of a gcc2
37092    builtin and then its argument prototype would still apply.  */
37093 char $ac_func ();
37094 /* The GNU C library defines this for functions which it implements
37095     to always fail with ENOSYS.  Some functions are actually named
37096     something starting with __ and the normal name is an alias.  */
37097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37098 choke me
37099 #else
37100 char (*f) () = $ac_func;
37101 #endif
37102 #ifdef __cplusplus
37103 }
37104 #endif
37105
37106 int
37107 main ()
37108 {
37109 return f != $ac_func;
37110   ;
37111   return 0;
37112 }
37113 _ACEOF
37114 rm -f conftest.$ac_objext conftest$ac_exeext
37115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37116   (eval $ac_link) 2>conftest.er1
37117   ac_status=$?
37118   grep -v '^ *+' conftest.er1 >conftest.err
37119   rm -f conftest.er1
37120   cat conftest.err >&5
37121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122   (exit $ac_status); } &&
37123          { ac_try='test -z "$ac_c_werror_flag"
37124                          || test ! -s conftest.err'
37125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37126   (eval $ac_try) 2>&5
37127   ac_status=$?
37128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129   (exit $ac_status); }; } &&
37130          { ac_try='test -s conftest$ac_exeext'
37131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132   (eval $ac_try) 2>&5
37133   ac_status=$?
37134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135   (exit $ac_status); }; }; then
37136   eval "$as_ac_var=yes"
37137 else
37138   echo "$as_me: failed program was:" >&5
37139 sed 's/^/| /' conftest.$ac_ext >&5
37140
37141 eval "$as_ac_var=no"
37142 fi
37143 rm -f conftest.err conftest.$ac_objext \
37144       conftest$ac_exeext conftest.$ac_ext
37145 fi
37146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37148 if test `eval echo '${'$as_ac_var'}'` = yes; then
37149   cat >>confdefs.h <<_ACEOF
37150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37151 _ACEOF
37152
37153 else
37154   # strftime is in -lintl on SCO UNIX.
37155 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
37156 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
37157 if test "${ac_cv_lib_intl_strftime+set}" = set; then
37158   echo $ECHO_N "(cached) $ECHO_C" >&6
37159 else
37160   ac_check_lib_save_LIBS=$LIBS
37161 LIBS="-lintl  $LIBS"
37162 cat >conftest.$ac_ext <<_ACEOF
37163 /* confdefs.h.  */
37164 _ACEOF
37165 cat confdefs.h >>conftest.$ac_ext
37166 cat >>conftest.$ac_ext <<_ACEOF
37167 /* end confdefs.h.  */
37168
37169 /* Override any gcc2 internal prototype to avoid an error.  */
37170 #ifdef __cplusplus
37171 extern "C"
37172 #endif
37173 /* We use char because int might match the return type of a gcc2
37174    builtin and then its argument prototype would still apply.  */
37175 char strftime ();
37176 int
37177 main ()
37178 {
37179 strftime ();
37180   ;
37181   return 0;
37182 }
37183 _ACEOF
37184 rm -f conftest.$ac_objext conftest$ac_exeext
37185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37186   (eval $ac_link) 2>conftest.er1
37187   ac_status=$?
37188   grep -v '^ *+' conftest.er1 >conftest.err
37189   rm -f conftest.er1
37190   cat conftest.err >&5
37191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192   (exit $ac_status); } &&
37193          { ac_try='test -z "$ac_c_werror_flag"
37194                          || test ! -s conftest.err'
37195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37196   (eval $ac_try) 2>&5
37197   ac_status=$?
37198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199   (exit $ac_status); }; } &&
37200          { ac_try='test -s conftest$ac_exeext'
37201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202   (eval $ac_try) 2>&5
37203   ac_status=$?
37204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205   (exit $ac_status); }; }; then
37206   ac_cv_lib_intl_strftime=yes
37207 else
37208   echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37210
37211 ac_cv_lib_intl_strftime=no
37212 fi
37213 rm -f conftest.err conftest.$ac_objext \
37214       conftest$ac_exeext conftest.$ac_ext
37215 LIBS=$ac_check_lib_save_LIBS
37216 fi
37217 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
37218 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
37219 if test $ac_cv_lib_intl_strftime = yes; then
37220   cat >>confdefs.h <<\_ACEOF
37221 #define HAVE_STRFTIME 1
37222 _ACEOF
37223
37224 LIBS="-lintl $LIBS"
37225 fi
37226
37227 fi
37228 done
37229
37230
37231 echo "$as_me:$LINENO: checking for inet_aton()" >&5
37232 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
37233 if test "${ol_cv_func_inet_aton+set}" = set; then
37234   echo $ECHO_N "(cached) $ECHO_C" >&6
37235 else
37236   cat >conftest.$ac_ext <<_ACEOF
37237 /* confdefs.h.  */
37238 _ACEOF
37239 cat confdefs.h >>conftest.$ac_ext
37240 cat >>conftest.$ac_ext <<_ACEOF
37241 /* end confdefs.h.  */
37242
37243 #ifdef HAVE_SYS_TYPES_H
37244 #       include <sys/types.h>
37245 #endif
37246 #ifdef HAVE_SYS_SOCKET_H
37247 #       include <sys/socket.h>
37248 #       ifdef HAVE_SYS_SELECT_H
37249 #               include <sys/select.h>
37250 #       endif
37251 #       include <netinet/in.h>
37252 #       ifdef HAVE_ARPA_INET_H
37253 #               include <arpa/inet.h>
37254 #       endif
37255 #endif
37256
37257 int
37258 main ()
37259 {
37260 struct in_addr in;
37261 int rc = inet_aton( "255.255.255.255", &in );
37262   ;
37263   return 0;
37264 }
37265 _ACEOF
37266 rm -f conftest.$ac_objext conftest$ac_exeext
37267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37268   (eval $ac_link) 2>conftest.er1
37269   ac_status=$?
37270   grep -v '^ *+' conftest.er1 >conftest.err
37271   rm -f conftest.er1
37272   cat conftest.err >&5
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); } &&
37275          { ac_try='test -z "$ac_c_werror_flag"
37276                          || test ! -s conftest.err'
37277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37278   (eval $ac_try) 2>&5
37279   ac_status=$?
37280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37281   (exit $ac_status); }; } &&
37282          { ac_try='test -s conftest$ac_exeext'
37283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37284   (eval $ac_try) 2>&5
37285   ac_status=$?
37286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37287   (exit $ac_status); }; }; then
37288   ol_cv_func_inet_aton=yes
37289 else
37290   echo "$as_me: failed program was:" >&5
37291 sed 's/^/| /' conftest.$ac_ext >&5
37292
37293 ol_cv_func_inet_aton=no
37294 fi
37295 rm -f conftest.err conftest.$ac_objext \
37296       conftest$ac_exeext conftest.$ac_ext
37297 fi
37298 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
37299 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
37300   if test $ol_cv_func_inet_aton != no; then
37301
37302 cat >>confdefs.h <<\_ACEOF
37303 #define HAVE_INET_ATON 1
37304 _ACEOF
37305
37306   fi
37307
37308
37309 echo "$as_me:$LINENO: checking for _spawnlp" >&5
37310 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
37311 if test "${ac_cv_func__spawnlp+set}" = set; then
37312   echo $ECHO_N "(cached) $ECHO_C" >&6
37313 else
37314   cat >conftest.$ac_ext <<_ACEOF
37315 /* confdefs.h.  */
37316 _ACEOF
37317 cat confdefs.h >>conftest.$ac_ext
37318 cat >>conftest.$ac_ext <<_ACEOF
37319 /* end confdefs.h.  */
37320 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
37321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37322 #define _spawnlp innocuous__spawnlp
37323
37324 /* System header to define __stub macros and hopefully few prototypes,
37325     which can conflict with char _spawnlp (); below.
37326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37327     <limits.h> exists even on freestanding compilers.  */
37328
37329 #ifdef __STDC__
37330 # include <limits.h>
37331 #else
37332 # include <assert.h>
37333 #endif
37334
37335 #undef _spawnlp
37336
37337 /* Override any gcc2 internal prototype to avoid an error.  */
37338 #ifdef __cplusplus
37339 extern "C"
37340 {
37341 #endif
37342 /* We use char because int might match the return type of a gcc2
37343    builtin and then its argument prototype would still apply.  */
37344 char _spawnlp ();
37345 /* The GNU C library defines this for functions which it implements
37346     to always fail with ENOSYS.  Some functions are actually named
37347     something starting with __ and the normal name is an alias.  */
37348 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
37349 choke me
37350 #else
37351 char (*f) () = _spawnlp;
37352 #endif
37353 #ifdef __cplusplus
37354 }
37355 #endif
37356
37357 int
37358 main ()
37359 {
37360 return f != _spawnlp;
37361   ;
37362   return 0;
37363 }
37364 _ACEOF
37365 rm -f conftest.$ac_objext conftest$ac_exeext
37366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37367   (eval $ac_link) 2>conftest.er1
37368   ac_status=$?
37369   grep -v '^ *+' conftest.er1 >conftest.err
37370   rm -f conftest.er1
37371   cat conftest.err >&5
37372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37373   (exit $ac_status); } &&
37374          { ac_try='test -z "$ac_c_werror_flag"
37375                          || test ! -s conftest.err'
37376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37377   (eval $ac_try) 2>&5
37378   ac_status=$?
37379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37380   (exit $ac_status); }; } &&
37381          { ac_try='test -s conftest$ac_exeext'
37382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37383   (eval $ac_try) 2>&5
37384   ac_status=$?
37385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37386   (exit $ac_status); }; }; then
37387   ac_cv_func__spawnlp=yes
37388 else
37389   echo "$as_me: failed program was:" >&5
37390 sed 's/^/| /' conftest.$ac_ext >&5
37391
37392 ac_cv_func__spawnlp=no
37393 fi
37394 rm -f conftest.err conftest.$ac_objext \
37395       conftest$ac_exeext conftest.$ac_ext
37396 fi
37397 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
37398 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
37399 if test $ac_cv_func__spawnlp = yes; then
37400
37401 cat >>confdefs.h <<\_ACEOF
37402 #define HAVE_SPAWNLP 1
37403 _ACEOF
37404
37405 fi
37406
37407
37408 echo "$as_me:$LINENO: checking for _snprintf" >&5
37409 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
37410 if test "${ac_cv_func__snprintf+set}" = set; then
37411   echo $ECHO_N "(cached) $ECHO_C" >&6
37412 else
37413   cat >conftest.$ac_ext <<_ACEOF
37414 /* confdefs.h.  */
37415 _ACEOF
37416 cat confdefs.h >>conftest.$ac_ext
37417 cat >>conftest.$ac_ext <<_ACEOF
37418 /* end confdefs.h.  */
37419 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
37420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37421 #define _snprintf innocuous__snprintf
37422
37423 /* System header to define __stub macros and hopefully few prototypes,
37424     which can conflict with char _snprintf (); below.
37425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37426     <limits.h> exists even on freestanding compilers.  */
37427
37428 #ifdef __STDC__
37429 # include <limits.h>
37430 #else
37431 # include <assert.h>
37432 #endif
37433
37434 #undef _snprintf
37435
37436 /* Override any gcc2 internal prototype to avoid an error.  */
37437 #ifdef __cplusplus
37438 extern "C"
37439 {
37440 #endif
37441 /* We use char because int might match the return type of a gcc2
37442    builtin and then its argument prototype would still apply.  */
37443 char _snprintf ();
37444 /* The GNU C library defines this for functions which it implements
37445     to always fail with ENOSYS.  Some functions are actually named
37446     something starting with __ and the normal name is an alias.  */
37447 #if defined (__stub__snprintf) || defined (__stub____snprintf)
37448 choke me
37449 #else
37450 char (*f) () = _snprintf;
37451 #endif
37452 #ifdef __cplusplus
37453 }
37454 #endif
37455
37456 int
37457 main ()
37458 {
37459 return f != _snprintf;
37460   ;
37461   return 0;
37462 }
37463 _ACEOF
37464 rm -f conftest.$ac_objext conftest$ac_exeext
37465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37466   (eval $ac_link) 2>conftest.er1
37467   ac_status=$?
37468   grep -v '^ *+' conftest.er1 >conftest.err
37469   rm -f conftest.er1
37470   cat conftest.err >&5
37471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472   (exit $ac_status); } &&
37473          { ac_try='test -z "$ac_c_werror_flag"
37474                          || test ! -s conftest.err'
37475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37476   (eval $ac_try) 2>&5
37477   ac_status=$?
37478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479   (exit $ac_status); }; } &&
37480          { ac_try='test -s conftest$ac_exeext'
37481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482   (eval $ac_try) 2>&5
37483   ac_status=$?
37484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485   (exit $ac_status); }; }; then
37486   ac_cv_func__snprintf=yes
37487 else
37488   echo "$as_me: failed program was:" >&5
37489 sed 's/^/| /' conftest.$ac_ext >&5
37490
37491 ac_cv_func__snprintf=no
37492 fi
37493 rm -f conftest.err conftest.$ac_objext \
37494       conftest$ac_exeext conftest.$ac_ext
37495 fi
37496 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
37497 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
37498 if test $ac_cv_func__snprintf = yes; then
37499   ac_cv_func_snprintf=yes
37500
37501 cat >>confdefs.h <<\_ACEOF
37502 #define snprintf _snprintf
37503 _ACEOF
37504
37505
37506 fi
37507
37508
37509 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
37510 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
37511 if test "${ac_cv_func__vsnprintf+set}" = set; then
37512   echo $ECHO_N "(cached) $ECHO_C" >&6
37513 else
37514   cat >conftest.$ac_ext <<_ACEOF
37515 /* confdefs.h.  */
37516 _ACEOF
37517 cat confdefs.h >>conftest.$ac_ext
37518 cat >>conftest.$ac_ext <<_ACEOF
37519 /* end confdefs.h.  */
37520 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
37521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37522 #define _vsnprintf innocuous__vsnprintf
37523
37524 /* System header to define __stub macros and hopefully few prototypes,
37525     which can conflict with char _vsnprintf (); below.
37526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37527     <limits.h> exists even on freestanding compilers.  */
37528
37529 #ifdef __STDC__
37530 # include <limits.h>
37531 #else
37532 # include <assert.h>
37533 #endif
37534
37535 #undef _vsnprintf
37536
37537 /* Override any gcc2 internal prototype to avoid an error.  */
37538 #ifdef __cplusplus
37539 extern "C"
37540 {
37541 #endif
37542 /* We use char because int might match the return type of a gcc2
37543    builtin and then its argument prototype would still apply.  */
37544 char _vsnprintf ();
37545 /* The GNU C library defines this for functions which it implements
37546     to always fail with ENOSYS.  Some functions are actually named
37547     something starting with __ and the normal name is an alias.  */
37548 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
37549 choke me
37550 #else
37551 char (*f) () = _vsnprintf;
37552 #endif
37553 #ifdef __cplusplus
37554 }
37555 #endif
37556
37557 int
37558 main ()
37559 {
37560 return f != _vsnprintf;
37561   ;
37562   return 0;
37563 }
37564 _ACEOF
37565 rm -f conftest.$ac_objext conftest$ac_exeext
37566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37567   (eval $ac_link) 2>conftest.er1
37568   ac_status=$?
37569   grep -v '^ *+' conftest.er1 >conftest.err
37570   rm -f conftest.er1
37571   cat conftest.err >&5
37572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573   (exit $ac_status); } &&
37574          { ac_try='test -z "$ac_c_werror_flag"
37575                          || test ! -s conftest.err'
37576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37577   (eval $ac_try) 2>&5
37578   ac_status=$?
37579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37580   (exit $ac_status); }; } &&
37581          { ac_try='test -s conftest$ac_exeext'
37582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37583   (eval $ac_try) 2>&5
37584   ac_status=$?
37585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586   (exit $ac_status); }; }; then
37587   ac_cv_func__vsnprintf=yes
37588 else
37589   echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37591
37592 ac_cv_func__vsnprintf=no
37593 fi
37594 rm -f conftest.err conftest.$ac_objext \
37595       conftest$ac_exeext conftest.$ac_ext
37596 fi
37597 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
37598 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
37599 if test $ac_cv_func__vsnprintf = yes; then
37600   ac_cv_func_vsnprintf=yes
37601
37602 cat >>confdefs.h <<\_ACEOF
37603 #define vsnprintf _vsnprintf
37604 _ACEOF
37605
37606
37607 fi
37608
37609
37610
37611 for ac_func in vprintf
37612 do
37613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37614 echo "$as_me:$LINENO: checking for $ac_func" >&5
37615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37616 if eval "test \"\${$as_ac_var+set}\" = set"; then
37617   echo $ECHO_N "(cached) $ECHO_C" >&6
37618 else
37619   cat >conftest.$ac_ext <<_ACEOF
37620 /* confdefs.h.  */
37621 _ACEOF
37622 cat confdefs.h >>conftest.$ac_ext
37623 cat >>conftest.$ac_ext <<_ACEOF
37624 /* end confdefs.h.  */
37625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37627 #define $ac_func innocuous_$ac_func
37628
37629 /* System header to define __stub macros and hopefully few prototypes,
37630     which can conflict with char $ac_func (); below.
37631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37632     <limits.h> exists even on freestanding compilers.  */
37633
37634 #ifdef __STDC__
37635 # include <limits.h>
37636 #else
37637 # include <assert.h>
37638 #endif
37639
37640 #undef $ac_func
37641
37642 /* Override any gcc2 internal prototype to avoid an error.  */
37643 #ifdef __cplusplus
37644 extern "C"
37645 {
37646 #endif
37647 /* We use char because int might match the return type of a gcc2
37648    builtin and then its argument prototype would still apply.  */
37649 char $ac_func ();
37650 /* The GNU C library defines this for functions which it implements
37651     to always fail with ENOSYS.  Some functions are actually named
37652     something starting with __ and the normal name is an alias.  */
37653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37654 choke me
37655 #else
37656 char (*f) () = $ac_func;
37657 #endif
37658 #ifdef __cplusplus
37659 }
37660 #endif
37661
37662 int
37663 main ()
37664 {
37665 return f != $ac_func;
37666   ;
37667   return 0;
37668 }
37669 _ACEOF
37670 rm -f conftest.$ac_objext conftest$ac_exeext
37671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37672   (eval $ac_link) 2>conftest.er1
37673   ac_status=$?
37674   grep -v '^ *+' conftest.er1 >conftest.err
37675   rm -f conftest.er1
37676   cat conftest.err >&5
37677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678   (exit $ac_status); } &&
37679          { ac_try='test -z "$ac_c_werror_flag"
37680                          || test ! -s conftest.err'
37681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682   (eval $ac_try) 2>&5
37683   ac_status=$?
37684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685   (exit $ac_status); }; } &&
37686          { ac_try='test -s conftest$ac_exeext'
37687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688   (eval $ac_try) 2>&5
37689   ac_status=$?
37690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691   (exit $ac_status); }; }; then
37692   eval "$as_ac_var=yes"
37693 else
37694   echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37696
37697 eval "$as_ac_var=no"
37698 fi
37699 rm -f conftest.err conftest.$ac_objext \
37700       conftest$ac_exeext conftest.$ac_ext
37701 fi
37702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37704 if test `eval echo '${'$as_ac_var'}'` = yes; then
37705   cat >>confdefs.h <<_ACEOF
37706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37707 _ACEOF
37708
37709 echo "$as_me:$LINENO: checking for _doprnt" >&5
37710 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37711 if test "${ac_cv_func__doprnt+set}" = set; then
37712   echo $ECHO_N "(cached) $ECHO_C" >&6
37713 else
37714   cat >conftest.$ac_ext <<_ACEOF
37715 /* confdefs.h.  */
37716 _ACEOF
37717 cat confdefs.h >>conftest.$ac_ext
37718 cat >>conftest.$ac_ext <<_ACEOF
37719 /* end confdefs.h.  */
37720 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37721    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37722 #define _doprnt innocuous__doprnt
37723
37724 /* System header to define __stub macros and hopefully few prototypes,
37725     which can conflict with char _doprnt (); below.
37726     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37727     <limits.h> exists even on freestanding compilers.  */
37728
37729 #ifdef __STDC__
37730 # include <limits.h>
37731 #else
37732 # include <assert.h>
37733 #endif
37734
37735 #undef _doprnt
37736
37737 /* Override any gcc2 internal prototype to avoid an error.  */
37738 #ifdef __cplusplus
37739 extern "C"
37740 {
37741 #endif
37742 /* We use char because int might match the return type of a gcc2
37743    builtin and then its argument prototype would still apply.  */
37744 char _doprnt ();
37745 /* The GNU C library defines this for functions which it implements
37746     to always fail with ENOSYS.  Some functions are actually named
37747     something starting with __ and the normal name is an alias.  */
37748 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37749 choke me
37750 #else
37751 char (*f) () = _doprnt;
37752 #endif
37753 #ifdef __cplusplus
37754 }
37755 #endif
37756
37757 int
37758 main ()
37759 {
37760 return f != _doprnt;
37761   ;
37762   return 0;
37763 }
37764 _ACEOF
37765 rm -f conftest.$ac_objext conftest$ac_exeext
37766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37767   (eval $ac_link) 2>conftest.er1
37768   ac_status=$?
37769   grep -v '^ *+' conftest.er1 >conftest.err
37770   rm -f conftest.er1
37771   cat conftest.err >&5
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); } &&
37774          { ac_try='test -z "$ac_c_werror_flag"
37775                          || test ! -s conftest.err'
37776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37777   (eval $ac_try) 2>&5
37778   ac_status=$?
37779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37780   (exit $ac_status); }; } &&
37781          { ac_try='test -s conftest$ac_exeext'
37782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37783   (eval $ac_try) 2>&5
37784   ac_status=$?
37785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37786   (exit $ac_status); }; }; then
37787   ac_cv_func__doprnt=yes
37788 else
37789   echo "$as_me: failed program was:" >&5
37790 sed 's/^/| /' conftest.$ac_ext >&5
37791
37792 ac_cv_func__doprnt=no
37793 fi
37794 rm -f conftest.err conftest.$ac_objext \
37795       conftest$ac_exeext conftest.$ac_ext
37796 fi
37797 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37798 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37799 if test $ac_cv_func__doprnt = yes; then
37800
37801 cat >>confdefs.h <<\_ACEOF
37802 #define HAVE_DOPRNT 1
37803 _ACEOF
37804
37805 fi
37806
37807 fi
37808 done
37809
37810
37811
37812 if test $ac_cv_func_vprintf = yes ; then
37813
37814
37815 for ac_func in snprintf vsnprintf
37816 do
37817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37818 echo "$as_me:$LINENO: checking for $ac_func" >&5
37819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37820 if eval "test \"\${$as_ac_var+set}\" = set"; then
37821   echo $ECHO_N "(cached) $ECHO_C" >&6
37822 else
37823   cat >conftest.$ac_ext <<_ACEOF
37824 /* confdefs.h.  */
37825 _ACEOF
37826 cat confdefs.h >>conftest.$ac_ext
37827 cat >>conftest.$ac_ext <<_ACEOF
37828 /* end confdefs.h.  */
37829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37831 #define $ac_func innocuous_$ac_func
37832
37833 /* System header to define __stub macros and hopefully few prototypes,
37834     which can conflict with char $ac_func (); below.
37835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37836     <limits.h> exists even on freestanding compilers.  */
37837
37838 #ifdef __STDC__
37839 # include <limits.h>
37840 #else
37841 # include <assert.h>
37842 #endif
37843
37844 #undef $ac_func
37845
37846 /* Override any gcc2 internal prototype to avoid an error.  */
37847 #ifdef __cplusplus
37848 extern "C"
37849 {
37850 #endif
37851 /* We use char because int might match the return type of a gcc2
37852    builtin and then its argument prototype would still apply.  */
37853 char $ac_func ();
37854 /* The GNU C library defines this for functions which it implements
37855     to always fail with ENOSYS.  Some functions are actually named
37856     something starting with __ and the normal name is an alias.  */
37857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37858 choke me
37859 #else
37860 char (*f) () = $ac_func;
37861 #endif
37862 #ifdef __cplusplus
37863 }
37864 #endif
37865
37866 int
37867 main ()
37868 {
37869 return f != $ac_func;
37870   ;
37871   return 0;
37872 }
37873 _ACEOF
37874 rm -f conftest.$ac_objext conftest$ac_exeext
37875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37876   (eval $ac_link) 2>conftest.er1
37877   ac_status=$?
37878   grep -v '^ *+' conftest.er1 >conftest.err
37879   rm -f conftest.er1
37880   cat conftest.err >&5
37881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37882   (exit $ac_status); } &&
37883          { ac_try='test -z "$ac_c_werror_flag"
37884                          || test ! -s conftest.err'
37885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37886   (eval $ac_try) 2>&5
37887   ac_status=$?
37888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889   (exit $ac_status); }; } &&
37890          { ac_try='test -s conftest$ac_exeext'
37891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37892   (eval $ac_try) 2>&5
37893   ac_status=$?
37894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895   (exit $ac_status); }; }; then
37896   eval "$as_ac_var=yes"
37897 else
37898   echo "$as_me: failed program was:" >&5
37899 sed 's/^/| /' conftest.$ac_ext >&5
37900
37901 eval "$as_ac_var=no"
37902 fi
37903 rm -f conftest.err conftest.$ac_objext \
37904       conftest$ac_exeext conftest.$ac_ext
37905 fi
37906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37907 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37908 if test `eval echo '${'$as_ac_var'}'` = yes; then
37909   cat >>confdefs.h <<_ACEOF
37910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37911 _ACEOF
37912
37913 fi
37914 done
37915
37916 fi
37917
37918
37919
37920
37921
37922
37923
37924
37925
37926
37927
37928
37929
37930
37931
37932
37933
37934
37935
37936
37937
37938
37939
37940
37941
37942
37943
37944
37945
37946
37947
37948
37949
37950
37951
37952
37953
37954
37955
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966
37967
37968
37969
37970
37971
37972
37973 for ac_func in \
37974         bcopy                   \
37975         closesocket             \
37976         chroot                  \
37977         endgrent                \
37978         endpwent                \
37979         fcntl                   \
37980         flock                   \
37981         fstat                   \
37982         getdtablesize           \
37983         getgrgid                \
37984         gethostname             \
37985         getpass                 \
37986         getpassphrase           \
37987         getpwuid                \
37988         getpwnam                \
37989         getspnam                \
37990         gettimeofday            \
37991         initgroups              \
37992         inet_ntoa_b             \
37993         ioctl                   \
37994         lockf                   \
37995         memcpy                  \
37996         memmove                 \
37997         memrchr                 \
37998         mkstemp                 \
37999         mktemp                  \
38000         pipe                    \
38001         read                    \
38002         recv                    \
38003         recvfrom                \
38004         setpwfile               \
38005         setgid                  \
38006         setegid                 \
38007         setsid                  \
38008         setuid                  \
38009         seteuid                 \
38010         signal                  \
38011         strdup                  \
38012         strpbrk                 \
38013         strrchr                 \
38014         strsep                  \
38015         strstr                  \
38016         strtol                  \
38017         strtoul                 \
38018         strtoq                  \
38019         strtouq                 \
38020         strtoll                 \
38021         strspn                  \
38022         sysconf                 \
38023         waitpid                 \
38024         wait4                   \
38025         write                   \
38026         send                    \
38027         sendmsg                 \
38028         sendto                  \
38029
38030 do
38031 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38032 echo "$as_me:$LINENO: checking for $ac_func" >&5
38033 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38034 if eval "test \"\${$as_ac_var+set}\" = set"; then
38035   echo $ECHO_N "(cached) $ECHO_C" >&6
38036 else
38037   cat >conftest.$ac_ext <<_ACEOF
38038 /* confdefs.h.  */
38039 _ACEOF
38040 cat confdefs.h >>conftest.$ac_ext
38041 cat >>conftest.$ac_ext <<_ACEOF
38042 /* end confdefs.h.  */
38043 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38045 #define $ac_func innocuous_$ac_func
38046
38047 /* System header to define __stub macros and hopefully few prototypes,
38048     which can conflict with char $ac_func (); below.
38049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38050     <limits.h> exists even on freestanding compilers.  */
38051
38052 #ifdef __STDC__
38053 # include <limits.h>
38054 #else
38055 # include <assert.h>
38056 #endif
38057
38058 #undef $ac_func
38059
38060 /* Override any gcc2 internal prototype to avoid an error.  */
38061 #ifdef __cplusplus
38062 extern "C"
38063 {
38064 #endif
38065 /* We use char because int might match the return type of a gcc2
38066    builtin and then its argument prototype would still apply.  */
38067 char $ac_func ();
38068 /* The GNU C library defines this for functions which it implements
38069     to always fail with ENOSYS.  Some functions are actually named
38070     something starting with __ and the normal name is an alias.  */
38071 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38072 choke me
38073 #else
38074 char (*f) () = $ac_func;
38075 #endif
38076 #ifdef __cplusplus
38077 }
38078 #endif
38079
38080 int
38081 main ()
38082 {
38083 return f != $ac_func;
38084   ;
38085   return 0;
38086 }
38087 _ACEOF
38088 rm -f conftest.$ac_objext conftest$ac_exeext
38089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38090   (eval $ac_link) 2>conftest.er1
38091   ac_status=$?
38092   grep -v '^ *+' conftest.er1 >conftest.err
38093   rm -f conftest.er1
38094   cat conftest.err >&5
38095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38096   (exit $ac_status); } &&
38097          { ac_try='test -z "$ac_c_werror_flag"
38098                          || test ! -s conftest.err'
38099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38100   (eval $ac_try) 2>&5
38101   ac_status=$?
38102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103   (exit $ac_status); }; } &&
38104          { ac_try='test -s conftest$ac_exeext'
38105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38106   (eval $ac_try) 2>&5
38107   ac_status=$?
38108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38109   (exit $ac_status); }; }; then
38110   eval "$as_ac_var=yes"
38111 else
38112   echo "$as_me: failed program was:" >&5
38113 sed 's/^/| /' conftest.$ac_ext >&5
38114
38115 eval "$as_ac_var=no"
38116 fi
38117 rm -f conftest.err conftest.$ac_objext \
38118       conftest$ac_exeext conftest.$ac_ext
38119 fi
38120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38121 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38122 if test `eval echo '${'$as_ac_var'}'` = yes; then
38123   cat >>confdefs.h <<_ACEOF
38124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38125 _ACEOF
38126
38127 fi
38128 done
38129
38130
38131
38132
38133 for ac_func in getopt getpeereid
38134 do
38135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38136 echo "$as_me:$LINENO: checking for $ac_func" >&5
38137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38138 if eval "test \"\${$as_ac_var+set}\" = set"; then
38139   echo $ECHO_N "(cached) $ECHO_C" >&6
38140 else
38141   cat >conftest.$ac_ext <<_ACEOF
38142 /* confdefs.h.  */
38143 _ACEOF
38144 cat confdefs.h >>conftest.$ac_ext
38145 cat >>conftest.$ac_ext <<_ACEOF
38146 /* end confdefs.h.  */
38147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38149 #define $ac_func innocuous_$ac_func
38150
38151 /* System header to define __stub macros and hopefully few prototypes,
38152     which can conflict with char $ac_func (); below.
38153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38154     <limits.h> exists even on freestanding compilers.  */
38155
38156 #ifdef __STDC__
38157 # include <limits.h>
38158 #else
38159 # include <assert.h>
38160 #endif
38161
38162 #undef $ac_func
38163
38164 /* Override any gcc2 internal prototype to avoid an error.  */
38165 #ifdef __cplusplus
38166 extern "C"
38167 {
38168 #endif
38169 /* We use char because int might match the return type of a gcc2
38170    builtin and then its argument prototype would still apply.  */
38171 char $ac_func ();
38172 /* The GNU C library defines this for functions which it implements
38173     to always fail with ENOSYS.  Some functions are actually named
38174     something starting with __ and the normal name is an alias.  */
38175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38176 choke me
38177 #else
38178 char (*f) () = $ac_func;
38179 #endif
38180 #ifdef __cplusplus
38181 }
38182 #endif
38183
38184 int
38185 main ()
38186 {
38187 return f != $ac_func;
38188   ;
38189   return 0;
38190 }
38191 _ACEOF
38192 rm -f conftest.$ac_objext conftest$ac_exeext
38193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38194   (eval $ac_link) 2>conftest.er1
38195   ac_status=$?
38196   grep -v '^ *+' conftest.er1 >conftest.err
38197   rm -f conftest.er1
38198   cat conftest.err >&5
38199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38200   (exit $ac_status); } &&
38201          { ac_try='test -z "$ac_c_werror_flag"
38202                          || test ! -s conftest.err'
38203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38204   (eval $ac_try) 2>&5
38205   ac_status=$?
38206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38207   (exit $ac_status); }; } &&
38208          { ac_try='test -s conftest$ac_exeext'
38209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38210   (eval $ac_try) 2>&5
38211   ac_status=$?
38212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213   (exit $ac_status); }; }; then
38214   eval "$as_ac_var=yes"
38215 else
38216   echo "$as_me: failed program was:" >&5
38217 sed 's/^/| /' conftest.$ac_ext >&5
38218
38219 eval "$as_ac_var=no"
38220 fi
38221 rm -f conftest.err conftest.$ac_objext \
38222       conftest$ac_exeext conftest.$ac_ext
38223 fi
38224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38226 if test `eval echo '${'$as_ac_var'}'` = yes; then
38227   cat >>confdefs.h <<_ACEOF
38228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38229 _ACEOF
38230
38231 else
38232   case $LIBOBJS in
38233     "$ac_func.$ac_objext"   | \
38234   *" $ac_func.$ac_objext"   | \
38235     "$ac_func.$ac_objext "* | \
38236   *" $ac_func.$ac_objext "* ) ;;
38237   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38238 esac
38239
38240 fi
38241 done
38242
38243
38244
38245 if test "$ac_cv_func_getopt" != yes; then
38246         LIBSRCS="$LIBSRCS getopt.c"
38247 fi
38248
38249 if test "$ac_cv_func_getpeereid" != yes; then
38250
38251 for ac_func in getpeerucred
38252 do
38253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38254 echo "$as_me:$LINENO: checking for $ac_func" >&5
38255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38256 if eval "test \"\${$as_ac_var+set}\" = set"; then
38257   echo $ECHO_N "(cached) $ECHO_C" >&6
38258 else
38259   cat >conftest.$ac_ext <<_ACEOF
38260 /* confdefs.h.  */
38261 _ACEOF
38262 cat confdefs.h >>conftest.$ac_ext
38263 cat >>conftest.$ac_ext <<_ACEOF
38264 /* end confdefs.h.  */
38265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38267 #define $ac_func innocuous_$ac_func
38268
38269 /* System header to define __stub macros and hopefully few prototypes,
38270     which can conflict with char $ac_func (); below.
38271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38272     <limits.h> exists even on freestanding compilers.  */
38273
38274 #ifdef __STDC__
38275 # include <limits.h>
38276 #else
38277 # include <assert.h>
38278 #endif
38279
38280 #undef $ac_func
38281
38282 /* Override any gcc2 internal prototype to avoid an error.  */
38283 #ifdef __cplusplus
38284 extern "C"
38285 {
38286 #endif
38287 /* We use char because int might match the return type of a gcc2
38288    builtin and then its argument prototype would still apply.  */
38289 char $ac_func ();
38290 /* The GNU C library defines this for functions which it implements
38291     to always fail with ENOSYS.  Some functions are actually named
38292     something starting with __ and the normal name is an alias.  */
38293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38294 choke me
38295 #else
38296 char (*f) () = $ac_func;
38297 #endif
38298 #ifdef __cplusplus
38299 }
38300 #endif
38301
38302 int
38303 main ()
38304 {
38305 return f != $ac_func;
38306   ;
38307   return 0;
38308 }
38309 _ACEOF
38310 rm -f conftest.$ac_objext conftest$ac_exeext
38311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38312   (eval $ac_link) 2>conftest.er1
38313   ac_status=$?
38314   grep -v '^ *+' conftest.er1 >conftest.err
38315   rm -f conftest.er1
38316   cat conftest.err >&5
38317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318   (exit $ac_status); } &&
38319          { ac_try='test -z "$ac_c_werror_flag"
38320                          || test ! -s conftest.err'
38321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38322   (eval $ac_try) 2>&5
38323   ac_status=$?
38324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38325   (exit $ac_status); }; } &&
38326          { ac_try='test -s conftest$ac_exeext'
38327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38328   (eval $ac_try) 2>&5
38329   ac_status=$?
38330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38331   (exit $ac_status); }; }; then
38332   eval "$as_ac_var=yes"
38333 else
38334   echo "$as_me: failed program was:" >&5
38335 sed 's/^/| /' conftest.$ac_ext >&5
38336
38337 eval "$as_ac_var=no"
38338 fi
38339 rm -f conftest.err conftest.$ac_objext \
38340       conftest$ac_exeext conftest.$ac_ext
38341 fi
38342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38343 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38344 if test `eval echo '${'$as_ac_var'}'` = yes; then
38345   cat >>confdefs.h <<_ACEOF
38346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38347 _ACEOF
38348
38349 fi
38350 done
38351
38352         if test "$ac_cv_func_getpeerucred" != yes ; then
38353                 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
38354 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
38355 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
38356   echo $ECHO_N "(cached) $ECHO_C" >&6
38357 else
38358   cat >conftest.$ac_ext <<_ACEOF
38359 /* confdefs.h.  */
38360 _ACEOF
38361 cat confdefs.h >>conftest.$ac_ext
38362 cat >>conftest.$ac_ext <<_ACEOF
38363 /* end confdefs.h.  */
38364 $ac_includes_default
38365 #ifdef HAVE_SYS_SOCKET_H
38366 #include <sys/socket.h>
38367 #endif
38368
38369 int
38370 main ()
38371 {
38372 static struct msghdr ac_aggr;
38373 if (ac_aggr.msg_accrightslen)
38374 return 0;
38375   ;
38376   return 0;
38377 }
38378 _ACEOF
38379 rm -f conftest.$ac_objext
38380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38381   (eval $ac_compile) 2>conftest.er1
38382   ac_status=$?
38383   grep -v '^ *+' conftest.er1 >conftest.err
38384   rm -f conftest.er1
38385   cat conftest.err >&5
38386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38387   (exit $ac_status); } &&
38388          { ac_try='test -z "$ac_c_werror_flag"
38389                          || test ! -s conftest.err'
38390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38391   (eval $ac_try) 2>&5
38392   ac_status=$?
38393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38394   (exit $ac_status); }; } &&
38395          { ac_try='test -s conftest.$ac_objext'
38396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397   (eval $ac_try) 2>&5
38398   ac_status=$?
38399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400   (exit $ac_status); }; }; then
38401   ac_cv_member_struct_msghdr_msg_accrightslen=yes
38402 else
38403   echo "$as_me: failed program was:" >&5
38404 sed 's/^/| /' conftest.$ac_ext >&5
38405
38406 cat >conftest.$ac_ext <<_ACEOF
38407 /* confdefs.h.  */
38408 _ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h.  */
38412 $ac_includes_default
38413 #ifdef HAVE_SYS_SOCKET_H
38414 #include <sys/socket.h>
38415 #endif
38416
38417 int
38418 main ()
38419 {
38420 static struct msghdr ac_aggr;
38421 if (sizeof ac_aggr.msg_accrightslen)
38422 return 0;
38423   ;
38424   return 0;
38425 }
38426 _ACEOF
38427 rm -f conftest.$ac_objext
38428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38429   (eval $ac_compile) 2>conftest.er1
38430   ac_status=$?
38431   grep -v '^ *+' conftest.er1 >conftest.err
38432   rm -f conftest.er1
38433   cat conftest.err >&5
38434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435   (exit $ac_status); } &&
38436          { ac_try='test -z "$ac_c_werror_flag"
38437                          || test ! -s conftest.err'
38438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38439   (eval $ac_try) 2>&5
38440   ac_status=$?
38441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442   (exit $ac_status); }; } &&
38443          { ac_try='test -s conftest.$ac_objext'
38444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38445   (eval $ac_try) 2>&5
38446   ac_status=$?
38447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448   (exit $ac_status); }; }; then
38449   ac_cv_member_struct_msghdr_msg_accrightslen=yes
38450 else
38451   echo "$as_me: failed program was:" >&5
38452 sed 's/^/| /' conftest.$ac_ext >&5
38453
38454 ac_cv_member_struct_msghdr_msg_accrightslen=no
38455 fi
38456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38457 fi
38458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38459 fi
38460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
38461 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
38462 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
38463
38464 cat >>confdefs.h <<_ACEOF
38465 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
38466 _ACEOF
38467
38468
38469 fi
38470
38471                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
38472                         echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
38473 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
38474 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
38475   echo $ECHO_N "(cached) $ECHO_C" >&6
38476 else
38477   cat >conftest.$ac_ext <<_ACEOF
38478 /* confdefs.h.  */
38479 _ACEOF
38480 cat confdefs.h >>conftest.$ac_ext
38481 cat >>conftest.$ac_ext <<_ACEOF
38482 /* end confdefs.h.  */
38483 $ac_includes_default
38484 #ifdef HAVE_SYS_SOCKET_H
38485 #include <sys/socket.h>
38486 #endif
38487
38488 int
38489 main ()
38490 {
38491 static struct msghdr ac_aggr;
38492 if (ac_aggr.msg_control)
38493 return 0;
38494   ;
38495   return 0;
38496 }
38497 _ACEOF
38498 rm -f conftest.$ac_objext
38499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38500   (eval $ac_compile) 2>conftest.er1
38501   ac_status=$?
38502   grep -v '^ *+' conftest.er1 >conftest.err
38503   rm -f conftest.er1
38504   cat conftest.err >&5
38505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38506   (exit $ac_status); } &&
38507          { ac_try='test -z "$ac_c_werror_flag"
38508                          || test ! -s conftest.err'
38509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38510   (eval $ac_try) 2>&5
38511   ac_status=$?
38512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38513   (exit $ac_status); }; } &&
38514          { ac_try='test -s conftest.$ac_objext'
38515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38516   (eval $ac_try) 2>&5
38517   ac_status=$?
38518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38519   (exit $ac_status); }; }; then
38520   ac_cv_member_struct_msghdr_msg_control=yes
38521 else
38522   echo "$as_me: failed program was:" >&5
38523 sed 's/^/| /' conftest.$ac_ext >&5
38524
38525 cat >conftest.$ac_ext <<_ACEOF
38526 /* confdefs.h.  */
38527 _ACEOF
38528 cat confdefs.h >>conftest.$ac_ext
38529 cat >>conftest.$ac_ext <<_ACEOF
38530 /* end confdefs.h.  */
38531 $ac_includes_default
38532 #ifdef HAVE_SYS_SOCKET_H
38533 #include <sys/socket.h>
38534 #endif
38535
38536 int
38537 main ()
38538 {
38539 static struct msghdr ac_aggr;
38540 if (sizeof ac_aggr.msg_control)
38541 return 0;
38542   ;
38543   return 0;
38544 }
38545 _ACEOF
38546 rm -f conftest.$ac_objext
38547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38548   (eval $ac_compile) 2>conftest.er1
38549   ac_status=$?
38550   grep -v '^ *+' conftest.er1 >conftest.err
38551   rm -f conftest.er1
38552   cat conftest.err >&5
38553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38554   (exit $ac_status); } &&
38555          { ac_try='test -z "$ac_c_werror_flag"
38556                          || test ! -s conftest.err'
38557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558   (eval $ac_try) 2>&5
38559   ac_status=$?
38560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561   (exit $ac_status); }; } &&
38562          { ac_try='test -s conftest.$ac_objext'
38563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564   (eval $ac_try) 2>&5
38565   ac_status=$?
38566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567   (exit $ac_status); }; }; then
38568   ac_cv_member_struct_msghdr_msg_control=yes
38569 else
38570   echo "$as_me: failed program was:" >&5
38571 sed 's/^/| /' conftest.$ac_ext >&5
38572
38573 ac_cv_member_struct_msghdr_msg_control=no
38574 fi
38575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38576 fi
38577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38578 fi
38579 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
38580 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
38581 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
38582
38583 cat >>confdefs.h <<_ACEOF
38584 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38585 _ACEOF
38586
38587
38588 fi
38589
38590                 fi
38591         fi
38592         LIBSRCS="$LIBSRCS getpeereid.c"
38593 fi
38594
38595 if test "$ac_cv_func_snprintf" != yes ||
38596    test "$ac_cv_func_vsnprintf" != yes; then
38597         if test "$ac_cv_func_snprintf" != yes; then
38598
38599 cat >>confdefs.h <<\_ACEOF
38600 #define snprintf ber_pvt_snprintf
38601 _ACEOF
38602
38603         fi
38604         if test "$ac_cv_func_vsnprintf" != yes; then
38605
38606 cat >>confdefs.h <<\_ACEOF
38607 #define vsnprintf ber_pvt_vsnprintf
38608 _ACEOF
38609
38610         fi
38611 fi
38612
38613
38614 if test "$ol_enable_slapi" != no ; then
38615
38616 for ac_header in ltdl.h
38617 do
38618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38619 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38620   echo "$as_me:$LINENO: checking for $ac_header" >&5
38621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38623   echo $ECHO_N "(cached) $ECHO_C" >&6
38624 fi
38625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38627 else
38628   # Is the header compilable?
38629 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38631 cat >conftest.$ac_ext <<_ACEOF
38632 /* confdefs.h.  */
38633 _ACEOF
38634 cat confdefs.h >>conftest.$ac_ext
38635 cat >>conftest.$ac_ext <<_ACEOF
38636 /* end confdefs.h.  */
38637 $ac_includes_default
38638 #include <$ac_header>
38639 _ACEOF
38640 rm -f conftest.$ac_objext
38641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38642   (eval $ac_compile) 2>conftest.er1
38643   ac_status=$?
38644   grep -v '^ *+' conftest.er1 >conftest.err
38645   rm -f conftest.er1
38646   cat conftest.err >&5
38647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38648   (exit $ac_status); } &&
38649          { ac_try='test -z "$ac_c_werror_flag"
38650                          || test ! -s conftest.err'
38651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38652   (eval $ac_try) 2>&5
38653   ac_status=$?
38654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38655   (exit $ac_status); }; } &&
38656          { ac_try='test -s conftest.$ac_objext'
38657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38658   (eval $ac_try) 2>&5
38659   ac_status=$?
38660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38661   (exit $ac_status); }; }; then
38662   ac_header_compiler=yes
38663 else
38664   echo "$as_me: failed program was:" >&5
38665 sed 's/^/| /' conftest.$ac_ext >&5
38666
38667 ac_header_compiler=no
38668 fi
38669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38670 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38671 echo "${ECHO_T}$ac_header_compiler" >&6
38672
38673 # Is the header present?
38674 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38676 cat >conftest.$ac_ext <<_ACEOF
38677 /* confdefs.h.  */
38678 _ACEOF
38679 cat confdefs.h >>conftest.$ac_ext
38680 cat >>conftest.$ac_ext <<_ACEOF
38681 /* end confdefs.h.  */
38682 #include <$ac_header>
38683 _ACEOF
38684 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38685   (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
38692   if test -s conftest.err; then
38693     ac_cpp_err=$ac_c_preproc_warn_flag
38694     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38695   else
38696     ac_cpp_err=
38697   fi
38698 else
38699   ac_cpp_err=yes
38700 fi
38701 if test -z "$ac_cpp_err"; then
38702   ac_header_preproc=yes
38703 else
38704   echo "$as_me: failed program was:" >&5
38705 sed 's/^/| /' conftest.$ac_ext >&5
38706
38707   ac_header_preproc=no
38708 fi
38709 rm -f conftest.err conftest.$ac_ext
38710 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38711 echo "${ECHO_T}$ac_header_preproc" >&6
38712
38713 # So?  What about this header?
38714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38715   yes:no: )
38716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38720     ac_header_preproc=yes
38721     ;;
38722   no:yes:* )
38723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38735     (
38736       cat <<\_ASBOX
38737 ## --------------------------------------------- ##
38738 ## Report this to <http://www.openldap.org/its/> ##
38739 ## --------------------------------------------- ##
38740 _ASBOX
38741     ) |
38742       sed "s/^/$as_me: WARNING:     /" >&2
38743     ;;
38744 esac
38745 echo "$as_me:$LINENO: checking for $ac_header" >&5
38746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38748   echo $ECHO_N "(cached) $ECHO_C" >&6
38749 else
38750   eval "$as_ac_Header=\$ac_header_preproc"
38751 fi
38752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38754
38755 fi
38756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38757   cat >>confdefs.h <<_ACEOF
38758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38759 _ACEOF
38760
38761 fi
38762
38763 done
38764
38765
38766         if test $ac_cv_header_ltdl_h != yes ; then
38767                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38768 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38769    { (exit 1); exit 1; }; }
38770         fi
38771         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38772 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38773 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38774   echo $ECHO_N "(cached) $ECHO_C" >&6
38775 else
38776   ac_check_lib_save_LIBS=$LIBS
38777 LIBS="-lltdl  $LIBS"
38778 cat >conftest.$ac_ext <<_ACEOF
38779 /* confdefs.h.  */
38780 _ACEOF
38781 cat confdefs.h >>conftest.$ac_ext
38782 cat >>conftest.$ac_ext <<_ACEOF
38783 /* end confdefs.h.  */
38784
38785 /* Override any gcc2 internal prototype to avoid an error.  */
38786 #ifdef __cplusplus
38787 extern "C"
38788 #endif
38789 /* We use char because int might match the return type of a gcc2
38790    builtin and then its argument prototype would still apply.  */
38791 char lt_dlinit ();
38792 int
38793 main ()
38794 {
38795 lt_dlinit ();
38796   ;
38797   return 0;
38798 }
38799 _ACEOF
38800 rm -f conftest.$ac_objext conftest$ac_exeext
38801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38802   (eval $ac_link) 2>conftest.er1
38803   ac_status=$?
38804   grep -v '^ *+' conftest.er1 >conftest.err
38805   rm -f conftest.er1
38806   cat conftest.err >&5
38807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38808   (exit $ac_status); } &&
38809          { ac_try='test -z "$ac_c_werror_flag"
38810                          || test ! -s conftest.err'
38811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38812   (eval $ac_try) 2>&5
38813   ac_status=$?
38814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38815   (exit $ac_status); }; } &&
38816          { ac_try='test -s conftest$ac_exeext'
38817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38818   (eval $ac_try) 2>&5
38819   ac_status=$?
38820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38821   (exit $ac_status); }; }; then
38822   ac_cv_lib_ltdl_lt_dlinit=yes
38823 else
38824   echo "$as_me: failed program was:" >&5
38825 sed 's/^/| /' conftest.$ac_ext >&5
38826
38827 ac_cv_lib_ltdl_lt_dlinit=no
38828 fi
38829 rm -f conftest.err conftest.$ac_objext \
38830       conftest$ac_exeext conftest.$ac_ext
38831 LIBS=$ac_check_lib_save_LIBS
38832 fi
38833 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38834 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38835 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38836
38837                 SLAPI_LIBS=-lltdl
38838                 LIBSLAPI=libslapi.a
38839                 LIBSLAPITOOLS=../libslapi.a
38840
38841 cat >>confdefs.h <<\_ACEOF
38842 #define HAVE_LIBLTDL 1
38843 _ACEOF
38844
38845
38846 else
38847   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38848 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38849    { (exit 1); exit 1; }; }
38850 fi
38851
38852
38853
38854 cat >>confdefs.h <<\_ACEOF
38855 #define LDAP_SLAPI 1
38856 _ACEOF
38857
38858 fi
38859
38860 if test "$ol_enable_debug" != no ; then
38861         if test "$ol_enable_debug" = traditional; then
38862
38863 cat >>confdefs.h <<\_ACEOF
38864 #define OLD_DEBUG 1
38865 _ACEOF
38866
38867         fi
38868
38869 cat >>confdefs.h <<\_ACEOF
38870 #define LDAP_DEBUG 1
38871 _ACEOF
38872
38873 fi
38874 if test "$ol_enable_syslog" = yes ; then
38875
38876 cat >>confdefs.h <<\_ACEOF
38877 #define LDAP_SYSLOG 1
38878 _ACEOF
38879
38880 fi
38881 if test "$ol_enable_proctitle" != no ; then
38882
38883 cat >>confdefs.h <<\_ACEOF
38884 #define LDAP_PROCTITLE 1
38885 _ACEOF
38886
38887 fi
38888 if test "$ol_enable_referrals" != no ; then
38889
38890 cat >>confdefs.h <<\_ACEOF
38891 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38892 _ACEOF
38893
38894 fi
38895 if test "$ol_enable_local" != no; then
38896
38897 cat >>confdefs.h <<\_ACEOF
38898 #define LDAP_PF_LOCAL 1
38899 _ACEOF
38900
38901 fi
38902 if test "$ol_link_ipv6" != no; then
38903
38904 cat >>confdefs.h <<\_ACEOF
38905 #define LDAP_PF_INET6 1
38906 _ACEOF
38907
38908 fi
38909 if test "$ol_enable_cleartext" != no ; then
38910
38911 cat >>confdefs.h <<\_ACEOF
38912 #define SLAPD_CLEARTEXT 1
38913 _ACEOF
38914
38915 fi
38916 if test "$ol_enable_crypt" != no ; then
38917
38918 cat >>confdefs.h <<\_ACEOF
38919 #define SLAPD_CRYPT 1
38920 _ACEOF
38921
38922 fi
38923 if test "$ol_link_spasswd" != no ; then
38924
38925 cat >>confdefs.h <<\_ACEOF
38926 #define SLAPD_SPASSWD 1
38927 _ACEOF
38928
38929 fi
38930 if test "$ol_enable_rlookups" != no ; then
38931
38932 cat >>confdefs.h <<\_ACEOF
38933 #define SLAPD_RLOOKUPS 1
38934 _ACEOF
38935
38936 fi
38937 if test "$ol_enable_aci" != no ; then
38938         if test $ol_enable_dynacl = no ; then
38939                 ol_enable_dynacl=yes
38940                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38941 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38942         fi
38943         if test "$ol_enable_aci" = mod ; then
38944                 MFLAG=SLAPD_MOD_DYNAMIC
38945                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38946 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38947    { (exit 1); exit 1; }; }
38948         else
38949                 MFLAG=SLAPD_MOD_STATIC
38950         fi
38951         WITH_ACI_ENABLED=$ol_enable_aci
38952
38953 cat >>confdefs.h <<_ACEOF
38954 #define SLAPD_ACI_ENABLED $MFLAG
38955 _ACEOF
38956
38957 else
38958         WITH_ACI_ENABLED=no
38959 fi
38960 if test "$ol_enable_dynacl" != no ; then
38961
38962 cat >>confdefs.h <<\_ACEOF
38963 #define SLAP_DYNACL 1
38964 _ACEOF
38965
38966 fi
38967
38968 if test "$ol_link_modules" != no ; then
38969
38970 cat >>confdefs.h <<\_ACEOF
38971 #define SLAPD_MODULES 1
38972 _ACEOF
38973
38974         BUILD_SLAPD=yes
38975         SLAPD_MODULES_LDFLAGS="-dlopen self"
38976 fi
38977
38978
38979 cat >>confdefs.h <<\_ACEOF
38980 #define SLAPD_MOD_STATIC 1
38981 _ACEOF
38982
38983
38984 cat >>confdefs.h <<\_ACEOF
38985 #define SLAPD_MOD_DYNAMIC 2
38986 _ACEOF
38987
38988
38989 if test "$ol_enable_monitor" != no ; then
38990         BUILD_SLAPD=yes
38991         BUILD_MONITOR=$ol_enable_monitor
38992         if test "$ol_enable_monitor" = mod ; then
38993                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38994                 MFLAG=SLAPD_MOD_DYNAMIC
38995         else
38996                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38997                 MFLAG=SLAPD_MOD_STATIC
38998         fi
38999
39000 cat >>confdefs.h <<_ACEOF
39001 #define SLAPD_MONITOR $MFLAG
39002 _ACEOF
39003
39004 fi
39005
39006 if test "$ol_enable_bdb" != no ; then
39007         BUILD_SLAPD=yes
39008         BUILD_BDB=$ol_enable_bdb
39009         if test "$ol_enable_bdb" = mod ; then
39010                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
39011                 MFLAG=SLAPD_MOD_DYNAMIC
39012         else
39013                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
39014                 MFLAG=SLAPD_MOD_STATIC
39015         fi
39016
39017 cat >>confdefs.h <<_ACEOF
39018 #define SLAPD_BDB $MFLAG
39019 _ACEOF
39020
39021 fi
39022
39023 if test "$ol_enable_dnssrv" != no ; then
39024         BUILD_SLAPD=yes
39025         BUILD_DNSSRV=$ol_enable_dnssrv
39026         if test "$ol_enable_dnssrv" = mod ; then
39027                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
39028                 MFLAG=SLAPD_MOD_DYNAMIC
39029         else
39030                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
39031                 MFLAG=SLAPD_MOD_STATIC
39032         fi
39033
39034 cat >>confdefs.h <<_ACEOF
39035 #define SLAPD_DNSSRV $MFLAG
39036 _ACEOF
39037
39038 fi
39039
39040 if test "$ol_enable_hdb" != no ; then
39041         BUILD_SLAPD=yes
39042         BUILD_HDB=$ol_enable_hdb
39043         if test "$ol_enable_hdb" = mod ; then
39044                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
39045                 MFLAG=SLAPD_MOD_DYNAMIC
39046         else
39047                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
39048                 MFLAG=SLAPD_MOD_STATIC
39049         fi
39050
39051 cat >>confdefs.h <<_ACEOF
39052 #define SLAPD_HDB $MFLAG
39053 _ACEOF
39054
39055 fi
39056
39057 if test "$ol_enable_ldap" != no ; then
39058         BUILD_SLAPD=yes
39059         BUILD_LDAP=$ol_enable_ldap
39060         if test "$ol_enable_ldap" = mod ; then
39061                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
39062                 MFLAG=SLAPD_MOD_DYNAMIC
39063         else
39064                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
39065                 MFLAG=SLAPD_MOD_STATIC
39066         fi
39067
39068 cat >>confdefs.h <<_ACEOF
39069 #define SLAPD_LDAP $MFLAG
39070 _ACEOF
39071
39072 fi
39073
39074 if test "$ol_enable_meta" != no ; then
39075         BUILD_SLAPD=yes
39076         BUILD_META=$ol_enable_meta
39077         BUILD_REWRITE=yes
39078         if test "$ol_enable_meta" = mod ; then
39079                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
39080                 MFLAG=SLAPD_MOD_DYNAMIC
39081         else
39082                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
39083                 MFLAG=SLAPD_MOD_STATIC
39084         fi
39085
39086 cat >>confdefs.h <<_ACEOF
39087 #define SLAPD_META $MFLAG
39088 _ACEOF
39089
39090 fi
39091
39092 if test "$ol_enable_null" != no ; then
39093         BUILD_SLAPD=yes
39094         BUILD_NULL=$ol_enable_null
39095         if test "$ol_enable_null" = mod ; then
39096                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
39097                 MFLAG=SLAPD_MOD_DYNAMIC
39098         else
39099                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
39100                 MFLAG=SLAPD_MOD_STATIC
39101         fi
39102
39103 cat >>confdefs.h <<_ACEOF
39104 #define SLAPD_NULL $MFLAG
39105 _ACEOF
39106
39107 fi
39108
39109 if test "$ol_enable_passwd" != no ; then
39110         BUILD_SLAPD=yes
39111         BUILD_PASSWD=$ol_enable_passwd
39112         if test "$ol_enable_passwd" = mod ; then
39113                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
39114                 MFLAG=SLAPD_MOD_DYNAMIC
39115         else
39116                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
39117                 MFLAG=SLAPD_MOD_STATIC
39118         fi
39119
39120 cat >>confdefs.h <<_ACEOF
39121 #define SLAPD_PASSWD $MFLAG
39122 _ACEOF
39123
39124 fi
39125
39126 if test "$ol_link_perl" != no ; then
39127         BUILD_SLAPD=yes
39128         BUILD_PERL=$ol_enable_perl
39129         if test "$ol_enable_perl" = mod ; then
39130                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
39131                 MFLAG=SLAPD_MOD_DYNAMIC
39132         else
39133                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
39134                 MFLAG=SLAPD_MOD_STATIC
39135         fi
39136
39137 cat >>confdefs.h <<_ACEOF
39138 #define SLAPD_PERL $MFLAG
39139 _ACEOF
39140
39141 fi
39142
39143 if test "$ol_enable_relay" != no ; then
39144         BUILD_SLAPD=yes
39145         BUILD_RELAY=$ol_enable_relay
39146         if test "$ol_enable_relay" = mod ; then
39147                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
39148                 MFLAG=SLAPD_MOD_DYNAMIC
39149         else
39150                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
39151                 MFLAG=SLAPD_MOD_STATIC
39152         fi
39153
39154 cat >>confdefs.h <<_ACEOF
39155 #define SLAPD_RELAY $MFLAG
39156 _ACEOF
39157
39158 fi
39159
39160 if test "$ol_enable_shell" != no ; then
39161         if test "$ol_link_threads" != no ; then
39162                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
39163 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
39164         fi
39165         BUILD_SLAPD=yes
39166         BUILD_SHELL=$ol_enable_shell
39167         if test "$ol_enable_shell" = mod ; then
39168                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
39169                 MFLAG=SLAPD_MOD_DYNAMIC
39170         else
39171                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39172                 MFLAG=SLAPD_MOD_STATIC
39173         fi
39174
39175 cat >>confdefs.h <<_ACEOF
39176 #define SLAPD_SHELL $MFLAG
39177 _ACEOF
39178
39179 fi
39180
39181 if test "$ol_link_sql" != no ; then
39182         BUILD_SLAPD=yes
39183         BUILD_SQL=$ol_enable_sql
39184         if test "$ol_enable_sql" = mod; then
39185                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39186                 MFLAG=SLAPD_MOD_DYNAMIC
39187         else
39188                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39189                 MFLAG=SLAPD_MOD_STATIC
39190         fi
39191
39192 cat >>confdefs.h <<_ACEOF
39193 #define SLAPD_SQL $MFLAG
39194 _ACEOF
39195
39196 fi
39197
39198 if test "$ol_enable_accesslog" != no ; then
39199         BUILD_ACCESSLOG=$ol_enable_accesslog
39200         if test "$ol_enable_accesslog" = mod ; then
39201                 MFLAG=SLAPD_MOD_DYNAMIC
39202                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39203         else
39204                 MFLAG=SLAPD_MOD_STATIC
39205                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39206         fi
39207
39208 cat >>confdefs.h <<_ACEOF
39209 #define SLAPD_OVER_ACCESSLOG $MFLAG
39210 _ACEOF
39211
39212 fi
39213
39214 if test "$ol_enable_auditlog" != no ; then
39215         BUILD_AUDITLOG=$ol_enable_auditlog
39216         if test "$ol_enable_auditlog" = mod ; then
39217                 MFLAG=SLAPD_MOD_DYNAMIC
39218                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39219         else
39220                 MFLAG=SLAPD_MOD_STATIC
39221                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39222         fi
39223
39224 cat >>confdefs.h <<_ACEOF
39225 #define SLAPD_OVER_AUDITLOG $MFLAG
39226 _ACEOF
39227
39228 fi
39229
39230 if test "$ol_enable_constraint" != no ; then
39231         BUILD_CONSTRAINT=$ol_enable_constraint
39232         if test "$ol_enable_constraint" = mod ; then
39233                 MFLAG=SLAPD_MOD_DYNAMIC
39234                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39235         else
39236                 MFLAG=SLAPD_MOD_STATIC
39237                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39238         fi
39239
39240 cat >>confdefs.h <<_ACEOF
39241 #define SLAPD_OVER_CONSTRAINT $MFLAG
39242 _ACEOF
39243
39244 fi
39245
39246 if test "$ol_enable_dds" != no ; then
39247         BUILD_DDS=$ol_enable_dds
39248         if test "$ol_enable_dds" = mod ; then
39249                 MFLAG=SLAPD_MOD_DYNAMIC
39250                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39251         else
39252                 MFLAG=SLAPD_MOD_STATIC
39253                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39254         fi
39255
39256 cat >>confdefs.h <<_ACEOF
39257 #define SLAPD_OVER_DDS $MFLAG
39258 _ACEOF
39259
39260 fi
39261
39262 if test "$ol_enable_dyngroup" != no ; then
39263         BUILD_DYNGROUP=$ol_enable_dyngroup
39264         if test "$ol_enable_dyngroup" = mod ; then
39265                 MFLAG=SLAPD_MOD_DYNAMIC
39266                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
39267         else
39268                 MFLAG=SLAPD_MOD_STATIC
39269                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
39270         fi
39271
39272 cat >>confdefs.h <<_ACEOF
39273 #define SLAPD_OVER_DYNGROUP $MFLAG
39274 _ACEOF
39275
39276 fi
39277
39278 if test "$ol_enable_dynlist" != no ; then
39279         BUILD_DYNLIST=$ol_enable_dynlist
39280         if test "$ol_enable_dynlist" = mod ; then
39281                 MFLAG=SLAPD_MOD_DYNAMIC
39282                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
39283         else
39284                 MFLAG=SLAPD_MOD_STATIC
39285                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39286         fi
39287
39288 cat >>confdefs.h <<_ACEOF
39289 #define SLAPD_OVER_DYNLIST $MFLAG
39290 _ACEOF
39291
39292 fi
39293
39294 if test "$ol_enable_ppolicy" != no ; then
39295         BUILD_PPOLICY=$ol_enable_ppolicy
39296         if test "$ol_enable_ppolicy" = mod ; then
39297                 MFLAG=SLAPD_MOD_DYNAMIC
39298                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39299         else
39300                 MFLAG=SLAPD_MOD_STATIC
39301                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39302         fi
39303
39304 cat >>confdefs.h <<_ACEOF
39305 #define SLAPD_OVER_PPOLICY $MFLAG
39306 _ACEOF
39307
39308 fi
39309
39310 if test "$ol_enable_proxycache" != no ; then
39311         BUILD_PROXYCACHE=$ol_enable_proxycache
39312         if test "$ol_enable_proxycache" = mod ; then
39313                 MFLAG=SLAPD_MOD_DYNAMIC
39314                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39315         else
39316                 MFLAG=SLAPD_MOD_STATIC
39317                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39318         fi
39319
39320 cat >>confdefs.h <<_ACEOF
39321 #define SLAPD_OVER_PROXYCACHE $MFLAG
39322 _ACEOF
39323
39324 fi
39325
39326 if test "$ol_enable_refint" != no ; then
39327         BUILD_REFINT=$ol_enable_refint
39328         if test "$ol_enable_refint" = mod ; then
39329                 MFLAG=SLAPD_MOD_DYNAMIC
39330                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39331         else
39332                 MFLAG=SLAPD_MOD_STATIC
39333                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39334         fi
39335
39336 cat >>confdefs.h <<_ACEOF
39337 #define SLAPD_OVER_REFINT $MFLAG
39338 _ACEOF
39339
39340 fi
39341
39342 if test "$ol_enable_retcode" != no ; then
39343         BUILD_RETCODE=$ol_enable_retcode
39344         if test "$ol_enable_retcode" = mod ; then
39345                 MFLAG=SLAPD_MOD_DYNAMIC
39346                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39347         else
39348                 MFLAG=SLAPD_MOD_STATIC
39349                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39350         fi
39351
39352 cat >>confdefs.h <<_ACEOF
39353 #define SLAPD_OVER_RETCODE $MFLAG
39354 _ACEOF
39355
39356 fi
39357
39358 if test "$ol_enable_rwm" != no ; then
39359         BUILD_REWRITE=yes
39360         BUILD_RWM=$ol_enable_rwm
39361         if test "$ol_enable_rwm" = mod ; then
39362                 MFLAG=SLAPD_MOD_DYNAMIC
39363                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39364         else
39365                 MFLAG=SLAPD_MOD_STATIC
39366                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39367         fi
39368
39369 cat >>confdefs.h <<_ACEOF
39370 #define SLAPD_OVER_RWM $MFLAG
39371 _ACEOF
39372
39373 fi
39374
39375 if test "$ol_enable_seqmod" != no ; then
39376         BUILD_SEQMOD=$ol_enable_seqmod
39377         if test "$ol_enable_seqmod" = mod ; then
39378                 MFLAG=SLAPD_MOD_DYNAMIC
39379                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39380         else
39381                 MFLAG=SLAPD_MOD_STATIC
39382                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39383         fi
39384
39385 cat >>confdefs.h <<_ACEOF
39386 #define SLAPD_OVER_SEQMOD $MFLAG
39387 _ACEOF
39388
39389 fi
39390
39391 if test "$ol_enable_syncprov" != no ; then
39392         BUILD_SYNCPROV=$ol_enable_syncprov
39393         if test "$ol_enable_syncprov" = mod ; then
39394                 MFLAG=SLAPD_MOD_DYNAMIC
39395                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39396         else
39397                 MFLAG=SLAPD_MOD_STATIC
39398                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39399         fi
39400
39401 cat >>confdefs.h <<_ACEOF
39402 #define SLAPD_OVER_SYNCPROV $MFLAG
39403 _ACEOF
39404
39405 fi
39406
39407 if test "$ol_enable_translucent" != no ; then
39408         BUILD_TRANSLUCENT=$ol_enable_translucent
39409         if test "$ol_enable_translucent" = mod ; then
39410                 MFLAG=SLAPD_MOD_DYNAMIC
39411                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39412         else
39413                 MFLAG=SLAPD_MOD_STATIC
39414                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39415         fi
39416
39417 cat >>confdefs.h <<_ACEOF
39418 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39419 _ACEOF
39420
39421 fi
39422
39423 if test "$ol_enable_unique" != no ; then
39424         BUILD_UNIQUE=$ol_enable_unique
39425         if test "$ol_enable_unique" = mod ; then
39426                 MFLAG=SLAPD_MOD_DYNAMIC
39427                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39428         else
39429                 MFLAG=SLAPD_MOD_STATIC
39430                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39431         fi
39432
39433 cat >>confdefs.h <<_ACEOF
39434 #define SLAPD_OVER_UNIQUE $MFLAG
39435 _ACEOF
39436
39437 fi
39438
39439 if test "$ol_enable_valsort" != no ; then
39440         BUILD_VALSORT=$ol_enable_valsort
39441         if test "$ol_enable_valsort" = mod ; then
39442                 MFLAG=SLAPD_MOD_DYNAMIC
39443                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39444         else
39445                 MFLAG=SLAPD_MOD_STATIC
39446                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39447         fi
39448
39449 cat >>confdefs.h <<_ACEOF
39450 #define SLAPD_OVER_VALSORT $MFLAG
39451 _ACEOF
39452
39453 fi
39454
39455 if test "$ol_enable_slurpd" != no &&
39456    test "$ol_link_threads" != no &&
39457    test $BUILD_SLAPD = yes ; then
39458         BUILD_SLURPD=yes
39459 fi
39460
39461 if test "$ol_enable_rewrite" != no ; then
39462
39463 cat >>confdefs.h <<\_ACEOF
39464 #define ENABLE_REWRITE 1
39465 _ACEOF
39466
39467         BUILD_REWRITE=yes
39468 fi
39469
39470 if test "$ol_enable_slapi" != no ; then
39471
39472 cat >>confdefs.h <<\_ACEOF
39473 #define ENABLE_SLAPI 1
39474 _ACEOF
39475
39476         BUILD_SLAPI=yes
39477         SLAPD_SLAPI_DEPEND=libslapi.a
39478 fi
39479
39480
39481
39482 if test "$ac_cv_mingw32" = yes ; then
39483         PLAT=NT
39484         SLAPD_MODULES_LDFLAGS=
39485 else
39486         PLAT=UNIX
39487 fi
39488
39489
39490
39491
39492
39493
39494
39495
39496
39497
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509
39510
39511
39512
39513
39514
39515
39516
39517
39518
39519
39520
39521
39522
39523
39524
39525
39526
39527
39528
39529
39530
39531
39532
39533
39534
39535
39536
39537
39538
39539
39540
39541
39542
39543
39544
39545
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555
39556
39557
39558
39559
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569
39570
39571
39572
39573 # Check whether --with-xxinstall or --without-xxinstall was given.
39574 if test "${with_xxinstall+set}" = set; then
39575   withval="$with_xxinstall"
39576
39577 fi;
39578
39579
39580                                                                                                                                                                                                                                                                                                                                                                                                       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"
39581
39582
39583           ac_config_commands="$ac_config_commands default"
39584
39585
39586
39587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39588 # Let make expand exec_prefix.
39589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39590
39591 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39592 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39593 # trailing colons and then remove the whole line if VPATH becomes empty
39594 # (actually we leave an empty line to preserve line numbers).
39595 if test "x$srcdir" = x.; then
39596   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39597 s/:*\$(srcdir):*/:/;
39598 s/:*\${srcdir}:*/:/;
39599 s/:*@srcdir@:*/:/;
39600 s/^\([^=]*=[     ]*\):*/\1/;
39601 s/:*$//;
39602 s/^[^=]*=[       ]*$//;
39603 }'
39604 fi
39605
39606 DEFS=-DHAVE_CONFIG_H
39607
39608 ac_libobjs=
39609 ac_ltlibobjs=
39610 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39611   # 1. Remove the extension, and $U if already installed.
39612   ac_i=`echo "$ac_i" |
39613          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39614   # 2. Add them.
39615   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39616   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39617 done
39618 LIBOBJS=$ac_libobjs
39619
39620 LTLIBOBJS=$ac_ltlibobjs
39621
39622
39623 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39624   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39625 Usually this means the macro was only invoked conditionally." >&5
39626 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39627 Usually this means the macro was only invoked conditionally." >&2;}
39628    { (exit 1); exit 1; }; }
39629 fi
39630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39631   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39632 Usually this means the macro was only invoked conditionally." >&5
39633 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39634 Usually this means the macro was only invoked conditionally." >&2;}
39635    { (exit 1); exit 1; }; }
39636 fi
39637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39638   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39639 Usually this means the macro was only invoked conditionally." >&5
39640 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39641 Usually this means the macro was only invoked conditionally." >&2;}
39642    { (exit 1); exit 1; }; }
39643 fi
39644
39645 : ${CONFIG_STATUS=./config.status}
39646 ac_clean_files_save=$ac_clean_files
39647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39650 cat >$CONFIG_STATUS <<_ACEOF
39651 #! $SHELL
39652 # Generated by $as_me.
39653 # Run this file to recreate the current configuration.
39654 # Compiler output produced by configure, useful for debugging
39655 # configure, is in config.log if it exists.
39656
39657 debug=false
39658 ac_cs_recheck=false
39659 ac_cs_silent=false
39660 SHELL=\${CONFIG_SHELL-$SHELL}
39661 _ACEOF
39662
39663 cat >>$CONFIG_STATUS <<\_ACEOF
39664 ## --------------------- ##
39665 ## M4sh Initialization.  ##
39666 ## --------------------- ##
39667
39668 # Be Bourne compatible
39669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39670   emulate sh
39671   NULLCMD=:
39672   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39673   # is contrary to our usage.  Disable this feature.
39674   alias -g '${1+"$@"}'='"$@"'
39675 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39676   set -o posix
39677 fi
39678 DUALCASE=1; export DUALCASE # for MKS sh
39679
39680 # Support unset when possible.
39681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39682   as_unset=unset
39683 else
39684   as_unset=false
39685 fi
39686
39687
39688 # Work around bugs in pre-3.0 UWIN ksh.
39689 $as_unset ENV MAIL MAILPATH
39690 PS1='$ '
39691 PS2='> '
39692 PS4='+ '
39693
39694 # NLS nuisances.
39695 for as_var in \
39696   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39697   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39698   LC_TELEPHONE LC_TIME
39699 do
39700   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39701     eval $as_var=C; export $as_var
39702   else
39703     $as_unset $as_var
39704   fi
39705 done
39706
39707 # Required to use basename.
39708 if expr a : '\(a\)' >/dev/null 2>&1; then
39709   as_expr=expr
39710 else
39711   as_expr=false
39712 fi
39713
39714 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39715   as_basename=basename
39716 else
39717   as_basename=false
39718 fi
39719
39720
39721 # Name of the executable.
39722 as_me=`$as_basename "$0" ||
39723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39724          X"$0" : 'X\(//\)$' \| \
39725          X"$0" : 'X\(/\)$' \| \
39726          .     : '\(.\)' 2>/dev/null ||
39727 echo X/"$0" |
39728     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39729           /^X\/\(\/\/\)$/{ s//\1/; q; }
39730           /^X\/\(\/\).*/{ s//\1/; q; }
39731           s/.*/./; q'`
39732
39733
39734 # PATH needs CR, and LINENO needs CR and PATH.
39735 # Avoid depending upon Character Ranges.
39736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39739 as_cr_digits='0123456789'
39740 as_cr_alnum=$as_cr_Letters$as_cr_digits
39741
39742 # The user is always right.
39743 if test "${PATH_SEPARATOR+set}" != set; then
39744   echo "#! /bin/sh" >conf$$.sh
39745   echo  "exit 0"   >>conf$$.sh
39746   chmod +x conf$$.sh
39747   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39748     PATH_SEPARATOR=';'
39749   else
39750     PATH_SEPARATOR=:
39751   fi
39752   rm -f conf$$.sh
39753 fi
39754
39755
39756   as_lineno_1=$LINENO
39757   as_lineno_2=$LINENO
39758   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39759   test "x$as_lineno_1" != "x$as_lineno_2" &&
39760   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39761   # Find who we are.  Look in the path if we contain no path at all
39762   # relative or not.
39763   case $0 in
39764     *[\\/]* ) as_myself=$0 ;;
39765     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39766 for as_dir in $PATH
39767 do
39768   IFS=$as_save_IFS
39769   test -z "$as_dir" && as_dir=.
39770   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39771 done
39772
39773        ;;
39774   esac
39775   # We did not find ourselves, most probably we were run as `sh COMMAND'
39776   # in which case we are not to be found in the path.
39777   if test "x$as_myself" = x; then
39778     as_myself=$0
39779   fi
39780   if test ! -f "$as_myself"; then
39781     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39783    { (exit 1); exit 1; }; }
39784   fi
39785   case $CONFIG_SHELL in
39786   '')
39787     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39789 do
39790   IFS=$as_save_IFS
39791   test -z "$as_dir" && as_dir=.
39792   for as_base in sh bash ksh sh5; do
39793          case $as_dir in
39794          /*)
39795            if ("$as_dir/$as_base" -c '
39796   as_lineno_1=$LINENO
39797   as_lineno_2=$LINENO
39798   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39799   test "x$as_lineno_1" != "x$as_lineno_2" &&
39800   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39801              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39802              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39803              CONFIG_SHELL=$as_dir/$as_base
39804              export CONFIG_SHELL
39805              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39806            fi;;
39807          esac
39808        done
39809 done
39810 ;;
39811   esac
39812
39813   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39814   # uniformly replaced by the line number.  The first 'sed' inserts a
39815   # line-number line before each line; the second 'sed' does the real
39816   # work.  The second script uses 'N' to pair each line-number line
39817   # with the numbered line, and appends trailing '-' during
39818   # substitution so that $LINENO is not a special case at line end.
39819   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39820   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39821   sed '=' <$as_myself |
39822     sed '
39823       N
39824       s,$,-,
39825       : loop
39826       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39827       t loop
39828       s,-$,,
39829       s,^['$as_cr_digits']*\n,,
39830     ' >$as_me.lineno &&
39831   chmod +x $as_me.lineno ||
39832     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39833 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39834    { (exit 1); exit 1; }; }
39835
39836   # Don't try to exec as it changes $[0], causing all sort of problems
39837   # (the dirname of $[0] is not the place where we might find the
39838   # original and so on.  Autoconf is especially sensible to this).
39839   . ./$as_me.lineno
39840   # Exit status is that of the last command.
39841   exit
39842 }
39843
39844
39845 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39846   *c*,-n*) ECHO_N= ECHO_C='
39847 ' ECHO_T='      ' ;;
39848   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39849   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39850 esac
39851
39852 if expr a : '\(a\)' >/dev/null 2>&1; then
39853   as_expr=expr
39854 else
39855   as_expr=false
39856 fi
39857
39858 rm -f conf$$ conf$$.exe conf$$.file
39859 echo >conf$$.file
39860 if ln -s conf$$.file conf$$ 2>/dev/null; then
39861   # We could just check for DJGPP; but this test a) works b) is more generic
39862   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39863   if test -f conf$$.exe; then
39864     # Don't use ln at all; we don't have any links
39865     as_ln_s='cp -p'
39866   else
39867     as_ln_s='ln -s'
39868   fi
39869 elif ln conf$$.file conf$$ 2>/dev/null; then
39870   as_ln_s=ln
39871 else
39872   as_ln_s='cp -p'
39873 fi
39874 rm -f conf$$ conf$$.exe conf$$.file
39875
39876 if mkdir -p . 2>/dev/null; then
39877   as_mkdir_p=:
39878 else
39879   test -d ./-p && rmdir ./-p
39880   as_mkdir_p=false
39881 fi
39882
39883 as_executable_p="test -f"
39884
39885 # Sed expression to map a string onto a valid CPP name.
39886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39887
39888 # Sed expression to map a string onto a valid variable name.
39889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39890
39891
39892 # IFS
39893 # We need space, tab and new line, in precisely that order.
39894 as_nl='
39895 '
39896 IFS="   $as_nl"
39897
39898 # CDPATH.
39899 $as_unset CDPATH
39900
39901 exec 6>&1
39902
39903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39904 # report actual input values of CONFIG_FILES etc. instead of their
39905 # values after options handling.  Logging --version etc. is OK.
39906 exec 5>>config.log
39907 {
39908   echo
39909   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39910 ## Running $as_me. ##
39911 _ASBOX
39912 } >&5
39913 cat >&5 <<_CSEOF
39914
39915 This file was extended by $as_me, which was
39916 generated by GNU Autoconf 2.59.  Invocation command line was
39917
39918   CONFIG_FILES    = $CONFIG_FILES
39919   CONFIG_HEADERS  = $CONFIG_HEADERS
39920   CONFIG_LINKS    = $CONFIG_LINKS
39921   CONFIG_COMMANDS = $CONFIG_COMMANDS
39922   $ $0 $@
39923
39924 _CSEOF
39925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39926 echo >&5
39927 _ACEOF
39928
39929 # Files that config.status was made for.
39930 if test -n "$ac_config_files"; then
39931   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39932 fi
39933
39934 if test -n "$ac_config_headers"; then
39935   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39936 fi
39937
39938 if test -n "$ac_config_links"; then
39939   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39940 fi
39941
39942 if test -n "$ac_config_commands"; then
39943   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39944 fi
39945
39946 cat >>$CONFIG_STATUS <<\_ACEOF
39947
39948 ac_cs_usage="\
39949 \`$as_me' instantiates files from templates according to the
39950 current configuration.
39951
39952 Usage: $0 [OPTIONS] [FILE]...
39953
39954   -h, --help       print this help, then exit
39955   -V, --version    print version number, then exit
39956   -q, --quiet      do not print progress messages
39957   -d, --debug      don't remove temporary files
39958       --recheck    update $as_me by reconfiguring in the same conditions
39959   --file=FILE[:TEMPLATE]
39960                    instantiate the configuration file FILE
39961   --header=FILE[:TEMPLATE]
39962                    instantiate the configuration header FILE
39963
39964 Configuration files:
39965 $config_files
39966
39967 Configuration headers:
39968 $config_headers
39969
39970 Configuration commands:
39971 $config_commands
39972
39973 Report bugs to <bug-autoconf@gnu.org>."
39974 _ACEOF
39975
39976 cat >>$CONFIG_STATUS <<_ACEOF
39977 ac_cs_version="\\
39978 config.status
39979 configured by $0, generated by GNU Autoconf 2.59,
39980   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39981
39982 Copyright (C) 2003 Free Software Foundation, Inc.
39983 This config.status script is free software; the Free Software Foundation
39984 gives unlimited permission to copy, distribute and modify it."
39985 srcdir=$srcdir
39986 INSTALL="$INSTALL"
39987 _ACEOF
39988
39989 cat >>$CONFIG_STATUS <<\_ACEOF
39990 # If no file are specified by the user, then we need to provide default
39991 # value.  By we need to know if files were specified by the user.
39992 ac_need_defaults=:
39993 while test $# != 0
39994 do
39995   case $1 in
39996   --*=*)
39997     ac_option=`expr "x$1" : 'x\([^=]*\)='`
39998     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39999     ac_shift=:
40000     ;;
40001   -*)
40002     ac_option=$1
40003     ac_optarg=$2
40004     ac_shift=shift
40005     ;;
40006   *) # This is not an option, so the user has probably given explicit
40007      # arguments.
40008      ac_option=$1
40009      ac_need_defaults=false;;
40010   esac
40011
40012   case $ac_option in
40013   # Handling of the options.
40014 _ACEOF
40015 cat >>$CONFIG_STATUS <<\_ACEOF
40016   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40017     ac_cs_recheck=: ;;
40018   --version | --vers* | -V )
40019     echo "$ac_cs_version"; exit 0 ;;
40020   --he | --h)
40021     # Conflict between --help and --header
40022     { { echo "$as_me:$LINENO: error: ambiguous option: $1
40023 Try \`$0 --help' for more information." >&5
40024 echo "$as_me: error: ambiguous option: $1
40025 Try \`$0 --help' for more information." >&2;}
40026    { (exit 1); exit 1; }; };;
40027   --help | --hel | -h )
40028     echo "$ac_cs_usage"; exit 0 ;;
40029   --debug | --d* | -d )
40030     debug=: ;;
40031   --file | --fil | --fi | --f )
40032     $ac_shift
40033     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40034     ac_need_defaults=false;;
40035   --header | --heade | --head | --hea )
40036     $ac_shift
40037     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40038     ac_need_defaults=false;;
40039   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40040   | -silent | --silent | --silen | --sile | --sil | --si | --s)
40041     ac_cs_silent=: ;;
40042
40043   # This is an error.
40044   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40045 Try \`$0 --help' for more information." >&5
40046 echo "$as_me: error: unrecognized option: $1
40047 Try \`$0 --help' for more information." >&2;}
40048    { (exit 1); exit 1; }; } ;;
40049
40050   *) ac_config_targets="$ac_config_targets $1" ;;
40051
40052   esac
40053   shift
40054 done
40055
40056 ac_configure_extra_args=
40057
40058 if $ac_cs_silent; then
40059   exec 6>/dev/null
40060   ac_configure_extra_args="$ac_configure_extra_args --silent"
40061 fi
40062
40063 _ACEOF
40064 cat >>$CONFIG_STATUS <<_ACEOF
40065 if \$ac_cs_recheck; then
40066   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40067   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40068 fi
40069
40070 _ACEOF
40071
40072 cat >>$CONFIG_STATUS <<_ACEOF
40073 #
40074 # INIT-COMMANDS section.
40075 #
40076
40077 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40078
40079 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
40080 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
40081
40082
40083 _ACEOF
40084
40085
40086
40087 cat >>$CONFIG_STATUS <<\_ACEOF
40088 for ac_config_target in $ac_config_targets
40089 do
40090   case "$ac_config_target" in
40091   # Handling of arguments.
40092   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
40093   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
40094   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
40095   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
40096   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
40097   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
40098   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
40099   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
40100   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
40101   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
40102   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
40103   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40104   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
40105   "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" ;;
40106   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40107   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40108   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40109   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40110   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40111   "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" ;;
40112   "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" ;;
40113   "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" ;;
40114   "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" ;;
40115   "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" ;;
40116   "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" ;;
40117   "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" ;;
40118   "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" ;;
40119   "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" ;;
40120   "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" ;;
40121   "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" ;;
40122   "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" ;;
40123   "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" ;;
40124   "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" ;;
40125   "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" ;;
40126   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40127   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
40128   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40129   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40130   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40131   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40132   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40133   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40134   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40135   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40136   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40137 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40138    { (exit 1); exit 1; }; };;
40139   esac
40140 done
40141
40142 # If the user did not use the arguments to specify the items to instantiate,
40143 # then the envvar interface is used.  Set only those that are not.
40144 # We use the long form for the default assignment because of an extremely
40145 # bizarre bug on SunOS 4.1.3.
40146 if $ac_need_defaults; then
40147   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40148   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40149   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40150 fi
40151
40152 # Have a temporary directory for convenience.  Make it in the build tree
40153 # simply because there is no reason to put it here, and in addition,
40154 # creating and moving files from /tmp can sometimes cause problems.
40155 # Create a temporary directory, and hook for its removal unless debugging.
40156 $debug ||
40157 {
40158   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40159   trap '{ (exit 1); exit 1; }' 1 2 13 15
40160 }
40161
40162 # Create a (secure) tmp directory for tmp files.
40163
40164 {
40165   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40166   test -n "$tmp" && test -d "$tmp"
40167 }  ||
40168 {
40169   tmp=./confstat$$-$RANDOM
40170   (umask 077 && mkdir $tmp)
40171 } ||
40172 {
40173    echo "$me: cannot create a temporary directory in ." >&2
40174    { (exit 1); exit 1; }
40175 }
40176
40177 _ACEOF
40178
40179 cat >>$CONFIG_STATUS <<_ACEOF
40180
40181 #
40182 # CONFIG_FILES section.
40183 #
40184
40185 # No need to generate the scripts if there are no CONFIG_FILES.
40186 # This happens for instance when ./config.status config.h
40187 if test -n "\$CONFIG_FILES"; then
40188   # Protect against being on the right side of a sed subst in config.status.
40189   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40190    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40191 s,@SHELL@,$SHELL,;t t
40192 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40193 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40194 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40195 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40196 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40197 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40198 s,@exec_prefix@,$exec_prefix,;t t
40199 s,@prefix@,$prefix,;t t
40200 s,@program_transform_name@,$program_transform_name,;t t
40201 s,@bindir@,$bindir,;t t
40202 s,@sbindir@,$sbindir,;t t
40203 s,@libexecdir@,$libexecdir,;t t
40204 s,@datadir@,$datadir,;t t
40205 s,@sysconfdir@,$sysconfdir,;t t
40206 s,@sharedstatedir@,$sharedstatedir,;t t
40207 s,@localstatedir@,$localstatedir,;t t
40208 s,@libdir@,$libdir,;t t
40209 s,@includedir@,$includedir,;t t
40210 s,@oldincludedir@,$oldincludedir,;t t
40211 s,@infodir@,$infodir,;t t
40212 s,@mandir@,$mandir,;t t
40213 s,@build_alias@,$build_alias,;t t
40214 s,@host_alias@,$host_alias,;t t
40215 s,@target_alias@,$target_alias,;t t
40216 s,@DEFS@,$DEFS,;t t
40217 s,@ECHO_C@,$ECHO_C,;t t
40218 s,@ECHO_N@,$ECHO_N,;t t
40219 s,@ECHO_T@,$ECHO_T,;t t
40220 s,@LIBS@,$LIBS,;t t
40221 s,@build@,$build,;t t
40222 s,@build_cpu@,$build_cpu,;t t
40223 s,@build_vendor@,$build_vendor,;t t
40224 s,@build_os@,$build_os,;t t
40225 s,@host@,$host,;t t
40226 s,@host_cpu@,$host_cpu,;t t
40227 s,@host_vendor@,$host_vendor,;t t
40228 s,@host_os@,$host_os,;t t
40229 s,@target@,$target,;t t
40230 s,@target_cpu@,$target_cpu,;t t
40231 s,@target_vendor@,$target_vendor,;t t
40232 s,@target_os@,$target_os,;t t
40233 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40234 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40235 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40236 s,@CYGPATH_W@,$CYGPATH_W,;t t
40237 s,@PACKAGE@,$PACKAGE,;t t
40238 s,@VERSION@,$VERSION,;t t
40239 s,@ACLOCAL@,$ACLOCAL,;t t
40240 s,@AUTOCONF@,$AUTOCONF,;t t
40241 s,@AUTOMAKE@,$AUTOMAKE,;t t
40242 s,@AUTOHEADER@,$AUTOHEADER,;t t
40243 s,@MAKEINFO@,$MAKEINFO,;t t
40244 s,@install_sh@,$install_sh,;t t
40245 s,@STRIP@,$STRIP,;t t
40246 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40247 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40248 s,@mkdir_p@,$mkdir_p,;t t
40249 s,@AWK@,$AWK,;t t
40250 s,@SET_MAKE@,$SET_MAKE,;t t
40251 s,@am__leading_dot@,$am__leading_dot,;t t
40252 s,@AMTAR@,$AMTAR,;t t
40253 s,@am__tar@,$am__tar,;t t
40254 s,@am__untar@,$am__untar,;t t
40255 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40256 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40257 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40258 s,@top_builddir@,$top_builddir,;t t
40259 s,@ldap_subdir@,$ldap_subdir,;t t
40260 s,@CC@,$CC,;t t
40261 s,@AR@,$AR,;t t
40262 s,@CFLAGS@,$CFLAGS,;t t
40263 s,@LDFLAGS@,$LDFLAGS,;t t
40264 s,@CPPFLAGS@,$CPPFLAGS,;t t
40265 s,@ac_ct_CC@,$ac_ct_CC,;t t
40266 s,@EXEEXT@,$EXEEXT,;t t
40267 s,@OBJEXT@,$OBJEXT,;t t
40268 s,@DEPDIR@,$DEPDIR,;t t
40269 s,@am__include@,$am__include,;t t
40270 s,@am__quote@,$am__quote,;t t
40271 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40272 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40273 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40274 s,@CCDEPMODE@,$CCDEPMODE,;t t
40275 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40276 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40277 s,@EGREP@,$EGREP,;t t
40278 s,@LN_S@,$LN_S,;t t
40279 s,@ECHO@,$ECHO,;t t
40280 s,@ac_ct_AR@,$ac_ct_AR,;t t
40281 s,@RANLIB@,$RANLIB,;t t
40282 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40283 s,@DLLTOOL@,$DLLTOOL,;t t
40284 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
40285 s,@AS@,$AS,;t t
40286 s,@ac_ct_AS@,$ac_ct_AS,;t t
40287 s,@OBJDUMP@,$OBJDUMP,;t t
40288 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
40289 s,@CPP@,$CPP,;t t
40290 s,@LIBTOOL@,$LIBTOOL,;t t
40291 s,@PERLBIN@,$PERLBIN,;t t
40292 s,@OL_MKDEP@,$OL_MKDEP,;t t
40293 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
40294 s,@LTSTATIC@,$LTSTATIC,;t t
40295 s,@LIBOBJS@,$LIBOBJS,;t t
40296 s,@LIBSRCS@,$LIBSRCS,;t t
40297 s,@PLAT@,$PLAT,;t t
40298 s,@WITH_SASL@,$WITH_SASL,;t t
40299 s,@WITH_TLS@,$WITH_TLS,;t t
40300 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
40301 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
40302 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
40303 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
40304 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
40305 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
40306 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
40307 s,@BUILD_BDB@,$BUILD_BDB,;t t
40308 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
40309 s,@BUILD_HDB@,$BUILD_HDB,;t t
40310 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
40311 s,@BUILD_META@,$BUILD_META,;t t
40312 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
40313 s,@BUILD_NULL@,$BUILD_NULL,;t t
40314 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
40315 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
40316 s,@BUILD_PERL@,$BUILD_PERL,;t t
40317 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
40318 s,@BUILD_SQL@,$BUILD_SQL,;t t
40319 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
40320 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
40321 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
40322 s,@BUILD_DDS@,$BUILD_DDS,;t t
40323 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
40324 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
40325 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
40326 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
40327 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
40328 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
40329 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
40330 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
40331 s,@BUILD_RWM@,$BUILD_RWM,;t t
40332 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
40333 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
40334 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
40335 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
40336 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
40337 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
40338 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
40339 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
40340 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
40341 s,@BDB_LIBS@,$BDB_LIBS,;t t
40342 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
40343 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
40344 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
40345 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
40346 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
40347 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
40348 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
40349 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
40350 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
40351 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
40352 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
40353 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
40354 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
40355 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
40356 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
40357 s,@SASL_LIBS@,$SASL_LIBS,;t t
40358 s,@TLS_LIBS@,$TLS_LIBS,;t t
40359 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40360 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40361 s,@LIBSLAPI@,$LIBSLAPI,;t t
40362 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40363 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40364 s,@ICU_LIBS@,$ICU_LIBS,;t t
40365 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40366 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40367 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40368 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40369 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40370 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40371 CEOF
40372
40373 _ACEOF
40374
40375   cat >>$CONFIG_STATUS <<\_ACEOF
40376   # Split the substitutions into bite-sized pieces for seds with
40377   # small command number limits, like on Digital OSF/1 and HP-UX.
40378   ac_max_sed_lines=48
40379   ac_sed_frag=1 # Number of current file.
40380   ac_beg=1 # First line for current file.
40381   ac_end=$ac_max_sed_lines # Line after last line for current file.
40382   ac_more_lines=:
40383   ac_sed_cmds=
40384   while $ac_more_lines; do
40385     if test $ac_beg -gt 1; then
40386       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40387     else
40388       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40389     fi
40390     if test ! -s $tmp/subs.frag; then
40391       ac_more_lines=false
40392     else
40393       # The purpose of the label and of the branching condition is to
40394       # speed up the sed processing (if there are no `@' at all, there
40395       # is no need to browse any of the substitutions).
40396       # These are the two extra sed commands mentioned above.
40397       (echo ':t
40398   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40399       if test -z "$ac_sed_cmds"; then
40400         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40401       else
40402         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40403       fi
40404       ac_sed_frag=`expr $ac_sed_frag + 1`
40405       ac_beg=$ac_end
40406       ac_end=`expr $ac_end + $ac_max_sed_lines`
40407     fi
40408   done
40409   if test -z "$ac_sed_cmds"; then
40410     ac_sed_cmds=cat
40411   fi
40412 fi # test -n "$CONFIG_FILES"
40413
40414 _ACEOF
40415 cat >>$CONFIG_STATUS <<\_ACEOF
40416 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40417   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40418   case $ac_file in
40419   - | *:- | *:-:* ) # input from stdin
40420         cat >$tmp/stdin
40421         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40422         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40423   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40424         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40425   * )   ac_file_in=$ac_file.in ;;
40426   esac
40427
40428   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40429   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40431          X"$ac_file" : 'X\(//\)[^/]' \| \
40432          X"$ac_file" : 'X\(//\)$' \| \
40433          X"$ac_file" : 'X\(/\)' \| \
40434          .     : '\(.\)' 2>/dev/null ||
40435 echo X"$ac_file" |
40436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40438           /^X\(\/\/\)$/{ s//\1/; q; }
40439           /^X\(\/\).*/{ s//\1/; q; }
40440           s/.*/./; q'`
40441   { if $as_mkdir_p; then
40442     mkdir -p "$ac_dir"
40443   else
40444     as_dir="$ac_dir"
40445     as_dirs=
40446     while test ! -d "$as_dir"; do
40447       as_dirs="$as_dir $as_dirs"
40448       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40450          X"$as_dir" : 'X\(//\)[^/]' \| \
40451          X"$as_dir" : 'X\(//\)$' \| \
40452          X"$as_dir" : 'X\(/\)' \| \
40453          .     : '\(.\)' 2>/dev/null ||
40454 echo X"$as_dir" |
40455     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40456           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40457           /^X\(\/\/\)$/{ s//\1/; q; }
40458           /^X\(\/\).*/{ s//\1/; q; }
40459           s/.*/./; q'`
40460     done
40461     test ! -n "$as_dirs" || mkdir $as_dirs
40462   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40463 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40464    { (exit 1); exit 1; }; }; }
40465
40466   ac_builddir=.
40467
40468 if test "$ac_dir" != .; then
40469   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40470   # A "../" for each directory in $ac_dir_suffix.
40471   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40472 else
40473   ac_dir_suffix= ac_top_builddir=
40474 fi
40475
40476 case $srcdir in
40477   .)  # No --srcdir option.  We are building in place.
40478     ac_srcdir=.
40479     if test -z "$ac_top_builddir"; then
40480        ac_top_srcdir=.
40481     else
40482        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40483     fi ;;
40484   [\\/]* | ?:[\\/]* )  # Absolute path.
40485     ac_srcdir=$srcdir$ac_dir_suffix;
40486     ac_top_srcdir=$srcdir ;;
40487   *) # Relative path.
40488     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40489     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40490 esac
40491
40492 # Do not use `cd foo && pwd` to compute absolute paths, because
40493 # the directories may not exist.
40494 case `pwd` in
40495 .) ac_abs_builddir="$ac_dir";;
40496 *)
40497   case "$ac_dir" in
40498   .) ac_abs_builddir=`pwd`;;
40499   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40500   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40501   esac;;
40502 esac
40503 case $ac_abs_builddir in
40504 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40505 *)
40506   case ${ac_top_builddir}. in
40507   .) ac_abs_top_builddir=$ac_abs_builddir;;
40508   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40509   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40510   esac;;
40511 esac
40512 case $ac_abs_builddir in
40513 .) ac_abs_srcdir=$ac_srcdir;;
40514 *)
40515   case $ac_srcdir in
40516   .) ac_abs_srcdir=$ac_abs_builddir;;
40517   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40518   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40519   esac;;
40520 esac
40521 case $ac_abs_builddir in
40522 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40523 *)
40524   case $ac_top_srcdir in
40525   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40526   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40527   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40528   esac;;
40529 esac
40530
40531
40532   case $INSTALL in
40533   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40534   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40535   esac
40536
40537   if test x"$ac_file" != x-; then
40538     { echo "$as_me:$LINENO: creating $ac_file" >&5
40539 echo "$as_me: creating $ac_file" >&6;}
40540     rm -f "$ac_file"
40541   fi
40542   # Let's still pretend it is `configure' which instantiates (i.e., don't
40543   # use $as_me), people would be surprised to read:
40544   #    /* config.h.  Generated by config.status.  */
40545   if test x"$ac_file" = x-; then
40546     configure_input=
40547   else
40548     configure_input="$ac_file.  "
40549   fi
40550   configure_input=$configure_input"Generated from `echo $ac_file_in |
40551                                      sed 's,.*/,,'` by configure."
40552
40553   # First look for the input files in the build tree, otherwise in the
40554   # src tree.
40555   ac_file_inputs=`IFS=:
40556     for f in $ac_file_in; do
40557       case $f in
40558       -) echo $tmp/stdin ;;
40559       [\\/$]*)
40560          # Absolute (can't be DOS-style, as IFS=:)
40561          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40562 echo "$as_me: error: cannot find input file: $f" >&2;}
40563    { (exit 1); exit 1; }; }
40564          echo "$f";;
40565       *) # Relative
40566          if test -f "$f"; then
40567            # Build tree
40568            echo "$f"
40569          elif test -f "$srcdir/$f"; then
40570            # Source tree
40571            echo "$srcdir/$f"
40572          else
40573            # /dev/null tree
40574            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40575 echo "$as_me: error: cannot find input file: $f" >&2;}
40576    { (exit 1); exit 1; }; }
40577          fi;;
40578       esac
40579     done` || { (exit 1); exit 1; }
40580 _ACEOF
40581 cat >>$CONFIG_STATUS <<_ACEOF
40582   sed "$ac_vpsub
40583 $extrasub
40584 _ACEOF
40585 cat >>$CONFIG_STATUS <<\_ACEOF
40586 :t
40587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40588 s,@configure_input@,$configure_input,;t t
40589 s,@srcdir@,$ac_srcdir,;t t
40590 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40591 s,@top_srcdir@,$ac_top_srcdir,;t t
40592 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40593 s,@builddir@,$ac_builddir,;t t
40594 s,@abs_builddir@,$ac_abs_builddir,;t t
40595 s,@top_builddir@,$ac_top_builddir,;t t
40596 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40597 s,@INSTALL@,$ac_INSTALL,;t t
40598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40599   rm -f $tmp/stdin
40600   if test x"$ac_file" != x-; then
40601     mv $tmp/out $ac_file
40602   else
40603     cat $tmp/out
40604     rm -f $tmp/out
40605   fi
40606
40607 done
40608 _ACEOF
40609 cat >>$CONFIG_STATUS <<\_ACEOF
40610
40611 #
40612 # CONFIG_HEADER section.
40613 #
40614
40615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40617 #
40618 # ac_d sets the value in "#define NAME VALUE" lines.
40619 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
40620 ac_dB='[         ].*$,\1#\2'
40621 ac_dC=' '
40622 ac_dD=',;t'
40623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40624 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
40625 ac_uB='$,\1#\2define\3'
40626 ac_uC=' '
40627 ac_uD=',;t'
40628
40629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40630   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40631   case $ac_file in
40632   - | *:- | *:-:* ) # input from stdin
40633         cat >$tmp/stdin
40634         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40635         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40636   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40637         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40638   * )   ac_file_in=$ac_file.in ;;
40639   esac
40640
40641   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40642 echo "$as_me: creating $ac_file" >&6;}
40643
40644   # First look for the input files in the build tree, otherwise in the
40645   # src tree.
40646   ac_file_inputs=`IFS=:
40647     for f in $ac_file_in; do
40648       case $f in
40649       -) echo $tmp/stdin ;;
40650       [\\/$]*)
40651          # Absolute (can't be DOS-style, as IFS=:)
40652          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40653 echo "$as_me: error: cannot find input file: $f" >&2;}
40654    { (exit 1); exit 1; }; }
40655          # Do quote $f, to prevent DOS paths from being IFS'd.
40656          echo "$f";;
40657       *) # Relative
40658          if test -f "$f"; then
40659            # Build tree
40660            echo "$f"
40661          elif test -f "$srcdir/$f"; then
40662            # Source tree
40663            echo "$srcdir/$f"
40664          else
40665            # /dev/null tree
40666            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40667 echo "$as_me: error: cannot find input file: $f" >&2;}
40668    { (exit 1); exit 1; }; }
40669          fi;;
40670       esac
40671     done` || { (exit 1); exit 1; }
40672   # Remove the trailing spaces.
40673   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
40674
40675 _ACEOF
40676
40677 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40678 # `conftest.undefs', that substitutes the proper values into
40679 # config.h.in to produce config.h.  The first handles `#define'
40680 # templates, and the second `#undef' templates.
40681 # And first: Protect against being on the right side of a sed subst in
40682 # config.status.  Protect against being in an unquoted here document
40683 # in config.status.
40684 rm -f conftest.defines conftest.undefs
40685 # Using a here document instead of a string reduces the quoting nightmare.
40686 # Putting comments in sed scripts is not portable.
40687 #
40688 # `end' is used to avoid that the second main sed command (meant for
40689 # 0-ary CPP macros) applies to n-ary macro definitions.
40690 # See the Autoconf documentation for `clear'.
40691 cat >confdef2sed.sed <<\_ACEOF
40692 s/[\\&,]/\\&/g
40693 s,[\\$`],\\&,g
40694 t clear
40695 : clear
40696 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40697 t end
40698 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40699 : end
40700 _ACEOF
40701 # If some macros were called several times there might be several times
40702 # the same #defines, which is useless.  Nevertheless, we may not want to
40703 # sort them, since we want the *last* AC-DEFINE to be honored.
40704 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40705 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40706 rm -f confdef2sed.sed
40707
40708 # This sed command replaces #undef with comments.  This is necessary, for
40709 # example, in the case of _POSIX_SOURCE, which is predefined and required
40710 # on some systems where configure will not decide to define it.
40711 cat >>conftest.undefs <<\_ACEOF
40712 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40713 _ACEOF
40714
40715 # Break up conftest.defines because some shells have a limit on the size
40716 # of here documents, and old seds have small limits too (100 cmds).
40717 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40718 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40719 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40720 echo '  :' >>$CONFIG_STATUS
40721 rm -f conftest.tail
40722 while grep . conftest.defines >/dev/null
40723 do
40724   # Write a limited-size here document to $tmp/defines.sed.
40725   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40726   # Speed up: don't consider the non `#define' lines.
40727   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
40728   # Work around the forget-to-reset-the-flag bug.
40729   echo 't clr' >>$CONFIG_STATUS
40730   echo ': clr' >>$CONFIG_STATUS
40731   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40732   echo 'CEOF
40733   sed -f $tmp/defines.sed $tmp/in >$tmp/out
40734   rm -f $tmp/in
40735   mv $tmp/out $tmp/in
40736 ' >>$CONFIG_STATUS
40737   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40738   rm -f conftest.defines
40739   mv conftest.tail conftest.defines
40740 done
40741 rm -f conftest.defines
40742 echo '  fi # grep' >>$CONFIG_STATUS
40743 echo >>$CONFIG_STATUS
40744
40745 # Break up conftest.undefs because some shells have a limit on the size
40746 # of here documents, and old seds have small limits too (100 cmds).
40747 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40748 rm -f conftest.tail
40749 while grep . conftest.undefs >/dev/null
40750 do
40751   # Write a limited-size here document to $tmp/undefs.sed.
40752   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40753   # Speed up: don't consider the non `#undef'
40754   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
40755   # Work around the forget-to-reset-the-flag bug.
40756   echo 't clr' >>$CONFIG_STATUS
40757   echo ': clr' >>$CONFIG_STATUS
40758   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40759   echo 'CEOF
40760   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40761   rm -f $tmp/in
40762   mv $tmp/out $tmp/in
40763 ' >>$CONFIG_STATUS
40764   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40765   rm -f conftest.undefs
40766   mv conftest.tail conftest.undefs
40767 done
40768 rm -f conftest.undefs
40769
40770 cat >>$CONFIG_STATUS <<\_ACEOF
40771   # Let's still pretend it is `configure' which instantiates (i.e., don't
40772   # use $as_me), people would be surprised to read:
40773   #    /* config.h.  Generated by config.status.  */
40774   if test x"$ac_file" = x-; then
40775     echo "/* Generated by configure.  */" >$tmp/config.h
40776   else
40777     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40778   fi
40779   cat $tmp/in >>$tmp/config.h
40780   rm -f $tmp/in
40781   if test x"$ac_file" != x-; then
40782     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40783       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40784 echo "$as_me: $ac_file is unchanged" >&6;}
40785     else
40786       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40787 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40788          X"$ac_file" : 'X\(//\)[^/]' \| \
40789          X"$ac_file" : 'X\(//\)$' \| \
40790          X"$ac_file" : 'X\(/\)' \| \
40791          .     : '\(.\)' 2>/dev/null ||
40792 echo X"$ac_file" |
40793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40794           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40795           /^X\(\/\/\)$/{ s//\1/; q; }
40796           /^X\(\/\).*/{ s//\1/; q; }
40797           s/.*/./; q'`
40798       { if $as_mkdir_p; then
40799     mkdir -p "$ac_dir"
40800   else
40801     as_dir="$ac_dir"
40802     as_dirs=
40803     while test ! -d "$as_dir"; do
40804       as_dirs="$as_dir $as_dirs"
40805       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40807          X"$as_dir" : 'X\(//\)[^/]' \| \
40808          X"$as_dir" : 'X\(//\)$' \| \
40809          X"$as_dir" : 'X\(/\)' \| \
40810          .     : '\(.\)' 2>/dev/null ||
40811 echo X"$as_dir" |
40812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40813           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40814           /^X\(\/\/\)$/{ s//\1/; q; }
40815           /^X\(\/\).*/{ s//\1/; q; }
40816           s/.*/./; q'`
40817     done
40818     test ! -n "$as_dirs" || mkdir $as_dirs
40819   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40820 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40821    { (exit 1); exit 1; }; }; }
40822
40823       rm -f $ac_file
40824       mv $tmp/config.h $ac_file
40825     fi
40826   else
40827     cat $tmp/config.h
40828     rm -f $tmp/config.h
40829   fi
40830 # Compute $ac_file's index in $config_headers.
40831 _am_stamp_count=1
40832 for _am_header in $config_headers :; do
40833   case $_am_header in
40834     $ac_file | $ac_file:* )
40835       break ;;
40836     * )
40837       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40838   esac
40839 done
40840 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40841 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40842          X$ac_file : 'X\(//\)[^/]' \| \
40843          X$ac_file : 'X\(//\)$' \| \
40844          X$ac_file : 'X\(/\)' \| \
40845          .     : '\(.\)' 2>/dev/null ||
40846 echo X$ac_file |
40847     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40848           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40849           /^X\(\/\/\)$/{ s//\1/; q; }
40850           /^X\(\/\).*/{ s//\1/; q; }
40851           s/.*/./; q'`/stamp-h$_am_stamp_count
40852 done
40853 _ACEOF
40854 cat >>$CONFIG_STATUS <<\_ACEOF
40855
40856 #
40857 # CONFIG_COMMANDS section.
40858 #
40859 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40860   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40861   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40862   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40863 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40864          X"$ac_dest" : 'X\(//\)[^/]' \| \
40865          X"$ac_dest" : 'X\(//\)$' \| \
40866          X"$ac_dest" : 'X\(/\)' \| \
40867          .     : '\(.\)' 2>/dev/null ||
40868 echo X"$ac_dest" |
40869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40871           /^X\(\/\/\)$/{ s//\1/; q; }
40872           /^X\(\/\).*/{ s//\1/; q; }
40873           s/.*/./; q'`
40874   { if $as_mkdir_p; then
40875     mkdir -p "$ac_dir"
40876   else
40877     as_dir="$ac_dir"
40878     as_dirs=
40879     while test ! -d "$as_dir"; do
40880       as_dirs="$as_dir $as_dirs"
40881       as_dir=`(dirname "$as_dir") 2>/dev/null ||
40882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40883          X"$as_dir" : 'X\(//\)[^/]' \| \
40884          X"$as_dir" : 'X\(//\)$' \| \
40885          X"$as_dir" : 'X\(/\)' \| \
40886          .     : '\(.\)' 2>/dev/null ||
40887 echo X"$as_dir" |
40888     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40889           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40890           /^X\(\/\/\)$/{ s//\1/; q; }
40891           /^X\(\/\).*/{ s//\1/; q; }
40892           s/.*/./; q'`
40893     done
40894     test ! -n "$as_dirs" || mkdir $as_dirs
40895   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40896 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40897    { (exit 1); exit 1; }; }; }
40898
40899   ac_builddir=.
40900
40901 if test "$ac_dir" != .; then
40902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40903   # A "../" for each directory in $ac_dir_suffix.
40904   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40905 else
40906   ac_dir_suffix= ac_top_builddir=
40907 fi
40908
40909 case $srcdir in
40910   .)  # No --srcdir option.  We are building in place.
40911     ac_srcdir=.
40912     if test -z "$ac_top_builddir"; then
40913        ac_top_srcdir=.
40914     else
40915        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40916     fi ;;
40917   [\\/]* | ?:[\\/]* )  # Absolute path.
40918     ac_srcdir=$srcdir$ac_dir_suffix;
40919     ac_top_srcdir=$srcdir ;;
40920   *) # Relative path.
40921     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40922     ac_top_srcdir=$ac_top_builddir$srcdir ;;
40923 esac
40924
40925 # Do not use `cd foo && pwd` to compute absolute paths, because
40926 # the directories may not exist.
40927 case `pwd` in
40928 .) ac_abs_builddir="$ac_dir";;
40929 *)
40930   case "$ac_dir" in
40931   .) ac_abs_builddir=`pwd`;;
40932   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40933   *) ac_abs_builddir=`pwd`/"$ac_dir";;
40934   esac;;
40935 esac
40936 case $ac_abs_builddir in
40937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40938 *)
40939   case ${ac_top_builddir}. in
40940   .) ac_abs_top_builddir=$ac_abs_builddir;;
40941   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40942   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40943   esac;;
40944 esac
40945 case $ac_abs_builddir in
40946 .) ac_abs_srcdir=$ac_srcdir;;
40947 *)
40948   case $ac_srcdir in
40949   .) ac_abs_srcdir=$ac_abs_builddir;;
40950   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40951   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40952   esac;;
40953 esac
40954 case $ac_abs_builddir in
40955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40956 *)
40957   case $ac_top_srcdir in
40958   .) ac_abs_top_srcdir=$ac_abs_builddir;;
40959   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40960   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40961   esac;;
40962 esac
40963
40964
40965   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40966 echo "$as_me: executing $ac_dest commands" >&6;}
40967   case $ac_dest in
40968     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40969   # Strip MF so we end up with the name of the file.
40970   mf=`echo "$mf" | sed -e 's/:.*$//'`
40971   # Check whether this is an Automake generated Makefile or not.
40972   # We used to match only the files named `Makefile.in', but
40973   # some people rename them; so instead we look at the file content.
40974   # Grep'ing the first line is not enough: some people post-process
40975   # each Makefile.in and add a new line on top of each file to say so.
40976   # So let's grep whole file.
40977   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40978     dirpart=`(dirname "$mf") 2>/dev/null ||
40979 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40980          X"$mf" : 'X\(//\)[^/]' \| \
40981          X"$mf" : 'X\(//\)$' \| \
40982          X"$mf" : 'X\(/\)' \| \
40983          .     : '\(.\)' 2>/dev/null ||
40984 echo X"$mf" |
40985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40987           /^X\(\/\/\)$/{ s//\1/; q; }
40988           /^X\(\/\).*/{ s//\1/; q; }
40989           s/.*/./; q'`
40990   else
40991     continue
40992   fi
40993   # Extract the definition of DEPDIR, am__include, and am__quote
40994   # from the Makefile without running `make'.
40995   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40996   test -z "$DEPDIR" && continue
40997   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40998   test -z "am__include" && continue
40999   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41000   # When using ansi2knr, U may be empty or an underscore; expand it
41001   U=`sed -n 's/^U = //p' < "$mf"`
41002   # Find all dependency output files, they are included files with
41003   # $(DEPDIR) in their names.  We invoke sed twice because it is the
41004   # simplest approach to changing $(DEPDIR) to its actual value in the
41005   # expansion.
41006   for file in `sed -n "
41007     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41008        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
41009     # Make sure the directory exists.
41010     test -f "$dirpart/$file" && continue
41011     fdir=`(dirname "$file") 2>/dev/null ||
41012 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41013          X"$file" : 'X\(//\)[^/]' \| \
41014          X"$file" : 'X\(//\)$' \| \
41015          X"$file" : 'X\(/\)' \| \
41016          .     : '\(.\)' 2>/dev/null ||
41017 echo X"$file" |
41018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41020           /^X\(\/\/\)$/{ s//\1/; q; }
41021           /^X\(\/\).*/{ s//\1/; q; }
41022           s/.*/./; q'`
41023     { if $as_mkdir_p; then
41024     mkdir -p $dirpart/$fdir
41025   else
41026     as_dir=$dirpart/$fdir
41027     as_dirs=
41028     while test ! -d "$as_dir"; do
41029       as_dirs="$as_dir $as_dirs"
41030       as_dir=`(dirname "$as_dir") 2>/dev/null ||
41031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41032          X"$as_dir" : 'X\(//\)[^/]' \| \
41033          X"$as_dir" : 'X\(//\)$' \| \
41034          X"$as_dir" : 'X\(/\)' \| \
41035          .     : '\(.\)' 2>/dev/null ||
41036 echo X"$as_dir" |
41037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41039           /^X\(\/\/\)$/{ s//\1/; q; }
41040           /^X\(\/\).*/{ s//\1/; q; }
41041           s/.*/./; q'`
41042     done
41043     test ! -n "$as_dirs" || mkdir $as_dirs
41044   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
41045 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
41046    { (exit 1); exit 1; }; }; }
41047
41048     # echo "creating $dirpart/$file"
41049     echo '# dummy' > "$dirpart/$file"
41050   done
41051 done
41052  ;;
41053     default )
41054 chmod +x tests/run
41055 date > stamp-h
41056 BACKENDSC="servers/slapd/backends.c"
41057 echo "Making $BACKENDSC"
41058 rm -f $BACKENDSC
41059 cat > $BACKENDSC << ENDX
41060 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41061  *
41062  * Copyright 1998-2007 The OpenLDAP Foundation.
41063  * All rights reserved.
41064  *
41065  * Redistribution and use in source and binary forms, with or without
41066  * modification, are permitted only as authorized by the OpenLDAP
41067  * Public License.
41068  *
41069  * A copy of this license is available in the file LICENSE in the
41070  * top-level directory of the distribution or, alternatively, at
41071  * <http://www.OpenLDAP.org/license.html>.
41072  */
41073 /* This file is automatically generated by configure; please do not edit. */
41074
41075 #include "portable.h"
41076 #include "slap.h"
41077
41078 ENDX
41079 if test "${STATIC_BACKENDS}"; then
41080         for b in config ${STATIC_BACKENDS}; do
41081                 bb=`echo "${b}" | sed -e 's/back-//'`
41082                 cat >> $BACKENDSC << ENDX
41083 extern BI_init ${bb}_back_initialize;
41084 ENDX
41085         done
41086
41087         cat >> $BACKENDSC << ENDX
41088
41089 BackendInfo slap_binfo[] = {
41090 ENDX
41091
41092         for b in config ${STATIC_BACKENDS}; do
41093                 bb=`echo "${b}" | sed -e 's/back-//'`
41094                 echo "    Add ${bb} ..."
41095                 cat >> $BACKENDSC << ENDX
41096         { "${bb}", ${bb}_back_initialize },
41097 ENDX
41098         done
41099
41100         cat >> $BACKENDSC << ENDX
41101         { NULL, NULL },
41102 };
41103
41104 /* end of generated file */
41105 ENDX
41106 fi
41107 OVERLAYSC="servers/slapd/overlays/statover.c"
41108 echo "Making $OVERLAYSC"
41109 rm -f $OVERLAYSC
41110 cat > $OVERLAYSC << ENDX
41111 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41112  *
41113  * Copyright 1998-2007 The OpenLDAP Foundation.
41114  * All rights reserved.
41115  *
41116  * Redistribution and use in source and binary forms, with or without
41117  * modification, are permitted only as authorized by the OpenLDAP
41118  * Public License.
41119  *
41120  * A copy of this license is available in the file LICENSE in the
41121  * top-level directory of the distribution or, alternatively, at
41122  * <http://www.OpenLDAP.org/license.html>.
41123  */
41124 /* This file is automatically generated by configure; please do not edit. */
41125
41126 #include "portable.h"
41127 #include "slap.h"
41128
41129 ENDX
41130 if test "${STATIC_OVERLAYS}"; then
41131         for o in ${STATIC_OVERLAYS}; do
41132                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41133                 cat >> $OVERLAYSC << ENDX
41134 extern OV_init ${oo}_initialize;
41135 ENDX
41136         done
41137 fi
41138
41139 cat >> $OVERLAYSC << ENDX
41140
41141 OverlayInit slap_oinfo[] = {
41142 ENDX
41143
41144 if test "${STATIC_OVERLAYS}"; then
41145         for o in ${STATIC_OVERLAYS}; do
41146                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41147                 echo "    Add ${oo} ..."
41148                 cat >> $OVERLAYSC << ENDX
41149         { "${oo}", ${oo}_initialize },
41150 ENDX
41151         done
41152 fi
41153
41154         cat >> $OVERLAYSC << ENDX
41155         { NULL, NULL },
41156 };
41157
41158 /* end of generated file */
41159 ENDX
41160
41161 echo Please run \"make depend\" to build dependencies
41162  ;;
41163   esac
41164 done
41165 _ACEOF
41166
41167 cat >>$CONFIG_STATUS <<\_ACEOF
41168
41169 { (exit 0); exit 0; }
41170 _ACEOF
41171 chmod +x $CONFIG_STATUS
41172 ac_clean_files=$ac_clean_files_save
41173
41174
41175 # configure is writing to config.log, and then calls config.status.
41176 # config.status does its own redirection, appending to config.log.
41177 # Unfortunately, on DOS this fails, as config.log is still kept open
41178 # by configure, so config.status won't be able to write to it; its
41179 # output is simply discarded.  So we exec the FD to /dev/null,
41180 # effectively closing config.log, so it can be properly (re)opened and
41181 # appended to by config.status.  When coming back to configure, we
41182 # need to make the FD available again.
41183 if test "$no_create" != yes; then
41184   ac_cs_success=:
41185   ac_config_status_args=
41186   test "$silent" = yes &&
41187     ac_config_status_args="$ac_config_status_args --quiet"
41188   exec 5>/dev/null
41189   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41190   exec 5>>config.log
41191   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41192   # would make configure fail if this is the last instruction.
41193   $ac_cs_success || { (exit 1); exit 1; }
41194 fi
41195