]> git.sur5r.net Git - openldap/blob - configure
Fix Bind/Unbind logging, align Search scopes with RFC2255
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.601 2005/10/13 21:52:21 kurt Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright 1998-2005 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_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_VALSORT BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_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 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 [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-aci          enable per-object ACIs (experimental) [no]
1019     --enable-cleartext    enable cleartext passwords [yes]
1020     --enable-crypt        enable crypt(3) passwords [no]
1021     --enable-lmpasswd     enable LAN Manager passwords [no]
1022     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1023     --enable-modules      enable dynamic module support [no]
1024     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1025     --enable-rlookups     enable reverse lookups of client hostnames [no]
1026     --enable-slapi        enable SLAPI support (experimental) [no]
1027     --enable-slp          enable SLPv2 support [no]
1028     --enable-wrappers     enable tcp wrapper support [no]
1029
1030 SLAPD Backend Options:
1031     --enable-backends     enable all available backends no|yes|mod
1032     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1033     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1034     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1035     --enable-ldap         enable ldap backend no|yes|mod [no]
1036     --enable-ldbm         enable ldbm backend no|yes|mod [no]
1037       --enable-ldbm-api   use LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]
1038       --enable-ldbm-type  use LDBM type auto|btree|hash [auto]
1039     --enable-meta         enable metadirectory backend no|yes|mod [no]
1040     --enable-monitor      enable monitor backend no|yes|mod [yes]
1041     --enable-null         enable null backend no|yes|mod [no]
1042     --enable-passwd       enable passwd backend no|yes|mod [no]
1043     --enable-perl         enable perl backend no|yes|mod [no]
1044     --enable-relay        enable relay backend no|yes|mod [yes]
1045     --enable-shell        enable shell backend no|yes|mod [no]
1046     --enable-sql          enable sql backend no|yes|mod [no]
1047
1048 SLAPD Overlay Options:
1049     --enable-overlays     enable all available overlays no|yes|mod
1050     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1051     --enable-denyop       Deny Operation 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-lastmod      Last Modification overlay no|yes|mod [no]
1055     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1056     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1057     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1058     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1059     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
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-multiple-precision
1089                           multiple precision support for statistics
1090                           auto|bignum|gmp [auto]
1091
1092   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1093   --with-pic              try to use only PIC/non-PIC objects [default=use
1094                           both]
1095   --with-tags[=TAGS]
1096                           include additional configurations [automatic]
1097
1098 See INSTALL file for further details.
1099
1100 Some influential environment variables:
1101   CC          C compiler command
1102   CFLAGS      C compiler flags
1103   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1104               nonstandard directory <lib dir>
1105   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1106               headers in a nonstandard directory <include dir>
1107   CPP         C preprocessor
1108
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1111
1112 _ACEOF
1113 fi
1114
1115 if test "$ac_init_help" = "recursive"; then
1116   # If there are subdirs, report their specific --help.
1117   ac_popdir=`pwd`
1118   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119     test -d $ac_dir || continue
1120     ac_builddir=.
1121
1122 if test "$ac_dir" != .; then
1123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124   # A "../" for each directory in $ac_dir_suffix.
1125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127   ac_dir_suffix= ac_top_builddir=
1128 fi
1129
1130 case $srcdir in
1131   .)  # No --srcdir option.  We are building in place.
1132     ac_srcdir=.
1133     if test -z "$ac_top_builddir"; then
1134        ac_top_srcdir=.
1135     else
1136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137     fi ;;
1138   [\\/]* | ?:[\\/]* )  # Absolute path.
1139     ac_srcdir=$srcdir$ac_dir_suffix;
1140     ac_top_srcdir=$srcdir ;;
1141   *) # Relative path.
1142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1145
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1150 *)
1151   case "$ac_dir" in
1152   .) ac_abs_builddir=`pwd`;;
1153   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155   esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1159 *)
1160   case ${ac_top_builddir}. in
1161   .) ac_abs_top_builddir=$ac_abs_builddir;;
1162   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164   esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1168 *)
1169   case $ac_srcdir in
1170   .) ac_abs_srcdir=$ac_abs_builddir;;
1171   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173   esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1177 *)
1178   case $ac_top_srcdir in
1179   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182   esac;;
1183 esac
1184
1185     cd $ac_dir
1186     # Check for guested configure; otherwise get Cygnus style configure.
1187     if test -f $ac_srcdir/configure.gnu; then
1188       echo
1189       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190     elif test -f $ac_srcdir/configure; then
1191       echo
1192       $SHELL $ac_srcdir/configure  --help=recursive
1193     elif test -f $ac_srcdir/configure.ac ||
1194            test -f $ac_srcdir/configure.in; then
1195       echo
1196       $ac_configure --help
1197     else
1198       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199     fi
1200     cd $ac_popdir
1201   done
1202 fi
1203
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206   cat <<\_ACEOF
1207
1208 Copyright (C) 2003 Free Software Foundation, Inc.
1209 This configure script is free software; the Free Software Foundation
1210 gives unlimited permission to copy, distribute and modify it.
1211
1212 Copyright 1998-2005 The OpenLDAP Foundation. All rights reserved.
1213 Restrictions apply, see COPYRIGHT and LICENSE files.
1214 _ACEOF
1215   exit 0
1216 fi
1217 exec 5>config.log
1218 cat >&5 <<_ACEOF
1219 This file contains any messages produced by compilers while
1220 running configure, to aid debugging if configure makes a mistake.
1221
1222 It was created by $as_me, which was
1223 generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225   $ $0 $@
1226
1227 _ACEOF
1228 {
1229 cat <<_ASUNAME
1230 ## --------- ##
1231 ## Platform. ##
1232 ## --------- ##
1233
1234 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251 _ASUNAME
1252
1253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254 for as_dir in $PATH
1255 do
1256   IFS=$as_save_IFS
1257   test -z "$as_dir" && as_dir=.
1258   echo "PATH: $as_dir"
1259 done
1260
1261 } >&5
1262
1263 cat >&5 <<_ACEOF
1264
1265
1266 ## ----------- ##
1267 ## Core tests. ##
1268 ## ----------- ##
1269
1270 _ACEOF
1271
1272
1273 # Keep a trace of the command line.
1274 # Strip out --no-create and --no-recursion so they do not pile up.
1275 # Strip out --silent because we don't want to record it for future runs.
1276 # Also quote any args containing shell meta-characters.
1277 # Make two passes to allow for proper duplicate-argument suppression.
1278 ac_configure_args=
1279 ac_configure_args0=
1280 ac_configure_args1=
1281 ac_sep=
1282 ac_must_keep_next=false
1283 for ac_pass in 1 2
1284 do
1285   for ac_arg
1286   do
1287     case $ac_arg in
1288     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290     | -silent | --silent | --silen | --sile | --sil)
1291       continue ;;
1292     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294     esac
1295     case $ac_pass in
1296     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297     2)
1298       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299       if test $ac_must_keep_next = true; then
1300         ac_must_keep_next=false # Got value, back to normal.
1301       else
1302         case $ac_arg in
1303           *=* | --config-cache | -C | -disable-* | --disable-* \
1304           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306           | -with-* | --with-* | -without-* | --without-* | --x)
1307             case "$ac_configure_args0 " in
1308               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309             esac
1310             ;;
1311           -* ) ac_must_keep_next=true ;;
1312         esac
1313       fi
1314       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315       # Get rid of the leading space.
1316       ac_sep=" "
1317       ;;
1318     esac
1319   done
1320 done
1321 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324 # When interrupted or exit'd, cleanup temporary files, and complete
1325 # config.log.  We remove comments because anyway the quotes in there
1326 # would cause problems or look ugly.
1327 # WARNING: Be sure not to use single quotes in there, as some shells,
1328 # such as our DU 5.0 friend, will then `close' the trap.
1329 trap 'exit_status=$?
1330   # Save into config.log some information that might help in debugging.
1331   {
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ---------------- ##
1336 ## Cache variables. ##
1337 ## ---------------- ##
1338 _ASBOX
1339     echo
1340     # The following way of writing the cache mishandles newlines in values,
1341 {
1342   (set) 2>&1 |
1343     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344     *ac_space=\ *)
1345       sed -n \
1346         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348       ;;
1349     *)
1350       sed -n \
1351         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352       ;;
1353     esac;
1354 }
1355     echo
1356
1357     cat <<\_ASBOX
1358 ## ----------------- ##
1359 ## Output variables. ##
1360 ## ----------------- ##
1361 _ASBOX
1362     echo
1363     for ac_var in $ac_subst_vars
1364     do
1365       eval ac_val=$`echo $ac_var`
1366       echo "$ac_var='"'"'$ac_val'"'"'"
1367     done | sort
1368     echo
1369
1370     if test -n "$ac_subst_files"; then
1371       cat <<\_ASBOX
1372 ## ------------- ##
1373 ## Output files. ##
1374 ## ------------- ##
1375 _ASBOX
1376       echo
1377       for ac_var in $ac_subst_files
1378       do
1379         eval ac_val=$`echo $ac_var`
1380         echo "$ac_var='"'"'$ac_val'"'"'"
1381       done | sort
1382       echo
1383     fi
1384
1385     if test -s confdefs.h; then
1386       cat <<\_ASBOX
1387 ## ----------- ##
1388 ## confdefs.h. ##
1389 ## ----------- ##
1390 _ASBOX
1391       echo
1392       sed "/^$/d" confdefs.h | sort
1393       echo
1394     fi
1395     test "$ac_signal" != 0 &&
1396       echo "$as_me: caught signal $ac_signal"
1397     echo "$as_me: exit $exit_status"
1398   } >&5
1399   rm -f core *.core &&
1400   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401     exit $exit_status
1402      ' 0
1403 for ac_signal in 1 2 13 15; do
1404   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405 done
1406 ac_signal=0
1407
1408 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1409 rm -rf conftest* confdefs.h
1410 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411 echo >confdefs.h
1412
1413 # Predefined preprocessor variables.
1414
1415 cat >>confdefs.h <<_ACEOF
1416 #define PACKAGE_NAME "$PACKAGE_NAME"
1417 _ACEOF
1418
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_STRING "$PACKAGE_STRING"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437 _ACEOF
1438
1439
1440 # Let the site file select an alternate cache file if it wants to.
1441 # Prefer explicitly selected file to automatically selected ones.
1442 if test -z "$CONFIG_SITE"; then
1443   if test "x$prefix" != xNONE; then
1444     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445   else
1446     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447   fi
1448 fi
1449 for ac_site_file in $CONFIG_SITE; do
1450   if test -r "$ac_site_file"; then
1451     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452 echo "$as_me: loading site script $ac_site_file" >&6;}
1453     sed 's/^/| /' "$ac_site_file" >&5
1454     . "$ac_site_file"
1455   fi
1456 done
1457
1458
1459 # Check that the precious variables saved in the cache have kept the same
1460 # value.
1461 ac_cache_corrupted=false
1462 for ac_var in `(set) 2>&1 |
1463                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1464   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1465   eval ac_new_set=\$ac_env_${ac_var}_set
1466   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1467   eval ac_new_val="\$ac_env_${ac_var}_value"
1468   case $ac_old_set,$ac_new_set in
1469     set,)
1470       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1471 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1472       ac_cache_corrupted=: ;;
1473     ,set)
1474       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1475 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1476       ac_cache_corrupted=: ;;
1477     ,);;
1478     *)
1479       if test "x$ac_old_val" != "x$ac_new_val"; then
1480         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1481 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1482         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1483 echo "$as_me:   former value:  $ac_old_val" >&2;}
1484         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1485 echo "$as_me:   current value: $ac_new_val" >&2;}
1486         ac_cache_corrupted=:
1487       fi;;
1488   esac
1489   # Pass precious variables to config.status.
1490   if test "$ac_new_set" = set; then
1491     case $ac_new_val in
1492     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1493       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1494     *) ac_arg=$ac_var=$ac_new_val ;;
1495     esac
1496     case " $ac_configure_args " in
1497       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1498       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1499     esac
1500   fi
1501 done
1502 if $ac_cache_corrupted; then
1503   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1504 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1505   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1506 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1507    { (exit 1); exit 1; }; }
1508 fi
1509
1510 ac_ext=c
1511 ac_cpp='$CPP $CPPFLAGS'
1512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 auto yes no ; do
2179                 if test "$enableval" = "$ol_val" ; then
2180                         ol_arg="$ol_val"
2181                 fi
2182         done
2183         if test "$ol_arg" = "invalid" ; then
2184                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2185 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2186    { (exit 1); exit 1; }; }
2187         fi
2188         ol_enable_debug="$ol_arg"
2189
2190 else
2191         ol_enable_debug=yes
2192 fi;
2193 # end --enable-debug
2194 # OpenLDAP --enable-dynamic
2195
2196         # Check whether --enable-dynamic or --disable-dynamic was given.
2197 if test "${enable_dynamic+set}" = set; then
2198   enableval="$enable_dynamic"
2199
2200         ol_arg=invalid
2201         for ol_val in auto yes no ; do
2202                 if test "$enableval" = "$ol_val" ; then
2203                         ol_arg="$ol_val"
2204                 fi
2205         done
2206         if test "$ol_arg" = "invalid" ; then
2207                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2208 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2209    { (exit 1); exit 1; }; }
2210         fi
2211         ol_enable_dynamic="$ol_arg"
2212
2213 else
2214         ol_enable_dynamic=no
2215 fi;
2216 # end --enable-dynamic
2217 # OpenLDAP --enable-syslog
2218
2219         # Check whether --enable-syslog or --disable-syslog was given.
2220 if test "${enable_syslog+set}" = set; then
2221   enableval="$enable_syslog"
2222
2223         ol_arg=invalid
2224         for ol_val in auto yes no ; do
2225                 if test "$enableval" = "$ol_val" ; then
2226                         ol_arg="$ol_val"
2227                 fi
2228         done
2229         if test "$ol_arg" = "invalid" ; then
2230                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2231 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2232    { (exit 1); exit 1; }; }
2233         fi
2234         ol_enable_syslog="$ol_arg"
2235
2236 else
2237         ol_enable_syslog=auto
2238 fi;
2239 # end --enable-syslog
2240 # OpenLDAP --enable-proctitle
2241
2242         # Check whether --enable-proctitle or --disable-proctitle was given.
2243 if test "${enable_proctitle+set}" = set; then
2244   enableval="$enable_proctitle"
2245
2246         ol_arg=invalid
2247         for ol_val in auto yes no ; do
2248                 if test "$enableval" = "$ol_val" ; then
2249                         ol_arg="$ol_val"
2250                 fi
2251         done
2252         if test "$ol_arg" = "invalid" ; then
2253                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2254 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2255    { (exit 1); exit 1; }; }
2256         fi
2257         ol_enable_proctitle="$ol_arg"
2258
2259 else
2260         ol_enable_proctitle=yes
2261 fi;
2262 # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266
2267         # Check whether --enable-ipv6 or --disable-ipv6 was given.
2268 if test "${enable_ipv6+set}" = set; then
2269   enableval="$enable_ipv6"
2270
2271         ol_arg=invalid
2272         for ol_val in auto yes no ; do
2273                 if test "$enableval" = "$ol_val" ; then
2274                         ol_arg="$ol_val"
2275                 fi
2276         done
2277         if test "$ol_arg" = "invalid" ; then
2278                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2279 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2280    { (exit 1); exit 1; }; }
2281         fi
2282         ol_enable_ipv6="$ol_arg"
2283
2284 else
2285         ol_enable_ipv6=auto
2286 fi;
2287 # end --enable-ipv6
2288 # OpenLDAP --enable-local
2289
2290         # Check whether --enable-local or --disable-local was given.
2291 if test "${enable_local+set}" = set; then
2292   enableval="$enable_local"
2293
2294         ol_arg=invalid
2295         for ol_val in auto yes no ; do
2296                 if test "$enableval" = "$ol_val" ; then
2297                         ol_arg="$ol_val"
2298                 fi
2299         done
2300         if test "$ol_arg" = "invalid" ; then
2301                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2302 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2303    { (exit 1); exit 1; }; }
2304         fi
2305         ol_enable_local="$ol_arg"
2306
2307 else
2308         ol_enable_local=auto
2309 fi;
2310 # end --enable-local
2311
2312 # OpenLDAP --with-cyrus_sasl
2313
2314 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2315 if test "${with_cyrus_sasl+set}" = set; then
2316   withval="$with_cyrus_sasl"
2317
2318         ol_arg=invalid
2319         for ol_val in auto yes no  ; do
2320                 if test "$withval" = "$ol_val" ; then
2321                         ol_arg="$ol_val"
2322                 fi
2323         done
2324         if test "$ol_arg" = "invalid" ; then
2325                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2326 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2327    { (exit 1); exit 1; }; }
2328         fi
2329         ol_with_cyrus_sasl="$ol_arg"
2330
2331 else
2332         ol_with_cyrus_sasl="auto"
2333 fi; # end --with-cyrus_sasl
2334
2335 # OpenLDAP --with-fetch
2336
2337 # Check whether --with-fetch or --without-fetch was given.
2338 if test "${with_fetch+set}" = set; then
2339   withval="$with_fetch"
2340
2341         ol_arg=invalid
2342         for ol_val in auto yes no  ; do
2343                 if test "$withval" = "$ol_val" ; then
2344                         ol_arg="$ol_val"
2345                 fi
2346         done
2347         if test "$ol_arg" = "invalid" ; then
2348                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2349 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2350    { (exit 1); exit 1; }; }
2351         fi
2352         ol_with_fetch="$ol_arg"
2353
2354 else
2355         ol_with_fetch="auto"
2356 fi; # end --with-fetch
2357
2358 ol_with_kerberos=${ol_with_kerberos-auto}
2359 # OpenLDAP --with-threads
2360
2361 # Check whether --with-threads or --without-threads was given.
2362 if test "${with_threads+set}" = set; then
2363   withval="$with_threads"
2364
2365         ol_arg=invalid
2366         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2367                 if test "$withval" = "$ol_val" ; then
2368                         ol_arg="$ol_val"
2369                 fi
2370         done
2371         if test "$ol_arg" = "invalid" ; then
2372                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2373 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2374    { (exit 1); exit 1; }; }
2375         fi
2376         ol_with_threads="$ol_arg"
2377
2378 else
2379         ol_with_threads="auto"
2380 fi; # end --with-threads
2381
2382 # OpenLDAP --with-tls
2383
2384 # Check whether --with-tls or --without-tls was given.
2385 if test "${with_tls+set}" = set; then
2386   withval="$with_tls"
2387
2388         ol_arg=invalid
2389         for ol_val in auto openssl yes no  ; do
2390                 if test "$withval" = "$ol_val" ; then
2391                         ol_arg="$ol_val"
2392                 fi
2393         done
2394         if test "$ol_arg" = "invalid" ; then
2395                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2396 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2397    { (exit 1); exit 1; }; }
2398         fi
2399         ol_with_tls="$ol_arg"
2400
2401 else
2402         ol_with_tls="auto"
2403 fi; # end --with-tls
2404
2405 # OpenLDAP --with-yielding_select
2406
2407 # Check whether --with-yielding_select or --without-yielding_select was given.
2408 if test "${with_yielding_select+set}" = set; then
2409   withval="$with_yielding_select"
2410
2411         ol_arg=invalid
2412         for ol_val in auto yes no manual  ; do
2413                 if test "$withval" = "$ol_val" ; then
2414                         ol_arg="$ol_val"
2415                 fi
2416         done
2417         if test "$ol_arg" = "invalid" ; then
2418                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2419 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2420    { (exit 1); exit 1; }; }
2421         fi
2422         ol_with_yielding_select="$ol_arg"
2423
2424 else
2425         ol_with_yielding_select="auto"
2426 fi; # end --with-yielding_select
2427
2428 # OpenLDAP --with-multiple_precision
2429
2430 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2431 if test "${with_multiple_precision+set}" = set; then
2432   withval="$with_multiple_precision"
2433
2434         ol_arg=invalid
2435         for ol_val in auto bignum gmp yes no  ; do
2436                 if test "$withval" = "$ol_val" ; then
2437                         ol_arg="$ol_val"
2438                 fi
2439         done
2440         if test "$ol_arg" = "invalid" ; then
2441                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2442 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2443    { (exit 1); exit 1; }; }
2444         fi
2445         ol_with_multiple_precision="$ol_arg"
2446
2447 else
2448         ol_with_multiple_precision="auto"
2449 fi; # end --with-multiple_precision
2450
2451
2452
2453 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2454 if test "${enable_xxslapdoptions+set}" = set; then
2455   enableval="$enable_xxslapdoptions"
2456
2457 fi;
2458 # OpenLDAP --enable-slapd
2459
2460         # Check whether --enable-slapd or --disable-slapd was given.
2461 if test "${enable_slapd+set}" = set; then
2462   enableval="$enable_slapd"
2463
2464         ol_arg=invalid
2465         for ol_val in auto yes no ; do
2466                 if test "$enableval" = "$ol_val" ; then
2467                         ol_arg="$ol_val"
2468                 fi
2469         done
2470         if test "$ol_arg" = "invalid" ; then
2471                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2472 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2473    { (exit 1); exit 1; }; }
2474         fi
2475         ol_enable_slapd="$ol_arg"
2476
2477 else
2478         ol_enable_slapd=yes
2479 fi;
2480 # end --enable-slapd
2481 # OpenLDAP --enable-aci
2482
2483         # Check whether --enable-aci or --disable-aci was given.
2484 if test "${enable_aci+set}" = set; then
2485   enableval="$enable_aci"
2486
2487         ol_arg=invalid
2488         for ol_val in auto yes no ; do
2489                 if test "$enableval" = "$ol_val" ; then
2490                         ol_arg="$ol_val"
2491                 fi
2492         done
2493         if test "$ol_arg" = "invalid" ; then
2494                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2495 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2496    { (exit 1); exit 1; }; }
2497         fi
2498         ol_enable_aci="$ol_arg"
2499
2500 else
2501         ol_enable_aci=no
2502 fi;
2503 # end --enable-aci
2504 # OpenLDAP --enable-cleartext
2505
2506         # Check whether --enable-cleartext or --disable-cleartext was given.
2507 if test "${enable_cleartext+set}" = set; then
2508   enableval="$enable_cleartext"
2509
2510         ol_arg=invalid
2511         for ol_val in auto yes no ; do
2512                 if test "$enableval" = "$ol_val" ; then
2513                         ol_arg="$ol_val"
2514                 fi
2515         done
2516         if test "$ol_arg" = "invalid" ; then
2517                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2518 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2519    { (exit 1); exit 1; }; }
2520         fi
2521         ol_enable_cleartext="$ol_arg"
2522
2523 else
2524         ol_enable_cleartext=yes
2525 fi;
2526 # end --enable-cleartext
2527 # OpenLDAP --enable-crypt
2528
2529         # Check whether --enable-crypt or --disable-crypt was given.
2530 if test "${enable_crypt+set}" = set; then
2531   enableval="$enable_crypt"
2532
2533         ol_arg=invalid
2534         for ol_val in auto yes no ; do
2535                 if test "$enableval" = "$ol_val" ; then
2536                         ol_arg="$ol_val"
2537                 fi
2538         done
2539         if test "$ol_arg" = "invalid" ; then
2540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2541 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2542    { (exit 1); exit 1; }; }
2543         fi
2544         ol_enable_crypt="$ol_arg"
2545
2546 else
2547         ol_enable_crypt=no
2548 fi;
2549 # end --enable-crypt
2550 # OpenLDAP --enable-lmpasswd
2551
2552         # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2553 if test "${enable_lmpasswd+set}" = set; then
2554   enableval="$enable_lmpasswd"
2555
2556         ol_arg=invalid
2557         for ol_val in auto yes no ; do
2558                 if test "$enableval" = "$ol_val" ; then
2559                         ol_arg="$ol_val"
2560                 fi
2561         done
2562         if test "$ol_arg" = "invalid" ; then
2563                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2564 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2565    { (exit 1); exit 1; }; }
2566         fi
2567         ol_enable_lmpasswd="$ol_arg"
2568
2569 else
2570         ol_enable_lmpasswd=no
2571 fi;
2572 # end --enable-lmpasswd
2573 # OpenLDAP --enable-spasswd
2574
2575         # Check whether --enable-spasswd or --disable-spasswd was given.
2576 if test "${enable_spasswd+set}" = set; then
2577   enableval="$enable_spasswd"
2578
2579         ol_arg=invalid
2580         for ol_val in auto yes no ; do
2581                 if test "$enableval" = "$ol_val" ; then
2582                         ol_arg="$ol_val"
2583                 fi
2584         done
2585         if test "$ol_arg" = "invalid" ; then
2586                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2587 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2588    { (exit 1); exit 1; }; }
2589         fi
2590         ol_enable_spasswd="$ol_arg"
2591
2592 else
2593         ol_enable_spasswd=no
2594 fi;
2595 # end --enable-spasswd
2596 # OpenLDAP --enable-modules
2597
2598         # Check whether --enable-modules or --disable-modules was given.
2599 if test "${enable_modules+set}" = set; then
2600   enableval="$enable_modules"
2601
2602         ol_arg=invalid
2603         for ol_val in auto yes no ; do
2604                 if test "$enableval" = "$ol_val" ; then
2605                         ol_arg="$ol_val"
2606                 fi
2607         done
2608         if test "$ol_arg" = "invalid" ; then
2609                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2610 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2611    { (exit 1); exit 1; }; }
2612         fi
2613         ol_enable_modules="$ol_arg"
2614
2615 else
2616         ol_enable_modules=no
2617 fi;
2618 # end --enable-modules
2619 ol_enable_multimaster=${ol_enable_multimaster-no}
2620 # OpenLDAP --enable-rewrite
2621
2622         # Check whether --enable-rewrite or --disable-rewrite was given.
2623 if test "${enable_rewrite+set}" = set; then
2624   enableval="$enable_rewrite"
2625
2626         ol_arg=invalid
2627         for ol_val in auto yes no ; do
2628                 if test "$enableval" = "$ol_val" ; then
2629                         ol_arg="$ol_val"
2630                 fi
2631         done
2632         if test "$ol_arg" = "invalid" ; then
2633                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2634 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2635    { (exit 1); exit 1; }; }
2636         fi
2637         ol_enable_rewrite="$ol_arg"
2638
2639 else
2640         ol_enable_rewrite=auto
2641 fi;
2642 # end --enable-rewrite
2643 # OpenLDAP --enable-rlookups
2644
2645         # Check whether --enable-rlookups or --disable-rlookups was given.
2646 if test "${enable_rlookups+set}" = set; then
2647   enableval="$enable_rlookups"
2648
2649         ol_arg=invalid
2650         for ol_val in auto yes no ; do
2651                 if test "$enableval" = "$ol_val" ; then
2652                         ol_arg="$ol_val"
2653                 fi
2654         done
2655         if test "$ol_arg" = "invalid" ; then
2656                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2657 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2658    { (exit 1); exit 1; }; }
2659         fi
2660         ol_enable_rlookups="$ol_arg"
2661
2662 else
2663         ol_enable_rlookups=no
2664 fi;
2665 # end --enable-rlookups
2666 # OpenLDAP --enable-slapi
2667
2668         # Check whether --enable-slapi or --disable-slapi was given.
2669 if test "${enable_slapi+set}" = set; then
2670   enableval="$enable_slapi"
2671
2672         ol_arg=invalid
2673         for ol_val in auto yes no ; do
2674                 if test "$enableval" = "$ol_val" ; then
2675                         ol_arg="$ol_val"
2676                 fi
2677         done
2678         if test "$ol_arg" = "invalid" ; then
2679                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2681    { (exit 1); exit 1; }; }
2682         fi
2683         ol_enable_slapi="$ol_arg"
2684
2685 else
2686         ol_enable_slapi=no
2687 fi;
2688 # end --enable-slapi
2689 # OpenLDAP --enable-slp
2690
2691         # Check whether --enable-slp or --disable-slp was given.
2692 if test "${enable_slp+set}" = set; then
2693   enableval="$enable_slp"
2694
2695         ol_arg=invalid
2696         for ol_val in auto yes no ; do
2697                 if test "$enableval" = "$ol_val" ; then
2698                         ol_arg="$ol_val"
2699                 fi
2700         done
2701         if test "$ol_arg" = "invalid" ; then
2702                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2703 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2704    { (exit 1); exit 1; }; }
2705         fi
2706         ol_enable_slp="$ol_arg"
2707
2708 else
2709         ol_enable_slp=no
2710 fi;
2711 # end --enable-slp
2712 # OpenLDAP --enable-wrappers
2713
2714         # Check whether --enable-wrappers or --disable-wrappers was given.
2715 if test "${enable_wrappers+set}" = set; then
2716   enableval="$enable_wrappers"
2717
2718         ol_arg=invalid
2719         for ol_val in auto yes no ; do
2720                 if test "$enableval" = "$ol_val" ; then
2721                         ol_arg="$ol_val"
2722                 fi
2723         done
2724         if test "$ol_arg" = "invalid" ; then
2725                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2726 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2727    { (exit 1); exit 1; }; }
2728         fi
2729         ol_enable_wrappers="$ol_arg"
2730
2731 else
2732         ol_enable_wrappers=no
2733 fi;
2734 # end --enable-wrappers
2735
2736 Backends="bdb \
2737         dnssrv \
2738         hdb \
2739         ldap \
2740         ldbm \
2741         meta \
2742         monitor \
2743         null \
2744         passwd \
2745         perl \
2746         relay \
2747         shell \
2748         sql"
2749
2750 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2751 if test "${enable_xxslapbackends+set}" = set; then
2752   enableval="$enable_xxslapbackends"
2753
2754 fi;
2755
2756 # OpenLDAP --enable-backends
2757
2758         # Check whether --enable-backends or --disable-backends was given.
2759 if test "${enable_backends+set}" = set; then
2760   enableval="$enable_backends"
2761
2762         ol_arg=invalid
2763         for ol_val in no yes mod ; do
2764                 if test "$enableval" = "$ol_val" ; then
2765                         ol_arg="$ol_val"
2766                 fi
2767         done
2768         if test "$ol_arg" = "invalid" ; then
2769                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2770 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2771    { (exit 1); exit 1; }; }
2772         fi
2773         ol_enable_backends="$ol_arg"
2774
2775 fi;
2776 # end --enable-backends
2777 # OpenLDAP --enable-bdb
2778
2779         # Check whether --enable-bdb or --disable-bdb was given.
2780 if test "${enable_bdb+set}" = set; then
2781   enableval="$enable_bdb"
2782
2783         ol_arg=invalid
2784         for ol_val in no yes mod ; do
2785                 if test "$enableval" = "$ol_val" ; then
2786                         ol_arg="$ol_val"
2787                 fi
2788         done
2789         if test "$ol_arg" = "invalid" ; then
2790                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2791 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2792    { (exit 1); exit 1; }; }
2793         fi
2794         ol_enable_bdb="$ol_arg"
2795
2796 else
2797         ol_enable_bdb=${ol_enable_backends:-yes}
2798 fi;
2799 # end --enable-bdb
2800 # OpenLDAP --enable-dnssrv
2801
2802         # Check whether --enable-dnssrv or --disable-dnssrv was given.
2803 if test "${enable_dnssrv+set}" = set; then
2804   enableval="$enable_dnssrv"
2805
2806         ol_arg=invalid
2807         for ol_val in no yes mod ; do
2808                 if test "$enableval" = "$ol_val" ; then
2809                         ol_arg="$ol_val"
2810                 fi
2811         done
2812         if test "$ol_arg" = "invalid" ; then
2813                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2814 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2815    { (exit 1); exit 1; }; }
2816         fi
2817         ol_enable_dnssrv="$ol_arg"
2818
2819 else
2820         ol_enable_dnssrv=${ol_enable_backends:-no}
2821 fi;
2822 # end --enable-dnssrv
2823 # OpenLDAP --enable-hdb
2824
2825         # Check whether --enable-hdb or --disable-hdb was given.
2826 if test "${enable_hdb+set}" = set; then
2827   enableval="$enable_hdb"
2828
2829         ol_arg=invalid
2830         for ol_val in no yes mod ; do
2831                 if test "$enableval" = "$ol_val" ; then
2832                         ol_arg="$ol_val"
2833                 fi
2834         done
2835         if test "$ol_arg" = "invalid" ; then
2836                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2838    { (exit 1); exit 1; }; }
2839         fi
2840         ol_enable_hdb="$ol_arg"
2841
2842 else
2843         ol_enable_hdb=${ol_enable_backends:-yes}
2844 fi;
2845 # end --enable-hdb
2846 # OpenLDAP --enable-ldap
2847
2848         # Check whether --enable-ldap or --disable-ldap was given.
2849 if test "${enable_ldap+set}" = set; then
2850   enableval="$enable_ldap"
2851
2852         ol_arg=invalid
2853         for ol_val in no yes mod ; do
2854                 if test "$enableval" = "$ol_val" ; then
2855                         ol_arg="$ol_val"
2856                 fi
2857         done
2858         if test "$ol_arg" = "invalid" ; then
2859                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2860 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2861    { (exit 1); exit 1; }; }
2862         fi
2863         ol_enable_ldap="$ol_arg"
2864
2865 else
2866         ol_enable_ldap=${ol_enable_backends:-no}
2867 fi;
2868 # end --enable-ldap
2869 # OpenLDAP --enable-ldbm
2870
2871         # Check whether --enable-ldbm or --disable-ldbm was given.
2872 if test "${enable_ldbm+set}" = set; then
2873   enableval="$enable_ldbm"
2874
2875         ol_arg=invalid
2876         for ol_val in no yes mod ; do
2877                 if test "$enableval" = "$ol_val" ; then
2878                         ol_arg="$ol_val"
2879                 fi
2880         done
2881         if test "$ol_arg" = "invalid" ; then
2882                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2883 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2884    { (exit 1); exit 1; }; }
2885         fi
2886         ol_enable_ldbm="$ol_arg"
2887
2888 else
2889         ol_enable_ldbm=${ol_enable_backends:-no}
2890 fi;
2891 # end --enable-ldbm
2892
2893 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2894 if test "${with_ldbm_api+set}" = set; then
2895   withval="$with_ldbm_api"
2896
2897         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&5
2898 echo "$as_me: WARNING: Please use --enable-ldbm-api instead of --with-ldbm-api" >&2;}
2899         enable_ldbm_api="$with_ldbm_api"
2900 fi;
2901 # OpenLDAP --enable-ldbm_api
2902
2903         # Check whether --enable-ldbm_api or --disable-ldbm_api was given.
2904 if test "${enable_ldbm_api+set}" = set; then
2905   enableval="$enable_ldbm_api"
2906
2907         ol_arg=invalid
2908         for ol_val in auto berkeley bcompat mdbm gdbm ; do
2909                 if test "$enableval" = "$ol_val" ; then
2910                         ol_arg="$ol_val"
2911                 fi
2912         done
2913         if test "$ol_arg" = "invalid" ; then
2914                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm_api" >&5
2915 echo "$as_me: error: bad value $enableval for --enable-ldbm_api" >&2;}
2916    { (exit 1); exit 1; }; }
2917         fi
2918         ol_enable_ldbm_api="$ol_arg"
2919
2920 else
2921         ol_enable_ldbm_api=auto
2922 fi;
2923 # end --enable-ldbm_api
2924
2925
2926 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2927 if test "${with_ldbm_type+set}" = set; then
2928   withval="$with_ldbm_type"
2929
2930         { echo "$as_me:$LINENO: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&5
2931 echo "$as_me: WARNING: Please use --enable-ldbm-type instead of --with-ldbm-type" >&2;}
2932         enable_ldbm_type="$with_ldbm_type"
2933 fi;
2934 # OpenLDAP --enable-ldbm_type
2935
2936         # Check whether --enable-ldbm_type or --disable-ldbm_type was given.
2937 if test "${enable_ldbm_type+set}" = set; then
2938   enableval="$enable_ldbm_type"
2939
2940         ol_arg=invalid
2941         for ol_val in auto btree hash ; 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-ldbm_type" >&5
2948 echo "$as_me: error: bad value $enableval for --enable-ldbm_type" >&2;}
2949    { (exit 1); exit 1; }; }
2950         fi
2951         ol_enable_ldbm_type="$ol_arg"
2952
2953 else
2954         ol_enable_ldbm_type=auto
2955 fi;
2956 # end --enable-ldbm_type
2957
2958 # OpenLDAP --enable-meta
2959
2960         # Check whether --enable-meta or --disable-meta was given.
2961 if test "${enable_meta+set}" = set; then
2962   enableval="$enable_meta"
2963
2964         ol_arg=invalid
2965         for ol_val in no yes mod ; do
2966                 if test "$enableval" = "$ol_val" ; then
2967                         ol_arg="$ol_val"
2968                 fi
2969         done
2970         if test "$ol_arg" = "invalid" ; then
2971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2972 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2973    { (exit 1); exit 1; }; }
2974         fi
2975         ol_enable_meta="$ol_arg"
2976
2977 else
2978         ol_enable_meta=${ol_enable_backends:-no}
2979 fi;
2980 # end --enable-meta
2981 # OpenLDAP --enable-monitor
2982
2983         # Check whether --enable-monitor or --disable-monitor was given.
2984 if test "${enable_monitor+set}" = set; then
2985   enableval="$enable_monitor"
2986
2987         ol_arg=invalid
2988         for ol_val in no yes mod ; do
2989                 if test "$enableval" = "$ol_val" ; then
2990                         ol_arg="$ol_val"
2991                 fi
2992         done
2993         if test "$ol_arg" = "invalid" ; then
2994                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2995 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2996    { (exit 1); exit 1; }; }
2997         fi
2998         ol_enable_monitor="$ol_arg"
2999
3000 else
3001         ol_enable_monitor=${ol_enable_backends:-yes}
3002 fi;
3003 # end --enable-monitor
3004 # OpenLDAP --enable-null
3005
3006         # Check whether --enable-null or --disable-null was given.
3007 if test "${enable_null+set}" = set; then
3008   enableval="$enable_null"
3009
3010         ol_arg=invalid
3011         for ol_val in no yes mod ; do
3012                 if test "$enableval" = "$ol_val" ; then
3013                         ol_arg="$ol_val"
3014                 fi
3015         done
3016         if test "$ol_arg" = "invalid" ; then
3017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3018 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3019    { (exit 1); exit 1; }; }
3020         fi
3021         ol_enable_null="$ol_arg"
3022
3023 else
3024         ol_enable_null=${ol_enable_backends:-no}
3025 fi;
3026 # end --enable-null
3027 # OpenLDAP --enable-passwd
3028
3029         # Check whether --enable-passwd or --disable-passwd was given.
3030 if test "${enable_passwd+set}" = set; then
3031   enableval="$enable_passwd"
3032
3033         ol_arg=invalid
3034         for ol_val in no yes mod ; do
3035                 if test "$enableval" = "$ol_val" ; then
3036                         ol_arg="$ol_val"
3037                 fi
3038         done
3039         if test "$ol_arg" = "invalid" ; then
3040                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3041 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3042    { (exit 1); exit 1; }; }
3043         fi
3044         ol_enable_passwd="$ol_arg"
3045
3046 else
3047         ol_enable_passwd=${ol_enable_backends:-no}
3048 fi;
3049 # end --enable-passwd
3050 # OpenLDAP --enable-perl
3051
3052         # Check whether --enable-perl or --disable-perl was given.
3053 if test "${enable_perl+set}" = set; then
3054   enableval="$enable_perl"
3055
3056         ol_arg=invalid
3057         for ol_val in no yes mod ; do
3058                 if test "$enableval" = "$ol_val" ; then
3059                         ol_arg="$ol_val"
3060                 fi
3061         done
3062         if test "$ol_arg" = "invalid" ; then
3063                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3064 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3065    { (exit 1); exit 1; }; }
3066         fi
3067         ol_enable_perl="$ol_arg"
3068
3069 else
3070         ol_enable_perl=${ol_enable_backends:-no}
3071 fi;
3072 # end --enable-perl
3073 # OpenLDAP --enable-relay
3074
3075         # Check whether --enable-relay or --disable-relay was given.
3076 if test "${enable_relay+set}" = set; then
3077   enableval="$enable_relay"
3078
3079         ol_arg=invalid
3080         for ol_val in no yes mod ; do
3081                 if test "$enableval" = "$ol_val" ; then
3082                         ol_arg="$ol_val"
3083                 fi
3084         done
3085         if test "$ol_arg" = "invalid" ; then
3086                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3087 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3088    { (exit 1); exit 1; }; }
3089         fi
3090         ol_enable_relay="$ol_arg"
3091
3092 else
3093         ol_enable_relay=${ol_enable_backends:-yes}
3094 fi;
3095 # end --enable-relay
3096 # OpenLDAP --enable-shell
3097
3098         # Check whether --enable-shell or --disable-shell was given.
3099 if test "${enable_shell+set}" = set; then
3100   enableval="$enable_shell"
3101
3102         ol_arg=invalid
3103         for ol_val in no yes mod ; do
3104                 if test "$enableval" = "$ol_val" ; then
3105                         ol_arg="$ol_val"
3106                 fi
3107         done
3108         if test "$ol_arg" = "invalid" ; then
3109                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3110 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3111    { (exit 1); exit 1; }; }
3112         fi
3113         ol_enable_shell="$ol_arg"
3114
3115 else
3116         ol_enable_shell=${ol_enable_backends:-no}
3117 fi;
3118 # end --enable-shell
3119 # OpenLDAP --enable-sql
3120
3121         # Check whether --enable-sql or --disable-sql was given.
3122 if test "${enable_sql+set}" = set; then
3123   enableval="$enable_sql"
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-sql" >&5
3133 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3134    { (exit 1); exit 1; }; }
3135         fi
3136         ol_enable_sql="$ol_arg"
3137
3138 else
3139         ol_enable_sql=${ol_enable_backends:-no}
3140 fi;
3141 # end --enable-sql
3142
3143 Overlays="accesslog \
3144         denyop \
3145         dyngroup \
3146         dynlist \
3147         lastmod \
3148         ppolicy \
3149         proxycache \
3150         refint \
3151         retcode \
3152         rwm \
3153         syncprov \
3154         translucent \
3155         unique \
3156         valsort"
3157
3158 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3159 if test "${enable_xxslapoverlays+set}" = set; then
3160   enableval="$enable_xxslapoverlays"
3161
3162 fi;
3163
3164 # OpenLDAP --enable-overlays
3165
3166         # Check whether --enable-overlays or --disable-overlays was given.
3167 if test "${enable_overlays+set}" = set; then
3168   enableval="$enable_overlays"
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-overlays" >&5
3178 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3179    { (exit 1); exit 1; }; }
3180         fi
3181         ol_enable_overlays="$ol_arg"
3182
3183 fi;
3184 # end --enable-overlays
3185 # OpenLDAP --enable-accesslog
3186
3187         # Check whether --enable-accesslog or --disable-accesslog was given.
3188 if test "${enable_accesslog+set}" = set; then
3189   enableval="$enable_accesslog"
3190
3191         ol_arg=invalid
3192         for ol_val in no yes mod ; do
3193                 if test "$enableval" = "$ol_val" ; then
3194                         ol_arg="$ol_val"
3195                 fi
3196         done
3197         if test "$ol_arg" = "invalid" ; then
3198                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3199 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3200    { (exit 1); exit 1; }; }
3201         fi
3202         ol_enable_accesslog="$ol_arg"
3203
3204 else
3205         ol_enable_accesslog=${ol_enable_overlays:-no}
3206 fi;
3207 # end --enable-accesslog
3208
3209 # OpenLDAP --enable-denyop
3210
3211         # Check whether --enable-denyop or --disable-denyop was given.
3212 if test "${enable_denyop+set}" = set; then
3213   enableval="$enable_denyop"
3214
3215         ol_arg=invalid
3216         for ol_val in no yes mod ; do
3217                 if test "$enableval" = "$ol_val" ; then
3218                         ol_arg="$ol_val"
3219                 fi
3220         done
3221         if test "$ol_arg" = "invalid" ; then
3222                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3223 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3224    { (exit 1); exit 1; }; }
3225         fi
3226         ol_enable_denyop="$ol_arg"
3227
3228 else
3229         ol_enable_denyop=${ol_enable_overlays:-no}
3230 fi;
3231 # end --enable-denyop
3232
3233 # OpenLDAP --enable-dyngroup
3234
3235         # Check whether --enable-dyngroup or --disable-dyngroup was given.
3236 if test "${enable_dyngroup+set}" = set; then
3237   enableval="$enable_dyngroup"
3238
3239         ol_arg=invalid
3240         for ol_val in no yes mod ; do
3241                 if test "$enableval" = "$ol_val" ; then
3242                         ol_arg="$ol_val"
3243                 fi
3244         done
3245         if test "$ol_arg" = "invalid" ; then
3246                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3247 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3248    { (exit 1); exit 1; }; }
3249         fi
3250         ol_enable_dyngroup="$ol_arg"
3251
3252 else
3253         ol_enable_dyngroup=${ol_enable_overlays:-no}
3254 fi;
3255 # end --enable-dyngroup
3256
3257 # OpenLDAP --enable-dynlist
3258
3259         # Check whether --enable-dynlist or --disable-dynlist was given.
3260 if test "${enable_dynlist+set}" = set; then
3261   enableval="$enable_dynlist"
3262
3263         ol_arg=invalid
3264         for ol_val in no yes mod ; do
3265                 if test "$enableval" = "$ol_val" ; then
3266                         ol_arg="$ol_val"
3267                 fi
3268         done
3269         if test "$ol_arg" = "invalid" ; then
3270                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3271 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3272    { (exit 1); exit 1; }; }
3273         fi
3274         ol_enable_dynlist="$ol_arg"
3275
3276 else
3277         ol_enable_dynlist=${ol_enable_overlays:-no}
3278 fi;
3279 # end --enable-dynlist
3280
3281 # OpenLDAP --enable-lastmod
3282
3283         # Check whether --enable-lastmod or --disable-lastmod was given.
3284 if test "${enable_lastmod+set}" = set; then
3285   enableval="$enable_lastmod"
3286
3287         ol_arg=invalid
3288         for ol_val in no yes mod ; do
3289                 if test "$enableval" = "$ol_val" ; then
3290                         ol_arg="$ol_val"
3291                 fi
3292         done
3293         if test "$ol_arg" = "invalid" ; then
3294                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3295 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3296    { (exit 1); exit 1; }; }
3297         fi
3298         ol_enable_lastmod="$ol_arg"
3299
3300 else
3301         ol_enable_lastmod=${ol_enable_overlays:-no}
3302 fi;
3303 # end --enable-lastmod
3304
3305 # OpenLDAP --enable-ppolicy
3306
3307         # Check whether --enable-ppolicy or --disable-ppolicy was given.
3308 if test "${enable_ppolicy+set}" = set; then
3309   enableval="$enable_ppolicy"
3310
3311         ol_arg=invalid
3312         for ol_val in no yes mod ; do
3313                 if test "$enableval" = "$ol_val" ; then
3314                         ol_arg="$ol_val"
3315                 fi
3316         done
3317         if test "$ol_arg" = "invalid" ; then
3318                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3320    { (exit 1); exit 1; }; }
3321         fi
3322         ol_enable_ppolicy="$ol_arg"
3323
3324 else
3325         ol_enable_ppolicy=${ol_enable_overlays:-no}
3326 fi;
3327 # end --enable-ppolicy
3328
3329 # OpenLDAP --enable-proxycache
3330
3331         # Check whether --enable-proxycache or --disable-proxycache was given.
3332 if test "${enable_proxycache+set}" = set; then
3333   enableval="$enable_proxycache"
3334
3335         ol_arg=invalid
3336         for ol_val in no yes mod ; do
3337                 if test "$enableval" = "$ol_val" ; then
3338                         ol_arg="$ol_val"
3339                 fi
3340         done
3341         if test "$ol_arg" = "invalid" ; then
3342                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3343 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3344    { (exit 1); exit 1; }; }
3345         fi
3346         ol_enable_proxycache="$ol_arg"
3347
3348 else
3349         ol_enable_proxycache=${ol_enable_overlays:-no}
3350 fi;
3351 # end --enable-proxycache
3352
3353 # OpenLDAP --enable-refint
3354
3355         # Check whether --enable-refint or --disable-refint was given.
3356 if test "${enable_refint+set}" = set; then
3357   enableval="$enable_refint"
3358
3359         ol_arg=invalid
3360         for ol_val in no yes mod ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_refint="$ol_arg"
3371
3372 else
3373         ol_enable_refint=${ol_enable_overlays:-no}
3374 fi;
3375 # end --enable-refint
3376
3377 # OpenLDAP --enable-retcode
3378
3379         # Check whether --enable-retcode or --disable-retcode was given.
3380 if test "${enable_retcode+set}" = set; then
3381   enableval="$enable_retcode"
3382
3383         ol_arg=invalid
3384         for ol_val in no yes mod ; do
3385                 if test "$enableval" = "$ol_val" ; then
3386                         ol_arg="$ol_val"
3387                 fi
3388         done
3389         if test "$ol_arg" = "invalid" ; then
3390                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3391 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3392    { (exit 1); exit 1; }; }
3393         fi
3394         ol_enable_retcode="$ol_arg"
3395
3396 else
3397         ol_enable_retcode=${ol_enable_overlays:-no}
3398 fi;
3399 # end --enable-retcode
3400
3401 # OpenLDAP --enable-rwm
3402
3403         # Check whether --enable-rwm or --disable-rwm was given.
3404 if test "${enable_rwm+set}" = set; then
3405   enableval="$enable_rwm"
3406
3407         ol_arg=invalid
3408         for ol_val in no yes mod ; do
3409                 if test "$enableval" = "$ol_val" ; then
3410                         ol_arg="$ol_val"
3411                 fi
3412         done
3413         if test "$ol_arg" = "invalid" ; then
3414                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3415 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3416    { (exit 1); exit 1; }; }
3417         fi
3418         ol_enable_rwm="$ol_arg"
3419
3420 else
3421         ol_enable_rwm=${ol_enable_overlays:-no}
3422 fi;
3423 # end --enable-rwm
3424
3425 # OpenLDAP --enable-syncprov
3426
3427         # Check whether --enable-syncprov or --disable-syncprov was given.
3428 if test "${enable_syncprov+set}" = set; then
3429   enableval="$enable_syncprov"
3430
3431         ol_arg=invalid
3432         for ol_val in no yes mod ; do
3433                 if test "$enableval" = "$ol_val" ; then
3434                         ol_arg="$ol_val"
3435                 fi
3436         done
3437         if test "$ol_arg" = "invalid" ; then
3438                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3439 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3440    { (exit 1); exit 1; }; }
3441         fi
3442         ol_enable_syncprov="$ol_arg"
3443
3444 else
3445         ol_enable_syncprov=${ol_enable_overlays:-yes}
3446 fi;
3447 # end --enable-syncprov
3448
3449 # OpenLDAP --enable-translucent
3450
3451         # Check whether --enable-translucent or --disable-translucent was given.
3452 if test "${enable_translucent+set}" = set; then
3453   enableval="$enable_translucent"
3454
3455         ol_arg=invalid
3456         for ol_val in no yes mod ; do
3457                 if test "$enableval" = "$ol_val" ; then
3458                         ol_arg="$ol_val"
3459                 fi
3460         done
3461         if test "$ol_arg" = "invalid" ; then
3462                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3463 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3464    { (exit 1); exit 1; }; }
3465         fi
3466         ol_enable_translucent="$ol_arg"
3467
3468 else
3469         ol_enable_translucent=${ol_enable_overlays:-no}
3470 fi;
3471 # end --enable-translucent
3472
3473 # OpenLDAP --enable-unique
3474
3475         # Check whether --enable-unique or --disable-unique was given.
3476 if test "${enable_unique+set}" = set; then
3477   enableval="$enable_unique"
3478
3479         ol_arg=invalid
3480         for ol_val in no yes mod ; do
3481                 if test "$enableval" = "$ol_val" ; then
3482                         ol_arg="$ol_val"
3483                 fi
3484         done
3485         if test "$ol_arg" = "invalid" ; then
3486                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3487 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3488    { (exit 1); exit 1; }; }
3489         fi
3490         ol_enable_unique="$ol_arg"
3491
3492 else
3493         ol_enable_unique=${ol_enable_overlays:-no}
3494 fi;
3495 # end --enable-unique
3496
3497 # OpenLDAP --enable-valsort
3498
3499         # Check whether --enable-valsort or --disable-valsort was given.
3500 if test "${enable_valsort+set}" = set; then
3501   enableval="$enable_valsort"
3502
3503         ol_arg=invalid
3504         for ol_val in no yes mod ; do
3505                 if test "$enableval" = "$ol_val" ; then
3506                         ol_arg="$ol_val"
3507                 fi
3508         done
3509         if test "$ol_arg" = "invalid" ; then
3510                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3511 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3512    { (exit 1); exit 1; }; }
3513         fi
3514         ol_enable_valsort="$ol_arg"
3515
3516 else
3517         ol_enable_valsort=${ol_enable_overlays:-no}
3518 fi;
3519 # end --enable-valsort
3520
3521
3522 # Check whether --enable-xxslurpdoptions or --disable-xxslurpdoptions was given.
3523 if test "${enable_xxslurpdoptions+set}" = set; then
3524   enableval="$enable_xxslurpdoptions"
3525
3526 fi;
3527 # OpenLDAP --enable-slurpd
3528
3529         # Check whether --enable-slurpd or --disable-slurpd was given.
3530 if test "${enable_slurpd+set}" = set; then
3531   enableval="$enable_slurpd"
3532
3533         ol_arg=invalid
3534         for ol_val in auto yes no ; do
3535                 if test "$enableval" = "$ol_val" ; then
3536                         ol_arg="$ol_val"
3537                 fi
3538         done
3539         if test "$ol_arg" = "invalid" ; then
3540                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3541 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3542    { (exit 1); exit 1; }; }
3543         fi
3544         ol_enable_slurpd="$ol_arg"
3545
3546 else
3547         ol_enable_slurpd=auto
3548 fi;
3549 # end --enable-slurpd
3550
3551 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3552 if test "${enable_xxliboptions+set}" = set; then
3553   enableval="$enable_xxliboptions"
3554
3555 fi;
3556 # Check whether --enable-static or --disable-static was given.
3557 if test "${enable_static+set}" = set; then
3558   enableval="$enable_static"
3559   p=${PACKAGE-default}
3560     case $enableval in
3561     yes) enable_static=yes ;;
3562     no) enable_static=no ;;
3563     *)
3564      enable_static=no
3565       # Look at the argument we got.  We use all the common list separators.
3566       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567       for pkg in $enableval; do
3568         IFS="$lt_save_ifs"
3569         if test "X$pkg" = "X$p"; then
3570           enable_static=yes
3571         fi
3572       done
3573       IFS="$lt_save_ifs"
3574       ;;
3575     esac
3576 else
3577   enable_static=yes
3578 fi;
3579
3580 # Check whether --enable-shared or --disable-shared was given.
3581 if test "${enable_shared+set}" = set; then
3582   enableval="$enable_shared"
3583   p=${PACKAGE-default}
3584     case $enableval in
3585     yes) enable_shared=yes ;;
3586     no) enable_shared=no ;;
3587     *)
3588       enable_shared=no
3589       # Look at the argument we got.  We use all the common list separators.
3590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3591       for pkg in $enableval; do
3592         IFS="$lt_save_ifs"
3593         if test "X$pkg" = "X$p"; then
3594           enable_shared=yes
3595         fi
3596       done
3597       IFS="$lt_save_ifs"
3598       ;;
3599     esac
3600 else
3601   enable_shared=yes
3602 fi;
3603
3604
3605
3606 # validate options
3607 if test $ol_enable_slapd = no ; then
3608                 if test $ol_enable_slapi = yes ; then
3609                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3610 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3611         fi
3612         case "$ol_enable_backends" in yes | mod)
3613                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3614 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3615         esac
3616         for i in $Backends; do
3617                 eval "ol_tmp=\$ol_enable_$i"
3618                 if test $ol_tmp != no ; then
3619                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3620 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3621                         eval "ol_enable_$i=no"
3622                 fi
3623         done
3624         if test $ol_enable_modules = yes ; then
3625                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3626 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3627         fi
3628         if test $ol_enable_multimaster = yes ; then
3629                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3630 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3631         fi
3632         if test $ol_enable_wrappers = yes ; then
3633                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3634 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3635         fi
3636         if test $ol_enable_rlookups = yes ; then
3637                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3638 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3639         fi
3640         if test $ol_enable_aci = yes ; then
3641                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3642 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3643         fi
3644         if test $ol_enable_ldbm_api != auto ; then
3645                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&5
3646 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-api argument" >&2;}
3647         fi
3648         if test $ol_enable_ldbm_type != auto ; then
3649                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&5
3650 echo "$as_me: WARNING: slapd disabled, ignoring --enable-ldbm-type argument" >&2;}
3651         fi
3652         if test $ol_enable_slurpd = yes ; then
3653                 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3654 echo "$as_me: error: slurpd requires slapd" >&2;}
3655    { (exit 1); exit 1; }; }
3656         fi
3657         if test $ol_enable_rewrite = yes ; then
3658                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3659 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3660         fi
3661                 case "$ol_enable_overlays" in yes | mod)
3662                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3663 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3664         esac
3665         for i in $Overlays; do
3666                 eval "ol_tmp=\$ol_enable_$i"
3667                 if test $ol_tmp != no ; then
3668                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3669 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3670                         eval "ol_enable_$i=no"
3671                 fi
3672         done
3673
3674         # force settings to no
3675         ol_enable_slapi=no
3676
3677         ol_enable_backends=
3678         ol_enable_overlays=
3679         ol_enable_modules=no
3680         ol_enable_multimaster=no
3681         ol_enable_rlookups=no
3682         ol_enable_aci=no
3683         ol_enable_wrappers=no
3684
3685         ol_enable_ldbm_api=no
3686         ol_enable_ldbm_type=no
3687
3688         ol_enable_slurpd=no
3689
3690         ol_enable_rewrite=no
3691
3692 elif test $ol_enable_ldbm = no ; then
3693
3694         if test $ol_enable_ldbm_api != auto ; then
3695                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&5
3696 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-api argument" >&2;}
3697         fi
3698
3699         if test $ol_enable_ldbm_type != auto ; then
3700                 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&5
3701 echo "$as_me: WARNING: LDBM disabled, ignoring --enable-ldbm-type argument" >&2;}
3702         fi
3703
3704         if test $ol_enable_modules != yes &&
3705            test $ol_enable_bdb = no &&
3706            test $ol_enable_dnssrv = no &&
3707            test $ol_enable_hdb = no &&
3708            test $ol_enable_ldap = no &&
3709            test $ol_enable_meta = no &&
3710            test $ol_enable_monitor = no &&
3711            test $ol_enable_null = no &&
3712            test $ol_enable_passwd = no &&
3713            test $ol_enable_perl = no &&
3714            test $ol_enable_relay = no &&
3715            test $ol_enable_shell = no &&
3716            test $ol_enable_sql = no ; then
3717
3718                 if test $ol_enable_slapd = yes ; then
3719                         { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3720 echo "$as_me: error: slapd requires a backend" >&2;}
3721    { (exit 1); exit 1; }; }
3722                 else
3723                         { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3724 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3725                         ol_enable_slapd=no
3726                 fi
3727         fi
3728
3729         ol_enable_ldbm_api=no
3730         ol_enable_ldbm_type=no
3731
3732         if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
3733                 ol_enable_ldbm_api=berkeley
3734         fi
3735
3736 else
3737                 if test $ol_enable_ldbm_api = gdbm &&
3738            test $ol_enable_ldbm_type = btree ; then
3739                 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3740 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3741    { (exit 1); exit 1; }; }
3742         fi
3743         if test $ol_enable_ldbm_api = mdbm &&
3744            test $ol_enable_ldbm_type = btree ; then
3745                 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3746 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3747    { (exit 1); exit 1; }; }
3748         fi
3749         if test $ol_enable_ldbm_api = ndbm &&
3750            test $ol_enable_ldbm_type = btree ; then
3751                 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3752 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3753    { (exit 1); exit 1; }; }
3754         fi
3755
3756         if test $ol_enable_bdb/$ol_enable_hdb != no/no ; then
3757                 if test $ol_enable_ldbm_api = auto ; then
3758                         ol_enable_ldbm_api=berkeley
3759                 elif test $ol_enable_ldbm_api != berkeley ; then
3760                         { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3761 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3762    { (exit 1); exit 1; }; }
3763                 fi
3764         fi
3765 fi
3766
3767 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3768         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3769 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3770    { (exit 1); exit 1; }; }
3771 fi
3772
3773 if test $ol_enable_slurpd = yes ; then
3774                 if test $ol_with_threads = no ; then
3775                 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3776 echo "$as_me: error: slurpd requires threads" >&2;}
3777    { (exit 1); exit 1; }; }
3778         fi
3779 fi
3780
3781 if test $ol_enable_lmpasswd = yes ; then
3782         if test $ol_with_tls = no ; then
3783                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3784 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3785    { (exit 1); exit 1; }; }
3786         fi
3787 fi
3788
3789 if test $ol_enable_kbind = yes ; then
3790         if test $ol_with_kerberos = no ; then
3791                 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3792 echo "$as_me: error: options require --with-kerberos" >&2;}
3793    { (exit 1); exit 1; }; }
3794         elif test $ol_with_kerberos = auto ; then
3795                 ol_with_kerberos=yes
3796         fi
3797
3798 elif test $ol_enable_kbind = no ; then
3799         if test $ol_with_kerberos = auto ; then
3800                 ol_with_kerberos=no
3801         elif test $ol_with_kerberos != no ; then
3802                 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3803 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3804                 ol_with_kerberos=no
3805         fi
3806 fi
3807
3808 if test $ol_enable_spasswd = yes ; then
3809         if test $ol_with_cyrus_sasl = no ; then
3810                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3811 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3812    { (exit 1); exit 1; }; }
3813         fi
3814         ol_with_cyrus_sasl=yes
3815 fi
3816
3817 echo "$as_me:$LINENO: result: done" >&5
3818 echo "${ECHO_T}done" >&6
3819
3820 LDAP_LIBS=
3821 LDBM_LIBS=
3822 LTHREAD_LIBS=
3823 LUTIL_LIBS=
3824
3825 SLAPD_LIBS=
3826 SLURPD_LIBS=
3827
3828 BUILD_SLAPD=no
3829 BUILD_SLURPD=no
3830
3831 BUILD_THREAD=no
3832
3833 BUILD_SLAPI=no
3834 SLAPD_SLAPI_DEPEND=
3835
3836 BUILD_BDB=no
3837 BUILD_DNSSRV=no
3838 BUILD_HDB=no
3839 BUILD_LDAP=no
3840 BUILD_LDBM=no
3841 BUILD_META=no
3842 BUILD_MONITOR=no
3843 BUILD_NULL=no
3844 BUILD_PASSWD=no
3845 BUILD_PERL=no
3846 BUILD_RELAY=no
3847 BUILD_SHELL=no
3848 BUILD_SQL=no
3849
3850 BUILD_ACCESSLOG=no
3851 BUILD_DENYOP=no
3852 BUILD_DYNGROUP=no
3853 BUILD_DYNLIST=no
3854 BUILD_LASTMOD=no
3855 BUILD_PPOLICY=no
3856 BUILD_PROXYCACHE=no
3857 BUILD_REFINT=no
3858 BUILD_RETCODE=no
3859 BUILD_RWM=no
3860 BUILD_SYNCPROV=no
3861 BUILD_TRANSLUCENT=no
3862 BUILD_UNIQUE=no
3863 BUILD_VALSORT=no
3864
3865 SLAPD_STATIC_OVERLAYS=
3866 SLAPD_DYNAMIC_OVERLAYS=
3867
3868 SLAPD_MODULES_LDFLAGS=
3869 SLAPD_MODULES_CPPFLAGS=
3870
3871 SLAPD_STATIC_BACKENDS=back-ldif
3872 SLAPD_DYNAMIC_BACKENDS=
3873
3874 SLAPD_PERL_LDFLAGS=
3875 MOD_PERL_LDFLAGS=
3876 PERL_CPPFLAGS=
3877
3878 SLAPD_SQL_LDFLAGS=
3879 SLAPD_SQL_LIBS=
3880 SLAPD_SQL_INCLUDES=
3881
3882 KRB4_LIBS=
3883 KRB5_LIBS=
3884 SASL_LIBS=
3885 TLS_LIBS=
3886 MODULES_LIBS=
3887 SLAPI_LIBS=
3888 LIBSLAPI=
3889 LIBSLAPITOOLS=
3890 AUTH_LIBS=
3891
3892 SLAPD_SLP_LIBS=
3893 SLAPD_GMP_LIBS=
3894
3895
3896
3897 cat >>confdefs.h <<\_ACEOF
3898 #define HAVE_MKVERSION 1
3899 _ACEOF
3900
3901
3902
3903
3904 ol_aix_threads=no
3905 case "$target" in
3906 *-*-aix*)       if test -z "$CC" ; then
3907                 case "$ol_with_threads" in
3908                 auto | yes |  posix) ol_aix_threads=yes ;;
3909                 esac
3910         fi
3911 ;;
3912 esac
3913
3914 if test $ol_aix_threads = yes ; then
3915         if test -z "${CC}" ; then
3916                 for ac_prog in cc_r xlc_r cc
3917 do
3918   # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3922 if test "${ac_cv_prog_CC+set}" = set; then
3923   echo $ECHO_N "(cached) $ECHO_C" >&6
3924 else
3925   if test -n "$CC"; then
3926   ac_cv_prog_CC="$CC" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3935     ac_cv_prog_CC="$ac_prog"
3936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941
3942 fi
3943 fi
3944 CC=$ac_cv_prog_CC
3945 if test -n "$CC"; then
3946   echo "$as_me:$LINENO: result: $CC" >&5
3947 echo "${ECHO_T}$CC" >&6
3948 else
3949   echo "$as_me:$LINENO: result: no" >&5
3950 echo "${ECHO_T}no" >&6
3951 fi
3952
3953   test -n "$CC" && break
3954 done
3955
3956
3957                 if test "$CC" = cc ; then
3958                                                 if test $ol_with_threads != auto ; then
3959                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3960 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3961    { (exit 1); exit 1; }; }
3962                         else
3963                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3964 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3965                         fi
3966                         ol_with_threads=no
3967                 fi
3968         fi
3969
3970         case ${CC} in cc_r | xlc_r)
3971                 ol_with_threads=posix
3972                 ol_cv_pthread_create=yes
3973                 ;;
3974         esac
3975 fi
3976
3977 if test -z "${CC}"; then
3978         for ac_prog in cc gcc
3979 do
3980   # Extract the first word of "$ac_prog", so it can be a program name with args.
3981 set dummy $ac_prog; ac_word=$2
3982 echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984 if test "${ac_cv_prog_CC+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   if test -n "$CC"; then
3988   ac_cv_prog_CC="$CC" # Let the user override the test.
3989 else
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_prog_CC="$ac_prog"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004 fi
4005 fi
4006 CC=$ac_cv_prog_CC
4007 if test -n "$CC"; then
4008   echo "$as_me:$LINENO: result: $CC" >&5
4009 echo "${ECHO_T}$CC" >&6
4010 else
4011   echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6
4013 fi
4014
4015   test -n "$CC" && break
4016 done
4017 test -n "$CC" || CC="missing"
4018
4019
4020         if test "${CC}" = "missing" ; then
4021                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4022 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4023    { (exit 1); exit 1; }; }
4024         fi
4025 fi
4026
4027 if test -z "${AR}"; then
4028         for ac_prog in ar gar
4029 do
4030   # Extract the first word of "$ac_prog", so it can be a program name with args.
4031 set dummy $ac_prog; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_prog_AR+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   if test -n "$AR"; then
4038   ac_cv_prog_AR="$AR" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045   for ac_exec_ext in '' $ac_executable_extensions; do
4046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4047     ac_cv_prog_AR="$ac_prog"
4048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052 done
4053
4054 fi
4055 fi
4056 AR=$ac_cv_prog_AR
4057 if test -n "$AR"; then
4058   echo "$as_me:$LINENO: result: $AR" >&5
4059 echo "${ECHO_T}$AR" >&6
4060 else
4061   echo "$as_me:$LINENO: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4063 fi
4064
4065   test -n "$AR" && break
4066 done
4067 test -n "$AR" || AR="missing"
4068
4069
4070         if test "${AR}" = "missing" ; then
4071                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4072 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4073    { (exit 1); exit 1; }; }
4074         fi
4075 fi
4076
4077
4078
4079
4080
4081 # Check whether --enable-fast-install or --disable-fast-install was given.
4082 if test "${enable_fast_install+set}" = set; then
4083   enableval="$enable_fast_install"
4084   p=${PACKAGE-default}
4085     case $enableval in
4086     yes) enable_fast_install=yes ;;
4087     no) enable_fast_install=no ;;
4088     *)
4089       enable_fast_install=no
4090       # Look at the argument we got.  We use all the common list separators.
4091       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4092       for pkg in $enableval; do
4093         IFS="$lt_save_ifs"
4094         if test "X$pkg" = "X$p"; then
4095           enable_fast_install=yes
4096         fi
4097       done
4098       IFS="$lt_save_ifs"
4099       ;;
4100     esac
4101 else
4102   enable_fast_install=yes
4103 fi;
4104
4105 DEPDIR="${am__leading_dot}deps"
4106
4107           ac_config_commands="$ac_config_commands depfiles"
4108
4109
4110 am_make=${MAKE-make}
4111 cat > confinc << 'END'
4112 am__doit:
4113         @echo done
4114 .PHONY: am__doit
4115 END
4116 # If we don't find an include directive, just comment out the code.
4117 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4118 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4119 am__include="#"
4120 am__quote=
4121 _am_result=none
4122 # First try GNU make style include.
4123 echo "include confinc" > confmf
4124 # We grep out `Entering directory' and `Leaving directory'
4125 # messages which can occur if `w' ends up in MAKEFLAGS.
4126 # In particular we don't look at `^make:' because GNU make might
4127 # be invoked under some other name (usually "gmake"), in which
4128 # case it prints its new name instead of `make'.
4129 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4130    am__include=include
4131    am__quote=
4132    _am_result=GNU
4133 fi
4134 # Now try BSD make style include.
4135 if test "$am__include" = "#"; then
4136    echo '.include "confinc"' > confmf
4137    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4138       am__include=.include
4139       am__quote="\""
4140       _am_result=BSD
4141    fi
4142 fi
4143
4144
4145 echo "$as_me:$LINENO: result: $_am_result" >&5
4146 echo "${ECHO_T}$_am_result" >&6
4147 rm -f confinc confmf
4148
4149 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4150 if test "${enable_dependency_tracking+set}" = set; then
4151   enableval="$enable_dependency_tracking"
4152
4153 fi;
4154 if test "x$enable_dependency_tracking" != xno; then
4155   am_depcomp="$ac_aux_dir/depcomp"
4156   AMDEPBACKSLASH='\'
4157 fi
4158
4159
4160 if test "x$enable_dependency_tracking" != xno; then
4161   AMDEP_TRUE=
4162   AMDEP_FALSE='#'
4163 else
4164   AMDEP_TRUE='#'
4165   AMDEP_FALSE=
4166 fi
4167
4168
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test -n "$ac_tool_prefix"; then
4176   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_CC+set}" = set; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 else
4183   if test -n "$CC"; then
4184   ac_cv_prog_CC="$CC" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   for ac_exec_ext in '' $ac_executable_extensions; do
4192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195     break 2
4196   fi
4197 done
4198 done
4199
4200 fi
4201 fi
4202 CC=$ac_cv_prog_CC
4203 if test -n "$CC"; then
4204   echo "$as_me:$LINENO: result: $CC" >&5
4205 echo "${ECHO_T}$CC" >&6
4206 else
4207   echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4209 fi
4210
4211 fi
4212 if test -z "$ac_cv_prog_CC"; then
4213   ac_ct_CC=$CC
4214   # Extract the first word of "gcc", so it can be a program name with args.
4215 set dummy gcc; ac_word=$2
4216 echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$ac_ct_CC"; then
4222   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231     ac_cv_prog_ac_ct_CC="gcc"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237
4238 fi
4239 fi
4240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4241 if test -n "$ac_ct_CC"; then
4242   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4243 echo "${ECHO_T}$ac_ct_CC" >&6
4244 else
4245   echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6
4247 fi
4248
4249   CC=$ac_ct_CC
4250 else
4251   CC="$ac_cv_prog_CC"
4252 fi
4253
4254 if test -z "$CC"; then
4255   if test -n "$ac_tool_prefix"; then
4256   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4260 if test "${ac_cv_prog_CC+set}" = set; then
4261   echo $ECHO_N "(cached) $ECHO_C" >&6
4262 else
4263   if test -n "$CC"; then
4264   ac_cv_prog_CC="$CC" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4268 do
4269   IFS=$as_save_IFS
4270   test -z "$as_dir" && as_dir=.
4271   for ac_exec_ext in '' $ac_executable_extensions; do
4272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273     ac_cv_prog_CC="${ac_tool_prefix}cc"
4274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275     break 2
4276   fi
4277 done
4278 done
4279
4280 fi
4281 fi
4282 CC=$ac_cv_prog_CC
4283 if test -n "$CC"; then
4284   echo "$as_me:$LINENO: result: $CC" >&5
4285 echo "${ECHO_T}$CC" >&6
4286 else
4287   echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6
4289 fi
4290
4291 fi
4292 if test -z "$ac_cv_prog_CC"; then
4293   ac_ct_CC=$CC
4294   # Extract the first word of "cc", so it can be a program name with args.
4295 set dummy cc; ac_word=$2
4296 echo "$as_me:$LINENO: checking for $ac_word" >&5
4297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   if test -n "$ac_ct_CC"; then
4302   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_prog_ac_ct_CC="cc"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318 fi
4319 fi
4320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4321 if test -n "$ac_ct_CC"; then
4322   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4323 echo "${ECHO_T}$ac_ct_CC" >&6
4324 else
4325   echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4327 fi
4328
4329   CC=$ac_ct_CC
4330 else
4331   CC="$ac_cv_prog_CC"
4332 fi
4333
4334 fi
4335 if test -z "$CC"; then
4336   # Extract the first word of "cc", so it can be a program name with args.
4337 set dummy cc; ac_word=$2
4338 echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340 if test "${ac_cv_prog_CC+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   if test -n "$CC"; then
4344   ac_cv_prog_CC="$CC" # Let the user override the test.
4345 else
4346   ac_prog_rejected=no
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4349 do
4350   IFS=$as_save_IFS
4351   test -z "$as_dir" && as_dir=.
4352   for ac_exec_ext in '' $ac_executable_extensions; do
4353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4355        ac_prog_rejected=yes
4356        continue
4357      fi
4358     ac_cv_prog_CC="cc"
4359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363 done
4364
4365 if test $ac_prog_rejected = yes; then
4366   # We found a bogon in the path, so make sure we never use it.
4367   set dummy $ac_cv_prog_CC
4368   shift
4369   if test $# != 0; then
4370     # We chose a different compiler from the bogus one.
4371     # However, it has the same basename, so the bogon will be chosen
4372     # first if we set CC to just the basename; use the full file name.
4373     shift
4374     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4375   fi
4376 fi
4377 fi
4378 fi
4379 CC=$ac_cv_prog_CC
4380 if test -n "$CC"; then
4381   echo "$as_me:$LINENO: result: $CC" >&5
4382 echo "${ECHO_T}$CC" >&6
4383 else
4384   echo "$as_me:$LINENO: result: no" >&5
4385 echo "${ECHO_T}no" >&6
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390   if test -n "$ac_tool_prefix"; then
4391   for ac_prog in cl
4392   do
4393     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4395 echo "$as_me:$LINENO: checking for $ac_word" >&5
4396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4397 if test "${ac_cv_prog_CC+set}" = set; then
4398   echo $ECHO_N "(cached) $ECHO_C" >&6
4399 else
4400   if test -n "$CC"; then
4401   ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406   IFS=$as_save_IFS
4407   test -z "$as_dir" && as_dir=.
4408   for ac_exec_ext in '' $ac_executable_extensions; do
4409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4410     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412     break 2
4413   fi
4414 done
4415 done
4416
4417 fi
4418 fi
4419 CC=$ac_cv_prog_CC
4420 if test -n "$CC"; then
4421   echo "$as_me:$LINENO: result: $CC" >&5
4422 echo "${ECHO_T}$CC" >&6
4423 else
4424   echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4426 fi
4427
4428     test -n "$CC" && break
4429   done
4430 fi
4431 if test -z "$CC"; then
4432   ac_ct_CC=$CC
4433   for ac_prog in cl
4434 do
4435   # Extract the first word of "$ac_prog", so it can be a program name with args.
4436 set dummy $ac_prog; ac_word=$2
4437 echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   if test -n "$ac_ct_CC"; then
4443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4447 do
4448   IFS=$as_save_IFS
4449   test -z "$as_dir" && as_dir=.
4450   for ac_exec_ext in '' $ac_executable_extensions; do
4451   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4452     ac_cv_prog_ac_ct_CC="$ac_prog"
4453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454     break 2
4455   fi
4456 done
4457 done
4458
4459 fi
4460 fi
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4464 echo "${ECHO_T}$ac_ct_CC" >&6
4465 else
4466   echo "$as_me:$LINENO: result: no" >&5
4467 echo "${ECHO_T}no" >&6
4468 fi
4469
4470   test -n "$ac_ct_CC" && break
4471 done
4472
4473   CC=$ac_ct_CC
4474 fi
4475
4476 fi
4477
4478
4479 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4480 See \`config.log' for more details." >&5
4481 echo "$as_me: error: no acceptable C compiler found in \$PATH
4482 See \`config.log' for more details." >&2;}
4483    { (exit 1); exit 1; }; }
4484
4485 # Provide some information about the compiler.
4486 echo "$as_me:$LINENO:" \
4487      "checking for C compiler version" >&5
4488 ac_compiler=`set X $ac_compile; echo $2`
4489 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4490   (eval $ac_compiler --version </dev/null >&5) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }
4494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4495   (eval $ac_compiler -v </dev/null >&5) 2>&5
4496   ac_status=$?
4497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498   (exit $ac_status); }
4499 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4500   (eval $ac_compiler -V </dev/null >&5) 2>&5
4501   ac_status=$?
4502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503   (exit $ac_status); }
4504
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511
4512 int
4513 main ()
4514 {
4515
4516   ;
4517   return 0;
4518 }
4519 _ACEOF
4520 ac_clean_files_save=$ac_clean_files
4521 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4522 # Try to create an executable without -o first, disregard a.out.
4523 # It will help us diagnose broken compilers, and finding out an intuition
4524 # of exeext.
4525 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4526 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4527 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4528 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4529   (eval $ac_link_default) 2>&5
4530   ac_status=$?
4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532   (exit $ac_status); }; then
4533   # Find the output, starting from the most likely.  This scheme is
4534 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4535 # resort.
4536
4537 # Be careful to initialize this variable, since it used to be cached.
4538 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4539 ac_cv_exeext=
4540 # b.out is created by i960 compilers.
4541 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4542 do
4543   test -f "$ac_file" || continue
4544   case $ac_file in
4545     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4546         ;;
4547     conftest.$ac_ext )
4548         # This is the source file.
4549         ;;
4550     [ab].out )
4551         # We found the default executable, but exeext='' is most
4552         # certainly right.
4553         break;;
4554     *.* )
4555         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4556         # FIXME: I believe we export ac_cv_exeext for Libtool,
4557         # but it would be cool to find out if it's true.  Does anybody
4558         # maintain Libtool? --akim.
4559         export ac_cv_exeext
4560         break;;
4561     * )
4562         break;;
4563   esac
4564 done
4565 else
4566   echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4570 See \`config.log' for more details." >&5
4571 echo "$as_me: error: C compiler cannot create executables
4572 See \`config.log' for more details." >&2;}
4573    { (exit 77); exit 77; }; }
4574 fi
4575
4576 ac_exeext=$ac_cv_exeext
4577 echo "$as_me:$LINENO: result: $ac_file" >&5
4578 echo "${ECHO_T}$ac_file" >&6
4579
4580 # Check the compiler produces executables we can run.  If not, either
4581 # the compiler is broken, or we cross compile.
4582 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4583 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4584 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4585 # If not cross compiling, check that we can run a simple program.
4586 if test "$cross_compiling" != yes; then
4587   if { ac_try='./$ac_file'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593     cross_compiling=no
4594   else
4595     if test "$cross_compiling" = maybe; then
4596         cross_compiling=yes
4597     else
4598         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4599 If you meant to cross compile, use \`--host'.
4600 See \`config.log' for more details." >&5
4601 echo "$as_me: error: cannot run C compiled programs.
4602 If you meant to cross compile, use \`--host'.
4603 See \`config.log' for more details." >&2;}
4604    { (exit 1); exit 1; }; }
4605     fi
4606   fi
4607 fi
4608 echo "$as_me:$LINENO: result: yes" >&5
4609 echo "${ECHO_T}yes" >&6
4610
4611 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4612 ac_clean_files=$ac_clean_files_save
4613 # Check the compiler produces executables we can run.  If not, either
4614 # the compiler is broken, or we cross compile.
4615 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4616 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4617 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4618 echo "${ECHO_T}$cross_compiling" >&6
4619
4620 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4621 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4623   (eval $ac_link) 2>&5
4624   ac_status=$?
4625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626   (exit $ac_status); }; then
4627   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4628 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4629 # work properly (i.e., refer to `conftest.exe'), while it won't with
4630 # `rm'.
4631 for ac_file in conftest.exe conftest conftest.*; do
4632   test -f "$ac_file" || continue
4633   case $ac_file in
4634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4635     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4636           export ac_cv_exeext
4637           break;;
4638     * ) break;;
4639   esac
4640 done
4641 else
4642   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4645 See \`config.log' for more details." >&2;}
4646    { (exit 1); exit 1; }; }
4647 fi
4648
4649 rm -f conftest$ac_cv_exeext
4650 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4651 echo "${ECHO_T}$ac_cv_exeext" >&6
4652
4653 rm -f conftest.$ac_ext
4654 EXEEXT=$ac_cv_exeext
4655 ac_exeext=$EXEEXT
4656 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4658 if test "${ac_cv_objext+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 int
4669 main ()
4670 {
4671
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.o conftest.obj
4677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678   (eval $ac_compile) 2>&5
4679   ac_status=$?
4680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681   (exit $ac_status); }; then
4682   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4683   case $ac_file in
4684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4685     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686        break;;
4687   esac
4688 done
4689 else
4690   echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4692
4693 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4694 See \`config.log' for more details." >&5
4695 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4696 See \`config.log' for more details." >&2;}
4697    { (exit 1); exit 1; }; }
4698 fi
4699
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4701 fi
4702 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4703 echo "${ECHO_T}$ac_cv_objext" >&6
4704 OBJEXT=$ac_cv_objext
4705 ac_objext=$OBJEXT
4706 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4707 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4708 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4709   echo $ECHO_N "(cached) $ECHO_C" >&6
4710 else
4711   cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h.  */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h.  */
4717
4718 int
4719 main ()
4720 {
4721 #ifndef __GNUC__
4722        choke me
4723 #endif
4724
4725   ;
4726   return 0;
4727 }
4728 _ACEOF
4729 rm -f conftest.$ac_objext
4730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731   (eval $ac_compile) 2>conftest.er1
4732   ac_status=$?
4733   grep -v '^ *+' conftest.er1 >conftest.err
4734   rm -f conftest.er1
4735   cat conftest.err >&5
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); } &&
4738          { ac_try='test -z "$ac_c_werror_flag"
4739                          || test ! -s conftest.err'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; } &&
4745          { ac_try='test -s conftest.$ac_objext'
4746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747   (eval $ac_try) 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; }; then
4751   ac_compiler_gnu=yes
4752 else
4753   echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4755
4756 ac_compiler_gnu=no
4757 fi
4758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4760
4761 fi
4762 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4763 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4764 GCC=`test $ac_compiler_gnu = yes && echo yes`
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 CFLAGS="-g"
4768 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4769 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4770 if test "${ac_cv_prog_cc_g+set}" = set; then
4771   echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 rm -f conftest.$ac_objext
4789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4790   (eval $ac_compile) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } &&
4797          { ac_try='test -z "$ac_c_werror_flag"
4798                          || test ! -s conftest.err'
4799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800   (eval $ac_try) 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806   (eval $ac_try) 2>&5
4807   ac_status=$?
4808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809   (exit $ac_status); }; }; then
4810   ac_cv_prog_cc_g=yes
4811 else
4812   echo "$as_me: failed program was:" >&5
4813 sed 's/^/| /' conftest.$ac_ext >&5
4814
4815 ac_cv_prog_cc_g=no
4816 fi
4817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4818 fi
4819 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4821 if test "$ac_test_CFLAGS" = set; then
4822   CFLAGS=$ac_save_CFLAGS
4823 elif test $ac_cv_prog_cc_g = yes; then
4824   if test "$GCC" = yes; then
4825     CFLAGS="-g -O2"
4826   else
4827     CFLAGS="-g"
4828   fi
4829 else
4830   if test "$GCC" = yes; then
4831     CFLAGS="-O2"
4832   else
4833     CFLAGS=
4834   fi
4835 fi
4836 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4837 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4838 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   ac_cv_prog_cc_stdc=no
4842 ac_save_CC=$CC
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h.  */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h.  */
4849 #include <stdarg.h>
4850 #include <stdio.h>
4851 #include <sys/types.h>
4852 #include <sys/stat.h>
4853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4854 struct buf { int x; };
4855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4856 static char *e (p, i)
4857      char **p;
4858      int i;
4859 {
4860   return p[i];
4861 }
4862 static char *f (char * (*g) (char **, int), char **p, ...)
4863 {
4864   char *s;
4865   va_list v;
4866   va_start (v,p);
4867   s = g (p, va_arg (v,int));
4868   va_end (v);
4869   return s;
4870 }
4871
4872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4873    function prototypes and stuff, but not '\xHH' hex character constants.
4874    These don't provoke an error unfortunately, instead are silently treated
4875    as 'x'.  The following induces an error, until -std1 is added to get
4876    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4877    array size at least.  It's necessary to write '\x00'==0 to get something
4878    that's true only with -std1.  */
4879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4880
4881 int test (int i, double x);
4882 struct s1 {int (*f) (int a);};
4883 struct s2 {int (*f) (double a);};
4884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4885 int argc;
4886 char **argv;
4887 int
4888 main ()
4889 {
4890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4891   ;
4892   return 0;
4893 }
4894 _ACEOF
4895 # Don't try gcc -ansi; that turns off useful extensions and
4896 # breaks some systems' header files.
4897 # AIX                   -qlanglvl=ansi
4898 # Ultrix and OSF/1      -std1
4899 # HP-UX 10.20 and later -Ae
4900 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4901 # SVR4                  -Xc -D__EXTENSIONS__
4902 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4903 do
4904   CC="$ac_save_CC $ac_arg"
4905   rm -f conftest.$ac_objext
4906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4907   (eval $ac_compile) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -z "$ac_c_werror_flag"
4915                          || test ! -s conftest.err'
4916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917   (eval $ac_try) 2>&5
4918   ac_status=$?
4919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4920   (exit $ac_status); }; } &&
4921          { ac_try='test -s conftest.$ac_objext'
4922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923   (eval $ac_try) 2>&5
4924   ac_status=$?
4925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926   (exit $ac_status); }; }; then
4927   ac_cv_prog_cc_stdc=$ac_arg
4928 break
4929 else
4930   echo "$as_me: failed program was:" >&5
4931 sed 's/^/| /' conftest.$ac_ext >&5
4932
4933 fi
4934 rm -f conftest.err conftest.$ac_objext
4935 done
4936 rm -f conftest.$ac_ext conftest.$ac_objext
4937 CC=$ac_save_CC
4938
4939 fi
4940
4941 case "x$ac_cv_prog_cc_stdc" in
4942   x|xno)
4943     echo "$as_me:$LINENO: result: none needed" >&5
4944 echo "${ECHO_T}none needed" >&6 ;;
4945   *)
4946     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4947 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4948     CC="$CC $ac_cv_prog_cc_stdc" ;;
4949 esac
4950
4951 # Some people use a C++ compiler to compile C.  Since we use `exit',
4952 # in C++ we need to declare it.  In case someone uses the same compiler
4953 # for both compiling C and C++ we need to have the C++ compiler decide
4954 # the declaration of exit, since it's the most demanding environment.
4955 cat >conftest.$ac_ext <<_ACEOF
4956 #ifndef __cplusplus
4957   choke me
4958 #endif
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4962   (eval $ac_compile) 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } &&
4969          { ac_try='test -z "$ac_c_werror_flag"
4970                          || test ! -s conftest.err'
4971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972   (eval $ac_try) 2>&5
4973   ac_status=$?
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); }; } &&
4976          { ac_try='test -s conftest.$ac_objext'
4977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978   (eval $ac_try) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); }; }; then
4982   for ac_declaration in \
4983    '' \
4984    'extern "C" void std::exit (int) throw (); using std::exit;' \
4985    'extern "C" void std::exit (int); using std::exit;' \
4986    'extern "C" void exit (int) throw ();' \
4987    'extern "C" void exit (int);' \
4988    'void exit (int);'
4989 do
4990   cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h.  */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h.  */
4996 $ac_declaration
4997 #include <stdlib.h>
4998 int
4999 main ()
5000 {
5001 exit (42);
5002   ;
5003   return 0;
5004 }
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008   (eval $ac_compile) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } &&
5015          { ac_try='test -z "$ac_c_werror_flag"
5016                          || test ! -s conftest.err'
5017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5018   (eval $ac_try) 2>&5
5019   ac_status=$?
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); }; } &&
5022          { ac_try='test -s conftest.$ac_objext'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; }; then
5028   :
5029 else
5030   echo "$as_me: failed program was:" >&5
5031 sed 's/^/| /' conftest.$ac_ext >&5
5032
5033 continue
5034 fi
5035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5036   cat >conftest.$ac_ext <<_ACEOF
5037 /* confdefs.h.  */
5038 _ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h.  */
5042 $ac_declaration
5043 int
5044 main ()
5045 {
5046 exit (42);
5047   ;
5048   return 0;
5049 }
5050 _ACEOF
5051 rm -f conftest.$ac_objext
5052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5053   (eval $ac_compile) 2>conftest.er1
5054   ac_status=$?
5055   grep -v '^ *+' conftest.er1 >conftest.err
5056   rm -f conftest.er1
5057   cat conftest.err >&5
5058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059   (exit $ac_status); } &&
5060          { ac_try='test -z "$ac_c_werror_flag"
5061                          || test ! -s conftest.err'
5062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063   (eval $ac_try) 2>&5
5064   ac_status=$?
5065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066   (exit $ac_status); }; } &&
5067          { ac_try='test -s conftest.$ac_objext'
5068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069   (eval $ac_try) 2>&5
5070   ac_status=$?
5071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072   (exit $ac_status); }; }; then
5073   break
5074 else
5075   echo "$as_me: failed program was:" >&5
5076 sed 's/^/| /' conftest.$ac_ext >&5
5077
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 done
5081 rm -f conftest*
5082 if test -n "$ac_declaration"; then
5083   echo '#ifdef __cplusplus' >>confdefs.h
5084   echo $ac_declaration      >>confdefs.h
5085   echo '#endif'             >>confdefs.h
5086 fi
5087
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 fi
5093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5094 ac_ext=c
5095 ac_cpp='$CPP $CPPFLAGS'
5096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099
5100 depcc="$CC"   am_compiler_list=
5101
5102 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5103 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5104 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5105   echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5108   # We make a subdir and do the tests there.  Otherwise we can end up
5109   # making bogus files that we don't know about and never remove.  For
5110   # instance it was reported that on HP-UX the gcc test will end up
5111   # making a dummy file named `D' -- because `-MD' means `put the output
5112   # in D'.
5113   mkdir conftest.dir
5114   # Copy depcomp to subdir because otherwise we won't find it if we're
5115   # using a relative directory.
5116   cp "$am_depcomp" conftest.dir
5117   cd conftest.dir
5118   # We will build objects and dependencies in a subdirectory because
5119   # it helps to detect inapplicable dependency modes.  For instance
5120   # both Tru64's cc and ICC support -MD to output dependencies as a
5121   # side effect of compilation, but ICC will put the dependencies in
5122   # the current directory while Tru64 will put them in the object
5123   # directory.
5124   mkdir sub
5125
5126   am_cv_CC_dependencies_compiler_type=none
5127   if test "$am_compiler_list" = ""; then
5128      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129   fi
5130   for depmode in $am_compiler_list; do
5131     # Setup a source with many dependencies, because some compilers
5132     # like to wrap large dependency lists on column 80 (with \), and
5133     # we should not choose a depcomp mode which is confused by this.
5134     #
5135     # We need to recreate these files for each test, as the compiler may
5136     # overwrite some of them when testing with obscure command lines.
5137     # This happens at least with the AIX C compiler.
5138     : > sub/conftest.c
5139     for i in 1 2 3 4 5 6; do
5140       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5141       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5142       # Solaris 8's {/usr,}/bin/sh.
5143       touch sub/conftst$i.h
5144     done
5145     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146
5147     case $depmode in
5148     nosideeffect)
5149       # after this tag, mechanisms are not by side-effect, so they'll
5150       # only be used when explicitly requested
5151       if test "x$enable_dependency_tracking" = xyes; then
5152         continue
5153       else
5154         break
5155       fi
5156       ;;
5157     none) break ;;
5158     esac
5159     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5160     # mode.  It turns out that the SunPro C++ compiler does not properly
5161     # handle `-M -o', and we need to detect this.
5162     if depmode=$depmode \
5163        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5164        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5165        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5166          >/dev/null 2>conftest.err &&
5167        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5168        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5169        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5170       # icc doesn't choke on unknown options, it will just issue warnings
5171       # or remarks (even with -Werror).  So we grep stderr for any message
5172       # that says an option was ignored or not supported.
5173       # When given -MP, icc 7.0 and 7.1 complain thusly:
5174       #   icc: Command line warning: ignoring option '-M'; no argument required
5175       # The diagnosis changed in icc 8.0:
5176       #   icc: Command line remark: option '-MP' not supported
5177       if (grep 'ignoring option' conftest.err ||
5178           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5179         am_cv_CC_dependencies_compiler_type=$depmode
5180         break
5181       fi
5182     fi
5183   done
5184
5185   cd ..
5186   rm -rf conftest.dir
5187 else
5188   am_cv_CC_dependencies_compiler_type=none
5189 fi
5190
5191 fi
5192 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5193 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5194 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5195
5196
5197
5198 if
5199   test "x$enable_dependency_tracking" != xno \
5200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201   am__fastdepCC_TRUE=
5202   am__fastdepCC_FALSE='#'
5203 else
5204   am__fastdepCC_TRUE='#'
5205   am__fastdepCC_FALSE=
5206 fi
5207
5208
5209 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5210 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5211 if test "${lt_cv_path_SED+set}" = set; then
5212   echo $ECHO_N "(cached) $ECHO_C" >&6
5213 else
5214   # Loop through the user's path and test for sed and gsed.
5215 # Then use that list of sed's as ones to test for truncation.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219   IFS=$as_save_IFS
5220   test -z "$as_dir" && as_dir=.
5221   for lt_ac_prog in sed gsed; do
5222     for ac_exec_ext in '' $ac_executable_extensions; do
5223       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5224         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5225       fi
5226     done
5227   done
5228 done
5229 lt_ac_max=0
5230 lt_ac_count=0
5231 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5232 # along with /bin/sed that truncates output.
5233 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5234   test ! -f $lt_ac_sed && continue
5235   cat /dev/null > conftest.in
5236   lt_ac_count=0
5237   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5238   # Check for GNU sed and select it if it is found.
5239   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5240     lt_cv_path_SED=$lt_ac_sed
5241     break
5242   fi
5243   while true; do
5244     cat conftest.in conftest.in >conftest.tmp
5245     mv conftest.tmp conftest.in
5246     cp conftest.in conftest.nl
5247     echo >>conftest.nl
5248     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5249     cmp -s conftest.out conftest.nl || break
5250     # 10000 chars as input seems more than enough
5251     test $lt_ac_count -gt 10 && break
5252     lt_ac_count=`expr $lt_ac_count + 1`
5253     if test $lt_ac_count -gt $lt_ac_max; then
5254       lt_ac_max=$lt_ac_count
5255       lt_cv_path_SED=$lt_ac_sed
5256     fi
5257   done
5258 done
5259
5260 fi
5261
5262 SED=$lt_cv_path_SED
5263 echo "$as_me:$LINENO: result: $SED" >&5
5264 echo "${ECHO_T}$SED" >&6
5265
5266 echo "$as_me:$LINENO: checking for egrep" >&5
5267 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5268 if test "${ac_cv_prog_egrep+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5272     then ac_cv_prog_egrep='grep -E'
5273     else ac_cv_prog_egrep='egrep'
5274     fi
5275 fi
5276 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5277 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5278  EGREP=$ac_cv_prog_egrep
5279
5280
5281
5282 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5283 if test "${with_gnu_ld+set}" = set; then
5284   withval="$with_gnu_ld"
5285   test "$withval" = no || with_gnu_ld=yes
5286 else
5287   with_gnu_ld=no
5288 fi;
5289 ac_prog=ld
5290 if test "$GCC" = yes; then
5291   # Check if gcc -print-prog-name=ld gives a path.
5292   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5293 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5294   case $host in
5295   *-*-mingw*)
5296     # gcc leaves a trailing carriage return which upsets mingw
5297     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298   *)
5299     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5300   esac
5301   case $ac_prog in
5302     # Accept absolute paths.
5303     [\\/]* | ?:[\\/]*)
5304       re_direlt='/[^/][^/]*/\.\./'
5305       # Canonicalize the pathname of ld
5306       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5307       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5308         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5309       done
5310       test -z "$LD" && LD="$ac_prog"
5311       ;;
5312   "")
5313     # If it fails, then pretend we aren't using GCC.
5314     ac_prog=ld
5315     ;;
5316   *)
5317     # If it is relative, then search for the first ld in PATH.
5318     with_gnu_ld=unknown
5319     ;;
5320   esac
5321 elif test "$with_gnu_ld" = yes; then
5322   echo "$as_me:$LINENO: checking for GNU ld" >&5
5323 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5324 else
5325   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5326 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5327 fi
5328 if test "${lt_cv_path_LD+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test -z "$LD"; then
5332   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5333   for ac_dir in $PATH; do
5334     IFS="$lt_save_ifs"
5335     test -z "$ac_dir" && ac_dir=.
5336     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5337       lt_cv_path_LD="$ac_dir/$ac_prog"
5338       # Check to see if the program is GNU ld.  I'd rather use --version,
5339       # but apparently some GNU ld's only accept -v.
5340       # Break only if it was the GNU/non-GNU ld that we prefer.
5341       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5342       *GNU* | *'with BFD'*)
5343         test "$with_gnu_ld" != no && break
5344         ;;
5345       *)
5346         test "$with_gnu_ld" != yes && break
5347         ;;
5348       esac
5349     fi
5350   done
5351   IFS="$lt_save_ifs"
5352 else
5353   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5354 fi
5355 fi
5356
5357 LD="$lt_cv_path_LD"
5358 if test -n "$LD"; then
5359   echo "$as_me:$LINENO: result: $LD" >&5
5360 echo "${ECHO_T}$LD" >&6
5361 else
5362   echo "$as_me:$LINENO: result: no" >&5
5363 echo "${ECHO_T}no" >&6
5364 fi
5365 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5366 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5367    { (exit 1); exit 1; }; }
5368 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5369 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5370 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5371   echo $ECHO_N "(cached) $ECHO_C" >&6
5372 else
5373   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5374 case `$LD -v 2>&1 </dev/null` in
5375 *GNU* | *'with BFD'*)
5376   lt_cv_prog_gnu_ld=yes
5377   ;;
5378 *)
5379   lt_cv_prog_gnu_ld=no
5380   ;;
5381 esac
5382 fi
5383 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5384 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5385 with_gnu_ld=$lt_cv_prog_gnu_ld
5386
5387
5388 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5389 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5390 if test "${lt_cv_ld_reload_flag+set}" = set; then
5391   echo $ECHO_N "(cached) $ECHO_C" >&6
5392 else
5393   lt_cv_ld_reload_flag='-r'
5394 fi
5395 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5396 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5397 reload_flag=$lt_cv_ld_reload_flag
5398 case $reload_flag in
5399 "" | " "*) ;;
5400 *) reload_flag=" $reload_flag" ;;
5401 esac
5402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5403 case $host_os in
5404   darwin*)
5405     if test "$GCC" = yes; then
5406       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5407     else
5408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409     fi
5410     ;;
5411 esac
5412
5413 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5414 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5415 if test "${lt_cv_path_NM+set}" = set; then
5416   echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418   if test -n "$NM"; then
5419   # Let the user override the test.
5420   lt_cv_path_NM="$NM"
5421 else
5422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5423   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5424     IFS="$lt_save_ifs"
5425     test -z "$ac_dir" && ac_dir=.
5426     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5427     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5428       # Check to see if the nm accepts a BSD-compat flag.
5429       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5430       #   nm: unknown option "B" ignored
5431       # Tru64's nm complains that /dev/null is an invalid object file
5432       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5433       */dev/null* | *'Invalid file or object type'*)
5434         lt_cv_path_NM="$tmp_nm -B"
5435         break
5436         ;;
5437       *)
5438         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5439         */dev/null*)
5440           lt_cv_path_NM="$tmp_nm -p"
5441           break
5442           ;;
5443         *)
5444           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5445           continue # so that we can try to find one that supports BSD flags
5446           ;;
5447         esac
5448       esac
5449     fi
5450   done
5451   IFS="$lt_save_ifs"
5452   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5453 fi
5454 fi
5455 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5456 echo "${ECHO_T}$lt_cv_path_NM" >&6
5457 NM="$lt_cv_path_NM"
5458
5459 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5460 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5461 LN_S=$as_ln_s
5462 if test "$LN_S" = "ln -s"; then
5463   echo "$as_me:$LINENO: result: yes" >&5
5464 echo "${ECHO_T}yes" >&6
5465 else
5466   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5467 echo "${ECHO_T}no, using $LN_S" >&6
5468 fi
5469
5470 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5471 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5472 if test "${lt_cv_deplibs_check_method+set}" = set; then
5473   echo $ECHO_N "(cached) $ECHO_C" >&6
5474 else
5475   lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5488
5489 case $host_os in
5490 aix4* | aix5*)
5491   lt_cv_deplibs_check_method=pass_all
5492   ;;
5493
5494 beos*)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 bsdi[45]*)
5499   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500   lt_cv_file_magic_cmd='/usr/bin/file -L'
5501   lt_cv_file_magic_test_file=/shlib/libc.so
5502   ;;
5503
5504 cygwin*)
5505   # func_win32_libid is a shell function defined in ltmain.sh
5506   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507   lt_cv_file_magic_cmd='func_win32_libid'
5508   ;;
5509
5510 mingw* | pw32*)
5511   # Base MSYS/MinGW do not provide the 'file' command needed by
5512   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5513   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5514   lt_cv_file_magic_cmd='$OBJDUMP -f'
5515   ;;
5516
5517 darwin* | rhapsody*)
5518   lt_cv_deplibs_check_method=pass_all
5519   ;;
5520
5521 freebsd* | kfreebsd*-gnu | dragonfly*)
5522   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5523     case $host_cpu in
5524     i*86 )
5525       # Not sure whether the presence of OpenBSD here was a mistake.
5526       # Let's accept both of them until this is cleared up.
5527       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5528       lt_cv_file_magic_cmd=/usr/bin/file
5529       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5530       ;;
5531     esac
5532   else
5533     lt_cv_deplibs_check_method=pass_all
5534   fi
5535   ;;
5536
5537 gnu*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 hpux10.20* | hpux11*)
5542   lt_cv_file_magic_cmd=/usr/bin/file
5543   case "$host_cpu" in
5544   ia64*)
5545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5546     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547     ;;
5548   hppa*64*)
5549     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]'
5550     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551     ;;
5552   *)
5553     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5554     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5555     ;;
5556   esac
5557   ;;
5558
5559 irix5* | irix6* | nonstopux*)
5560   case $LD in
5561   *-32|*"-32 ") libmagic=32-bit;;
5562   *-n32|*"-n32 ") libmagic=N32;;
5563   *-64|*"-64 ") libmagic=64-bit;;
5564   *) libmagic=never-match;;
5565   esac
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 # This must be Linux ELF.
5570 linux*)
5571   lt_cv_deplibs_check_method=pass_all
5572   ;;
5573
5574 netbsd*)
5575   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5576     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5577   else
5578     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5579   fi
5580   ;;
5581
5582 newos6*)
5583   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5584   lt_cv_file_magic_cmd=/usr/bin/file
5585   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5586   ;;
5587
5588 nto-qnx*)
5589   lt_cv_deplibs_check_method=unknown
5590   ;;
5591
5592 openbsd*)
5593   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5594     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5595   else
5596     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5597   fi
5598   ;;
5599
5600 osf3* | osf4* | osf5*)
5601   lt_cv_deplibs_check_method=pass_all
5602   ;;
5603
5604 sco3.2v5*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 solaris*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5613   case $host_vendor in
5614   motorola)
5615     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]'
5616     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5617     ;;
5618   ncr)
5619     lt_cv_deplibs_check_method=pass_all
5620     ;;
5621   sequent)
5622     lt_cv_file_magic_cmd='/bin/file'
5623     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5624     ;;
5625   sni)
5626     lt_cv_file_magic_cmd='/bin/file'
5627     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5628     lt_cv_file_magic_test_file=/lib/libc.so
5629     ;;
5630   siemens)
5631     lt_cv_deplibs_check_method=pass_all
5632     ;;
5633   esac
5634   ;;
5635
5636 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5637   lt_cv_deplibs_check_method=pass_all
5638   ;;
5639 esac
5640
5641 fi
5642 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5643 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5644 file_magic_cmd=$lt_cv_file_magic_cmd
5645 deplibs_check_method=$lt_cv_deplibs_check_method
5646 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5647
5648
5649
5650
5651 # If no C compiler was specified, use CC.
5652 LTCC=${LTCC-"$CC"}
5653
5654 # Allow CC to be a program name with arguments.
5655 compiler=$CC
5656
5657
5658 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5659 if test "${enable_libtool_lock+set}" = set; then
5660   enableval="$enable_libtool_lock"
5661
5662 fi;
5663 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5664
5665 # Some flags need to be propagated to the compiler or linker for good
5666 # libtool support.
5667 case $host in
5668 ia64-*-hpux*)
5669   # Find out which ABI we are using.
5670   echo 'int i;' > conftest.$ac_ext
5671   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5672   (eval $ac_compile) 2>&5
5673   ac_status=$?
5674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675   (exit $ac_status); }; then
5676     case `/usr/bin/file conftest.$ac_objext` in
5677     *ELF-32*)
5678       HPUX_IA64_MODE="32"
5679       ;;
5680     *ELF-64*)
5681       HPUX_IA64_MODE="64"
5682       ;;
5683     esac
5684   fi
5685   rm -rf conftest*
5686   ;;
5687 *-*-irix6*)
5688   # Find out which ABI we are using.
5689   echo '#line 5689 "configure"' > conftest.$ac_ext
5690   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5691   (eval $ac_compile) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; then
5695    if test "$lt_cv_prog_gnu_ld" = yes; then
5696     case `/usr/bin/file conftest.$ac_objext` in
5697     *32-bit*)
5698       LD="${LD-ld} -melf32bsmip"
5699       ;;
5700     *N32*)
5701       LD="${LD-ld} -melf32bmipn32"
5702       ;;
5703     *64-bit*)
5704       LD="${LD-ld} -melf64bmip"
5705       ;;
5706     esac
5707    else
5708     case `/usr/bin/file conftest.$ac_objext` in
5709     *32-bit*)
5710       LD="${LD-ld} -32"
5711       ;;
5712     *N32*)
5713       LD="${LD-ld} -n32"
5714       ;;
5715     *64-bit*)
5716       LD="${LD-ld} -64"
5717       ;;
5718     esac
5719    fi
5720   fi
5721   rm -rf conftest*
5722   ;;
5723
5724 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5725   # Find out which ABI we are using.
5726   echo 'int i;' > conftest.$ac_ext
5727   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5728   (eval $ac_compile) 2>&5
5729   ac_status=$?
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); }; then
5732     case "`/usr/bin/file conftest.o`" in
5733     *32-bit*)
5734       case $host in
5735         x86_64-*linux*)
5736           LD="${LD-ld} -m elf_i386"
5737           ;;
5738         ppc64-*linux*|powerpc64-*linux*)
5739           LD="${LD-ld} -m elf32ppclinux"
5740           ;;
5741         s390x-*linux*)
5742           LD="${LD-ld} -m elf_s390"
5743           ;;
5744         sparc64-*linux*)
5745           LD="${LD-ld} -m elf32_sparc"
5746           ;;
5747       esac
5748       ;;
5749     *64-bit*)
5750       case $host in
5751         x86_64-*linux*)
5752           LD="${LD-ld} -m elf_x86_64"
5753           ;;
5754         ppc*-*linux*|powerpc*-*linux*)
5755           LD="${LD-ld} -m elf64ppc"
5756           ;;
5757         s390*-*linux*)
5758           LD="${LD-ld} -m elf64_s390"
5759           ;;
5760         sparc*-*linux*)
5761           LD="${LD-ld} -m elf64_sparc"
5762           ;;
5763       esac
5764       ;;
5765     esac
5766   fi
5767   rm -rf conftest*
5768   ;;
5769
5770 *-*-sco3.2v5*)
5771   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5772   SAVE_CFLAGS="$CFLAGS"
5773   CFLAGS="$CFLAGS -belf"
5774   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5775 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5776 if test "${lt_cv_cc_needs_belf+set}" = set; then
5777   echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779   ac_ext=c
5780 ac_cpp='$CPP $CPPFLAGS'
5781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5784
5785      cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h.  */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h.  */
5791
5792 int
5793 main ()
5794 {
5795
5796   ;
5797   return 0;
5798 }
5799 _ACEOF
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802   (eval $ac_link) 2>conftest.er1
5803   ac_status=$?
5804   grep -v '^ *+' conftest.er1 >conftest.err
5805   rm -f conftest.er1
5806   cat conftest.err >&5
5807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808   (exit $ac_status); } &&
5809          { ac_try='test -z "$ac_c_werror_flag"
5810                          || test ! -s conftest.err'
5811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812   (eval $ac_try) 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }; } &&
5816          { ac_try='test -s conftest$ac_exeext'
5817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818   (eval $ac_try) 2>&5
5819   ac_status=$?
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); }; }; then
5822   lt_cv_cc_needs_belf=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 lt_cv_cc_needs_belf=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext \
5830       conftest$ac_exeext conftest.$ac_ext
5831      ac_ext=c
5832 ac_cpp='$CPP $CPPFLAGS'
5833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5836
5837 fi
5838 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5839 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5840   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5841     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5842     CFLAGS="$SAVE_CFLAGS"
5843   fi
5844   ;;
5845 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5846   if test -n "$ac_tool_prefix"; then
5847   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5851 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   if test -n "$DLLTOOL"; then
5855   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862   for ac_exec_ext in '' $ac_executable_extensions; do
5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869 done
5870
5871 fi
5872 fi
5873 DLLTOOL=$ac_cv_prog_DLLTOOL
5874 if test -n "$DLLTOOL"; then
5875   echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5876 echo "${ECHO_T}$DLLTOOL" >&6
5877 else
5878   echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6
5880 fi
5881
5882 fi
5883 if test -z "$ac_cv_prog_DLLTOOL"; then
5884   ac_ct_DLLTOOL=$DLLTOOL
5885   # Extract the first word of "dlltool", so it can be a program name with args.
5886 set dummy dlltool; ac_word=$2
5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5890   echo $ECHO_N "(cached) $ECHO_C" >&6
5891 else
5892   if test -n "$ac_ct_DLLTOOL"; then
5893   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5897 do
5898   IFS=$as_save_IFS
5899   test -z "$as_dir" && as_dir=.
5900   for ac_exec_ext in '' $ac_executable_extensions; do
5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904     break 2
5905   fi
5906 done
5907 done
5908
5909   test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5910 fi
5911 fi
5912 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5913 if test -n "$ac_ct_DLLTOOL"; then
5914   echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5915 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5916 else
5917   echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921   DLLTOOL=$ac_ct_DLLTOOL
5922 else
5923   DLLTOOL="$ac_cv_prog_DLLTOOL"
5924 fi
5925
5926   if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}as; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_AS+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$AS"; then
5935   ac_cv_prog_AS="$AS" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_AS="${ac_tool_prefix}as"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951 fi
5952 fi
5953 AS=$ac_cv_prog_AS
5954 if test -n "$AS"; then
5955   echo "$as_me:$LINENO: result: $AS" >&5
5956 echo "${ECHO_T}$AS" >&6
5957 else
5958   echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962 fi
5963 if test -z "$ac_cv_prog_AS"; then
5964   ac_ct_AS=$AS
5965   # Extract the first word of "as", so it can be a program name with args.
5966 set dummy as; ac_word=$2
5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5970   echo $ECHO_N "(cached) $ECHO_C" >&6
5971 else
5972   if test -n "$ac_ct_AS"; then
5973   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980   for ac_exec_ext in '' $ac_executable_extensions; do
5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_AS="as"
5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987 done
5988
5989   test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5990 fi
5991 fi
5992 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5993 if test -n "$ac_ct_AS"; then
5994   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5995 echo "${ECHO_T}$ac_ct_AS" >&6
5996 else
5997   echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6
5999 fi
6000
6001   AS=$ac_ct_AS
6002 else
6003   AS="$ac_cv_prog_AS"
6004 fi
6005
6006   if test -n "$ac_tool_prefix"; then
6007   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6008 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$OBJDUMP"; then
6015   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031 fi
6032 fi
6033 OBJDUMP=$ac_cv_prog_OBJDUMP
6034 if test -n "$OBJDUMP"; then
6035   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6036 echo "${ECHO_T}$OBJDUMP" >&6
6037 else
6038   echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6
6040 fi
6041
6042 fi
6043 if test -z "$ac_cv_prog_OBJDUMP"; then
6044   ac_ct_OBJDUMP=$OBJDUMP
6045   # Extract the first word of "objdump", so it can be a program name with args.
6046 set dummy objdump; ac_word=$2
6047 echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   if test -n "$ac_ct_OBJDUMP"; then
6053   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068
6069   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6070 fi
6071 fi
6072 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6073 if test -n "$ac_ct_OBJDUMP"; then
6074   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6075 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6076 else
6077   echo "$as_me:$LINENO: result: no" >&5
6078 echo "${ECHO_T}no" >&6
6079 fi
6080
6081   OBJDUMP=$ac_ct_OBJDUMP
6082 else
6083   OBJDUMP="$ac_cv_prog_OBJDUMP"
6084 fi
6085
6086   ;;
6087
6088 esac
6089
6090 need_locks="$enable_libtool_lock"
6091
6092
6093 ac_ext=c
6094 ac_cpp='$CPP $CPPFLAGS'
6095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6098 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6099 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6100 # On Suns, sometimes $CPP names a directory.
6101 if test -n "$CPP" && test -d "$CPP"; then
6102   CPP=
6103 fi
6104 if test -z "$CPP"; then
6105   if test "${ac_cv_prog_CPP+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108       # Double quotes because CPP needs to be expanded
6109     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6110     do
6111       ac_preproc_ok=false
6112 for ac_c_preproc_warn_flag in '' yes
6113 do
6114   # Use a header file that comes with gcc, so configuring glibc
6115   # with a fresh cross-compiler works.
6116   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6117   # <limits.h> exists even on freestanding compilers.
6118   # On the NeXT, cc -E runs the code through the compiler's parser,
6119   # not just through cpp. "Syntax error" is here to catch this case.
6120   cat >conftest.$ac_ext <<_ACEOF
6121 /* confdefs.h.  */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h.  */
6126 #ifdef __STDC__
6127 # include <limits.h>
6128 #else
6129 # include <assert.h>
6130 #endif
6131                      Syntax error
6132 _ACEOF
6133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } >/dev/null; then
6141   if test -s conftest.err; then
6142     ac_cpp_err=$ac_c_preproc_warn_flag
6143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6144   else
6145     ac_cpp_err=
6146   fi
6147 else
6148   ac_cpp_err=yes
6149 fi
6150 if test -z "$ac_cpp_err"; then
6151   :
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156   # Broken: fails on valid input.
6157 continue
6158 fi
6159 rm -f conftest.err conftest.$ac_ext
6160
6161   # OK, works on sane cases.  Now check whether non-existent headers
6162   # can be detected and how.
6163   cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h.  */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h.  */
6169 #include <ac_nonexistent.h>
6170 _ACEOF
6171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } >/dev/null; then
6179   if test -s conftest.err; then
6180     ac_cpp_err=$ac_c_preproc_warn_flag
6181     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6182   else
6183     ac_cpp_err=
6184   fi
6185 else
6186   ac_cpp_err=yes
6187 fi
6188 if test -z "$ac_cpp_err"; then
6189   # Broken: success on invalid input.
6190 continue
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195   # Passes both tests.
6196 ac_preproc_ok=:
6197 break
6198 fi
6199 rm -f conftest.err conftest.$ac_ext
6200
6201 done
6202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6203 rm -f conftest.err conftest.$ac_ext
6204 if $ac_preproc_ok; then
6205   break
6206 fi
6207
6208     done
6209     ac_cv_prog_CPP=$CPP
6210
6211 fi
6212   CPP=$ac_cv_prog_CPP
6213 else
6214   ac_cv_prog_CPP=$CPP
6215 fi
6216 echo "$as_me:$LINENO: result: $CPP" >&5
6217 echo "${ECHO_T}$CPP" >&6
6218 ac_preproc_ok=false
6219 for ac_c_preproc_warn_flag in '' yes
6220 do
6221   # Use a header file that comes with gcc, so configuring glibc
6222   # with a fresh cross-compiler works.
6223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6224   # <limits.h> exists even on freestanding compilers.
6225   # On the NeXT, cc -E runs the code through the compiler's parser,
6226   # not just through cpp. "Syntax error" is here to catch this case.
6227   cat >conftest.$ac_ext <<_ACEOF
6228 /* confdefs.h.  */
6229 _ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h.  */
6233 #ifdef __STDC__
6234 # include <limits.h>
6235 #else
6236 # include <assert.h>
6237 #endif
6238                      Syntax error
6239 _ACEOF
6240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242   ac_status=$?
6243   grep -v '^ *+' conftest.er1 >conftest.err
6244   rm -f conftest.er1
6245   cat conftest.err >&5
6246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247   (exit $ac_status); } >/dev/null; then
6248   if test -s conftest.err; then
6249     ac_cpp_err=$ac_c_preproc_warn_flag
6250     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251   else
6252     ac_cpp_err=
6253   fi
6254 else
6255   ac_cpp_err=yes
6256 fi
6257 if test -z "$ac_cpp_err"; then
6258   :
6259 else
6260   echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263   # Broken: fails on valid input.
6264 continue
6265 fi
6266 rm -f conftest.err conftest.$ac_ext
6267
6268   # OK, works on sane cases.  Now check whether non-existent headers
6269   # can be detected and how.
6270   cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 #include <ac_nonexistent.h>
6277 _ACEOF
6278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6280   ac_status=$?
6281   grep -v '^ *+' conftest.er1 >conftest.err
6282   rm -f conftest.er1
6283   cat conftest.err >&5
6284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285   (exit $ac_status); } >/dev/null; then
6286   if test -s conftest.err; then
6287     ac_cpp_err=$ac_c_preproc_warn_flag
6288     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6289   else
6290     ac_cpp_err=
6291   fi
6292 else
6293   ac_cpp_err=yes
6294 fi
6295 if test -z "$ac_cpp_err"; then
6296   # Broken: success on invalid input.
6297 continue
6298 else
6299   echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302   # Passes both tests.
6303 ac_preproc_ok=:
6304 break
6305 fi
6306 rm -f conftest.err conftest.$ac_ext
6307
6308 done
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6312   :
6313 else
6314   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 fi
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326
6327
6328 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6329 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6330 if test "${ac_cv_header_stdc+set}" = set; then
6331   echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
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 #include <stdarg.h>
6341 #include <string.h>
6342 #include <float.h>
6343
6344 int
6345 main ()
6346 {
6347
6348   ;
6349   return 0;
6350 }
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6354   (eval $ac_compile) 2>conftest.er1
6355   ac_status=$?
6356   grep -v '^ *+' conftest.er1 >conftest.err
6357   rm -f conftest.er1
6358   cat conftest.err >&5
6359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360   (exit $ac_status); } &&
6361          { ac_try='test -z "$ac_c_werror_flag"
6362                          || test ! -s conftest.err'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; } &&
6368          { ac_try='test -s conftest.$ac_objext'
6369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6370   (eval $ac_try) 2>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); }; }; then
6374   ac_cv_header_stdc=yes
6375 else
6376   echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ac_cv_header_stdc=no
6380 fi
6381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6382
6383 if test $ac_cv_header_stdc = yes; then
6384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6385   cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h.  */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h.  */
6391 #include <string.h>
6392
6393 _ACEOF
6394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6395   $EGREP "memchr" >/dev/null 2>&1; then
6396   :
6397 else
6398   ac_cv_header_stdc=no
6399 fi
6400 rm -f conftest*
6401
6402 fi
6403
6404 if test $ac_cv_header_stdc = yes; then
6405   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6406   cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h.  */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h.  */
6412 #include <stdlib.h>
6413
6414 _ACEOF
6415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6416   $EGREP "free" >/dev/null 2>&1; then
6417   :
6418 else
6419   ac_cv_header_stdc=no
6420 fi
6421 rm -f conftest*
6422
6423 fi
6424
6425 if test $ac_cv_header_stdc = yes; then
6426   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6427   if test "$cross_compiling" = yes; then
6428   :
6429 else
6430   cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 #include <ctype.h>
6437 #if ((' ' & 0x0FF) == 0x020)
6438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6440 #else
6441 # define ISLOWER(c) \
6442                    (('a' <= (c) && (c) <= 'i') \
6443                      || ('j' <= (c) && (c) <= 'r') \
6444                      || ('s' <= (c) && (c) <= 'z'))
6445 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6446 #endif
6447
6448 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6449 int
6450 main ()
6451 {
6452   int i;
6453   for (i = 0; i < 256; i++)
6454     if (XOR (islower (i), ISLOWER (i))
6455         || toupper (i) != TOUPPER (i))
6456       exit(2);
6457   exit (0);
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6462   (eval $ac_link) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }; then
6471   :
6472 else
6473   echo "$as_me: program exited with status $ac_status" >&5
6474 echo "$as_me: failed program was:" >&5
6475 sed 's/^/| /' conftest.$ac_ext >&5
6476
6477 ( exit $ac_status )
6478 ac_cv_header_stdc=no
6479 fi
6480 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6481 fi
6482 fi
6483 fi
6484 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6485 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6486 if test $ac_cv_header_stdc = yes; then
6487
6488 cat >>confdefs.h <<\_ACEOF
6489 #define STDC_HEADERS 1
6490 _ACEOF
6491
6492 fi
6493
6494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6505                   inttypes.h stdint.h unistd.h
6506 do
6507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6508 echo "$as_me:$LINENO: checking for $ac_header" >&5
6509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520
6521 #include <$ac_header>
6522 _ACEOF
6523 rm -f conftest.$ac_objext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525   (eval $ac_compile) 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } &&
6532          { ac_try='test -z "$ac_c_werror_flag"
6533                          || test ! -s conftest.err'
6534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6535   (eval $ac_try) 2>&5
6536   ac_status=$?
6537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6538   (exit $ac_status); }; } &&
6539          { ac_try='test -s conftest.$ac_objext'
6540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6541   (eval $ac_try) 2>&5
6542   ac_status=$?
6543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544   (exit $ac_status); }; }; then
6545   eval "$as_ac_Header=yes"
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550 eval "$as_ac_Header=no"
6551 fi
6552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6553 fi
6554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6557   cat >>confdefs.h <<_ACEOF
6558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6559 _ACEOF
6560
6561 fi
6562
6563 done
6564
6565
6566
6567 for ac_header in dlfcn.h
6568 do
6569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6571   echo "$as_me:$LINENO: checking for $ac_header" >&5
6572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 fi
6576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6578 else
6579   # Is the header compilable?
6580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6582 cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589 #include <$ac_header>
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_header_compiler=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_header_compiler=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6622 echo "${ECHO_T}$ac_header_compiler" >&6
6623
6624 # Is the header present?
6625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6627 cat >conftest.$ac_ext <<_ACEOF
6628 /* confdefs.h.  */
6629 _ACEOF
6630 cat confdefs.h >>conftest.$ac_ext
6631 cat >>conftest.$ac_ext <<_ACEOF
6632 /* end confdefs.h.  */
6633 #include <$ac_header>
6634 _ACEOF
6635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6637   ac_status=$?
6638   grep -v '^ *+' conftest.er1 >conftest.err
6639   rm -f conftest.er1
6640   cat conftest.err >&5
6641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } >/dev/null; then
6643   if test -s conftest.err; then
6644     ac_cpp_err=$ac_c_preproc_warn_flag
6645     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6646   else
6647     ac_cpp_err=
6648   fi
6649 else
6650   ac_cpp_err=yes
6651 fi
6652 if test -z "$ac_cpp_err"; then
6653   ac_header_preproc=yes
6654 else
6655   echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658   ac_header_preproc=no
6659 fi
6660 rm -f conftest.err conftest.$ac_ext
6661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6662 echo "${ECHO_T}$ac_header_preproc" >&6
6663
6664 # So?  What about this header?
6665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6666   yes:no: )
6667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6671     ac_header_preproc=yes
6672     ;;
6673   no:yes:* )
6674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6686     (
6687       cat <<\_ASBOX
6688 ## ------------------------------------------ ##
6689 ## Report this to the AC_PACKAGE_NAME lists.  ##
6690 ## ------------------------------------------ ##
6691 _ASBOX
6692     ) |
6693       sed "s/^/$as_me: WARNING:     /" >&2
6694     ;;
6695 esac
6696 echo "$as_me:$LINENO: checking for $ac_header" >&5
6697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6699   echo $ECHO_N "(cached) $ECHO_C" >&6
6700 else
6701   eval "$as_ac_Header=\$ac_header_preproc"
6702 fi
6703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6705
6706 fi
6707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6708   cat >>confdefs.h <<_ACEOF
6709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6710 _ACEOF
6711
6712 fi
6713
6714 done
6715
6716
6717 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6718
6719 # find the maximum length of command line arguments
6720 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6721 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6722 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725     i=0
6726   teststring="ABCD"
6727
6728   case $build_os in
6729   msdosdjgpp*)
6730     # On DJGPP, this test can blow up pretty badly due to problems in libc
6731     # (any single argument exceeding 2000 bytes causes a buffer overrun
6732     # during glob expansion).  Even if it were fixed, the result of this
6733     # check would be larger than it should be.
6734     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6735     ;;
6736
6737   gnu*)
6738     # Under GNU Hurd, this test is not required because there is
6739     # no limit to the length of command line arguments.
6740     # Libtool will interpret -1 as no limit whatsoever
6741     lt_cv_sys_max_cmd_len=-1;
6742     ;;
6743
6744   cygwin* | mingw*)
6745     # On Win9x/ME, this test blows up -- it succeeds, but takes
6746     # about 5 minutes as the teststring grows exponentially.
6747     # Worse, since 9x/ME are not pre-emptively multitasking,
6748     # you end up with a "frozen" computer, even though with patience
6749     # the test eventually succeeds (with a max line length of 256k).
6750     # Instead, let's just punt: use the minimum linelength reported by
6751     # all of the supported platforms: 8192 (on NT/2K/XP).
6752     lt_cv_sys_max_cmd_len=8192;
6753     ;;
6754
6755   amigaos*)
6756     # On AmigaOS with pdksh, this test takes hours, literally.
6757     # So we just punt and use a minimum line length of 8192.
6758     lt_cv_sys_max_cmd_len=8192;
6759     ;;
6760
6761   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6762     # This has been around since 386BSD, at least.  Likely further.
6763     if test -x /sbin/sysctl; then
6764       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6765     elif test -x /usr/sbin/sysctl; then
6766       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6767     else
6768       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6769     fi
6770     # And add a safety zone
6771     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6772     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6773     ;;
6774   osf*)
6775     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6776     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6777     # nice to cause kernel panics so lets avoid the loop below.
6778     # First set a reasonable default.
6779     lt_cv_sys_max_cmd_len=16384
6780     #
6781     if test -x /sbin/sysconfig; then
6782       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6783         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6784       esac
6785     fi
6786     ;;
6787   *)
6788     # If test is not a shell built-in, we'll probably end up computing a
6789     # maximum length that is only half of the actual maximum length, but
6790     # we can't tell.
6791     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6792     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6793                = "XX$teststring") >/dev/null 2>&1 &&
6794             new_result=`expr "X$teststring" : ".*" 2>&1` &&
6795             lt_cv_sys_max_cmd_len=$new_result &&
6796             test $i != 17 # 1/2 MB should be enough
6797     do
6798       i=`expr $i + 1`
6799       teststring=$teststring$teststring
6800     done
6801     teststring=
6802     # Add a significant safety factor because C++ compilers can tack on massive
6803     # amounts of additional arguments before passing them to the linker.
6804     # It appears as though 1/2 is a usable value.
6805     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6806     ;;
6807   esac
6808
6809 fi
6810
6811 if test -n $lt_cv_sys_max_cmd_len ; then
6812   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6813 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6814 else
6815   echo "$as_me:$LINENO: result: none" >&5
6816 echo "${ECHO_T}none" >&6
6817 fi
6818
6819
6820
6821
6822 # Check for command to grab the raw symbol name followed by C symbol from nm.
6823 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6824 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6825 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6826   echo $ECHO_N "(cached) $ECHO_C" >&6
6827 else
6828
6829 # These are sane defaults that work on at least a few old systems.
6830 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6831
6832 # Character class describing NM global symbol codes.
6833 symcode='[BCDEGRST]'
6834
6835 # Regexp to match symbols that can be accessed directly from C.
6836 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6837
6838 # Transform an extracted symbol line into a proper C declaration
6839 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6840
6841 # Transform an extracted symbol line into symbol name and symbol address
6842 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'"
6843
6844 # Define system-specific variables.
6845 case $host_os in
6846 aix*)
6847   symcode='[BCDT]'
6848   ;;
6849 cygwin* | mingw* | pw32*)
6850   symcode='[ABCDGISTW]'
6851   ;;
6852 hpux*) # Its linker distinguishes data from code symbols
6853   if test "$host_cpu" = ia64; then
6854     symcode='[ABCDEGRST]'
6855   fi
6856   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857   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'"
6858   ;;
6859 linux*)
6860   if test "$host_cpu" = ia64; then
6861     symcode='[ABCDGIRSTW]'
6862     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863     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'"
6864   fi
6865   ;;
6866 irix* | nonstopux*)
6867   symcode='[BCDEGRST]'
6868   ;;
6869 osf*)
6870   symcode='[BCDEGQRST]'
6871   ;;
6872 solaris* | sysv5*)
6873   symcode='[BDRT]'
6874   ;;
6875 sysv4)
6876   symcode='[DFNSTU]'
6877   ;;
6878 esac
6879
6880 # Handle CRLF in mingw tool chain
6881 opt_cr=
6882 case $build_os in
6883 mingw*)
6884   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6885   ;;
6886 esac
6887
6888 # If we're using GNU nm, then use its standard symbol codes.
6889 case `$NM -V 2>&1` in
6890 *GNU* | *'with BFD'*)
6891   symcode='[ABCDGIRSTW]' ;;
6892 esac
6893
6894 # Try without a prefix undercore, then with it.
6895 for ac_symprfx in "" "_"; do
6896
6897   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6898   symxfrm="\\1 $ac_symprfx\\2 \\2"
6899
6900   # Write the raw and C identifiers.
6901   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6902
6903   # Check to see that the pipe works correctly.
6904   pipe_works=no
6905
6906   rm -f conftest*
6907   cat > conftest.$ac_ext <<EOF
6908 #ifdef __cplusplus
6909 extern "C" {
6910 #endif
6911 char nm_test_var;
6912 void nm_test_func(){}
6913 #ifdef __cplusplus
6914 }
6915 #endif
6916 int main(){nm_test_var='a';nm_test_func();return(0);}
6917 EOF
6918
6919   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6920   (eval $ac_compile) 2>&5
6921   ac_status=$?
6922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923   (exit $ac_status); }; then
6924     # Now try to grab the symbols.
6925     nlist=conftest.nm
6926     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6927   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); } && test -s "$nlist"; then
6931       # Try sorting and uniquifying the output.
6932       if sort "$nlist" | uniq > "$nlist"T; then
6933         mv -f "$nlist"T "$nlist"
6934       else
6935         rm -f "$nlist"T
6936       fi
6937
6938       # Make sure that we snagged all the symbols we need.
6939       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6940         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6941           cat <<EOF > conftest.$ac_ext
6942 #ifdef __cplusplus
6943 extern "C" {
6944 #endif
6945
6946 EOF
6947           # Now generate the symbol file.
6948           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6949
6950           cat <<EOF >> conftest.$ac_ext
6951 #if defined (__STDC__) && __STDC__
6952 # define lt_ptr_t void *
6953 #else
6954 # define lt_ptr_t char *
6955 # define const
6956 #endif
6957
6958 /* The mapping between symbol names and symbols. */
6959 const struct {
6960   const char *name;
6961   lt_ptr_t address;
6962 }
6963 lt_preloaded_symbols[] =
6964 {
6965 EOF
6966           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6967           cat <<\EOF >> conftest.$ac_ext
6968   {0, (lt_ptr_t) 0}
6969 };
6970
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 EOF
6975           # Now try linking the two files.
6976           mv conftest.$ac_objext conftstm.$ac_objext
6977           lt_save_LIBS="$LIBS"
6978           lt_save_CFLAGS="$CFLAGS"
6979           LIBS="conftstm.$ac_objext"
6980           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986             pipe_works=yes
6987           fi
6988           LIBS="$lt_save_LIBS"
6989           CFLAGS="$lt_save_CFLAGS"
6990         else
6991           echo "cannot find nm_test_func in $nlist" >&5
6992         fi
6993       else
6994         echo "cannot find nm_test_var in $nlist" >&5
6995       fi
6996     else
6997       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998     fi
6999   else
7000     echo "$progname: failed program was:" >&5
7001     cat conftest.$ac_ext >&5
7002   fi
7003   rm -f conftest* conftst*
7004
7005   # Do not use the global_symbol_pipe unless it works.
7006   if test "$pipe_works" = yes; then
7007     break
7008   else
7009     lt_cv_sys_global_symbol_pipe=
7010   fi
7011 done
7012
7013 fi
7014
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016   lt_cv_sys_global_symbol_to_cdecl=
7017 fi
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019   echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7021 else
7022   echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7024 fi
7025
7026 echo "$as_me:$LINENO: checking for objdir" >&5
7027 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7028 if test "${lt_cv_objdir+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   rm -f .libs 2>/dev/null
7032 mkdir .libs 2>/dev/null
7033 if test -d .libs; then
7034   lt_cv_objdir=.libs
7035 else
7036   # MS-DOS does not allow filenames that begin with a dot.
7037   lt_cv_objdir=_libs
7038 fi
7039 rmdir .libs 2>/dev/null
7040 fi
7041 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7042 echo "${ECHO_T}$lt_cv_objdir" >&6
7043 objdir=$lt_cv_objdir
7044
7045
7046
7047
7048
7049 case $host_os in
7050 aix3*)
7051   # AIX sometimes has problems with the GCC collect2 program.  For some
7052   # reason, if we set the COLLECT_NAMES environment variable, the problems
7053   # vanish in a puff of smoke.
7054   if test "X${COLLECT_NAMES+set}" != Xset; then
7055     COLLECT_NAMES=
7056     export COLLECT_NAMES
7057   fi
7058   ;;
7059 esac
7060
7061 # Sed substitution that helps us do robust quoting.  It backslashifies
7062 # metacharacters that are still active within double-quoted strings.
7063 Xsed='sed -e 1s/^X//'
7064 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7065
7066 # Same as above, but do not quote variable references.
7067 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7068
7069 # Sed substitution to delay expansion of an escaped shell variable in a
7070 # double_quote_subst'ed string.
7071 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7072
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7075
7076 # Constants:
7077 rm="rm -f"
7078
7079 # Global variables:
7080 default_ofile=libtool
7081 can_build_shared=yes
7082
7083 # All known linkers require a `.a' archive for static linking (except M$VC,
7084 # which needs '.lib').
7085 libext=a
7086 ltmain="$ac_aux_dir/ltmain.sh"
7087 ofile="$default_ofile"
7088 with_gnu_ld="$lt_cv_prog_gnu_ld"
7089
7090 if test -n "$ac_tool_prefix"; then
7091   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}ar; ac_word=$2
7093 echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095 if test "${ac_cv_prog_AR+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   if test -n "$AR"; then
7099   ac_cv_prog_AR="$AR" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7103 do
7104   IFS=$as_save_IFS
7105   test -z "$as_dir" && as_dir=.
7106   for ac_exec_ext in '' $ac_executable_extensions; do
7107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108     ac_cv_prog_AR="${ac_tool_prefix}ar"
7109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110     break 2
7111   fi
7112 done
7113 done
7114
7115 fi
7116 fi
7117 AR=$ac_cv_prog_AR
7118 if test -n "$AR"; then
7119   echo "$as_me:$LINENO: result: $AR" >&5
7120 echo "${ECHO_T}$AR" >&6
7121 else
7122   echo "$as_me:$LINENO: result: no" >&5
7123 echo "${ECHO_T}no" >&6
7124 fi
7125
7126 fi
7127 if test -z "$ac_cv_prog_AR"; then
7128   ac_ct_AR=$AR
7129   # Extract the first word of "ar", so it can be a program name with args.
7130 set dummy ar; ac_word=$2
7131 echo "$as_me:$LINENO: checking for $ac_word" >&5
7132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7133 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7134   echo $ECHO_N "(cached) $ECHO_C" >&6
7135 else
7136   if test -n "$ac_ct_AR"; then
7137   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144   for ac_exec_ext in '' $ac_executable_extensions; do
7145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146     ac_cv_prog_ac_ct_AR="ar"
7147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151 done
7152
7153   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7154 fi
7155 fi
7156 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7157 if test -n "$ac_ct_AR"; then
7158   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7159 echo "${ECHO_T}$ac_ct_AR" >&6
7160 else
7161   echo "$as_me:$LINENO: result: no" >&5
7162 echo "${ECHO_T}no" >&6
7163 fi
7164
7165   AR=$ac_ct_AR
7166 else
7167   AR="$ac_cv_prog_AR"
7168 fi
7169
7170 if test -n "$ac_tool_prefix"; then
7171   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7172 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7173 echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7175 if test "${ac_cv_prog_RANLIB+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   if test -n "$RANLIB"; then
7179   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186   for ac_exec_ext in '' $ac_executable_extensions; do
7187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190     break 2
7191   fi
7192 done
7193 done
7194
7195 fi
7196 fi
7197 RANLIB=$ac_cv_prog_RANLIB
7198 if test -n "$RANLIB"; then
7199   echo "$as_me:$LINENO: result: $RANLIB" >&5
7200 echo "${ECHO_T}$RANLIB" >&6
7201 else
7202   echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6
7204 fi
7205
7206 fi
7207 if test -z "$ac_cv_prog_RANLIB"; then
7208   ac_ct_RANLIB=$RANLIB
7209   # Extract the first word of "ranlib", so it can be a program name with args.
7210 set dummy ranlib; ac_word=$2
7211 echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   if test -n "$ac_ct_RANLIB"; then
7217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224   for ac_exec_ext in '' $ac_executable_extensions; do
7225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226     ac_cv_prog_ac_ct_RANLIB="ranlib"
7227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231 done
7232
7233   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7234 fi
7235 fi
7236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7237 if test -n "$ac_ct_RANLIB"; then
7238   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7239 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7240 else
7241   echo "$as_me:$LINENO: result: no" >&5
7242 echo "${ECHO_T}no" >&6
7243 fi
7244
7245   RANLIB=$ac_ct_RANLIB
7246 else
7247   RANLIB="$ac_cv_prog_RANLIB"
7248 fi
7249
7250 if test -n "$ac_tool_prefix"; then
7251   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}strip; ac_word=$2
7253 echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7255 if test "${ac_cv_prog_STRIP+set}" = set; then
7256   echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258   if test -n "$STRIP"; then
7259   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264   IFS=$as_save_IFS
7265   test -z "$as_dir" && as_dir=.
7266   for ac_exec_ext in '' $ac_executable_extensions; do
7267   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270     break 2
7271   fi
7272 done
7273 done
7274
7275 fi
7276 fi
7277 STRIP=$ac_cv_prog_STRIP
7278 if test -n "$STRIP"; then
7279   echo "$as_me:$LINENO: result: $STRIP" >&5
7280 echo "${ECHO_T}$STRIP" >&6
7281 else
7282   echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6
7284 fi
7285
7286 fi
7287 if test -z "$ac_cv_prog_STRIP"; then
7288   ac_ct_STRIP=$STRIP
7289   # Extract the first word of "strip", so it can be a program name with args.
7290 set dummy strip; ac_word=$2
7291 echo "$as_me:$LINENO: checking for $ac_word" >&5
7292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   if test -n "$ac_ct_STRIP"; then
7297   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302   IFS=$as_save_IFS
7303   test -z "$as_dir" && as_dir=.
7304   for ac_exec_ext in '' $ac_executable_extensions; do
7305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306     ac_cv_prog_ac_ct_STRIP="strip"
7307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308     break 2
7309   fi
7310 done
7311 done
7312
7313   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7314 fi
7315 fi
7316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317 if test -n "$ac_ct_STRIP"; then
7318   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319 echo "${ECHO_T}$ac_ct_STRIP" >&6
7320 else
7321   echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6
7323 fi
7324
7325   STRIP=$ac_ct_STRIP
7326 else
7327   STRIP="$ac_cv_prog_STRIP"
7328 fi
7329
7330
7331 old_CC="$CC"
7332 old_CFLAGS="$CFLAGS"
7333
7334 # Set sane defaults for various variables
7335 test -z "$AR" && AR=ar
7336 test -z "$AR_FLAGS" && AR_FLAGS=cru
7337 test -z "$AS" && AS=as
7338 test -z "$CC" && CC=cc
7339 test -z "$LTCC" && LTCC=$CC
7340 test -z "$DLLTOOL" && DLLTOOL=dlltool
7341 test -z "$LD" && LD=ld
7342 test -z "$LN_S" && LN_S="ln -s"
7343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7344 test -z "$NM" && NM=nm
7345 test -z "$SED" && SED=sed
7346 test -z "$OBJDUMP" && OBJDUMP=objdump
7347 test -z "$RANLIB" && RANLIB=:
7348 test -z "$STRIP" && STRIP=:
7349 test -z "$ac_objext" && ac_objext=o
7350
7351 # Determine commands to create old-style static archives.
7352 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7353 old_postinstall_cmds='chmod 644 $oldlib'
7354 old_postuninstall_cmds=
7355
7356 if test -n "$RANLIB"; then
7357   case $host_os in
7358   openbsd*)
7359     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7360     ;;
7361   *)
7362     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7363     ;;
7364   esac
7365   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7366 fi
7367
7368 for cc_temp in $compiler""; do
7369   case $cc_temp in
7370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7372     \-*) ;;
7373     *) break;;
7374   esac
7375 done
7376 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7377
7378
7379 # Only perform the check for file, if the check method requires it
7380 case $deplibs_check_method in
7381 file_magic*)
7382   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7383     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7384 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7385 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7386   echo $ECHO_N "(cached) $ECHO_C" >&6
7387 else
7388   case $MAGIC_CMD in
7389 [\\/*] |  ?:[\\/]*)
7390   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7391   ;;
7392 *)
7393   lt_save_MAGIC_CMD="$MAGIC_CMD"
7394   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7395   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7396   for ac_dir in $ac_dummy; do
7397     IFS="$lt_save_ifs"
7398     test -z "$ac_dir" && ac_dir=.
7399     if test -f $ac_dir/${ac_tool_prefix}file; then
7400       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7401       if test -n "$file_magic_test_file"; then
7402         case $deplibs_check_method in
7403         "file_magic "*)
7404           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7405           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7406           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7407             $EGREP "$file_magic_regex" > /dev/null; then
7408             :
7409           else
7410             cat <<EOF 1>&2
7411
7412 *** Warning: the command libtool uses to detect shared libraries,
7413 *** $file_magic_cmd, produces output that libtool cannot recognize.
7414 *** The result is that libtool may fail to recognize shared libraries
7415 *** as such.  This will affect the creation of libtool libraries that
7416 *** depend on shared libraries, but programs linked with such libtool
7417 *** libraries will work regardless of this problem.  Nevertheless, you
7418 *** may want to report the problem to your system manager and/or to
7419 *** bug-libtool@gnu.org
7420
7421 EOF
7422           fi ;;
7423         esac
7424       fi
7425       break
7426     fi
7427   done
7428   IFS="$lt_save_ifs"
7429   MAGIC_CMD="$lt_save_MAGIC_CMD"
7430   ;;
7431 esac
7432 fi
7433
7434 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435 if test -n "$MAGIC_CMD"; then
7436   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7437 echo "${ECHO_T}$MAGIC_CMD" >&6
7438 else
7439   echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443 if test -z "$lt_cv_path_MAGIC_CMD"; then
7444   if test -n "$ac_tool_prefix"; then
7445     echo "$as_me:$LINENO: checking for file" >&5
7446 echo $ECHO_N "checking for file... $ECHO_C" >&6
7447 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7448   echo $ECHO_N "(cached) $ECHO_C" >&6
7449 else
7450   case $MAGIC_CMD in
7451 [\\/*] |  ?:[\\/]*)
7452   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7453   ;;
7454 *)
7455   lt_save_MAGIC_CMD="$MAGIC_CMD"
7456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7457   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7458   for ac_dir in $ac_dummy; do
7459     IFS="$lt_save_ifs"
7460     test -z "$ac_dir" && ac_dir=.
7461     if test -f $ac_dir/file; then
7462       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7463       if test -n "$file_magic_test_file"; then
7464         case $deplibs_check_method in
7465         "file_magic "*)
7466           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7467           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7468           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7469             $EGREP "$file_magic_regex" > /dev/null; then
7470             :
7471           else
7472             cat <<EOF 1>&2
7473
7474 *** Warning: the command libtool uses to detect shared libraries,
7475 *** $file_magic_cmd, produces output that libtool cannot recognize.
7476 *** The result is that libtool may fail to recognize shared libraries
7477 *** as such.  This will affect the creation of libtool libraries that
7478 *** depend on shared libraries, but programs linked with such libtool
7479 *** libraries will work regardless of this problem.  Nevertheless, you
7480 *** may want to report the problem to your system manager and/or to
7481 *** bug-libtool@gnu.org
7482
7483 EOF
7484           fi ;;
7485         esac
7486       fi
7487       break
7488     fi
7489   done
7490   IFS="$lt_save_ifs"
7491   MAGIC_CMD="$lt_save_MAGIC_CMD"
7492   ;;
7493 esac
7494 fi
7495
7496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7497 if test -n "$MAGIC_CMD"; then
7498   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7499 echo "${ECHO_T}$MAGIC_CMD" >&6
7500 else
7501   echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503 fi
7504
7505   else
7506     MAGIC_CMD=:
7507   fi
7508 fi
7509
7510   fi
7511   ;;
7512 esac
7513
7514 enable_dlopen=yes
7515 enable_win32_dll=yes
7516
7517 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7518 if test "${enable_libtool_lock+set}" = set; then
7519   enableval="$enable_libtool_lock"
7520
7521 fi;
7522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7523
7524
7525 # Check whether --with-pic or --without-pic was given.
7526 if test "${with_pic+set}" = set; then
7527   withval="$with_pic"
7528   pic_mode="$withval"
7529 else
7530   pic_mode=default
7531 fi;
7532 test -z "$pic_mode" && pic_mode=default
7533
7534 # Use C for the default configuration in the libtool script
7535 tagname=
7536 lt_save_CC="$CC"
7537 ac_ext=c
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544 # Source file extension for C test sources.
7545 ac_ext=c
7546
7547 # Object file extension for compiled C test sources.
7548 objext=o
7549 objext=$objext
7550
7551 # Code to be used in simple compile tests
7552 lt_simple_compile_test_code="int some_variable = 0;\n"
7553
7554 # Code to be used in simple link tests
7555 lt_simple_link_test_code='int main(){return(0);}\n'
7556
7557
7558 # If no C compiler was specified, use CC.
7559 LTCC=${LTCC-"$CC"}
7560
7561 # Allow CC to be a program name with arguments.
7562 compiler=$CC
7563
7564
7565 # save warnings/boilerplate of simple test code
7566 ac_outfile=conftest.$ac_objext
7567 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7568 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7569 _lt_compiler_boilerplate=`cat conftest.err`
7570 $rm conftest*
7571
7572 ac_outfile=conftest.$ac_objext
7573 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7574 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7575 _lt_linker_boilerplate=`cat conftest.err`
7576 $rm conftest*
7577
7578
7579 #
7580 # Check for any special shared library compilation flags.
7581 #
7582 lt_prog_cc_shlib=
7583 if test "$GCC" = no; then
7584   case $host_os in
7585   sco3.2v5*)
7586     lt_prog_cc_shlib='-belf'
7587     ;;
7588   esac
7589 fi
7590 if test -n "$lt_prog_cc_shlib"; then
7591   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7592 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7593   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7594   else
7595     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7596 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7597     lt_cv_prog_cc_can_build_shared=no
7598   fi
7599 fi
7600
7601
7602 #
7603 # Check to make sure the static flag actually works.
7604 #
7605 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7606 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7607 if test "${lt_prog_compiler_static_works+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   lt_prog_compiler_static_works=no
7611    save_LDFLAGS="$LDFLAGS"
7612    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7613    printf "$lt_simple_link_test_code" > conftest.$ac_ext
7614    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7615      # The compiler can only warn and ignore the option if not recognized
7616      # So say no if there are warnings
7617      if test -s conftest.err; then
7618        # Append any errors to the config.log.
7619        cat conftest.err 1>&5
7620        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7621        $SED '/^$/d' conftest.err >conftest.er2
7622        if diff conftest.exp conftest.er2 >/dev/null; then
7623          lt_prog_compiler_static_works=yes
7624        fi
7625      else
7626        lt_prog_compiler_static_works=yes
7627      fi
7628    fi
7629    $rm conftest*
7630    LDFLAGS="$save_LDFLAGS"
7631
7632 fi
7633 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7634 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7635
7636 if test x"$lt_prog_compiler_static_works" = xyes; then
7637     :
7638 else
7639     lt_prog_compiler_static=
7640 fi
7641
7642
7643
7644
7645 lt_prog_compiler_no_builtin_flag=
7646
7647 if test "$GCC" = yes; then
7648   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7649
7650
7651 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7652 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7653 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7654   echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656   lt_cv_prog_compiler_rtti_exceptions=no
7657   ac_outfile=conftest.$ac_objext
7658    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7659    lt_compiler_flag="-fno-rtti -fno-exceptions"
7660    # Insert the option either (1) after the last *FLAGS variable, or
7661    # (2) before a word containing "conftest.", or (3) at the end.
7662    # Note that $ac_compile itself does not contain backslashes and begins
7663    # with a dollar sign (not a hyphen), so the echo should work correctly.
7664    # The option is referenced via a variable to avoid confusing sed.
7665    lt_compile=`echo "$ac_compile" | $SED \
7666    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7668    -e 's:$: $lt_compiler_flag:'`
7669    (eval echo "\"\$as_me:7669: $lt_compile\"" >&5)
7670    (eval "$lt_compile" 2>conftest.err)
7671    ac_status=$?
7672    cat conftest.err >&5
7673    echo "$as_me:7673: \$? = $ac_status" >&5
7674    if (exit $ac_status) && test -s "$ac_outfile"; then
7675      # The compiler can only warn and ignore the option if not recognized
7676      # So say no if there are warnings other than the usual output.
7677      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7678      $SED '/^$/d' conftest.err >conftest.er2
7679      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7680        lt_cv_prog_compiler_rtti_exceptions=yes
7681      fi
7682    fi
7683    $rm conftest*
7684
7685 fi
7686 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7687 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7688
7689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7691 else
7692     :
7693 fi
7694
7695 fi
7696
7697 lt_prog_compiler_wl=
7698 lt_prog_compiler_pic=
7699 lt_prog_compiler_static=
7700
7701 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7702 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7703
7704   if test "$GCC" = yes; then
7705     lt_prog_compiler_wl='-Wl,'
7706     lt_prog_compiler_static='-static'
7707
7708     case $host_os in
7709       aix*)
7710       # All AIX code is PIC.
7711       if test "$host_cpu" = ia64; then
7712         # AIX 5 now supports IA64 processor
7713         lt_prog_compiler_static='-Bstatic'
7714       fi
7715       ;;
7716
7717     amigaos*)
7718       # FIXME: we need at least 68020 code to build shared libraries, but
7719       # adding the `-m68020' flag to GCC prevents building anything better,
7720       # like `-m68040'.
7721       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7722       ;;
7723
7724     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725       # PIC is the default for these OSes.
7726       ;;
7727
7728     mingw* | pw32* | os2*)
7729       # This hack is so that the source file can tell whether it is being
7730       # built for inclusion in a dll (and should export symbols for example).
7731       lt_prog_compiler_pic='-DDLL_EXPORT'
7732       ;;
7733
7734     darwin* | rhapsody*)
7735       # PIC is the default on this platform
7736       # Common symbols not allowed in MH_DYLIB files
7737       lt_prog_compiler_pic='-fno-common'
7738       ;;
7739
7740     msdosdjgpp*)
7741       # Just because we use GCC doesn't mean we suddenly get shared libraries
7742       # on systems that don't support them.
7743       lt_prog_compiler_can_build_shared=no
7744       enable_shared=no
7745       ;;
7746
7747     sysv4*MP*)
7748       if test -d /usr/nec; then
7749         lt_prog_compiler_pic=-Kconform_pic
7750       fi
7751       ;;
7752
7753     hpux*)
7754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7755       # not for PA HP-UX.
7756       case "$host_cpu" in
7757       hppa*64*|ia64*)
7758         # +Z the default
7759         ;;
7760       *)
7761         lt_prog_compiler_pic='-fPIC'
7762         ;;
7763       esac
7764       ;;
7765
7766     *)
7767       lt_prog_compiler_pic='-fPIC'
7768       ;;
7769     esac
7770   else
7771     # PORTME Check for flag to pass linker flags through the system compiler.
7772     case $host_os in
7773     aix*)
7774       lt_prog_compiler_wl='-Wl,'
7775       if test "$host_cpu" = ia64; then
7776         # AIX 5 now supports IA64 processor
7777         lt_prog_compiler_static='-Bstatic'
7778       else
7779         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7780       fi
7781       ;;
7782       darwin*)
7783         # PIC is the default on this platform
7784         # Common symbols not allowed in MH_DYLIB files
7785        case $cc_basename in
7786          xlc*)
7787          lt_prog_compiler_pic='-qnocommon'
7788          lt_prog_compiler_wl='-Wl,'
7789          ;;
7790        esac
7791        ;;
7792
7793     mingw* | pw32* | os2*)
7794       # This hack is so that the source file can tell whether it is being
7795       # built for inclusion in a dll (and should export symbols for example).
7796       lt_prog_compiler_pic='-DDLL_EXPORT'
7797       ;;
7798
7799     hpux9* | hpux10* | hpux11*)
7800       lt_prog_compiler_wl='-Wl,'
7801       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7802       # not for PA HP-UX.
7803       case "$host_cpu" in
7804       hppa*64*|ia64*)
7805         # +Z the default
7806         ;;
7807       *)
7808         lt_prog_compiler_pic='+Z'
7809         ;;
7810       esac
7811       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7812       lt_prog_compiler_static='${wl}-a ${wl}archive'
7813       ;;
7814
7815     irix5* | irix6* | nonstopux*)
7816       lt_prog_compiler_wl='-Wl,'
7817       # PIC (with -KPIC) is the default.
7818       lt_prog_compiler_static='-non_shared'
7819       ;;
7820
7821     newsos6)
7822       lt_prog_compiler_pic='-KPIC'
7823       lt_prog_compiler_static='-Bstatic'
7824       ;;
7825
7826     linux*)
7827       case $cc_basename in
7828       icc* | ecc*)
7829         lt_prog_compiler_wl='-Wl,'
7830         lt_prog_compiler_pic='-KPIC'
7831         lt_prog_compiler_static='-static'
7832         ;;
7833       pgcc* | pgf77* | pgf90*)
7834         # Portland Group compilers (*not* the Pentium gcc compiler,
7835         # which looks to be a dead project)
7836         lt_prog_compiler_wl='-Wl,'
7837         lt_prog_compiler_pic='-fpic'
7838         lt_prog_compiler_static='-static'
7839         ;;
7840       ccc*)
7841         lt_prog_compiler_wl='-Wl,'
7842         # All Alpha code is PIC.
7843         lt_prog_compiler_static='-non_shared'
7844         ;;
7845       esac
7846       ;;
7847
7848     osf3* | osf4* | osf5*)
7849       lt_prog_compiler_wl='-Wl,'
7850       # All OSF/1 code is PIC.
7851       lt_prog_compiler_static='-non_shared'
7852       ;;
7853
7854     sco3.2v5*)
7855       lt_prog_compiler_pic='-Kpic'
7856       lt_prog_compiler_static='-dn'
7857       ;;
7858
7859     solaris*)
7860       lt_prog_compiler_pic='-KPIC'
7861       lt_prog_compiler_static='-Bstatic'
7862       case $cc_basename in
7863       f77* | f90* | f95*)
7864         lt_prog_compiler_wl='-Qoption ld ';;
7865       *)
7866         lt_prog_compiler_wl='-Wl,';;
7867       esac
7868       ;;
7869
7870     sunos4*)
7871       lt_prog_compiler_wl='-Qoption ld '
7872       lt_prog_compiler_pic='-PIC'
7873       lt_prog_compiler_static='-Bstatic'
7874       ;;
7875
7876     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7877       lt_prog_compiler_wl='-Wl,'
7878       lt_prog_compiler_pic='-KPIC'
7879       lt_prog_compiler_static='-Bstatic'
7880       ;;
7881
7882     sysv4*MP*)
7883       if test -d /usr/nec ;then
7884         lt_prog_compiler_pic='-Kconform_pic'
7885         lt_prog_compiler_static='-Bstatic'
7886       fi
7887       ;;
7888
7889     unicos*)
7890       lt_prog_compiler_wl='-Wl,'
7891       lt_prog_compiler_can_build_shared=no
7892       ;;
7893
7894     uts4*)
7895       lt_prog_compiler_pic='-pic'
7896       lt_prog_compiler_static='-Bstatic'
7897       ;;
7898
7899     *)
7900       lt_prog_compiler_can_build_shared=no
7901       ;;
7902     esac
7903   fi
7904
7905 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7906 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7907
7908 #
7909 # Check to make sure the PIC flag actually works.
7910 #
7911 if test -n "$lt_prog_compiler_pic"; then
7912
7913 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7914 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7915 if test "${lt_prog_compiler_pic_works+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   lt_prog_compiler_pic_works=no
7919   ac_outfile=conftest.$ac_objext
7920    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7921    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7922    # Insert the option either (1) after the last *FLAGS variable, or
7923    # (2) before a word containing "conftest.", or (3) at the end.
7924    # Note that $ac_compile itself does not contain backslashes and begins
7925    # with a dollar sign (not a hyphen), so the echo should work correctly.
7926    # The option is referenced via a variable to avoid confusing sed.
7927    lt_compile=`echo "$ac_compile" | $SED \
7928    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7929    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7930    -e 's:$: $lt_compiler_flag:'`
7931    (eval echo "\"\$as_me:7931: $lt_compile\"" >&5)
7932    (eval "$lt_compile" 2>conftest.err)
7933    ac_status=$?
7934    cat conftest.err >&5
7935    echo "$as_me:7935: \$? = $ac_status" >&5
7936    if (exit $ac_status) && test -s "$ac_outfile"; then
7937      # The compiler can only warn and ignore the option if not recognized
7938      # So say no if there are warnings other than the usual output.
7939      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7940      $SED '/^$/d' conftest.err >conftest.er2
7941      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7942        lt_prog_compiler_pic_works=yes
7943      fi
7944    fi
7945    $rm conftest*
7946
7947 fi
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7950
7951 if test x"$lt_prog_compiler_pic_works" = xyes; then
7952     case $lt_prog_compiler_pic in
7953      "" | " "*) ;;
7954      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7955      esac
7956 else
7957     lt_prog_compiler_pic=
7958      lt_prog_compiler_can_build_shared=no
7959 fi
7960
7961 fi
7962 case "$host_os" in
7963   # For platforms which do not support PIC, -DPIC is meaningless:
7964   *djgpp*)
7965     lt_prog_compiler_pic=
7966     ;;
7967   *)
7968     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7969     ;;
7970 esac
7971
7972 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7973 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7974 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7975   echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977   lt_cv_prog_compiler_c_o=no
7978    $rm -r conftest 2>/dev/null
7979    mkdir conftest
7980    cd conftest
7981    mkdir out
7982    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7983
7984    lt_compiler_flag="-o out/conftest2.$ac_objext"
7985    # Insert the option either (1) after the last *FLAGS variable, or
7986    # (2) before a word containing "conftest.", or (3) at the end.
7987    # Note that $ac_compile itself does not contain backslashes and begins
7988    # with a dollar sign (not a hyphen), so the echo should work correctly.
7989    lt_compile=`echo "$ac_compile" | $SED \
7990    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7992    -e 's:$: $lt_compiler_flag:'`
7993    (eval echo "\"\$as_me:7993: $lt_compile\"" >&5)
7994    (eval "$lt_compile" 2>out/conftest.err)
7995    ac_status=$?
7996    cat out/conftest.err >&5
7997    echo "$as_me:7997: \$? = $ac_status" >&5
7998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7999    then
8000      # The compiler can only warn and ignore the option if not recognized
8001      # So say no if there are warnings
8002      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8003      $SED '/^$/d' out/conftest.err >out/conftest.er2
8004      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8005        lt_cv_prog_compiler_c_o=yes
8006      fi
8007    fi
8008    chmod u+w .
8009    $rm conftest*
8010    # SGI C++ compiler will create directory out/ii_files/ for
8011    # template instantiation
8012    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8013    $rm out/* && rmdir out
8014    cd ..
8015    rmdir conftest
8016    $rm conftest*
8017
8018 fi
8019 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8020 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8021
8022
8023 hard_links="nottested"
8024 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8025   # do not overwrite the value of need_locks provided by the user
8026   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8027 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8028   hard_links=yes
8029   $rm conftest*
8030   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8031   touch conftest.a
8032   ln conftest.a conftest.b 2>&5 || hard_links=no
8033   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8034   echo "$as_me:$LINENO: result: $hard_links" >&5
8035 echo "${ECHO_T}$hard_links" >&6
8036   if test "$hard_links" = no; then
8037     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8038 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8039     need_locks=warn
8040   fi
8041 else
8042   need_locks=no
8043 fi
8044
8045 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8046 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8047
8048   runpath_var=
8049   allow_undefined_flag=
8050   enable_shared_with_static_runtimes=no
8051   archive_cmds=
8052   archive_expsym_cmds=
8053   old_archive_From_new_cmds=
8054   old_archive_from_expsyms_cmds=
8055   export_dynamic_flag_spec=
8056   whole_archive_flag_spec=
8057   thread_safe_flag_spec=
8058   hardcode_libdir_flag_spec=
8059   hardcode_libdir_flag_spec_ld=
8060   hardcode_libdir_separator=
8061   hardcode_direct=no
8062   hardcode_minus_L=no
8063   hardcode_shlibpath_var=unsupported
8064   link_all_deplibs=unknown
8065   hardcode_automatic=no
8066   module_cmds=
8067   module_expsym_cmds=
8068   always_export_symbols=no
8069   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8070   # include_expsyms should be a list of space-separated symbols to be *always*
8071   # included in the symbol list
8072   include_expsyms=
8073   # exclude_expsyms can be an extended regexp of symbols to exclude
8074   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8075   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8076   # as well as any symbol that contains `d'.
8077   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8078   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8079   # platforms (ab)use it in PIC code, but their linkers get confused if
8080   # the symbol is explicitly referenced.  Since portable code cannot
8081   # rely on this symbol name, it's probably fine to never include it in
8082   # preloaded symbol tables.
8083   extract_expsyms_cmds=
8084   # Just being paranoid about ensuring that cc_basename is set.
8085   for cc_temp in $compiler""; do
8086   case $cc_temp in
8087     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8088     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8089     \-*) ;;
8090     *) break;;
8091   esac
8092 done
8093 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8094
8095   case $host_os in
8096   cygwin* | mingw* | pw32*)
8097     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8098     # When not using gcc, we currently assume that we are using
8099     # Microsoft Visual C++.
8100     if test "$GCC" != yes; then
8101       with_gnu_ld=no
8102     fi
8103     ;;
8104   openbsd*)
8105     with_gnu_ld=no
8106     ;;
8107   esac
8108
8109   ld_shlibs=yes
8110   if test "$with_gnu_ld" = yes; then
8111     # If archive_cmds runs LD, not CC, wlarc should be empty
8112     wlarc='${wl}'
8113
8114     # Set some defaults for GNU ld with shared library support. These
8115     # are reset later if shared libraries are not supported. Putting them
8116     # here allows them to be overridden if necessary.
8117     runpath_var=LD_RUN_PATH
8118     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8119     export_dynamic_flag_spec='${wl}--export-dynamic'
8120     # ancient GNU ld didn't support --whole-archive et. al.
8121     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8122         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8123       else
8124         whole_archive_flag_spec=
8125     fi
8126     supports_anon_versioning=no
8127     case `$LD -v 2>/dev/null` in
8128       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8129       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8130       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8131       *\ 2.11.*) ;; # other 2.11 versions
8132       *) supports_anon_versioning=yes ;;
8133     esac
8134
8135     # See if GNU ld supports shared libraries.
8136     case $host_os in
8137     aix3* | aix4* | aix5*)
8138       # On AIX/PPC, the GNU linker is very broken
8139       if test "$host_cpu" != ia64; then
8140         ld_shlibs=no
8141         cat <<EOF 1>&2
8142
8143 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8144 *** to be unable to reliably create shared libraries on AIX.
8145 *** Therefore, libtool is disabling shared libraries support.  If you
8146 *** really care for shared libraries, you may want to modify your PATH
8147 *** so that a non-GNU linker is found, and then restart.
8148
8149 EOF
8150       fi
8151       ;;
8152
8153     amigaos*)
8154       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)'
8155       hardcode_libdir_flag_spec='-L$libdir'
8156       hardcode_minus_L=yes
8157
8158       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8159       # that the semantics of dynamic libraries on AmigaOS, at least up
8160       # to version 4, is to share data among multiple programs linked
8161       # with the same dynamic library.  Since this doesn't match the
8162       # behavior of shared libraries on other platforms, we can't use
8163       # them.
8164       ld_shlibs=no
8165       ;;
8166
8167     beos*)
8168       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8169         allow_undefined_flag=unsupported
8170         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8171         # support --undefined.  This deserves some investigation.  FIXME
8172         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8173       else
8174         ld_shlibs=no
8175       fi
8176       ;;
8177
8178     cygwin* | mingw* | pw32*)
8179       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8180       # as there is no search path for DLLs.
8181       hardcode_libdir_flag_spec='-L$libdir'
8182       allow_undefined_flag=unsupported
8183       always_export_symbols=no
8184       enable_shared_with_static_runtimes=yes
8185       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8186
8187       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8188         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8189         # If the export-symbols file already is a .def file (1st line
8190         # is EXPORTS), use it as is; otherwise, prepend...
8191         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8192           cp $export_symbols $output_objdir/$soname.def;
8193         else
8194           echo EXPORTS > $output_objdir/$soname.def;
8195           cat $export_symbols >> $output_objdir/$soname.def;
8196         fi~
8197         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8198       else
8199         ld_shlibs=no
8200       fi
8201       ;;
8202
8203     linux*)
8204       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8205         tmp_addflag=
8206         case $cc_basename,$host_cpu in
8207         pgcc*)                          # Portland Group C compiler
8208           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'
8209           tmp_addflag=' $pic_flag'
8210           ;;
8211         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
8212           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'
8213           tmp_addflag=' $pic_flag -Mnomain' ;;
8214         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8215           tmp_addflag=' -i_dynamic' ;;
8216         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8217           tmp_addflag=' -i_dynamic -nofor_main' ;;
8218         ifc* | ifort*)                  # Intel Fortran compiler
8219           tmp_addflag=' -nofor_main' ;;
8220         esac
8221         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8222
8223         if test $supports_anon_versioning = yes; then
8224           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8225   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8226   $echo "local: *; };" >> $output_objdir/$libname.ver~
8227           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8228         fi
8229       else
8230         ld_shlibs=no
8231       fi
8232       ;;
8233
8234     netbsd*)
8235       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8236         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8237         wlarc=
8238       else
8239         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8241       fi
8242       ;;
8243
8244     solaris* | sysv5*)
8245       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8246         ld_shlibs=no
8247         cat <<EOF 1>&2
8248
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems.  Therefore, libtool
8251 *** is disabling shared libraries support.  We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer.  Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8255
8256 EOF
8257       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8258         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260       else
8261         ld_shlibs=no
8262       fi
8263       ;;
8264
8265     sunos4*)
8266       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8267       wlarc=
8268       hardcode_direct=yes
8269       hardcode_shlibpath_var=no
8270       ;;
8271
8272     *)
8273       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8274         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8275         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8276       else
8277         ld_shlibs=no
8278       fi
8279       ;;
8280     esac
8281
8282     if test "$ld_shlibs" = no; then
8283       runpath_var=
8284       hardcode_libdir_flag_spec=
8285       export_dynamic_flag_spec=
8286       whole_archive_flag_spec=
8287     fi
8288   else
8289     # PORTME fill in a description of your system's linker (not GNU ld)
8290     case $host_os in
8291     aix3*)
8292       allow_undefined_flag=unsupported
8293       always_export_symbols=yes
8294       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'
8295       # Note: this linker hardcodes the directories in LIBPATH if there
8296       # are no directories specified by -L.
8297       hardcode_minus_L=yes
8298       if test "$GCC" = yes && test -z "$link_static_flag"; then
8299         # Neither direct hardcoding nor static linking is supported with a
8300         # broken collect2.
8301         hardcode_direct=unsupported
8302       fi
8303       ;;
8304
8305     aix4* | aix5*)
8306       if test "$host_cpu" = ia64; then
8307         # On IA64, the linker does run time linking by default, so we don't
8308         # have to do anything special.
8309         aix_use_runtimelinking=no
8310         exp_sym_flag='-Bexport'
8311         no_entry_flag=""
8312       else
8313         # If we're using GNU nm, then we don't want the "-C" option.
8314         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8315         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8316           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'
8317         else
8318           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'
8319         fi
8320         aix_use_runtimelinking=no
8321
8322         # Test if we are trying to use run time linking or normal
8323         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8324         # need to do runtime linking.
8325         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8326           for ld_flag in $LDFLAGS; do
8327           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8328             aix_use_runtimelinking=yes
8329             break
8330           fi
8331           done
8332         esac
8333
8334         exp_sym_flag='-bexport'
8335         no_entry_flag='-bnoentry'
8336       fi
8337
8338       # When large executables or shared objects are built, AIX ld can
8339       # have problems creating the table of contents.  If linking a library
8340       # or program results in "error TOC overflow" add -mminimal-toc to
8341       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8342       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8343
8344       archive_cmds=''
8345       hardcode_direct=yes
8346       hardcode_libdir_separator=':'
8347       link_all_deplibs=yes
8348
8349       if test "$GCC" = yes; then
8350         case $host_os in aix4.[012]|aix4.[012].*)
8351         # We only want to do this on AIX 4.2 and lower, the check
8352         # below for broken collect2 doesn't work under 4.3+
8353           collect2name=`${CC} -print-prog-name=collect2`
8354           if test -f "$collect2name" && \
8355            strings "$collect2name" | grep resolve_lib_name >/dev/null
8356           then
8357           # We have reworked collect2
8358           hardcode_direct=yes
8359           else
8360           # We have old collect2
8361           hardcode_direct=unsupported
8362           # It fails to find uninstalled libraries when the uninstalled
8363           # path is not listed in the libpath.  Setting hardcode_minus_L
8364           # to unsupported forces relinking
8365           hardcode_minus_L=yes
8366           hardcode_libdir_flag_spec='-L$libdir'
8367           hardcode_libdir_separator=
8368           fi
8369         esac
8370         shared_flag='-shared'
8371         if test "$aix_use_runtimelinking" = yes; then
8372           shared_flag="$shared_flag "'${wl}-G'
8373         fi
8374       else
8375         # not using gcc
8376         if test "$host_cpu" = ia64; then
8377         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378         # chokes on -Wl,-G. The following line is correct:
8379           shared_flag='-G'
8380         else
8381         if test "$aix_use_runtimelinking" = yes; then
8382             shared_flag='${wl}-G'
8383           else
8384             shared_flag='${wl}-bM:SRE'
8385         fi
8386         fi
8387       fi
8388
8389       # It seems that -bexpall does not export symbols beginning with
8390       # underscore (_), so it is better to generate a list of symbols to export.
8391       always_export_symbols=yes
8392       if test "$aix_use_runtimelinking" = yes; then
8393         # Warning - without using the other runtime loading flags (-brtl),
8394         # -berok will link without error, but may produce a broken library.
8395         allow_undefined_flag='-berok'
8396        # Determine the default libpath from the value encoded in an empty executable.
8397        cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403
8404 int
8405 main ()
8406 {
8407
8408   ;
8409   return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext conftest$ac_exeext
8413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8414   (eval $ac_link) 2>conftest.er1
8415   ac_status=$?
8416   grep -v '^ *+' conftest.er1 >conftest.err
8417   rm -f conftest.er1
8418   cat conftest.err >&5
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); } &&
8421          { ac_try='test -z "$ac_c_werror_flag"
8422                          || test ! -s conftest.err'
8423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424   (eval $ac_try) 2>&5
8425   ac_status=$?
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); }; } &&
8428          { ac_try='test -s conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434
8435 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8436 }'`
8437 # Check for a 64-bit object if we didn't find anything.
8438 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; }
8439 }'`; fi
8440 else
8441   echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446       conftest$ac_exeext conftest.$ac_ext
8447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8448
8449        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8450         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"
8451        else
8452         if test "$host_cpu" = ia64; then
8453           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8454           allow_undefined_flag="-z nodefs"
8455           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"
8456         else
8457          # Determine the default libpath from the value encoded in an empty executable.
8458          cat >conftest.$ac_ext <<_ACEOF
8459 /* confdefs.h.  */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h.  */
8464
8465 int
8466 main ()
8467 {
8468
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475   (eval $ac_link) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest$ac_exeext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495
8496 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8497 }'`
8498 # Check for a 64-bit object if we didn't find anything.
8499 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; }
8500 }'`; fi
8501 else
8502   echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 fi
8506 rm -f conftest.err conftest.$ac_objext \
8507       conftest$ac_exeext conftest.$ac_ext
8508 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8509
8510          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8511           # Warning - without using the other run time loading flags,
8512           # -berok will link without error, but may produce a broken library.
8513           no_undefined_flag=' ${wl}-bernotok'
8514           allow_undefined_flag=' ${wl}-berok'
8515           # -bexpall does not export symbols beginning with underscore (_)
8516           always_export_symbols=yes
8517           # Exported symbols can be pulled into shared objects from archives
8518           whole_archive_flag_spec=' '
8519           archive_cmds_need_lc=yes
8520           # This is similar to how AIX traditionally builds it's shared libraries.
8521           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'
8522         fi
8523       fi
8524       ;;
8525
8526     amigaos*)
8527       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)'
8528       hardcode_libdir_flag_spec='-L$libdir'
8529       hardcode_minus_L=yes
8530       # see comment about different semantics on the GNU ld section
8531       ld_shlibs=no
8532       ;;
8533
8534     bsdi[45]*)
8535       export_dynamic_flag_spec=-rdynamic
8536       ;;
8537
8538     cygwin* | mingw* | pw32*)
8539       # When not using gcc, we currently assume that we are using
8540       # Microsoft Visual C++.
8541       # hardcode_libdir_flag_spec is actually meaningless, as there is
8542       # no search path for DLLs.
8543       hardcode_libdir_flag_spec=' '
8544       allow_undefined_flag=unsupported
8545       # Tell ltmain to make .lib files, not .a files.
8546       libext=lib
8547       # Tell ltmain to make .dll files, not .so files.
8548       shrext_cmds=".dll"
8549       # FIXME: Setting linknames here is a bad hack.
8550       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8551       # The linker will automatically build a .lib file if we build a DLL.
8552       old_archive_From_new_cmds='true'
8553       # FIXME: Should let the user specify the lib program.
8554       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8555       fix_srcfile_path='`cygpath -w "$srcfile"`'
8556       enable_shared_with_static_runtimes=yes
8557       ;;
8558
8559     darwin* | rhapsody*)
8560       case "$host_os" in
8561         rhapsody* | darwin1.[012])
8562          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8563          ;;
8564        *) # Darwin 1.3 on
8565          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8566            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8567          else
8568            case ${MACOSX_DEPLOYMENT_TARGET} in
8569              10.[012])
8570                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8571                ;;
8572              10.*)
8573                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8574                ;;
8575            esac
8576          fi
8577          ;;
8578       esac
8579       archive_cmds_need_lc=no
8580       hardcode_direct=no
8581       hardcode_automatic=yes
8582       hardcode_shlibpath_var=unsupported
8583       whole_archive_flag_spec=''
8584       link_all_deplibs=yes
8585     if test "$GCC" = yes ; then
8586         output_verbose_link_cmd='echo'
8587         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8588       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8589       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8590       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}'
8591       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}'
8592     else
8593       case $cc_basename in
8594         xlc*)
8595          output_verbose_link_cmd='echo'
8596          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8597          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8598           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8599          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}'
8600           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}'
8601           ;;
8602        *)
8603          ld_shlibs=no
8604           ;;
8605       esac
8606     fi
8607       ;;
8608
8609     dgux*)
8610       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611       hardcode_libdir_flag_spec='-L$libdir'
8612       hardcode_shlibpath_var=no
8613       ;;
8614
8615     freebsd1*)
8616       ld_shlibs=no
8617       ;;
8618
8619     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620     # support.  Future versions do this automatically, but an explicit c++rt0.o
8621     # does not break anything, and helps significantly (at the cost of a little
8622     # extra space).
8623     freebsd2.2*)
8624       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625       hardcode_libdir_flag_spec='-R$libdir'
8626       hardcode_direct=yes
8627       hardcode_shlibpath_var=no
8628       ;;
8629
8630     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631     freebsd2*)
8632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633       hardcode_direct=yes
8634       hardcode_minus_L=yes
8635       hardcode_shlibpath_var=no
8636       ;;
8637
8638     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639     freebsd* | kfreebsd*-gnu | dragonfly*)
8640       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641       hardcode_libdir_flag_spec='-R$libdir'
8642       hardcode_direct=yes
8643       hardcode_shlibpath_var=no
8644       ;;
8645
8646     hpux9*)
8647       if test "$GCC" = yes; then
8648         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'
8649       else
8650         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'
8651       fi
8652       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653       hardcode_libdir_separator=:
8654       hardcode_direct=yes
8655
8656       # hardcode_minus_L: Not really in the search PATH,
8657       # but as the default location of the library.
8658       hardcode_minus_L=yes
8659       export_dynamic_flag_spec='${wl}-E'
8660       ;;
8661
8662     hpux10* | hpux11*)
8663       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8664         case "$host_cpu" in
8665         hppa*64*|ia64*)
8666           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8667           ;;
8668         *)
8669           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8670           ;;
8671         esac
8672       else
8673         case "$host_cpu" in
8674         hppa*64*|ia64*)
8675           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8676           ;;
8677         *)
8678           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8679           ;;
8680         esac
8681       fi
8682       if test "$with_gnu_ld" = no; then
8683         case "$host_cpu" in
8684         hppa*64*)
8685           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8686           hardcode_libdir_flag_spec_ld='+b $libdir'
8687           hardcode_libdir_separator=:
8688           hardcode_direct=no
8689           hardcode_shlibpath_var=no
8690           ;;
8691         ia64*)
8692           hardcode_libdir_flag_spec='-L$libdir'
8693           hardcode_direct=no
8694           hardcode_shlibpath_var=no
8695
8696           # hardcode_minus_L: Not really in the search PATH,
8697           # but as the default location of the library.
8698           hardcode_minus_L=yes
8699           ;;
8700         *)
8701           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702           hardcode_libdir_separator=:
8703           hardcode_direct=yes
8704           export_dynamic_flag_spec='${wl}-E'
8705
8706           # hardcode_minus_L: Not really in the search PATH,
8707           # but as the default location of the library.
8708           hardcode_minus_L=yes
8709           ;;
8710         esac
8711       fi
8712       ;;
8713
8714     irix5* | irix6* | nonstopux*)
8715       if test "$GCC" = yes; then
8716         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'
8717       else
8718         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'
8719         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8720       fi
8721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722       hardcode_libdir_separator=:
8723       link_all_deplibs=yes
8724       ;;
8725
8726     netbsd*)
8727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8728         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8729       else
8730         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8731       fi
8732       hardcode_libdir_flag_spec='-R$libdir'
8733       hardcode_direct=yes
8734       hardcode_shlibpath_var=no
8735       ;;
8736
8737     newsos6)
8738       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8739       hardcode_direct=yes
8740       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741       hardcode_libdir_separator=:
8742       hardcode_shlibpath_var=no
8743       ;;
8744
8745     openbsd*)
8746       hardcode_direct=yes
8747       hardcode_shlibpath_var=no
8748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8749         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8750         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8751         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8752         export_dynamic_flag_spec='${wl}-E'
8753       else
8754        case $host_os in
8755          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8756            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8757            hardcode_libdir_flag_spec='-R$libdir'
8758            ;;
8759          *)
8760            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8761            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762            ;;
8763        esac
8764       fi
8765       ;;
8766
8767     os2*)
8768       hardcode_libdir_flag_spec='-L$libdir'
8769       hardcode_minus_L=yes
8770       allow_undefined_flag=unsupported
8771       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'
8772       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8773       ;;
8774
8775     osf3*)
8776       if test "$GCC" = yes; then
8777         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8778         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'
8779       else
8780         allow_undefined_flag=' -expect_unresolved \*'
8781         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'
8782       fi
8783       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784       hardcode_libdir_separator=:
8785       ;;
8786
8787     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8788       if test "$GCC" = yes; then
8789         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8790         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'
8791         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792       else
8793         allow_undefined_flag=' -expect_unresolved \*'
8794         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'
8795         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8796         $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'
8797
8798         # Both c and cxx compiler support -rpath directly
8799         hardcode_libdir_flag_spec='-rpath $libdir'
8800       fi
8801       hardcode_libdir_separator=:
8802       ;;
8803
8804     sco3.2v5*)
8805       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806       hardcode_shlibpath_var=no
8807       export_dynamic_flag_spec='${wl}-Bexport'
8808       runpath_var=LD_RUN_PATH
8809       hardcode_runpath_var=yes
8810       ;;
8811
8812     solaris*)
8813       no_undefined_flag=' -z text'
8814       if test "$GCC" = yes; then
8815         wlarc='${wl}'
8816         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8817         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8818           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8819       else
8820         wlarc=''
8821         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8822         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8823         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8824       fi
8825       hardcode_libdir_flag_spec='-R$libdir'
8826       hardcode_shlibpath_var=no
8827       case $host_os in
8828       solaris2.[0-5] | solaris2.[0-5].*) ;;
8829       *)
8830         # The compiler driver will combine linker options so we
8831         # cannot just pass the convience library names through
8832         # without $wl, iff we do not link with $LD.
8833         # Luckily, gcc supports the same syntax we need for Sun Studio.
8834         # Supported since Solaris 2.6 (maybe 2.5.1?)
8835         case $wlarc in
8836         '')
8837           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8838         *)
8839           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' ;;
8840         esac ;;
8841       esac
8842       link_all_deplibs=yes
8843       ;;
8844
8845     sunos4*)
8846       if test "x$host_vendor" = xsequent; then
8847         # Use $CC to link under sequent, because it throws in some extra .o
8848         # files that make .init and .fini sections work.
8849         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8850       else
8851         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8852       fi
8853       hardcode_libdir_flag_spec='-L$libdir'
8854       hardcode_direct=yes
8855       hardcode_minus_L=yes
8856       hardcode_shlibpath_var=no
8857       ;;
8858
8859     sysv4)
8860       case $host_vendor in
8861         sni)
8862           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863           hardcode_direct=yes # is this really true???
8864         ;;
8865         siemens)
8866           ## LD is ld it makes a PLAMLIB
8867           ## CC just makes a GrossModule.
8868           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8869           reload_cmds='$CC -r -o $output$reload_objs'
8870           hardcode_direct=no
8871         ;;
8872         motorola)
8873           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8875         ;;
8876       esac
8877       runpath_var='LD_RUN_PATH'
8878       hardcode_shlibpath_var=no
8879       ;;
8880
8881     sysv4.3*)
8882       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883       hardcode_shlibpath_var=no
8884       export_dynamic_flag_spec='-Bexport'
8885       ;;
8886
8887     sysv4*MP*)
8888       if test -d /usr/nec; then
8889         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890         hardcode_shlibpath_var=no
8891         runpath_var=LD_RUN_PATH
8892         hardcode_runpath_var=yes
8893         ld_shlibs=yes
8894       fi
8895       ;;
8896
8897     sysv4.2uw2*)
8898       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8899       hardcode_direct=yes
8900       hardcode_minus_L=no
8901       hardcode_shlibpath_var=no
8902       hardcode_runpath_var=yes
8903       runpath_var=LD_RUN_PATH
8904       ;;
8905
8906    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8907       no_undefined_flag='${wl}-z ${wl}text'
8908       if test "$GCC" = yes; then
8909         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8910       else
8911         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912       fi
8913       runpath_var='LD_RUN_PATH'
8914       hardcode_shlibpath_var=no
8915       ;;
8916
8917     sysv5*)
8918       no_undefined_flag=' -z text'
8919       # $CC -shared without GNU ld will not create a library from C++
8920       # object files and a static libstdc++, better avoid it by now
8921       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8923                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8924       hardcode_libdir_flag_spec=
8925       hardcode_shlibpath_var=no
8926       runpath_var='LD_RUN_PATH'
8927       ;;
8928
8929     uts4*)
8930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8931       hardcode_libdir_flag_spec='-L$libdir'
8932       hardcode_shlibpath_var=no
8933       ;;
8934
8935     *)
8936       ld_shlibs=no
8937       ;;
8938     esac
8939   fi
8940
8941 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8942 echo "${ECHO_T}$ld_shlibs" >&6
8943 test "$ld_shlibs" = no && can_build_shared=no
8944
8945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8946 if test "$GCC" = yes; then
8947   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8948 fi
8949
8950 #
8951 # Do we need to explicitly link libc?
8952 #
8953 case "x$archive_cmds_need_lc" in
8954 x|xyes)
8955   # Assume -lc should be added
8956   archive_cmds_need_lc=yes
8957
8958   if test "$enable_shared" = yes && test "$GCC" = yes; then
8959     case $archive_cmds in
8960     *'~'*)
8961       # FIXME: we may have to deal with multi-command sequences.
8962       ;;
8963     '$CC '*)
8964       # Test whether the compiler implicitly links with -lc since on some
8965       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8966       # to ld, don't add -lc before -lgcc.
8967       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8968 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8969       $rm conftest*
8970       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8971
8972       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8973   (eval $ac_compile) 2>&5
8974   ac_status=$?
8975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } 2>conftest.err; then
8977         soname=conftest
8978         lib=conftest
8979         libobjs=conftest.$ac_objext
8980         deplibs=
8981         wl=$lt_prog_compiler_wl
8982         compiler_flags=-v
8983         linker_flags=-v
8984         verstring=
8985         output_objdir=.
8986         libname=conftest
8987         lt_save_allow_undefined_flag=$allow_undefined_flag
8988         allow_undefined_flag=
8989         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8990   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8991   ac_status=$?
8992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993   (exit $ac_status); }
8994         then
8995           archive_cmds_need_lc=no
8996         else
8997           archive_cmds_need_lc=yes
8998         fi
8999         allow_undefined_flag=$lt_save_allow_undefined_flag
9000       else
9001         cat conftest.err 1>&5
9002       fi
9003       $rm conftest*
9004       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9005 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9006       ;;
9007     esac
9008   fi
9009   ;;
9010 esac
9011
9012 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9013 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9014 library_names_spec=
9015 libname_spec='lib$name'
9016 soname_spec=
9017 shrext_cmds=".so"
9018 postinstall_cmds=
9019 postuninstall_cmds=
9020 finish_cmds=
9021 finish_eval=
9022 shlibpath_var=
9023 shlibpath_overrides_runpath=unknown
9024 version_type=none
9025 dynamic_linker="$host_os ld.so"
9026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9027 if test "$GCC" = yes; then
9028   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9029   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9030     # if the path contains ";" then we assume it to be the separator
9031     # otherwise default to the standard path separator (i.e. ":") - it is
9032     # assumed that no part of a normal pathname contains ";" but that should
9033     # okay in the real world where ";" in dirpaths is itself problematic.
9034     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9035   else
9036     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9037   fi
9038 else
9039   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9040 fi
9041 need_lib_prefix=unknown
9042 hardcode_into_libs=no
9043
9044 # when you set need_version to no, make sure it does not cause -set_version
9045 # flags to be left without arguments
9046 need_version=unknown
9047
9048 case $host_os in
9049 aix3*)
9050   version_type=linux
9051   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9052   shlibpath_var=LIBPATH
9053
9054   # AIX 3 has no versioning support, so we append a major version to the name.
9055   soname_spec='${libname}${release}${shared_ext}$major'
9056   ;;
9057
9058 aix4* | aix5*)
9059   version_type=linux
9060   need_lib_prefix=no
9061   need_version=no
9062   hardcode_into_libs=yes
9063   if test "$host_cpu" = ia64; then
9064     # AIX 5 supports IA64
9065     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9066     shlibpath_var=LD_LIBRARY_PATH
9067   else
9068     # With GCC up to 2.95.x, collect2 would create an import file
9069     # for dependence libraries.  The import file would start with
9070     # the line `#! .'.  This would cause the generated library to
9071     # depend on `.', always an invalid library.  This was fixed in
9072     # development snapshots of GCC prior to 3.0.
9073     case $host_os in
9074       aix4 | aix4.[01] | aix4.[01].*)
9075       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9076            echo ' yes '
9077            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9078         :
9079       else
9080         can_build_shared=no
9081       fi
9082       ;;
9083     esac
9084     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9085     # soname into executable. Probably we can add versioning support to
9086     # collect2, so additional links can be useful in future.
9087     if test "$aix_use_runtimelinking" = yes; then
9088       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9089       # instead of lib<name>.a to let people know that these are not
9090       # typical AIX shared libraries.
9091       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092     else
9093       # We preserve .a as extension for shared libraries through AIX4.2
9094       # and later when we are not doing run time linking.
9095       library_names_spec='${libname}${release}.a $libname.a'
9096       soname_spec='${libname}${release}${shared_ext}$major'
9097     fi
9098     shlibpath_var=LIBPATH
9099   fi
9100   ;;
9101
9102 amigaos*)
9103   library_names_spec='$libname.ixlibrary $libname.a'
9104   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9105   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'
9106   ;;
9107
9108 beos*)
9109   library_names_spec='${libname}${shared_ext}'
9110   dynamic_linker="$host_os ld.so"
9111   shlibpath_var=LIBRARY_PATH
9112   ;;
9113
9114 bsdi[45]*)
9115   version_type=linux
9116   need_version=no
9117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118   soname_spec='${libname}${release}${shared_ext}$major'
9119   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9120   shlibpath_var=LD_LIBRARY_PATH
9121   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9122   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9123   # the default ld.so.conf also contains /usr/contrib/lib and
9124   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9125   # libtool to hard-code these into programs
9126   ;;
9127
9128 cygwin* | mingw* | pw32*)
9129   version_type=windows
9130   shrext_cmds=".dll"
9131   need_version=no
9132   need_lib_prefix=no
9133
9134   case $GCC,$host_os in
9135   yes,cygwin* | yes,mingw* | yes,pw32*)
9136     library_names_spec='$libname.dll.a'
9137     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9138     postinstall_cmds='base_file=`basename \${file}`~
9139       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9140       dldir=$destdir/`dirname \$dlpath`~
9141       test -d \$dldir || mkdir -p \$dldir~
9142       $install_prog $dir/$dlname \$dldir/$dlname'
9143     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9144       dlpath=$dir/\$dldll~
9145        $rm \$dlpath'
9146     shlibpath_overrides_runpath=yes
9147
9148     case $host_os in
9149     cygwin*)
9150       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9151       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9152       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9153       ;;
9154     mingw*)
9155       # MinGW DLLs use traditional 'lib' prefix
9156       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9157       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9158       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9159         # It is most probably a Windows format PATH printed by
9160         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9161         # path with ; separators, and with drive letters. We can handle the
9162         # drive letters (cygwin fileutils understands them), so leave them,
9163         # especially as we might pass files found there to a mingw objdump,
9164         # which wouldn't understand a cygwinified path. Ahh.
9165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9166       else
9167         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9168       fi
9169       ;;
9170     pw32*)
9171       # pw32 DLLs use 'pw' prefix rather than 'lib'
9172       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9173       ;;
9174     esac
9175     ;;
9176
9177   *)
9178     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9179     ;;
9180   esac
9181   dynamic_linker='Win32 ld.exe'
9182   # FIXME: first we should search . and the directory the executable is in
9183   shlibpath_var=PATH
9184   ;;
9185
9186 darwin* | rhapsody*)
9187   dynamic_linker="$host_os dyld"
9188   version_type=darwin
9189   need_lib_prefix=no
9190   need_version=no
9191   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9192   soname_spec='${libname}${release}${major}$shared_ext'
9193   shlibpath_overrides_runpath=yes
9194   shlibpath_var=DYLD_LIBRARY_PATH
9195   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9196   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9197   if test "$GCC" = yes; then
9198     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"`
9199   else
9200     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9201   fi
9202   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9203   ;;
9204
9205 dgux*)
9206   version_type=linux
9207   need_lib_prefix=no
9208   need_version=no
9209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9210   soname_spec='${libname}${release}${shared_ext}$major'
9211   shlibpath_var=LD_LIBRARY_PATH
9212   ;;
9213
9214 freebsd1*)
9215   dynamic_linker=no
9216   ;;
9217
9218 kfreebsd*-gnu)
9219   version_type=linux
9220   need_lib_prefix=no
9221   need_version=no
9222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9223   soname_spec='${libname}${release}${shared_ext}$major'
9224   shlibpath_var=LD_LIBRARY_PATH
9225   shlibpath_overrides_runpath=no
9226   hardcode_into_libs=yes
9227   dynamic_linker='GNU ld.so'
9228   ;;
9229
9230 freebsd* | dragonfly*)
9231   # DragonFly does not have aout.  When/if they implement a new
9232   # versioning mechanism, adjust this.
9233   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9234   version_type=freebsd-$objformat
9235   case $version_type in
9236     freebsd-elf*)
9237       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9238       need_version=no
9239       need_lib_prefix=no
9240       ;;
9241     freebsd-*)
9242       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9243       need_version=yes
9244       ;;
9245   esac
9246   shlibpath_var=LD_LIBRARY_PATH
9247   case $host_os in
9248   freebsd2*)
9249     shlibpath_overrides_runpath=yes
9250     ;;
9251   freebsd3.[01]* | freebsdelf3.[01]*)
9252     shlibpath_overrides_runpath=yes
9253     hardcode_into_libs=yes
9254     ;;
9255   *) # from 3.2 on
9256     shlibpath_overrides_runpath=no
9257     hardcode_into_libs=yes
9258     ;;
9259   esac
9260   ;;
9261
9262 gnu*)
9263   version_type=linux
9264   need_lib_prefix=no
9265   need_version=no
9266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9267   soname_spec='${libname}${release}${shared_ext}$major'
9268   shlibpath_var=LD_LIBRARY_PATH
9269   hardcode_into_libs=yes
9270   ;;
9271
9272 hpux9* | hpux10* | hpux11*)
9273   # Give a soname corresponding to the major version so that dld.sl refuses to
9274   # link against other versions.
9275   version_type=sunos
9276   need_lib_prefix=no
9277   need_version=no
9278   case "$host_cpu" in
9279   ia64*)
9280     shrext_cmds='.so'
9281     hardcode_into_libs=yes
9282     dynamic_linker="$host_os dld.so"
9283     shlibpath_var=LD_LIBRARY_PATH
9284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9286     soname_spec='${libname}${release}${shared_ext}$major'
9287     if test "X$HPUX_IA64_MODE" = X32; then
9288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9289     else
9290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9291     fi
9292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9293     ;;
9294    hppa*64*)
9295      shrext_cmds='.sl'
9296      hardcode_into_libs=yes
9297      dynamic_linker="$host_os dld.sl"
9298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9304      ;;
9305    *)
9306     shrext_cmds='.sl'
9307     dynamic_linker="$host_os dld.sl"
9308     shlibpath_var=SHLIB_PATH
9309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311     soname_spec='${libname}${release}${shared_ext}$major'
9312     ;;
9313   esac
9314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9315   postinstall_cmds='chmod 555 $lib'
9316   ;;
9317
9318 irix5* | irix6* | nonstopux*)
9319   case $host_os in
9320     nonstopux*) version_type=nonstopux ;;
9321     *)
9322         if test "$lt_cv_prog_gnu_ld" = yes; then
9323                 version_type=linux
9324         else
9325                 version_type=irix
9326         fi ;;
9327   esac
9328   need_lib_prefix=no
9329   need_version=no
9330   soname_spec='${libname}${release}${shared_ext}$major'
9331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9332   case $host_os in
9333   irix5* | nonstopux*)
9334     libsuff= shlibsuff=
9335     ;;
9336   *)
9337     case $LD in # libtool.m4 will add one of these switches to LD
9338     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9339       libsuff= shlibsuff= libmagic=32-bit;;
9340     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9341       libsuff=32 shlibsuff=N32 libmagic=N32;;
9342     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9343       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9344     *) libsuff= shlibsuff= libmagic=never-match;;
9345     esac
9346     ;;
9347   esac
9348   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9349   shlibpath_overrides_runpath=no
9350   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9351   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9352   hardcode_into_libs=yes
9353   ;;
9354
9355 # No shared lib support for Linux oldld, aout, or coff.
9356 linux*oldld* | linux*aout* | linux*coff*)
9357   dynamic_linker=no
9358   ;;
9359
9360 # This must be Linux ELF.
9361 linux*)
9362   version_type=linux
9363   need_lib_prefix=no
9364   need_version=no
9365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366   soname_spec='${libname}${release}${shared_ext}$major'
9367   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9368   shlibpath_var=LD_LIBRARY_PATH
9369   shlibpath_overrides_runpath=no
9370   # This implies no fast_install, which is unacceptable.
9371   # Some rework will be needed to allow for fast_install
9372   # before this can be enabled.
9373   hardcode_into_libs=yes
9374
9375   # Append ld.so.conf contents to the search path
9376   if test -f /etc/ld.so.conf; then
9377     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' ' '`
9378     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9379   fi
9380
9381   # We used to test for /lib/ld.so.1 and disable shared libraries on
9382   # powerpc, because MkLinux only supported shared libraries with the
9383   # GNU dynamic linker.  Since this was broken with cross compilers,
9384   # most powerpc-linux boxes support dynamic linking these days and
9385   # people can always --disable-shared, the test was removed, and we
9386   # assume the GNU/Linux dynamic linker is in use.
9387   dynamic_linker='GNU/Linux ld.so'
9388   ;;
9389
9390 knetbsd*-gnu)
9391   version_type=linux
9392   need_lib_prefix=no
9393   need_version=no
9394   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9395   soname_spec='${libname}${release}${shared_ext}$major'
9396   shlibpath_var=LD_LIBRARY_PATH
9397   shlibpath_overrides_runpath=no
9398   hardcode_into_libs=yes
9399   dynamic_linker='GNU ld.so'
9400   ;;
9401
9402 netbsd*)
9403   version_type=sunos
9404   need_lib_prefix=no
9405   need_version=no
9406   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9407     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9408     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9409     dynamic_linker='NetBSD (a.out) ld.so'
9410   else
9411     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9412     soname_spec='${libname}${release}${shared_ext}$major'
9413     dynamic_linker='NetBSD ld.elf_so'
9414   fi
9415   shlibpath_var=LD_LIBRARY_PATH
9416   shlibpath_overrides_runpath=yes
9417   hardcode_into_libs=yes
9418   ;;
9419
9420 newsos6)
9421   version_type=linux
9422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9423   shlibpath_var=LD_LIBRARY_PATH
9424   shlibpath_overrides_runpath=yes
9425   ;;
9426
9427 nto-qnx*)
9428   version_type=linux
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   shlibpath_overrides_runpath=yes
9435   ;;
9436
9437 openbsd*)
9438   version_type=sunos
9439   need_lib_prefix=no
9440   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9441   case $host_os in
9442     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9443     *)                         need_version=no  ;;
9444   esac
9445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9447   shlibpath_var=LD_LIBRARY_PATH
9448   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9449     case $host_os in
9450       openbsd2.[89] | openbsd2.[89].*)
9451         shlibpath_overrides_runpath=no
9452         ;;
9453       *)
9454         shlibpath_overrides_runpath=yes
9455         ;;
9456       esac
9457   else
9458     shlibpath_overrides_runpath=yes
9459   fi
9460   ;;
9461
9462 os2*)
9463   libname_spec='$name'
9464   shrext_cmds=".dll"
9465   need_lib_prefix=no
9466   library_names_spec='$libname${shared_ext} $libname.a'
9467   dynamic_linker='OS/2 ld.exe'
9468   shlibpath_var=LIBPATH
9469   ;;
9470
9471 osf3* | osf4* | osf5*)
9472   version_type=osf
9473   need_lib_prefix=no
9474   need_version=no
9475   soname_spec='${libname}${release}${shared_ext}$major'
9476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477   shlibpath_var=LD_LIBRARY_PATH
9478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9480   ;;
9481
9482 sco3.2v5*)
9483   version_type=osf
9484   soname_spec='${libname}${release}${shared_ext}$major'
9485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   ;;
9488
9489 solaris*)
9490   version_type=linux
9491   need_lib_prefix=no
9492   need_version=no
9493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494   soname_spec='${libname}${release}${shared_ext}$major'
9495   shlibpath_var=LD_LIBRARY_PATH
9496   shlibpath_overrides_runpath=yes
9497   hardcode_into_libs=yes
9498   # ldd complains unless libraries are executable
9499   postinstall_cmds='chmod +x $lib'
9500   ;;
9501
9502 sunos4*)
9503   version_type=sunos
9504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9506   shlibpath_var=LD_LIBRARY_PATH
9507   shlibpath_overrides_runpath=yes
9508   if test "$with_gnu_ld" = yes; then
9509     need_lib_prefix=no
9510   fi
9511   need_version=yes
9512   ;;
9513
9514 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9515   version_type=linux
9516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9517   soname_spec='${libname}${release}${shared_ext}$major'
9518   shlibpath_var=LD_LIBRARY_PATH
9519   case $host_vendor in
9520     sni)
9521       shlibpath_overrides_runpath=no
9522       need_lib_prefix=no
9523       export_dynamic_flag_spec='${wl}-Blargedynsym'
9524       runpath_var=LD_RUN_PATH
9525       ;;
9526     siemens)
9527       need_lib_prefix=no
9528       ;;
9529     motorola)
9530       need_lib_prefix=no
9531       need_version=no
9532       shlibpath_overrides_runpath=no
9533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9534       ;;
9535   esac
9536   ;;
9537
9538 sysv4*MP*)
9539   if test -d /usr/nec ;then
9540     version_type=linux
9541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9542     soname_spec='$libname${shared_ext}.$major'
9543     shlibpath_var=LD_LIBRARY_PATH
9544   fi
9545   ;;
9546
9547 uts4*)
9548   version_type=linux
9549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9550   soname_spec='${libname}${release}${shared_ext}$major'
9551   shlibpath_var=LD_LIBRARY_PATH
9552   ;;
9553
9554 *)
9555   dynamic_linker=no
9556   ;;
9557 esac
9558 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9559 echo "${ECHO_T}$dynamic_linker" >&6
9560 test "$dynamic_linker" = no && can_build_shared=no
9561
9562 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9564 hardcode_action=
9565 if test -n "$hardcode_libdir_flag_spec" || \
9566    test -n "$runpath_var" || \
9567    test "X$hardcode_automatic" = "Xyes" ; then
9568
9569   # We can hardcode non-existant directories.
9570   if test "$hardcode_direct" != no &&
9571      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9572      # have to relink, otherwise we might link with an installed library
9573      # when we should be linking with a yet-to-be-installed one
9574      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9575      test "$hardcode_minus_L" != no; then
9576     # Linking always hardcodes the temporary library directory.
9577     hardcode_action=relink
9578   else
9579     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9580     hardcode_action=immediate
9581   fi
9582 else
9583   # We cannot hardcode anything, or else we can only hardcode existing
9584   # directories.
9585   hardcode_action=unsupported
9586 fi
9587 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9588 echo "${ECHO_T}$hardcode_action" >&6
9589
9590 if test "$hardcode_action" = relink; then
9591   # Fast installation is not supported
9592   enable_fast_install=no
9593 elif test "$shlibpath_overrides_runpath" = yes ||
9594      test "$enable_shared" = no; then
9595   # Fast installation is not necessary
9596   enable_fast_install=needless
9597 fi
9598
9599 striplib=
9600 old_striplib=
9601 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9604   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9605   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9606   echo "$as_me:$LINENO: result: yes" >&5
9607 echo "${ECHO_T}yes" >&6
9608 else
9609 # FIXME - insert some real tests, host_os isn't really good enough
9610   case $host_os in
9611    darwin*)
9612        if test -n "$STRIP" ; then
9613          striplib="$STRIP -x"
9614          echo "$as_me:$LINENO: result: yes" >&5
9615 echo "${ECHO_T}yes" >&6
9616        else
9617   echo "$as_me:$LINENO: result: no" >&5
9618 echo "${ECHO_T}no" >&6
9619 fi
9620        ;;
9621    *)
9622   echo "$as_me:$LINENO: result: no" >&5
9623 echo "${ECHO_T}no" >&6
9624     ;;
9625   esac
9626 fi
9627
9628 if test "x$enable_dlopen" != xyes; then
9629   enable_dlopen=unknown
9630   enable_dlopen_self=unknown
9631   enable_dlopen_self_static=unknown
9632 else
9633   lt_cv_dlopen=no
9634   lt_cv_dlopen_libs=
9635
9636   case $host_os in
9637   beos*)
9638     lt_cv_dlopen="load_add_on"
9639     lt_cv_dlopen_libs=
9640     lt_cv_dlopen_self=yes
9641     ;;
9642
9643   mingw* | pw32*)
9644     lt_cv_dlopen="LoadLibrary"
9645     lt_cv_dlopen_libs=
9646    ;;
9647
9648   cygwin*)
9649     lt_cv_dlopen="dlopen"
9650     lt_cv_dlopen_libs=
9651    ;;
9652
9653   darwin*)
9654   # if libdl is installed we need to link against it
9655     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658   echo $ECHO_N "(cached) $ECHO_C" >&6
9659 else
9660   ac_check_lib_save_LIBS=$LIBS
9661 LIBS="-ldl  $LIBS"
9662 cat >conftest.$ac_ext <<_ACEOF
9663 /* confdefs.h.  */
9664 _ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h.  */
9668
9669 /* Override any gcc2 internal prototype to avoid an error.  */
9670 #ifdef __cplusplus
9671 extern "C"
9672 #endif
9673 /* We use char because int might match the return type of a gcc2
9674    builtin and then its argument prototype would still apply.  */
9675 char dlopen ();
9676 int
9677 main ()
9678 {
9679 dlopen ();
9680   ;
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest.$ac_objext conftest$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686   (eval $ac_link) 2>conftest.er1
9687   ac_status=$?
9688   grep -v '^ *+' conftest.er1 >conftest.err
9689   rm -f conftest.er1
9690   cat conftest.err >&5
9691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692   (exit $ac_status); } &&
9693          { ac_try='test -z "$ac_c_werror_flag"
9694                          || test ! -s conftest.err'
9695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696   (eval $ac_try) 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); }; } &&
9700          { ac_try='test -s conftest$ac_exeext'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; }; then
9706   ac_cv_lib_dl_dlopen=yes
9707 else
9708   echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lib_dl_dlopen=no
9712 fi
9713 rm -f conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext conftest.$ac_ext
9715 LIBS=$ac_check_lib_save_LIBS
9716 fi
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9718 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9719 if test $ac_cv_lib_dl_dlopen = yes; then
9720   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9721 else
9722
9723     lt_cv_dlopen="dyld"
9724     lt_cv_dlopen_libs=
9725     lt_cv_dlopen_self=yes
9726
9727 fi
9728
9729    ;;
9730
9731   *)
9732     echo "$as_me:$LINENO: checking for shl_load" >&5
9733 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9734 if test "${ac_cv_func_shl_load+set}" = set; then
9735   echo $ECHO_N "(cached) $ECHO_C" >&6
9736 else
9737   cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9745 #define shl_load innocuous_shl_load
9746
9747 /* System header to define __stub macros and hopefully few prototypes,
9748     which can conflict with char shl_load (); below.
9749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9750     <limits.h> exists even on freestanding compilers.  */
9751
9752 #ifdef __STDC__
9753 # include <limits.h>
9754 #else
9755 # include <assert.h>
9756 #endif
9757
9758 #undef shl_load
9759
9760 /* Override any gcc2 internal prototype to avoid an error.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 {
9764 #endif
9765 /* We use char because int might match the return type of a gcc2
9766    builtin and then its argument prototype would still apply.  */
9767 char shl_load ();
9768 /* The GNU C library defines this for functions which it implements
9769     to always fail with ENOSYS.  Some functions are actually named
9770     something starting with __ and the normal name is an alias.  */
9771 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9772 choke me
9773 #else
9774 char (*f) () = shl_load;
9775 #endif
9776 #ifdef __cplusplus
9777 }
9778 #endif
9779
9780 int
9781 main ()
9782 {
9783 return f != shl_load;
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790   (eval $ac_link) 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -z "$ac_c_werror_flag"
9798                          || test ! -s conftest.err'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_cv_func_shl_load=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 ac_cv_func_shl_load=no
9816 fi
9817 rm -f conftest.err conftest.$ac_objext \
9818       conftest$ac_exeext conftest.$ac_ext
9819 fi
9820 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9821 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9822 if test $ac_cv_func_shl_load = yes; then
9823   lt_cv_dlopen="shl_load"
9824 else
9825   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9826 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9827 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9828   echo $ECHO_N "(cached) $ECHO_C" >&6
9829 else
9830   ac_check_lib_save_LIBS=$LIBS
9831 LIBS="-ldld  $LIBS"
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
9839 /* Override any gcc2 internal prototype to avoid an error.  */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 /* We use char because int might match the return type of a gcc2
9844    builtin and then its argument prototype would still apply.  */
9845 char shl_load ();
9846 int
9847 main ()
9848 {
9849 shl_load ();
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext conftest$ac_exeext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9856   (eval $ac_link) 2>conftest.er1
9857   ac_status=$?
9858   grep -v '^ *+' conftest.er1 >conftest.err
9859   rm -f conftest.er1
9860   cat conftest.err >&5
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -z "$ac_c_werror_flag"
9864                          || test ! -s conftest.err'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; } &&
9870          { ac_try='test -s conftest$ac_exeext'
9871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872   (eval $ac_try) 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_cv_lib_dld_shl_load=yes
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881 ac_cv_lib_dld_shl_load=no
9882 fi
9883 rm -f conftest.err conftest.$ac_objext \
9884       conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9886 fi
9887 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9888 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9889 if test $ac_cv_lib_dld_shl_load = yes; then
9890   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9891 else
9892   echo "$as_me:$LINENO: checking for dlopen" >&5
9893 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9894 if test "${ac_cv_func_dlopen+set}" = set; then
9895   echo $ECHO_N "(cached) $ECHO_C" >&6
9896 else
9897   cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h.  */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h.  */
9903 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9905 #define dlopen innocuous_dlopen
9906
9907 /* System header to define __stub macros and hopefully few prototypes,
9908     which can conflict with char dlopen (); below.
9909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910     <limits.h> exists even on freestanding compilers.  */
9911
9912 #ifdef __STDC__
9913 # include <limits.h>
9914 #else
9915 # include <assert.h>
9916 #endif
9917
9918 #undef dlopen
9919
9920 /* Override any gcc2 internal prototype to avoid an error.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 {
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926    builtin and then its argument prototype would still apply.  */
9927 char dlopen ();
9928 /* The GNU C library defines this for functions which it implements
9929     to always fail with ENOSYS.  Some functions are actually named
9930     something starting with __ and the normal name is an alias.  */
9931 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9932 choke me
9933 #else
9934 char (*f) () = dlopen;
9935 #endif
9936 #ifdef __cplusplus
9937 }
9938 #endif
9939
9940 int
9941 main ()
9942 {
9943 return f != dlopen;
9944   ;
9945   return 0;
9946 }
9947 _ACEOF
9948 rm -f conftest.$ac_objext conftest$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950   (eval $ac_link) 2>conftest.er1
9951   ac_status=$?
9952   grep -v '^ *+' conftest.er1 >conftest.err
9953   rm -f conftest.er1
9954   cat conftest.err >&5
9955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956   (exit $ac_status); } &&
9957          { ac_try='test -z "$ac_c_werror_flag"
9958                          || test ! -s conftest.err'
9959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9960   (eval $ac_try) 2>&5
9961   ac_status=$?
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   (exit $ac_status); }; } &&
9964          { ac_try='test -s conftest$ac_exeext'
9965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966   (eval $ac_try) 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; }; then
9970   ac_cv_func_dlopen=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975 ac_cv_func_dlopen=no
9976 fi
9977 rm -f conftest.err conftest.$ac_objext \
9978       conftest$ac_exeext conftest.$ac_ext
9979 fi
9980 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9981 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9982 if test $ac_cv_func_dlopen = yes; then
9983   lt_cv_dlopen="dlopen"
9984 else
9985   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9986 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9987 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9988   echo $ECHO_N "(cached) $ECHO_C" >&6
9989 else
9990   ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-ldl  $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h.  */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h.  */
9998
9999 /* Override any gcc2 internal prototype to avoid an error.  */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004    builtin and then its argument prototype would still apply.  */
10005 char dlopen ();
10006 int
10007 main ()
10008 {
10009 dlopen ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016   (eval $ac_link) 2>conftest.er1
10017   ac_status=$?
10018   grep -v '^ *+' conftest.er1 >conftest.err
10019   rm -f conftest.er1
10020   cat conftest.err >&5
10021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022   (exit $ac_status); } &&
10023          { ac_try='test -z "$ac_c_werror_flag"
10024                          || test ! -s conftest.err'
10025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026   (eval $ac_try) 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032   (eval $ac_try) 2>&5
10033   ac_status=$?
10034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035   (exit $ac_status); }; }; then
10036   ac_cv_lib_dl_dlopen=yes
10037 else
10038   echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_cv_lib_dl_dlopen=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext \
10044       conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10046 fi
10047 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10048 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10049 if test $ac_cv_lib_dl_dlopen = yes; then
10050   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10051 else
10052   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10053 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10054 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10055   echo $ECHO_N "(cached) $ECHO_C" >&6
10056 else
10057   ac_check_lib_save_LIBS=$LIBS
10058 LIBS="-lsvld  $LIBS"
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h.  */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h.  */
10065
10066 /* Override any gcc2 internal prototype to avoid an error.  */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 /* We use char because int might match the return type of a gcc2
10071    builtin and then its argument prototype would still apply.  */
10072 char dlopen ();
10073 int
10074 main ()
10075 {
10076 dlopen ();
10077   ;
10078   return 0;
10079 }
10080 _ACEOF
10081 rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10083   (eval $ac_link) 2>conftest.er1
10084   ac_status=$?
10085   grep -v '^ *+' conftest.er1 >conftest.err
10086   rm -f conftest.er1
10087   cat conftest.err >&5
10088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10089   (exit $ac_status); } &&
10090          { ac_try='test -z "$ac_c_werror_flag"
10091                          || test ! -s conftest.err'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; } &&
10097          { ac_try='test -s conftest$ac_exeext'
10098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099   (eval $ac_try) 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   ac_cv_lib_svld_dlopen=yes
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108 ac_cv_lib_svld_dlopen=no
10109 fi
10110 rm -f conftest.err conftest.$ac_objext \
10111       conftest$ac_exeext conftest.$ac_ext
10112 LIBS=$ac_check_lib_save_LIBS
10113 fi
10114 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10115 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10116 if test $ac_cv_lib_svld_dlopen = yes; then
10117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10118 else
10119   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10120 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10121 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_check_lib_save_LIBS=$LIBS
10125 LIBS="-ldld  $LIBS"
10126 cat >conftest.$ac_ext <<_ACEOF
10127 /* confdefs.h.  */
10128 _ACEOF
10129 cat confdefs.h >>conftest.$ac_ext
10130 cat >>conftest.$ac_ext <<_ACEOF
10131 /* end confdefs.h.  */
10132
10133 /* Override any gcc2 internal prototype to avoid an error.  */
10134 #ifdef __cplusplus
10135 extern "C"
10136 #endif
10137 /* We use char because int might match the return type of a gcc2
10138    builtin and then its argument prototype would still apply.  */
10139 char dld_link ();
10140 int
10141 main ()
10142 {
10143 dld_link ();
10144   ;
10145   return 0;
10146 }
10147 _ACEOF
10148 rm -f conftest.$ac_objext conftest$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150   (eval $ac_link) 2>conftest.er1
10151   ac_status=$?
10152   grep -v '^ *+' conftest.er1 >conftest.err
10153   rm -f conftest.er1
10154   cat conftest.err >&5
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); } &&
10157          { ac_try='test -z "$ac_c_werror_flag"
10158                          || test ! -s conftest.err'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; } &&
10164          { ac_try='test -s conftest$ac_exeext'
10165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166   (eval $ac_try) 2>&5
10167   ac_status=$?
10168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169   (exit $ac_status); }; }; then
10170   ac_cv_lib_dld_dld_link=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 ac_cv_lib_dld_dld_link=no
10176 fi
10177 rm -f conftest.err conftest.$ac_objext \
10178       conftest$ac_exeext conftest.$ac_ext
10179 LIBS=$ac_check_lib_save_LIBS
10180 fi
10181 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10182 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10183 if test $ac_cv_lib_dld_dld_link = yes; then
10184   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10185 fi
10186
10187
10188 fi
10189
10190
10191 fi
10192
10193
10194 fi
10195
10196
10197 fi
10198
10199
10200 fi
10201
10202     ;;
10203   esac
10204
10205   if test "x$lt_cv_dlopen" != xno; then
10206     enable_dlopen=yes
10207   else
10208     enable_dlopen=no
10209   fi
10210
10211   case $lt_cv_dlopen in
10212   dlopen)
10213     save_CPPFLAGS="$CPPFLAGS"
10214     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10215
10216     save_LDFLAGS="$LDFLAGS"
10217     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10218
10219     save_LIBS="$LIBS"
10220     LIBS="$lt_cv_dlopen_libs $LIBS"
10221
10222     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10223 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10224 if test "${lt_cv_dlopen_self+set}" = set; then
10225   echo $ECHO_N "(cached) $ECHO_C" >&6
10226 else
10227           if test "$cross_compiling" = yes; then :
10228   lt_cv_dlopen_self=cross
10229 else
10230   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10231   lt_status=$lt_dlunknown
10232   cat > conftest.$ac_ext <<EOF
10233 #line 10233 "configure"
10234 #include "confdefs.h"
10235
10236 #if HAVE_DLFCN_H
10237 #include <dlfcn.h>
10238 #endif
10239
10240 #include <stdio.h>
10241
10242 #ifdef RTLD_GLOBAL
10243 #  define LT_DLGLOBAL           RTLD_GLOBAL
10244 #else
10245 #  ifdef DL_GLOBAL
10246 #    define LT_DLGLOBAL         DL_GLOBAL
10247 #  else
10248 #    define LT_DLGLOBAL         0
10249 #  endif
10250 #endif
10251
10252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253    find out it does not work in some platform. */
10254 #ifndef LT_DLLAZY_OR_NOW
10255 #  ifdef RTLD_LAZY
10256 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10257 #  else
10258 #    ifdef DL_LAZY
10259 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10260 #    else
10261 #      ifdef RTLD_NOW
10262 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10263 #      else
10264 #        ifdef DL_NOW
10265 #          define LT_DLLAZY_OR_NOW      DL_NOW
10266 #        else
10267 #          define LT_DLLAZY_OR_NOW      0
10268 #        endif
10269 #      endif
10270 #    endif
10271 #  endif
10272 #endif
10273
10274 #ifdef __cplusplus
10275 extern "C" void exit (int);
10276 #endif
10277
10278 void fnord() { int i=42;}
10279 int main ()
10280 {
10281   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10282   int status = $lt_dlunknown;
10283
10284   if (self)
10285     {
10286       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10287       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10288       /* dlclose (self); */
10289     }
10290
10291     exit (status);
10292 }
10293 EOF
10294   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295   (eval $ac_link) 2>&5
10296   ac_status=$?
10297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10299     (./conftest; exit; ) 2>/dev/null
10300     lt_status=$?
10301     case x$lt_status in
10302       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10303       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10304       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10305     esac
10306   else :
10307     # compilation failed
10308     lt_cv_dlopen_self=no
10309   fi
10310 fi
10311 rm -fr conftest*
10312
10313
10314 fi
10315 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10316 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10317
10318     if test "x$lt_cv_dlopen_self" = xyes; then
10319       LDFLAGS="$LDFLAGS $link_static_flag"
10320       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10321 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10322 if test "${lt_cv_dlopen_self_static+set}" = set; then
10323   echo $ECHO_N "(cached) $ECHO_C" >&6
10324 else
10325           if test "$cross_compiling" = yes; then :
10326   lt_cv_dlopen_self_static=cross
10327 else
10328   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10329   lt_status=$lt_dlunknown
10330   cat > conftest.$ac_ext <<EOF
10331 #line 10331 "configure"
10332 #include "confdefs.h"
10333
10334 #if HAVE_DLFCN_H
10335 #include <dlfcn.h>
10336 #endif
10337
10338 #include <stdio.h>
10339
10340 #ifdef RTLD_GLOBAL
10341 #  define LT_DLGLOBAL           RTLD_GLOBAL
10342 #else
10343 #  ifdef DL_GLOBAL
10344 #    define LT_DLGLOBAL         DL_GLOBAL
10345 #  else
10346 #    define LT_DLGLOBAL         0
10347 #  endif
10348 #endif
10349
10350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10351    find out it does not work in some platform. */
10352 #ifndef LT_DLLAZY_OR_NOW
10353 #  ifdef RTLD_LAZY
10354 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10355 #  else
10356 #    ifdef DL_LAZY
10357 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10358 #    else
10359 #      ifdef RTLD_NOW
10360 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10361 #      else
10362 #        ifdef DL_NOW
10363 #          define LT_DLLAZY_OR_NOW      DL_NOW
10364 #        else
10365 #          define LT_DLLAZY_OR_NOW      0
10366 #        endif
10367 #      endif
10368 #    endif
10369 #  endif
10370 #endif
10371
10372 #ifdef __cplusplus
10373 extern "C" void exit (int);
10374 #endif
10375
10376 void fnord() { int i=42;}
10377 int main ()
10378 {
10379   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10380   int status = $lt_dlunknown;
10381
10382   if (self)
10383     {
10384       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10385       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10386       /* dlclose (self); */
10387     }
10388
10389     exit (status);
10390 }
10391 EOF
10392   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10393   (eval $ac_link) 2>&5
10394   ac_status=$?
10395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10397     (./conftest; exit; ) 2>/dev/null
10398     lt_status=$?
10399     case x$lt_status in
10400       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10401       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10402       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10403     esac
10404   else :
10405     # compilation failed
10406     lt_cv_dlopen_self_static=no
10407   fi
10408 fi
10409 rm -fr conftest*
10410
10411
10412 fi
10413 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10414 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10415     fi
10416
10417     CPPFLAGS="$save_CPPFLAGS"
10418     LDFLAGS="$save_LDFLAGS"
10419     LIBS="$save_LIBS"
10420     ;;
10421   esac
10422
10423   case $lt_cv_dlopen_self in
10424   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10425   *) enable_dlopen_self=unknown ;;
10426   esac
10427
10428   case $lt_cv_dlopen_self_static in
10429   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10430   *) enable_dlopen_self_static=unknown ;;
10431   esac
10432 fi
10433
10434
10435 # Report which librarie types wil actually be built
10436 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10437 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10438 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10439 echo "${ECHO_T}$can_build_shared" >&6
10440
10441 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10442 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10443 test "$can_build_shared" = "no" && enable_shared=no
10444
10445 # On AIX, shared libraries and static libraries use the same namespace, and
10446 # are all built from PIC.
10447 case "$host_os" in
10448 aix3*)
10449   test "$enable_shared" = yes && enable_static=no
10450   if test -n "$RANLIB"; then
10451     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10452     postinstall_cmds='$RANLIB $lib'
10453   fi
10454   ;;
10455
10456 aix4* | aix5*)
10457   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10458     test "$enable_shared" = yes && enable_static=no
10459   fi
10460     ;;
10461 esac
10462 echo "$as_me:$LINENO: result: $enable_shared" >&5
10463 echo "${ECHO_T}$enable_shared" >&6
10464
10465 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10466 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10467 # Make sure either enable_shared or enable_static is yes.
10468 test "$enable_shared" = yes || enable_static=yes
10469 echo "$as_me:$LINENO: result: $enable_static" >&5
10470 echo "${ECHO_T}$enable_static" >&6
10471
10472 # The else clause should only fire when bootstrapping the
10473 # libtool distribution, otherwise you forgot to ship ltmain.sh
10474 # with your package, and you will get complaints that there are
10475 # no rules to generate ltmain.sh.
10476 if test -f "$ltmain"; then
10477   # See if we are running on zsh, and set the options which allow our commands through
10478   # without removal of \ escapes.
10479   if test -n "${ZSH_VERSION+set}" ; then
10480     setopt NO_GLOB_SUBST
10481   fi
10482   # Now quote all the things that may contain metacharacters while being
10483   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10484   # variables and quote the copies for generation of the libtool script.
10485   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10486     SED SHELL STRIP \
10487     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10488     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10489     deplibs_check_method reload_flag reload_cmds need_locks \
10490     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10491     lt_cv_sys_global_symbol_to_c_name_address \
10492     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10493     old_postinstall_cmds old_postuninstall_cmds \
10494     compiler \
10495     CC \
10496     LD \
10497     lt_prog_compiler_wl \
10498     lt_prog_compiler_pic \
10499     lt_prog_compiler_static \
10500     lt_prog_compiler_no_builtin_flag \
10501     export_dynamic_flag_spec \
10502     thread_safe_flag_spec \
10503     whole_archive_flag_spec \
10504     enable_shared_with_static_runtimes \
10505     old_archive_cmds \
10506     old_archive_from_new_cmds \
10507     predep_objects \
10508     postdep_objects \
10509     predeps \
10510     postdeps \
10511     compiler_lib_search_path \
10512     archive_cmds \
10513     archive_expsym_cmds \
10514     postinstall_cmds \
10515     postuninstall_cmds \
10516     old_archive_from_expsyms_cmds \
10517     allow_undefined_flag \
10518     no_undefined_flag \
10519     export_symbols_cmds \
10520     hardcode_libdir_flag_spec \
10521     hardcode_libdir_flag_spec_ld \
10522     hardcode_libdir_separator \
10523     hardcode_automatic \
10524     module_cmds \
10525     module_expsym_cmds \
10526     lt_cv_prog_compiler_c_o \
10527     exclude_expsyms \
10528     include_expsyms; do
10529
10530     case $var in
10531     old_archive_cmds | \
10532     old_archive_from_new_cmds | \
10533     archive_cmds | \
10534     archive_expsym_cmds | \
10535     module_cmds | \
10536     module_expsym_cmds | \
10537     old_archive_from_expsyms_cmds | \
10538     export_symbols_cmds | \
10539     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10540     postinstall_cmds | postuninstall_cmds | \
10541     old_postinstall_cmds | old_postuninstall_cmds | \
10542     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10543       # Double-quote double-evaled strings.
10544       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10545       ;;
10546     *)
10547       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10548       ;;
10549     esac
10550   done
10551
10552   case $lt_echo in
10553   *'\$0 --fallback-echo"')
10554     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10555     ;;
10556   esac
10557
10558 cfgfile="${ofile}T"
10559   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10560   $rm -f "$cfgfile"
10561   { echo "$as_me:$LINENO: creating $ofile" >&5
10562 echo "$as_me: creating $ofile" >&6;}
10563
10564   cat <<__EOF__ >> "$cfgfile"
10565 #! $SHELL
10566
10567 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10568 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10569 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10570 #
10571 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10572 # Free Software Foundation, Inc.
10573 #
10574 # This file is part of GNU Libtool:
10575 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10576 #
10577 # This program is free software; you can redistribute it and/or modify
10578 # it under the terms of the GNU General Public License as published by
10579 # the Free Software Foundation; either version 2 of the License, or
10580 # (at your option) any later version.
10581 #
10582 # This program is distributed in the hope that it will be useful, but
10583 # WITHOUT ANY WARRANTY; without even the implied warranty of
10584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10585 # General Public License for more details.
10586 #
10587 # You should have received a copy of the GNU General Public License
10588 # along with this program; if not, write to the Free Software
10589 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10590 #
10591 # As a special exception to the GNU General Public License, if you
10592 # distribute this file as part of a program that contains a
10593 # configuration script generated by Autoconf, you may include it under
10594 # the same distribution terms that you use for the rest of that program.
10595
10596 # A sed program that does not truncate output.
10597 SED=$lt_SED
10598
10599 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10600 Xsed="$SED -e 1s/^X//"
10601
10602 # The HP-UX ksh and POSIX shell print the target directory to stdout
10603 # if CDPATH is set.
10604 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10605
10606 # The names of the tagged configurations supported by this script.
10607 available_tags=
10608
10609 # ### BEGIN LIBTOOL CONFIG
10610
10611 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10612
10613 # Shell to use when invoking shell scripts.
10614 SHELL=$lt_SHELL
10615
10616 # Whether or not to build shared libraries.
10617 build_libtool_libs=$enable_shared
10618
10619 # Whether or not to build static libraries.
10620 build_old_libs=$enable_static
10621
10622 # Whether or not to add -lc for building shared libraries.
10623 build_libtool_need_lc=$archive_cmds_need_lc
10624
10625 # Whether or not to disallow shared libs when runtime libs are static
10626 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10627
10628 # Whether or not to optimize for fast installation.
10629 fast_install=$enable_fast_install
10630
10631 # The host system.
10632 host_alias=$host_alias
10633 host=$host
10634 host_os=$host_os
10635
10636 # The build system.
10637 build_alias=$build_alias
10638 build=$build
10639 build_os=$build_os
10640
10641 # An echo program that does not interpret backslashes.
10642 echo=$lt_echo
10643
10644 # The archiver.
10645 AR=$lt_AR
10646 AR_FLAGS=$lt_AR_FLAGS
10647
10648 # A C compiler.
10649 LTCC=$lt_LTCC
10650
10651 # A language-specific compiler.
10652 CC=$lt_compiler
10653
10654 # Is the compiler the GNU C compiler?
10655 with_gcc=$GCC
10656
10657 # An ERE matcher.
10658 EGREP=$lt_EGREP
10659
10660 # The linker used to build libraries.
10661 LD=$lt_LD
10662
10663 # Whether we need hard or soft links.
10664 LN_S=$lt_LN_S
10665
10666 # A BSD-compatible nm program.
10667 NM=$lt_NM
10668
10669 # A symbol stripping program
10670 STRIP=$lt_STRIP
10671
10672 # Used to examine libraries when file_magic_cmd begins "file"
10673 MAGIC_CMD=$MAGIC_CMD
10674
10675 # Used on cygwin: DLL creation program.
10676 DLLTOOL="$DLLTOOL"
10677
10678 # Used on cygwin: object dumper.
10679 OBJDUMP="$OBJDUMP"
10680
10681 # Used on cygwin: assembler.
10682 AS="$AS"
10683
10684 # The name of the directory that contains temporary libtool files.
10685 objdir=$objdir
10686
10687 # How to create reloadable object files.
10688 reload_flag=$lt_reload_flag
10689 reload_cmds=$lt_reload_cmds
10690
10691 # How to pass a linker flag through the compiler.
10692 wl=$lt_lt_prog_compiler_wl
10693
10694 # Object file suffix (normally "o").
10695 objext="$ac_objext"
10696
10697 # Old archive suffix (normally "a").
10698 libext="$libext"
10699
10700 # Shared library suffix (normally ".so").
10701 shrext_cmds='$shrext_cmds'
10702
10703 # Executable file suffix (normally "").
10704 exeext="$exeext"
10705
10706 # Additional compiler flags for building library objects.
10707 pic_flag=$lt_lt_prog_compiler_pic
10708 pic_mode=$pic_mode
10709
10710 # What is the maximum length of a command?
10711 max_cmd_len=$lt_cv_sys_max_cmd_len
10712
10713 # Does compiler simultaneously support -c and -o options?
10714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10715
10716 # Must we lock files when doing compilation?
10717 need_locks=$lt_need_locks
10718
10719 # Do we need the lib prefix for modules?
10720 need_lib_prefix=$need_lib_prefix
10721
10722 # Do we need a version for libraries?
10723 need_version=$need_version
10724
10725 # Whether dlopen is supported.
10726 dlopen_support=$enable_dlopen
10727
10728 # Whether dlopen of programs is supported.
10729 dlopen_self=$enable_dlopen_self
10730
10731 # Whether dlopen of statically linked programs is supported.
10732 dlopen_self_static=$enable_dlopen_self_static
10733
10734 # Compiler flag to prevent dynamic linking.
10735 link_static_flag=$lt_lt_prog_compiler_static
10736
10737 # Compiler flag to turn off builtin functions.
10738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10739
10740 # Compiler flag to allow reflexive dlopens.
10741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10742
10743 # Compiler flag to generate shared objects directly from archives.
10744 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10745
10746 # Compiler flag to generate thread-safe objects.
10747 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10748
10749 # Library versioning type.
10750 version_type=$version_type
10751
10752 # Format of library name prefix.
10753 libname_spec=$lt_libname_spec
10754
10755 # List of archive names.  First name is the real one, the rest are links.
10756 # The last name is the one that the linker finds with -lNAME.
10757 library_names_spec=$lt_library_names_spec
10758
10759 # The coded name of the library, if different from the real name.
10760 soname_spec=$lt_soname_spec
10761
10762 # Commands used to build and install an old-style archive.
10763 RANLIB=$lt_RANLIB
10764 old_archive_cmds=$lt_old_archive_cmds
10765 old_postinstall_cmds=$lt_old_postinstall_cmds
10766 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10767
10768 # Create an old-style archive from a shared archive.
10769 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10770
10771 # Create a temporary old-style archive to link instead of a shared archive.
10772 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10773
10774 # Commands used to build and install a shared archive.
10775 archive_cmds=$lt_archive_cmds
10776 archive_expsym_cmds=$lt_archive_expsym_cmds
10777 postinstall_cmds=$lt_postinstall_cmds
10778 postuninstall_cmds=$lt_postuninstall_cmds
10779
10780 # Commands used to build a loadable module (assumed same as above if empty)
10781 module_cmds=$lt_module_cmds
10782 module_expsym_cmds=$lt_module_expsym_cmds
10783
10784 # Commands to strip libraries.
10785 old_striplib=$lt_old_striplib
10786 striplib=$lt_striplib
10787
10788 # Dependencies to place before the objects being linked to create a
10789 # shared library.
10790 predep_objects=$lt_predep_objects
10791
10792 # Dependencies to place after the objects being linked to create a
10793 # shared library.
10794 postdep_objects=$lt_postdep_objects
10795
10796 # Dependencies to place before the objects being linked to create a
10797 # shared library.
10798 predeps=$lt_predeps
10799
10800 # Dependencies to place after the objects being linked to create a
10801 # shared library.
10802 postdeps=$lt_postdeps
10803
10804 # The library search path used internally by the compiler when linking
10805 # a shared library.
10806 compiler_lib_search_path=$lt_compiler_lib_search_path
10807
10808 # Method to check whether dependent libraries are shared objects.
10809 deplibs_check_method=$lt_deplibs_check_method
10810
10811 # Command to use when deplibs_check_method == file_magic.
10812 file_magic_cmd=$lt_file_magic_cmd
10813
10814 # Flag that allows shared libraries with undefined symbols to be built.
10815 allow_undefined_flag=$lt_allow_undefined_flag
10816
10817 # Flag that forces no undefined symbols.
10818 no_undefined_flag=$lt_no_undefined_flag
10819
10820 # Commands used to finish a libtool library installation in a directory.
10821 finish_cmds=$lt_finish_cmds
10822
10823 # Same as above, but a single script fragment to be evaled but not shown.
10824 finish_eval=$lt_finish_eval
10825
10826 # Take the output of nm and produce a listing of raw symbols and C names.
10827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10828
10829 # Transform the output of nm in a proper C declaration
10830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10831
10832 # Transform the output of nm in a C name address pair
10833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10834
10835 # This is the shared library runtime path variable.
10836 runpath_var=$runpath_var
10837
10838 # This is the shared library path variable.
10839 shlibpath_var=$shlibpath_var
10840
10841 # Is shlibpath searched before the hard-coded library search path?
10842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10843
10844 # How to hardcode a shared library path into an executable.
10845 hardcode_action=$hardcode_action
10846
10847 # Whether we should hardcode library paths into libraries.
10848 hardcode_into_libs=$hardcode_into_libs
10849
10850 # Flag to hardcode \$libdir into a binary during linking.
10851 # This must work even if \$libdir does not exist.
10852 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10853
10854 # If ld is used when linking, flag to hardcode \$libdir into
10855 # a binary during linking. This must work even if \$libdir does
10856 # not exist.
10857 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10858
10859 # Whether we need a single -rpath flag with a separated argument.
10860 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10861
10862 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10863 # resulting binary.
10864 hardcode_direct=$hardcode_direct
10865
10866 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10867 # resulting binary.
10868 hardcode_minus_L=$hardcode_minus_L
10869
10870 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10871 # the resulting binary.
10872 hardcode_shlibpath_var=$hardcode_shlibpath_var
10873
10874 # Set to yes if building a shared library automatically hardcodes DIR into the library
10875 # and all subsequent libraries and executables linked against it.
10876 hardcode_automatic=$hardcode_automatic
10877
10878 # Variables whose values should be saved in libtool wrapper scripts and
10879 # restored at relink time.
10880 variables_saved_for_relink="$variables_saved_for_relink"
10881
10882 # Whether libtool must link a program against all its dependency libraries.
10883 link_all_deplibs=$link_all_deplibs
10884
10885 # Compile-time system search path for libraries
10886 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10887
10888 # Run-time system search path for libraries
10889 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10890
10891 # Fix the shell variable \$srcfile for the compiler.
10892 fix_srcfile_path="$fix_srcfile_path"
10893
10894 # Set to yes if exported symbols are required.
10895 always_export_symbols=$always_export_symbols
10896
10897 # The commands to list exported symbols.
10898 export_symbols_cmds=$lt_export_symbols_cmds
10899
10900 # The commands to extract the exported symbol list from a shared archive.
10901 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10902
10903 # Symbols that should not be listed in the preloaded symbols.
10904 exclude_expsyms=$lt_exclude_expsyms
10905
10906 # Symbols that must always be exported.
10907 include_expsyms=$lt_include_expsyms
10908
10909 # ### END LIBTOOL CONFIG
10910
10911 __EOF__
10912
10913
10914   case $host_os in
10915   aix3*)
10916     cat <<\EOF >> "$cfgfile"
10917
10918 # AIX sometimes has problems with the GCC collect2 program.  For some
10919 # reason, if we set the COLLECT_NAMES environment variable, the problems
10920 # vanish in a puff of smoke.
10921 if test "X${COLLECT_NAMES+set}" != Xset; then
10922   COLLECT_NAMES=
10923   export COLLECT_NAMES
10924 fi
10925 EOF
10926     ;;
10927   esac
10928
10929   # We use sed instead of cat because bash on DJGPP gets confused if
10930   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10931   # text mode, it properly converts lines to CR/LF.  This bash problem
10932   # is reportedly fixed, but why not run on old versions too?
10933   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10934
10935   mv -f "$cfgfile" "$ofile" || \
10936     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10937   chmod +x "$ofile"
10938
10939 else
10940   # If there is no Makefile yet, we rely on a make rule to execute
10941   # `config.status --recheck' to rerun these tests and create the
10942   # libtool script then.
10943   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10944   if test -f "$ltmain_in"; then
10945     test -f Makefile && make "$ltmain"
10946   fi
10947 fi
10948
10949
10950 ac_ext=c
10951 ac_cpp='$CPP $CPPFLAGS'
10952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10955
10956 CC="$lt_save_CC"
10957
10958
10959 # Check whether --with-tags or --without-tags was given.
10960 if test "${with_tags+set}" = set; then
10961   withval="$with_tags"
10962   tagnames="$withval"
10963 fi;
10964
10965 if test -f "$ltmain" && test -n "$tagnames"; then
10966   if test ! -f "${ofile}"; then
10967     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10968 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10969   fi
10970
10971   if test -z "$LTCC"; then
10972     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10973     if test -z "$LTCC"; then
10974       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10975 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10976     else
10977       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10978 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10979     fi
10980   fi
10981
10982   # Extract list of available tagged configurations in $ofile.
10983   # Note that this assumes the entire list is on one line.
10984   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10985
10986   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10987   for tagname in $tagnames; do
10988     IFS="$lt_save_ifs"
10989     # Check whether tagname contains only valid characters
10990     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10991     "") ;;
10992     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10993 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10994    { (exit 1); exit 1; }; }
10995         ;;
10996     esac
10997
10998     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10999     then
11000       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11001 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11002    { (exit 1); exit 1; }; }
11003     fi
11004
11005     # Update the list of available tags.
11006     if test -n "$tagname"; then
11007       echo appending configuration tag \"$tagname\" to $ofile
11008
11009       case $tagname in
11010       CXX)
11011         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11012             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11013             (test "X$CXX" != "Xg++"))) ; then
11014           :
11015         else
11016           tagname=""
11017         fi
11018         ;;
11019
11020       F77)
11021         if test -n "$F77" && test "X$F77" != "Xno"; then
11022           :
11023         else
11024           tagname=""
11025         fi
11026         ;;
11027
11028       GCJ)
11029         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11030           :
11031         else
11032           tagname=""
11033         fi
11034         ;;
11035
11036       RC)
11037
11038
11039
11040 # Source file extension for RC test sources.
11041 ac_ext=rc
11042
11043 # Object file extension for compiled RC test sources.
11044 objext=o
11045 objext_RC=$objext
11046
11047 # Code to be used in simple compile tests
11048 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11049
11050 # Code to be used in simple link tests
11051 lt_simple_link_test_code="$lt_simple_compile_test_code"
11052
11053 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11054
11055 # If no C compiler was specified, use CC.
11056 LTCC=${LTCC-"$CC"}
11057
11058 # Allow CC to be a program name with arguments.
11059 compiler=$CC
11060
11061
11062 # save warnings/boilerplate of simple test code
11063 ac_outfile=conftest.$ac_objext
11064 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11065 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11066 _lt_compiler_boilerplate=`cat conftest.err`
11067 $rm conftest*
11068
11069 ac_outfile=conftest.$ac_objext
11070 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11071 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11072 _lt_linker_boilerplate=`cat conftest.err`
11073 $rm conftest*
11074
11075
11076 # Allow CC to be a program name with arguments.
11077 lt_save_CC="$CC"
11078 CC=${RC-"windres"}
11079 compiler=$CC
11080 compiler_RC=$CC
11081 for cc_temp in $compiler""; do
11082   case $cc_temp in
11083     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11084     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11085     \-*) ;;
11086     *) break;;
11087   esac
11088 done
11089 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11090
11091 lt_cv_prog_compiler_c_o_RC=yes
11092
11093 # The else clause should only fire when bootstrapping the
11094 # libtool distribution, otherwise you forgot to ship ltmain.sh
11095 # with your package, and you will get complaints that there are
11096 # no rules to generate ltmain.sh.
11097 if test -f "$ltmain"; then
11098   # See if we are running on zsh, and set the options which allow our commands through
11099   # without removal of \ escapes.
11100   if test -n "${ZSH_VERSION+set}" ; then
11101     setopt NO_GLOB_SUBST
11102   fi
11103   # Now quote all the things that may contain metacharacters while being
11104   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11105   # variables and quote the copies for generation of the libtool script.
11106   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11107     SED SHELL STRIP \
11108     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11109     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11110     deplibs_check_method reload_flag reload_cmds need_locks \
11111     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11112     lt_cv_sys_global_symbol_to_c_name_address \
11113     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11114     old_postinstall_cmds old_postuninstall_cmds \
11115     compiler_RC \
11116     CC_RC \
11117     LD_RC \
11118     lt_prog_compiler_wl_RC \
11119     lt_prog_compiler_pic_RC \
11120     lt_prog_compiler_static_RC \
11121     lt_prog_compiler_no_builtin_flag_RC \
11122     export_dynamic_flag_spec_RC \
11123     thread_safe_flag_spec_RC \
11124     whole_archive_flag_spec_RC \
11125     enable_shared_with_static_runtimes_RC \
11126     old_archive_cmds_RC \
11127     old_archive_from_new_cmds_RC \
11128     predep_objects_RC \
11129     postdep_objects_RC \
11130     predeps_RC \
11131     postdeps_RC \
11132     compiler_lib_search_path_RC \
11133     archive_cmds_RC \
11134     archive_expsym_cmds_RC \
11135     postinstall_cmds_RC \
11136     postuninstall_cmds_RC \
11137     old_archive_from_expsyms_cmds_RC \
11138     allow_undefined_flag_RC \
11139     no_undefined_flag_RC \
11140     export_symbols_cmds_RC \
11141     hardcode_libdir_flag_spec_RC \
11142     hardcode_libdir_flag_spec_ld_RC \
11143     hardcode_libdir_separator_RC \
11144     hardcode_automatic_RC \
11145     module_cmds_RC \
11146     module_expsym_cmds_RC \
11147     lt_cv_prog_compiler_c_o_RC \
11148     exclude_expsyms_RC \
11149     include_expsyms_RC; do
11150
11151     case $var in
11152     old_archive_cmds_RC | \
11153     old_archive_from_new_cmds_RC | \
11154     archive_cmds_RC | \
11155     archive_expsym_cmds_RC | \
11156     module_cmds_RC | \
11157     module_expsym_cmds_RC | \
11158     old_archive_from_expsyms_cmds_RC | \
11159     export_symbols_cmds_RC | \
11160     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11161     postinstall_cmds | postuninstall_cmds | \
11162     old_postinstall_cmds | old_postuninstall_cmds | \
11163     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11164       # Double-quote double-evaled strings.
11165       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11166       ;;
11167     *)
11168       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11169       ;;
11170     esac
11171   done
11172
11173   case $lt_echo in
11174   *'\$0 --fallback-echo"')
11175     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11176     ;;
11177   esac
11178
11179 cfgfile="$ofile"
11180
11181   cat <<__EOF__ >> "$cfgfile"
11182 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11183
11184 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11185
11186 # Shell to use when invoking shell scripts.
11187 SHELL=$lt_SHELL
11188
11189 # Whether or not to build shared libraries.
11190 build_libtool_libs=$enable_shared
11191
11192 # Whether or not to build static libraries.
11193 build_old_libs=$enable_static
11194
11195 # Whether or not to add -lc for building shared libraries.
11196 build_libtool_need_lc=$archive_cmds_need_lc_RC
11197
11198 # Whether or not to disallow shared libs when runtime libs are static
11199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11200
11201 # Whether or not to optimize for fast installation.
11202 fast_install=$enable_fast_install
11203
11204 # The host system.
11205 host_alias=$host_alias
11206 host=$host
11207 host_os=$host_os
11208
11209 # The build system.
11210 build_alias=$build_alias
11211 build=$build
11212 build_os=$build_os
11213
11214 # An echo program that does not interpret backslashes.
11215 echo=$lt_echo
11216
11217 # The archiver.
11218 AR=$lt_AR
11219 AR_FLAGS=$lt_AR_FLAGS
11220
11221 # A C compiler.
11222 LTCC=$lt_LTCC
11223
11224 # A language-specific compiler.
11225 CC=$lt_compiler_RC
11226
11227 # Is the compiler the GNU C compiler?
11228 with_gcc=$GCC_RC
11229
11230 # An ERE matcher.
11231 EGREP=$lt_EGREP
11232
11233 # The linker used to build libraries.
11234 LD=$lt_LD_RC
11235
11236 # Whether we need hard or soft links.
11237 LN_S=$lt_LN_S
11238
11239 # A BSD-compatible nm program.
11240 NM=$lt_NM
11241
11242 # A symbol stripping program
11243 STRIP=$lt_STRIP
11244
11245 # Used to examine libraries when file_magic_cmd begins "file"
11246 MAGIC_CMD=$MAGIC_CMD
11247
11248 # Used on cygwin: DLL creation program.
11249 DLLTOOL="$DLLTOOL"
11250
11251 # Used on cygwin: object dumper.
11252 OBJDUMP="$OBJDUMP"
11253
11254 # Used on cygwin: assembler.
11255 AS="$AS"
11256
11257 # The name of the directory that contains temporary libtool files.
11258 objdir=$objdir
11259
11260 # How to create reloadable object files.
11261 reload_flag=$lt_reload_flag
11262 reload_cmds=$lt_reload_cmds
11263
11264 # How to pass a linker flag through the compiler.
11265 wl=$lt_lt_prog_compiler_wl_RC
11266
11267 # Object file suffix (normally "o").
11268 objext="$ac_objext"
11269
11270 # Old archive suffix (normally "a").
11271 libext="$libext"
11272
11273 # Shared library suffix (normally ".so").
11274 shrext_cmds='$shrext_cmds'
11275
11276 # Executable file suffix (normally "").
11277 exeext="$exeext"
11278
11279 # Additional compiler flags for building library objects.
11280 pic_flag=$lt_lt_prog_compiler_pic_RC
11281 pic_mode=$pic_mode
11282
11283 # What is the maximum length of a command?
11284 max_cmd_len=$lt_cv_sys_max_cmd_len
11285
11286 # Does compiler simultaneously support -c and -o options?
11287 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11288
11289 # Must we lock files when doing compilation?
11290 need_locks=$lt_need_locks
11291
11292 # Do we need the lib prefix for modules?
11293 need_lib_prefix=$need_lib_prefix
11294
11295 # Do we need a version for libraries?
11296 need_version=$need_version
11297
11298 # Whether dlopen is supported.
11299 dlopen_support=$enable_dlopen
11300
11301 # Whether dlopen of programs is supported.
11302 dlopen_self=$enable_dlopen_self
11303
11304 # Whether dlopen of statically linked programs is supported.
11305 dlopen_self_static=$enable_dlopen_self_static
11306
11307 # Compiler flag to prevent dynamic linking.
11308 link_static_flag=$lt_lt_prog_compiler_static_RC
11309
11310 # Compiler flag to turn off builtin functions.
11311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11312
11313 # Compiler flag to allow reflexive dlopens.
11314 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11315
11316 # Compiler flag to generate shared objects directly from archives.
11317 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11318
11319 # Compiler flag to generate thread-safe objects.
11320 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11321
11322 # Library versioning type.
11323 version_type=$version_type
11324
11325 # Format of library name prefix.
11326 libname_spec=$lt_libname_spec
11327
11328 # List of archive names.  First name is the real one, the rest are links.
11329 # The last name is the one that the linker finds with -lNAME.
11330 library_names_spec=$lt_library_names_spec
11331
11332 # The coded name of the library, if different from the real name.
11333 soname_spec=$lt_soname_spec
11334
11335 # Commands used to build and install an old-style archive.
11336 RANLIB=$lt_RANLIB
11337 old_archive_cmds=$lt_old_archive_cmds_RC
11338 old_postinstall_cmds=$lt_old_postinstall_cmds
11339 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11340
11341 # Create an old-style archive from a shared archive.
11342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11343
11344 # Create a temporary old-style archive to link instead of a shared archive.
11345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11346
11347 # Commands used to build and install a shared archive.
11348 archive_cmds=$lt_archive_cmds_RC
11349 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11350 postinstall_cmds=$lt_postinstall_cmds
11351 postuninstall_cmds=$lt_postuninstall_cmds
11352
11353 # Commands used to build a loadable module (assumed same as above if empty)
11354 module_cmds=$lt_module_cmds_RC
11355 module_expsym_cmds=$lt_module_expsym_cmds_RC
11356
11357 # Commands to strip libraries.
11358 old_striplib=$lt_old_striplib
11359 striplib=$lt_striplib
11360
11361 # Dependencies to place before the objects being linked to create a
11362 # shared library.
11363 predep_objects=$lt_predep_objects_RC
11364
11365 # Dependencies to place after the objects being linked to create a
11366 # shared library.
11367 postdep_objects=$lt_postdep_objects_RC
11368
11369 # Dependencies to place before the objects being linked to create a
11370 # shared library.
11371 predeps=$lt_predeps_RC
11372
11373 # Dependencies to place after the objects being linked to create a
11374 # shared library.
11375 postdeps=$lt_postdeps_RC
11376
11377 # The library search path used internally by the compiler when linking
11378 # a shared library.
11379 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11380
11381 # Method to check whether dependent libraries are shared objects.
11382 deplibs_check_method=$lt_deplibs_check_method
11383
11384 # Command to use when deplibs_check_method == file_magic.
11385 file_magic_cmd=$lt_file_magic_cmd
11386
11387 # Flag that allows shared libraries with undefined symbols to be built.
11388 allow_undefined_flag=$lt_allow_undefined_flag_RC
11389
11390 # Flag that forces no undefined symbols.
11391 no_undefined_flag=$lt_no_undefined_flag_RC
11392
11393 # Commands used to finish a libtool library installation in a directory.
11394 finish_cmds=$lt_finish_cmds
11395
11396 # Same as above, but a single script fragment to be evaled but not shown.
11397 finish_eval=$lt_finish_eval
11398
11399 # Take the output of nm and produce a listing of raw symbols and C names.
11400 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11401
11402 # Transform the output of nm in a proper C declaration
11403 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11404
11405 # Transform the output of nm in a C name address pair
11406 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11407
11408 # This is the shared library runtime path variable.
11409 runpath_var=$runpath_var
11410
11411 # This is the shared library path variable.
11412 shlibpath_var=$shlibpath_var
11413
11414 # Is shlibpath searched before the hard-coded library search path?
11415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11416
11417 # How to hardcode a shared library path into an executable.
11418 hardcode_action=$hardcode_action_RC
11419
11420 # Whether we should hardcode library paths into libraries.
11421 hardcode_into_libs=$hardcode_into_libs
11422
11423 # Flag to hardcode \$libdir into a binary during linking.
11424 # This must work even if \$libdir does not exist.
11425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11426
11427 # If ld is used when linking, flag to hardcode \$libdir into
11428 # a binary during linking. This must work even if \$libdir does
11429 # not exist.
11430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11431
11432 # Whether we need a single -rpath flag with a separated argument.
11433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11434
11435 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_direct=$hardcode_direct_RC
11438
11439 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11440 # resulting binary.
11441 hardcode_minus_L=$hardcode_minus_L_RC
11442
11443 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11444 # the resulting binary.
11445 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11446
11447 # Set to yes if building a shared library automatically hardcodes DIR into the library
11448 # and all subsequent libraries and executables linked against it.
11449 hardcode_automatic=$hardcode_automatic_RC
11450
11451 # Variables whose values should be saved in libtool wrapper scripts and
11452 # restored at relink time.
11453 variables_saved_for_relink="$variables_saved_for_relink"
11454
11455 # Whether libtool must link a program against all its dependency libraries.
11456 link_all_deplibs=$link_all_deplibs_RC
11457
11458 # Compile-time system search path for libraries
11459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11460
11461 # Run-time system search path for libraries
11462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11463
11464 # Fix the shell variable \$srcfile for the compiler.
11465 fix_srcfile_path="$fix_srcfile_path_RC"
11466
11467 # Set to yes if exported symbols are required.
11468 always_export_symbols=$always_export_symbols_RC
11469
11470 # The commands to list exported symbols.
11471 export_symbols_cmds=$lt_export_symbols_cmds_RC
11472
11473 # The commands to extract the exported symbol list from a shared archive.
11474 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11475
11476 # Symbols that should not be listed in the preloaded symbols.
11477 exclude_expsyms=$lt_exclude_expsyms_RC
11478
11479 # Symbols that must always be exported.
11480 include_expsyms=$lt_include_expsyms_RC
11481
11482 # ### END LIBTOOL TAG CONFIG: $tagname
11483
11484 __EOF__
11485
11486
11487 else
11488   # If there is no Makefile yet, we rely on a make rule to execute
11489   # `config.status --recheck' to rerun these tests and create the
11490   # libtool script then.
11491   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11492   if test -f "$ltmain_in"; then
11493     test -f Makefile && make "$ltmain"
11494   fi
11495 fi
11496
11497
11498 ac_ext=c
11499 ac_cpp='$CPP $CPPFLAGS'
11500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11503
11504 CC="$lt_save_CC"
11505
11506         ;;
11507
11508       *)
11509         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11510 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11511    { (exit 1); exit 1; }; }
11512         ;;
11513       esac
11514
11515       # Append the new tag name to the list of available tags.
11516       if test -n "$tagname" ; then
11517       available_tags="$available_tags $tagname"
11518     fi
11519     fi
11520   done
11521   IFS="$lt_save_ifs"
11522
11523   # Now substitute the updated list of available tags.
11524   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11525     mv "${ofile}T" "$ofile"
11526     chmod +x "$ofile"
11527   else
11528     rm -f "${ofile}T"
11529     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11530 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11531    { (exit 1); exit 1; }; }
11532   fi
11533 fi
11534
11535
11536
11537 # This can be used to rebuild libtool when needed
11538 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11539
11540 # Always use our own libtool.
11541 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11542
11543 # Prevent multiple expansion
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554 ol_link_perl=no
11555 if test $ol_enable_perl != no ; then
11556         # Extract the first word of "perl", so it can be a program name with args.
11557 set dummy perl; ac_word=$2
11558 echo "$as_me:$LINENO: checking for $ac_word" >&5
11559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560 if test "${ac_cv_path_PERLBIN+set}" = set; then
11561   echo $ECHO_N "(cached) $ECHO_C" >&6
11562 else
11563   case $PERLBIN in
11564   [\\/]* | ?:[\\/]*)
11565   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11566   ;;
11567   *)
11568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11570 do
11571   IFS=$as_save_IFS
11572   test -z "$as_dir" && as_dir=.
11573   for ac_exec_ext in '' $ac_executable_extensions; do
11574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11577     break 2
11578   fi
11579 done
11580 done
11581
11582   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11583   ;;
11584 esac
11585 fi
11586 PERLBIN=$ac_cv_path_PERLBIN
11587
11588 if test -n "$PERLBIN"; then
11589   echo "$as_me:$LINENO: result: $PERLBIN" >&5
11590 echo "${ECHO_T}$PERLBIN" >&6
11591 else
11592   echo "$as_me:$LINENO: result: no" >&5
11593 echo "${ECHO_T}no" >&6
11594 fi
11595
11596
11597         if test "no$PERLBIN" = "no" ; then
11598                 if test $ol_enable_perl = yes ; then
11599                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11600 echo "$as_me: error: could not locate perl" >&2;}
11601    { (exit 1); exit 1; }; }
11602                 fi
11603
11604         else
11605                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11606                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11607
11608                 if test x"$ol_enable_perl" = "xyes" ; then
11609                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11610                 else
11611                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11612                 fi
11613                                 ol_link_perl=yes
11614         fi
11615 fi
11616
11617 ac_ext=c
11618 ac_cpp='$CPP $CPPFLAGS'
11619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11622 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11623 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11624 # On Suns, sometimes $CPP names a directory.
11625 if test -n "$CPP" && test -d "$CPP"; then
11626   CPP=
11627 fi
11628 if test -z "$CPP"; then
11629   if test "${ac_cv_prog_CPP+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632       # Double quotes because CPP needs to be expanded
11633     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11634     do
11635       ac_preproc_ok=false
11636 for ac_c_preproc_warn_flag in '' yes
11637 do
11638   # Use a header file that comes with gcc, so configuring glibc
11639   # with a fresh cross-compiler works.
11640   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641   # <limits.h> exists even on freestanding compilers.
11642   # On the NeXT, cc -E runs the code through the compiler's parser,
11643   # not just through cpp. "Syntax error" is here to catch this case.
11644   cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h.  */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h.  */
11650 #ifdef __STDC__
11651 # include <limits.h>
11652 #else
11653 # include <assert.h>
11654 #endif
11655                      Syntax error
11656 _ACEOF
11657 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11658   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11659   ac_status=$?
11660   grep -v '^ *+' conftest.er1 >conftest.err
11661   rm -f conftest.er1
11662   cat conftest.err >&5
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); } >/dev/null; then
11665   if test -s conftest.err; then
11666     ac_cpp_err=$ac_c_preproc_warn_flag
11667     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11668   else
11669     ac_cpp_err=
11670   fi
11671 else
11672   ac_cpp_err=yes
11673 fi
11674 if test -z "$ac_cpp_err"; then
11675   :
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680   # Broken: fails on valid input.
11681 continue
11682 fi
11683 rm -f conftest.err conftest.$ac_ext
11684
11685   # OK, works on sane cases.  Now check whether non-existent headers
11686   # can be detected and how.
11687   cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 #include <ac_nonexistent.h>
11694 _ACEOF
11695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11697   ac_status=$?
11698   grep -v '^ *+' conftest.er1 >conftest.err
11699   rm -f conftest.er1
11700   cat conftest.err >&5
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); } >/dev/null; then
11703   if test -s conftest.err; then
11704     ac_cpp_err=$ac_c_preproc_warn_flag
11705     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11706   else
11707     ac_cpp_err=
11708   fi
11709 else
11710   ac_cpp_err=yes
11711 fi
11712 if test -z "$ac_cpp_err"; then
11713   # Broken: success on invalid input.
11714 continue
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719   # Passes both tests.
11720 ac_preproc_ok=:
11721 break
11722 fi
11723 rm -f conftest.err conftest.$ac_ext
11724
11725 done
11726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11727 rm -f conftest.err conftest.$ac_ext
11728 if $ac_preproc_ok; then
11729   break
11730 fi
11731
11732     done
11733     ac_cv_prog_CPP=$CPP
11734
11735 fi
11736   CPP=$ac_cv_prog_CPP
11737 else
11738   ac_cv_prog_CPP=$CPP
11739 fi
11740 echo "$as_me:$LINENO: result: $CPP" >&5
11741 echo "${ECHO_T}$CPP" >&6
11742 ac_preproc_ok=false
11743 for ac_c_preproc_warn_flag in '' yes
11744 do
11745   # Use a header file that comes with gcc, so configuring glibc
11746   # with a fresh cross-compiler works.
11747   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11748   # <limits.h> exists even on freestanding compilers.
11749   # On the NeXT, cc -E runs the code through the compiler's parser,
11750   # not just through cpp. "Syntax error" is here to catch this case.
11751   cat >conftest.$ac_ext <<_ACEOF
11752 /* confdefs.h.  */
11753 _ACEOF
11754 cat confdefs.h >>conftest.$ac_ext
11755 cat >>conftest.$ac_ext <<_ACEOF
11756 /* end confdefs.h.  */
11757 #ifdef __STDC__
11758 # include <limits.h>
11759 #else
11760 # include <assert.h>
11761 #endif
11762                      Syntax error
11763 _ACEOF
11764 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11765   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } >/dev/null; then
11772   if test -s conftest.err; then
11773     ac_cpp_err=$ac_c_preproc_warn_flag
11774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11775   else
11776     ac_cpp_err=
11777   fi
11778 else
11779   ac_cpp_err=yes
11780 fi
11781 if test -z "$ac_cpp_err"; then
11782   :
11783 else
11784   echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11786
11787   # Broken: fails on valid input.
11788 continue
11789 fi
11790 rm -f conftest.err conftest.$ac_ext
11791
11792   # OK, works on sane cases.  Now check whether non-existent headers
11793   # can be detected and how.
11794   cat >conftest.$ac_ext <<_ACEOF
11795 /* confdefs.h.  */
11796 _ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h.  */
11800 #include <ac_nonexistent.h>
11801 _ACEOF
11802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } >/dev/null; then
11810   if test -s conftest.err; then
11811     ac_cpp_err=$ac_c_preproc_warn_flag
11812     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11813   else
11814     ac_cpp_err=
11815   fi
11816 else
11817   ac_cpp_err=yes
11818 fi
11819 if test -z "$ac_cpp_err"; then
11820   # Broken: success on invalid input.
11821 continue
11822 else
11823   echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826   # Passes both tests.
11827 ac_preproc_ok=:
11828 break
11829 fi
11830 rm -f conftest.err conftest.$ac_ext
11831
11832 done
11833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11834 rm -f conftest.err conftest.$ac_ext
11835 if $ac_preproc_ok; then
11836   :
11837 else
11838   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11839 See \`config.log' for more details." >&5
11840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11841 See \`config.log' for more details." >&2;}
11842    { (exit 1); exit 1; }; }
11843 fi
11844
11845 ac_ext=c
11846 ac_cpp='$CPP $CPPFLAGS'
11847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852 case $host_os in
11853   *mingw32* ) ac_cv_mingw32=yes ;;
11854   *cygwin* ) ac_cv_cygwin=yes ;;
11855 esac
11856
11857
11858
11859
11860 cat >>confdefs.h <<_ACEOF
11861 #define EXEEXT "${EXEEXT}"
11862 _ACEOF
11863
11864
11865 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11866 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11867 if test "${ac_cv_lib_be_be_app+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   ac_check_lib_save_LIBS=$LIBS
11871 LIBS="-lbe -lroot -lnet $LIBS"
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h.  */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h.  */
11878
11879 /* Override any gcc2 internal prototype to avoid an error.  */
11880 #ifdef __cplusplus
11881 extern "C"
11882 #endif
11883 /* We use char because int might match the return type of a gcc2
11884    builtin and then its argument prototype would still apply.  */
11885 char be_app ();
11886 int
11887 main ()
11888 {
11889 be_app ();
11890   ;
11891   return 0;
11892 }
11893 _ACEOF
11894 rm -f conftest.$ac_objext conftest$ac_exeext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11896   (eval $ac_link) 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } &&
11903          { ac_try='test -z "$ac_c_werror_flag"
11904                          || test ! -s conftest.err'
11905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906   (eval $ac_try) 2>&5
11907   ac_status=$?
11908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909   (exit $ac_status); }; } &&
11910          { ac_try='test -s conftest$ac_exeext'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; }; then
11916   ac_cv_lib_be_be_app=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921 ac_cv_lib_be_be_app=no
11922 fi
11923 rm -f conftest.err conftest.$ac_objext \
11924       conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11926 fi
11927 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
11928 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
11929 if test $ac_cv_lib_be_be_app = yes; then
11930   LIBS="$LIBS -lbe -lroot -lnet"
11931 else
11932   :
11933 fi
11934
11935
11936 ac_ext=c
11937 ac_cpp='$CPP $CPPFLAGS'
11938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11941 if test -n "$ac_tool_prefix"; then
11942   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11943 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11944 echo "$as_me:$LINENO: checking for $ac_word" >&5
11945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11946 if test "${ac_cv_prog_CC+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   if test -n "$CC"; then
11950   ac_cv_prog_CC="$CC" # Let the user override the test.
11951 else
11952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11953 for as_dir in $PATH
11954 do
11955   IFS=$as_save_IFS
11956   test -z "$as_dir" && as_dir=.
11957   for ac_exec_ext in '' $ac_executable_extensions; do
11958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11959     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11961     break 2
11962   fi
11963 done
11964 done
11965
11966 fi
11967 fi
11968 CC=$ac_cv_prog_CC
11969 if test -n "$CC"; then
11970   echo "$as_me:$LINENO: result: $CC" >&5
11971 echo "${ECHO_T}$CC" >&6
11972 else
11973   echo "$as_me:$LINENO: result: no" >&5
11974 echo "${ECHO_T}no" >&6
11975 fi
11976
11977 fi
11978 if test -z "$ac_cv_prog_CC"; then
11979   ac_ct_CC=$CC
11980   # Extract the first word of "gcc", so it can be a program name with args.
11981 set dummy gcc; ac_word=$2
11982 echo "$as_me:$LINENO: checking for $ac_word" >&5
11983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11984 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   if test -n "$ac_ct_CC"; then
11988   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11989 else
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11992 do
11993   IFS=$as_save_IFS
11994   test -z "$as_dir" && as_dir=.
11995   for ac_exec_ext in '' $ac_executable_extensions; do
11996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997     ac_cv_prog_ac_ct_CC="gcc"
11998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11999     break 2
12000   fi
12001 done
12002 done
12003
12004 fi
12005 fi
12006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12007 if test -n "$ac_ct_CC"; then
12008   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12009 echo "${ECHO_T}$ac_ct_CC" >&6
12010 else
12011   echo "$as_me:$LINENO: result: no" >&5
12012 echo "${ECHO_T}no" >&6
12013 fi
12014
12015   CC=$ac_ct_CC
12016 else
12017   CC="$ac_cv_prog_CC"
12018 fi
12019
12020 if test -z "$CC"; then
12021   if test -n "$ac_tool_prefix"; then
12022   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12023 set dummy ${ac_tool_prefix}cc; ac_word=$2
12024 echo "$as_me:$LINENO: checking for $ac_word" >&5
12025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12026 if test "${ac_cv_prog_CC+set}" = set; then
12027   echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029   if test -n "$CC"; then
12030   ac_cv_prog_CC="$CC" # Let the user override the test.
12031 else
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12034 do
12035   IFS=$as_save_IFS
12036   test -z "$as_dir" && as_dir=.
12037   for ac_exec_ext in '' $ac_executable_extensions; do
12038   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12039     ac_cv_prog_CC="${ac_tool_prefix}cc"
12040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041     break 2
12042   fi
12043 done
12044 done
12045
12046 fi
12047 fi
12048 CC=$ac_cv_prog_CC
12049 if test -n "$CC"; then
12050   echo "$as_me:$LINENO: result: $CC" >&5
12051 echo "${ECHO_T}$CC" >&6
12052 else
12053   echo "$as_me:$LINENO: result: no" >&5
12054 echo "${ECHO_T}no" >&6
12055 fi
12056
12057 fi
12058 if test -z "$ac_cv_prog_CC"; then
12059   ac_ct_CC=$CC
12060   # Extract the first word of "cc", so it can be a program name with args.
12061 set dummy cc; ac_word=$2
12062 echo "$as_me:$LINENO: checking for $ac_word" >&5
12063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12065   echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067   if test -n "$ac_ct_CC"; then
12068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12069 else
12070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071 for as_dir in $PATH
12072 do
12073   IFS=$as_save_IFS
12074   test -z "$as_dir" && as_dir=.
12075   for ac_exec_ext in '' $ac_executable_extensions; do
12076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12077     ac_cv_prog_ac_ct_CC="cc"
12078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12079     break 2
12080   fi
12081 done
12082 done
12083
12084 fi
12085 fi
12086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12087 if test -n "$ac_ct_CC"; then
12088   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12089 echo "${ECHO_T}$ac_ct_CC" >&6
12090 else
12091   echo "$as_me:$LINENO: result: no" >&5
12092 echo "${ECHO_T}no" >&6
12093 fi
12094
12095   CC=$ac_ct_CC
12096 else
12097   CC="$ac_cv_prog_CC"
12098 fi
12099
12100 fi
12101 if test -z "$CC"; then
12102   # Extract the first word of "cc", so it can be a program name with args.
12103 set dummy cc; ac_word=$2
12104 echo "$as_me:$LINENO: checking for $ac_word" >&5
12105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12106 if test "${ac_cv_prog_CC+set}" = set; then
12107   echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109   if test -n "$CC"; then
12110   ac_cv_prog_CC="$CC" # Let the user override the test.
12111 else
12112   ac_prog_rejected=no
12113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12114 for as_dir in $PATH
12115 do
12116   IFS=$as_save_IFS
12117   test -z "$as_dir" && as_dir=.
12118   for ac_exec_ext in '' $ac_executable_extensions; do
12119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12120     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12121        ac_prog_rejected=yes
12122        continue
12123      fi
12124     ac_cv_prog_CC="cc"
12125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12126     break 2
12127   fi
12128 done
12129 done
12130
12131 if test $ac_prog_rejected = yes; then
12132   # We found a bogon in the path, so make sure we never use it.
12133   set dummy $ac_cv_prog_CC
12134   shift
12135   if test $# != 0; then
12136     # We chose a different compiler from the bogus one.
12137     # However, it has the same basename, so the bogon will be chosen
12138     # first if we set CC to just the basename; use the full file name.
12139     shift
12140     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12141   fi
12142 fi
12143 fi
12144 fi
12145 CC=$ac_cv_prog_CC
12146 if test -n "$CC"; then
12147   echo "$as_me:$LINENO: result: $CC" >&5
12148 echo "${ECHO_T}$CC" >&6
12149 else
12150   echo "$as_me:$LINENO: result: no" >&5
12151 echo "${ECHO_T}no" >&6
12152 fi
12153
12154 fi
12155 if test -z "$CC"; then
12156   if test -n "$ac_tool_prefix"; then
12157   for ac_prog in cl
12158   do
12159     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12160 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12161 echo "$as_me:$LINENO: checking for $ac_word" >&5
12162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12163 if test "${ac_cv_prog_CC+set}" = set; then
12164   echo $ECHO_N "(cached) $ECHO_C" >&6
12165 else
12166   if test -n "$CC"; then
12167   ac_cv_prog_CC="$CC" # Let the user override the test.
12168 else
12169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170 for as_dir in $PATH
12171 do
12172   IFS=$as_save_IFS
12173   test -z "$as_dir" && as_dir=.
12174   for ac_exec_ext in '' $ac_executable_extensions; do
12175   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12176     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12177     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12178     break 2
12179   fi
12180 done
12181 done
12182
12183 fi
12184 fi
12185 CC=$ac_cv_prog_CC
12186 if test -n "$CC"; then
12187   echo "$as_me:$LINENO: result: $CC" >&5
12188 echo "${ECHO_T}$CC" >&6
12189 else
12190   echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6
12192 fi
12193
12194     test -n "$CC" && break
12195   done
12196 fi
12197 if test -z "$CC"; then
12198   ac_ct_CC=$CC
12199   for ac_prog in cl
12200 do
12201   # Extract the first word of "$ac_prog", so it can be a program name with args.
12202 set dummy $ac_prog; ac_word=$2
12203 echo "$as_me:$LINENO: checking for $ac_word" >&5
12204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12205 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12206   echo $ECHO_N "(cached) $ECHO_C" >&6
12207 else
12208   if test -n "$ac_ct_CC"; then
12209   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12210 else
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12213 do
12214   IFS=$as_save_IFS
12215   test -z "$as_dir" && as_dir=.
12216   for ac_exec_ext in '' $ac_executable_extensions; do
12217   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218     ac_cv_prog_ac_ct_CC="$ac_prog"
12219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12220     break 2
12221   fi
12222 done
12223 done
12224
12225 fi
12226 fi
12227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12228 if test -n "$ac_ct_CC"; then
12229   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12230 echo "${ECHO_T}$ac_ct_CC" >&6
12231 else
12232   echo "$as_me:$LINENO: result: no" >&5
12233 echo "${ECHO_T}no" >&6
12234 fi
12235
12236   test -n "$ac_ct_CC" && break
12237 done
12238
12239   CC=$ac_ct_CC
12240 fi
12241
12242 fi
12243
12244
12245 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12246 See \`config.log' for more details." >&5
12247 echo "$as_me: error: no acceptable C compiler found in \$PATH
12248 See \`config.log' for more details." >&2;}
12249    { (exit 1); exit 1; }; }
12250
12251 # Provide some information about the compiler.
12252 echo "$as_me:$LINENO:" \
12253      "checking for C compiler version" >&5
12254 ac_compiler=`set X $ac_compile; echo $2`
12255 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12256   (eval $ac_compiler --version </dev/null >&5) 2>&5
12257   ac_status=$?
12258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259   (exit $ac_status); }
12260 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12261   (eval $ac_compiler -v </dev/null >&5) 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }
12265 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12266   (eval $ac_compiler -V </dev/null >&5) 2>&5
12267   ac_status=$?
12268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269   (exit $ac_status); }
12270
12271 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12272 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12273 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276   cat >conftest.$ac_ext <<_ACEOF
12277 /* confdefs.h.  */
12278 _ACEOF
12279 cat confdefs.h >>conftest.$ac_ext
12280 cat >>conftest.$ac_ext <<_ACEOF
12281 /* end confdefs.h.  */
12282
12283 int
12284 main ()
12285 {
12286 #ifndef __GNUC__
12287        choke me
12288 #endif
12289
12290   ;
12291   return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296   (eval $ac_compile) 2>conftest.er1
12297   ac_status=$?
12298   grep -v '^ *+' conftest.er1 >conftest.err
12299   rm -f conftest.er1
12300   cat conftest.err >&5
12301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302   (exit $ac_status); } &&
12303          { ac_try='test -z "$ac_c_werror_flag"
12304                          || test ! -s conftest.err'
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); }; } &&
12310          { ac_try='test -s conftest.$ac_objext'
12311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); }; }; then
12316   ac_compiler_gnu=yes
12317 else
12318   echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ac_compiler_gnu=no
12322 fi
12323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12324 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12325
12326 fi
12327 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12328 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12329 GCC=`test $ac_compiler_gnu = yes && echo yes`
12330 ac_test_CFLAGS=${CFLAGS+set}
12331 ac_save_CFLAGS=$CFLAGS
12332 CFLAGS="-g"
12333 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12334 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12335 if test "${ac_cv_prog_cc_g+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   cat >conftest.$ac_ext <<_ACEOF
12339 /* confdefs.h.  */
12340 _ACEOF
12341 cat confdefs.h >>conftest.$ac_ext
12342 cat >>conftest.$ac_ext <<_ACEOF
12343 /* end confdefs.h.  */
12344
12345 int
12346 main ()
12347 {
12348
12349   ;
12350   return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355   (eval $ac_compile) 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } &&
12362          { ac_try='test -z "$ac_c_werror_flag"
12363                          || test ! -s conftest.err'
12364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365   (eval $ac_try) 2>&5
12366   ac_status=$?
12367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368   (exit $ac_status); }; } &&
12369          { ac_try='test -s conftest.$ac_objext'
12370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371   (eval $ac_try) 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_cv_prog_cc_g=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_cv_prog_cc_g=no
12381 fi
12382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12383 fi
12384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12386 if test "$ac_test_CFLAGS" = set; then
12387   CFLAGS=$ac_save_CFLAGS
12388 elif test $ac_cv_prog_cc_g = yes; then
12389   if test "$GCC" = yes; then
12390     CFLAGS="-g -O2"
12391   else
12392     CFLAGS="-g"
12393   fi
12394 else
12395   if test "$GCC" = yes; then
12396     CFLAGS="-O2"
12397   else
12398     CFLAGS=
12399   fi
12400 fi
12401 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12402 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12403 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_cv_prog_cc_stdc=no
12407 ac_save_CC=$CC
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 #include <stdarg.h>
12415 #include <stdio.h>
12416 #include <sys/types.h>
12417 #include <sys/stat.h>
12418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12419 struct buf { int x; };
12420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12421 static char *e (p, i)
12422      char **p;
12423      int i;
12424 {
12425   return p[i];
12426 }
12427 static char *f (char * (*g) (char **, int), char **p, ...)
12428 {
12429   char *s;
12430   va_list v;
12431   va_start (v,p);
12432   s = g (p, va_arg (v,int));
12433   va_end (v);
12434   return s;
12435 }
12436
12437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12438    function prototypes and stuff, but not '\xHH' hex character constants.
12439    These don't provoke an error unfortunately, instead are silently treated
12440    as 'x'.  The following induces an error, until -std1 is added to get
12441    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12442    array size at least.  It's necessary to write '\x00'==0 to get something
12443    that's true only with -std1.  */
12444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12445
12446 int test (int i, double x);
12447 struct s1 {int (*f) (int a);};
12448 struct s2 {int (*f) (double a);};
12449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12450 int argc;
12451 char **argv;
12452 int
12453 main ()
12454 {
12455 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 # Don't try gcc -ansi; that turns off useful extensions and
12461 # breaks some systems' header files.
12462 # AIX                   -qlanglvl=ansi
12463 # Ultrix and OSF/1      -std1
12464 # HP-UX 10.20 and later -Ae
12465 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12466 # SVR4                  -Xc -D__EXTENSIONS__
12467 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12468 do
12469   CC="$ac_save_CC $ac_arg"
12470   rm -f conftest.$ac_objext
12471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12472   (eval $ac_compile) 2>conftest.er1
12473   ac_status=$?
12474   grep -v '^ *+' conftest.er1 >conftest.err
12475   rm -f conftest.er1
12476   cat conftest.err >&5
12477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478   (exit $ac_status); } &&
12479          { ac_try='test -z "$ac_c_werror_flag"
12480                          || test ! -s conftest.err'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; } &&
12486          { ac_try='test -s conftest.$ac_objext'
12487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488   (eval $ac_try) 2>&5
12489   ac_status=$?
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); }; }; then
12492   ac_cv_prog_cc_stdc=$ac_arg
12493 break
12494 else
12495   echo "$as_me: failed program was:" >&5
12496 sed 's/^/| /' conftest.$ac_ext >&5
12497
12498 fi
12499 rm -f conftest.err conftest.$ac_objext
12500 done
12501 rm -f conftest.$ac_ext conftest.$ac_objext
12502 CC=$ac_save_CC
12503
12504 fi
12505
12506 case "x$ac_cv_prog_cc_stdc" in
12507   x|xno)
12508     echo "$as_me:$LINENO: result: none needed" >&5
12509 echo "${ECHO_T}none needed" >&6 ;;
12510   *)
12511     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12512 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12513     CC="$CC $ac_cv_prog_cc_stdc" ;;
12514 esac
12515
12516 # Some people use a C++ compiler to compile C.  Since we use `exit',
12517 # in C++ we need to declare it.  In case someone uses the same compiler
12518 # for both compiling C and C++ we need to have the C++ compiler decide
12519 # the declaration of exit, since it's the most demanding environment.
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #ifndef __cplusplus
12522   choke me
12523 #endif
12524 _ACEOF
12525 rm -f conftest.$ac_objext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12527   (eval $ac_compile) 2>conftest.er1
12528   ac_status=$?
12529   grep -v '^ *+' conftest.er1 >conftest.err
12530   rm -f conftest.er1
12531   cat conftest.err >&5
12532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533   (exit $ac_status); } &&
12534          { ac_try='test -z "$ac_c_werror_flag"
12535                          || test ! -s conftest.err'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; } &&
12541          { ac_try='test -s conftest.$ac_objext'
12542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12543   (eval $ac_try) 2>&5
12544   ac_status=$?
12545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546   (exit $ac_status); }; }; then
12547   for ac_declaration in \
12548    '' \
12549    'extern "C" void std::exit (int) throw (); using std::exit;' \
12550    'extern "C" void std::exit (int); using std::exit;' \
12551    'extern "C" void exit (int) throw ();' \
12552    'extern "C" void exit (int);' \
12553    'void exit (int);'
12554 do
12555   cat >conftest.$ac_ext <<_ACEOF
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561 $ac_declaration
12562 #include <stdlib.h>
12563 int
12564 main ()
12565 {
12566 exit (42);
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573   (eval $ac_compile) 2>conftest.er1
12574   ac_status=$?
12575   grep -v '^ *+' conftest.er1 >conftest.err
12576   rm -f conftest.er1
12577   cat conftest.err >&5
12578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579   (exit $ac_status); } &&
12580          { ac_try='test -z "$ac_c_werror_flag"
12581                          || test ! -s conftest.err'
12582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583   (eval $ac_try) 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589   (eval $ac_try) 2>&5
12590   ac_status=$?
12591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592   (exit $ac_status); }; }; then
12593   :
12594 else
12595   echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 continue
12599 fi
12600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12601   cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 $ac_declaration
12608 int
12609 main ()
12610 {
12611 exit (42);
12612   ;
12613   return 0;
12614 }
12615 _ACEOF
12616 rm -f conftest.$ac_objext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618   (eval $ac_compile) 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } &&
12625          { ac_try='test -z "$ac_c_werror_flag"
12626                          || test ! -s conftest.err'
12627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628   (eval $ac_try) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); }; } &&
12632          { ac_try='test -s conftest.$ac_objext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   break
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 fi
12644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12645 done
12646 rm -f conftest*
12647 if test -n "$ac_declaration"; then
12648   echo '#ifdef __cplusplus' >>confdefs.h
12649   echo $ac_declaration      >>confdefs.h
12650   echo '#endif'             >>confdefs.h
12651 fi
12652
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657 fi
12658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12659 ac_ext=c
12660 ac_cpp='$CPP $CPPFLAGS'
12661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12664
12665 depcc="$CC"   am_compiler_list=
12666
12667 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12668 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12669 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12673   # We make a subdir and do the tests there.  Otherwise we can end up
12674   # making bogus files that we don't know about and never remove.  For
12675   # instance it was reported that on HP-UX the gcc test will end up
12676   # making a dummy file named `D' -- because `-MD' means `put the output
12677   # in D'.
12678   mkdir conftest.dir
12679   # Copy depcomp to subdir because otherwise we won't find it if we're
12680   # using a relative directory.
12681   cp "$am_depcomp" conftest.dir
12682   cd conftest.dir
12683   # We will build objects and dependencies in a subdirectory because
12684   # it helps to detect inapplicable dependency modes.  For instance
12685   # both Tru64's cc and ICC support -MD to output dependencies as a
12686   # side effect of compilation, but ICC will put the dependencies in
12687   # the current directory while Tru64 will put them in the object
12688   # directory.
12689   mkdir sub
12690
12691   am_cv_CC_dependencies_compiler_type=none
12692   if test "$am_compiler_list" = ""; then
12693      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12694   fi
12695   for depmode in $am_compiler_list; do
12696     # Setup a source with many dependencies, because some compilers
12697     # like to wrap large dependency lists on column 80 (with \), and
12698     # we should not choose a depcomp mode which is confused by this.
12699     #
12700     # We need to recreate these files for each test, as the compiler may
12701     # overwrite some of them when testing with obscure command lines.
12702     # This happens at least with the AIX C compiler.
12703     : > sub/conftest.c
12704     for i in 1 2 3 4 5 6; do
12705       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12706       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12707       # Solaris 8's {/usr,}/bin/sh.
12708       touch sub/conftst$i.h
12709     done
12710     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12711
12712     case $depmode in
12713     nosideeffect)
12714       # after this tag, mechanisms are not by side-effect, so they'll
12715       # only be used when explicitly requested
12716       if test "x$enable_dependency_tracking" = xyes; then
12717         continue
12718       else
12719         break
12720       fi
12721       ;;
12722     none) break ;;
12723     esac
12724     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12725     # mode.  It turns out that the SunPro C++ compiler does not properly
12726     # handle `-M -o', and we need to detect this.
12727     if depmode=$depmode \
12728        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12729        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12730        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12731          >/dev/null 2>conftest.err &&
12732        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12733        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12734        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12735       # icc doesn't choke on unknown options, it will just issue warnings
12736       # or remarks (even with -Werror).  So we grep stderr for any message
12737       # that says an option was ignored or not supported.
12738       # When given -MP, icc 7.0 and 7.1 complain thusly:
12739       #   icc: Command line warning: ignoring option '-M'; no argument required
12740       # The diagnosis changed in icc 8.0:
12741       #   icc: Command line remark: option '-MP' not supported
12742       if (grep 'ignoring option' conftest.err ||
12743           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12744         am_cv_CC_dependencies_compiler_type=$depmode
12745         break
12746       fi
12747     fi
12748   done
12749
12750   cd ..
12751   rm -rf conftest.dir
12752 else
12753   am_cv_CC_dependencies_compiler_type=none
12754 fi
12755
12756 fi
12757 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12758 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12760
12761
12762
12763 if
12764   test "x$enable_dependency_tracking" != xno \
12765   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12766   am__fastdepCC_TRUE=
12767   am__fastdepCC_FALSE='#'
12768 else
12769   am__fastdepCC_TRUE='#'
12770   am__fastdepCC_FALSE=
12771 fi
12772
12773
12774 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12775         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12776 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12777    { (exit 1); exit 1; }; }
12778 fi
12779
12780 # test for make depend flag
12781 OL_MKDEP=
12782 OL_MKDEP_FLAGS=
12783 if test -z "${MKDEP}"; then
12784         OL_MKDEP="${CC-cc}"
12785         if test -z "${MKDEP_FLAGS}"; then
12786                 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12787 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12788 if test "${ol_cv_mkdep+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791
12792                         ol_cv_mkdep=no
12793                         for flag in "-M" "-xM"; do
12794                                 cat > conftest.c <<EOF
12795  noCode;
12796 EOF
12797                                 if { ac_try='$OL_MKDEP $flag conftest.c'
12798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12799   (eval $ac_try) 2>&5
12800   ac_status=$?
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); }; } \
12803                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12804                                 then
12805                                         if test ! -f conftest."${ac_object}" ; then
12806                                                 ol_cv_mkdep=$flag
12807                                                 OL_MKDEP_FLAGS="$flag"
12808                                                 break
12809                                         fi
12810                                 fi
12811                         done
12812                         rm -f conftest*
12813
12814 fi
12815 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12816 echo "${ECHO_T}$ol_cv_mkdep" >&6
12817         else
12818                 cc_cv_mkdep=yes
12819                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12820         fi
12821 else
12822         cc_cv_mkdep=yes
12823         OL_MKDEP="${MKDEP}"
12824         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12825 fi
12826
12827
12828
12829 if test "${ol_cv_mkdep}" = no ; then
12830         # this will soon become an error
12831         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12832 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12833 fi
12834
12835 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12836 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12837 if test "${ac_cv_lib_s_afopen+set}" = set; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 else
12840   ac_check_lib_save_LIBS=$LIBS
12841 LIBS="-ls  $LIBS"
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h.  */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h.  */
12848
12849 /* Override any gcc2 internal prototype to avoid an error.  */
12850 #ifdef __cplusplus
12851 extern "C"
12852 #endif
12853 /* We use char because int might match the return type of a gcc2
12854    builtin and then its argument prototype would still apply.  */
12855 char afopen ();
12856 int
12857 main ()
12858 {
12859 afopen ();
12860   ;
12861   return 0;
12862 }
12863 _ACEOF
12864 rm -f conftest.$ac_objext conftest$ac_exeext
12865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866   (eval $ac_link) 2>conftest.er1
12867   ac_status=$?
12868   grep -v '^ *+' conftest.er1 >conftest.err
12869   rm -f conftest.er1
12870   cat conftest.err >&5
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -z "$ac_c_werror_flag"
12874                          || test ! -s conftest.err'
12875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12876   (eval $ac_try) 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; } &&
12880          { ac_try='test -s conftest$ac_exeext'
12881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882   (eval $ac_try) 2>&5
12883   ac_status=$?
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); }; }; then
12886   ac_cv_lib_s_afopen=yes
12887 else
12888   echo "$as_me: failed program was:" >&5
12889 sed 's/^/| /' conftest.$ac_ext >&5
12890
12891 ac_cv_lib_s_afopen=no
12892 fi
12893 rm -f conftest.err conftest.$ac_objext \
12894       conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12899 if test $ac_cv_lib_s_afopen = yes; then
12900
12901         AUTH_LIBS=-ls
12902
12903 cat >>confdefs.h <<\_ACEOF
12904 #define HAVE_AIX_SECURITY 1
12905 _ACEOF
12906
12907
12908 fi
12909
12910
12911 case "$target" in
12912 *-ibm-openedition)
12913         ac_cv_func_getopt=no
12914
12915 cat >>confdefs.h <<\_ACEOF
12916 #define BOTH_STRINGS_H 1
12917 _ACEOF
12918
12919         ;;
12920 esac
12921
12922 ol_link_modules=no
12923 WITH_MODULES_ENABLED=no
12924 if test $ol_enable_modules != no ; then
12925
12926 for ac_header in ltdl.h
12927 do
12928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930   echo "$as_me:$LINENO: checking for $ac_header" >&5
12931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 fi
12935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937 else
12938   # Is the header compilable?
12939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h.  */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h.  */
12947 $ac_includes_default
12948 #include <$ac_header>
12949 _ACEOF
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952   (eval $ac_compile) 2>conftest.er1
12953   ac_status=$?
12954   grep -v '^ *+' conftest.er1 >conftest.err
12955   rm -f conftest.er1
12956   cat conftest.err >&5
12957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958   (exit $ac_status); } &&
12959          { ac_try='test -z "$ac_c_werror_flag"
12960                          || test ! -s conftest.err'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; } &&
12966          { ac_try='test -s conftest.$ac_objext'
12967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968   (eval $ac_try) 2>&5
12969   ac_status=$?
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); }; }; then
12972   ac_header_compiler=yes
12973 else
12974   echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12976
12977 ac_header_compiler=no
12978 fi
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981 echo "${ECHO_T}$ac_header_compiler" >&6
12982
12983 # Is the header present?
12984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12986 cat >conftest.$ac_ext <<_ACEOF
12987 /* confdefs.h.  */
12988 _ACEOF
12989 cat confdefs.h >>conftest.$ac_ext
12990 cat >>conftest.$ac_ext <<_ACEOF
12991 /* end confdefs.h.  */
12992 #include <$ac_header>
12993 _ACEOF
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } >/dev/null; then
13002   if test -s conftest.err; then
13003     ac_cpp_err=$ac_c_preproc_warn_flag
13004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13005   else
13006     ac_cpp_err=
13007   fi
13008 else
13009   ac_cpp_err=yes
13010 fi
13011 if test -z "$ac_cpp_err"; then
13012   ac_header_preproc=yes
13013 else
13014   echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017   ac_header_preproc=no
13018 fi
13019 rm -f conftest.err conftest.$ac_ext
13020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021 echo "${ECHO_T}$ac_header_preproc" >&6
13022
13023 # So?  What about this header?
13024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025   yes:no: )
13026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030     ac_header_preproc=yes
13031     ;;
13032   no:yes:* )
13033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13045     (
13046       cat <<\_ASBOX
13047 ## ------------------------------------------ ##
13048 ## Report this to the AC_PACKAGE_NAME lists.  ##
13049 ## ------------------------------------------ ##
13050 _ASBOX
13051     ) |
13052       sed "s/^/$as_me: WARNING:     /" >&2
13053     ;;
13054 esac
13055 echo "$as_me:$LINENO: checking for $ac_header" >&5
13056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058   echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060   eval "$as_ac_Header=\$ac_header_preproc"
13061 fi
13062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13064
13065 fi
13066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067   cat >>confdefs.h <<_ACEOF
13068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069 _ACEOF
13070
13071 fi
13072
13073 done
13074
13075
13076         if test $ac_cv_header_ltdl_h = no ; then
13077                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13078 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13079    { (exit 1); exit 1; }; }
13080         fi
13081
13082         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13083 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13084 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13085   echo $ECHO_N "(cached) $ECHO_C" >&6
13086 else
13087   ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-lltdl  $LIBS"
13089 cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095
13096 /* Override any gcc2 internal prototype to avoid an error.  */
13097 #ifdef __cplusplus
13098 extern "C"
13099 #endif
13100 /* We use char because int might match the return type of a gcc2
13101    builtin and then its argument prototype would still apply.  */
13102 char lt_dlinit ();
13103 int
13104 main ()
13105 {
13106 lt_dlinit ();
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 rm -f conftest.$ac_objext conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113   (eval $ac_link) 2>conftest.er1
13114   ac_status=$?
13115   grep -v '^ *+' conftest.er1 >conftest.err
13116   rm -f conftest.er1
13117   cat conftest.err >&5
13118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119   (exit $ac_status); } &&
13120          { ac_try='test -z "$ac_c_werror_flag"
13121                          || test ! -s conftest.err'
13122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123   (eval $ac_try) 2>&5
13124   ac_status=$?
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); }; } &&
13127          { ac_try='test -s conftest$ac_exeext'
13128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129   (eval $ac_try) 2>&5
13130   ac_status=$?
13131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132   (exit $ac_status); }; }; then
13133   ac_cv_lib_ltdl_lt_dlinit=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138 ac_cv_lib_ltdl_lt_dlinit=no
13139 fi
13140 rm -f conftest.err conftest.$ac_objext \
13141       conftest$ac_exeext conftest.$ac_ext
13142 LIBS=$ac_check_lib_save_LIBS
13143 fi
13144 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13145 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13146 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13147
13148                 MODULES_LIBS=-lltdl
13149
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_LIBLTDL 1
13152 _ACEOF
13153
13154
13155 fi
13156
13157
13158         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13159                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13160 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13161    { (exit 1); exit 1; }; }
13162         fi
13163         ol_link_modules=yes
13164         WITH_MODULES_ENABLED=yes
13165
13166 else
13167         for i in $Backends; do
13168                 eval "ol_tmp=\$ol_enable_$i"
13169                 if test $ol_tmp = mod ; then
13170                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13171 echo "$as_me: WARNING: building static $i backend" >&2;}
13172                         eval "ol_enable_$i=yes"
13173                 fi
13174         done
13175         for i in $Overlays; do
13176                 eval "ol_tmp=\$ol_enable_$i"
13177                 if test $ol_tmp = mod ; then
13178                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13179 echo "$as_me: WARNING: building static $i overlay" >&2;}
13180                         eval "ol_enable_$i=yes"
13181                 fi
13182         done
13183 fi
13184
13185 # test for EBCDIC
13186 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13187 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13188 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13189   echo $ECHO_N "(cached) $ECHO_C" >&6
13190 else
13191
13192         cat >conftest.$ac_ext <<_ACEOF
13193 /* confdefs.h.  */
13194 _ACEOF
13195 cat confdefs.h >>conftest.$ac_ext
13196 cat >>conftest.$ac_ext <<_ACEOF
13197 /* end confdefs.h.  */
13198
13199 #if !('M' == 0xd4)
13200 #include <__ASCII__/generate_error.h>
13201 #endif
13202
13203 _ACEOF
13204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13206   ac_status=$?
13207   grep -v '^ *+' conftest.er1 >conftest.err
13208   rm -f conftest.er1
13209   cat conftest.err >&5
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); } >/dev/null; then
13212   if test -s conftest.err; then
13213     ac_cpp_err=$ac_c_preproc_warn_flag
13214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13215   else
13216     ac_cpp_err=
13217   fi
13218 else
13219   ac_cpp_err=yes
13220 fi
13221 if test -z "$ac_cpp_err"; then
13222   ol_cv_cpp_ebcdic=yes
13223 else
13224   echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13226
13227   ol_cv_cpp_ebcdic=no
13228 fi
13229 rm -f conftest.err conftest.$ac_ext
13230 fi
13231 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13232 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13233 if test $ol_cv_cpp_ebcdic = yes ; then
13234
13235 cat >>confdefs.h <<\_ACEOF
13236 #define HAVE_EBCDIC 1
13237 _ACEOF
13238
13239 fi
13240
13241 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13242 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13243 if test "${ol_cv_header_stdc+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 #include <stdlib.h>
13253 #include <stdarg.h>
13254 #include <string.h>
13255 #include <float.h>
13256 _ACEOF
13257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13258   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } >/dev/null; then
13265   if test -s conftest.err; then
13266     ac_cpp_err=$ac_c_preproc_warn_flag
13267     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13268   else
13269     ac_cpp_err=
13270   fi
13271 else
13272   ac_cpp_err=yes
13273 fi
13274 if test -z "$ac_cpp_err"; then
13275   ol_cv_header_stdc=yes
13276 else
13277   echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280   ol_cv_header_stdc=no
13281 fi
13282 rm -f conftest.err conftest.$ac_ext
13283
13284 if test $ol_cv_header_stdc = yes; then
13285   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13286 cat >conftest.$ac_ext <<_ACEOF
13287 /* confdefs.h.  */
13288 _ACEOF
13289 cat confdefs.h >>conftest.$ac_ext
13290 cat >>conftest.$ac_ext <<_ACEOF
13291 /* end confdefs.h.  */
13292 #include <string.h>
13293
13294 _ACEOF
13295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13296   $EGREP "memchr" >/dev/null 2>&1; then
13297   :
13298 else
13299   ol_cv_header_stdc=no
13300 fi
13301 rm -f conftest*
13302
13303 fi
13304
13305 if test $ol_cv_header_stdc = yes; then
13306   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13307 cat >conftest.$ac_ext <<_ACEOF
13308 /* confdefs.h.  */
13309 _ACEOF
13310 cat confdefs.h >>conftest.$ac_ext
13311 cat >>conftest.$ac_ext <<_ACEOF
13312 /* end confdefs.h.  */
13313 #include <stdlib.h>
13314
13315 _ACEOF
13316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13317   $EGREP "free" >/dev/null 2>&1; then
13318   :
13319 else
13320   ol_cv_header_stdc=no
13321 fi
13322 rm -f conftest*
13323
13324 fi
13325
13326 if test $ol_cv_header_stdc = yes; then
13327   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13328 if test "$cross_compiling" = yes; then
13329   :
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 #include <ctype.h>
13338 #ifndef HAVE_EBCDIC
13339 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13340 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13341 #else
13342 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13343                 || ('j' <= (c) && (c) <= 'r') \
13344                 || ('s' <= (c) && (c) <= 'z'))
13345 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
13346 #endif
13347 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13348 int main () { int i; for (i = 0; i < 256; i++)
13349 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13350 exit (0); }
13351
13352 _ACEOF
13353 rm -f conftest$ac_exeext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13355   (eval $ac_link) 2>&5
13356   ac_status=$?
13357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360   (eval $ac_try) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); }; }; then
13364   :
13365 else
13366   echo "$as_me: program exited with status $ac_status" >&5
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ( exit $ac_status )
13371 ol_cv_header_stdc=no
13372 fi
13373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13374 fi
13375 fi
13376 fi
13377 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13378 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13379 if test $ol_cv_header_stdc = yes; then
13380   cat >>confdefs.h <<\_ACEOF
13381 #define STDC_HEADERS 1
13382 _ACEOF
13383
13384 fi
13385 ac_cv_header_stdc=disable
13386
13387
13388 if test $ol_cv_header_stdc != yes; then
13389         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13390 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13391 fi
13392
13393
13394
13395
13396
13397
13398 ac_header_dirent=no
13399 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13400   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13401 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13402 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 #include <sys/types.h>
13413 #include <$ac_hdr>
13414
13415 int
13416 main ()
13417 {
13418 if ((DIR *) 0)
13419 return 0;
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426   (eval $ac_compile) 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -z "$ac_c_werror_flag"
13434                          || test ! -s conftest.err'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; } &&
13440          { ac_try='test -s conftest.$ac_objext'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   eval "$as_ac_Header=yes"
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 eval "$as_ac_Header=no"
13452 fi
13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13454 fi
13455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13458   cat >>confdefs.h <<_ACEOF
13459 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13460 _ACEOF
13461
13462 ac_header_dirent=$ac_hdr; break
13463 fi
13464
13465 done
13466 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13467 if test $ac_header_dirent = dirent.h; then
13468   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13469 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13470 if test "${ac_cv_search_opendir+set}" = set; then
13471   echo $ECHO_N "(cached) $ECHO_C" >&6
13472 else
13473   ac_func_search_save_LIBS=$LIBS
13474 ac_cv_search_opendir=no
13475 cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481
13482 /* Override any gcc2 internal prototype to avoid an error.  */
13483 #ifdef __cplusplus
13484 extern "C"
13485 #endif
13486 /* We use char because int might match the return type of a gcc2
13487    builtin and then its argument prototype would still apply.  */
13488 char opendir ();
13489 int
13490 main ()
13491 {
13492 opendir ();
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext conftest$ac_exeext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13499   (eval $ac_link) 2>conftest.er1
13500   ac_status=$?
13501   grep -v '^ *+' conftest.er1 >conftest.err
13502   rm -f conftest.er1
13503   cat conftest.err >&5
13504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505   (exit $ac_status); } &&
13506          { ac_try='test -z "$ac_c_werror_flag"
13507                          || test ! -s conftest.err'
13508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509   (eval $ac_try) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); }; } &&
13513          { ac_try='test -s conftest$ac_exeext'
13514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515   (eval $ac_try) 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; }; then
13519   ac_cv_search_opendir="none required"
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 fi
13525 rm -f conftest.err conftest.$ac_objext \
13526       conftest$ac_exeext conftest.$ac_ext
13527 if test "$ac_cv_search_opendir" = no; then
13528   for ac_lib in dir; do
13529     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13530     cat >conftest.$ac_ext <<_ACEOF
13531 /* confdefs.h.  */
13532 _ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h.  */
13536
13537 /* Override any gcc2 internal prototype to avoid an error.  */
13538 #ifdef __cplusplus
13539 extern "C"
13540 #endif
13541 /* We use char because int might match the return type of a gcc2
13542    builtin and then its argument prototype would still apply.  */
13543 char opendir ();
13544 int
13545 main ()
13546 {
13547 opendir ();
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 rm -f conftest.$ac_objext conftest$ac_exeext
13553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13554   (eval $ac_link) 2>conftest.er1
13555   ac_status=$?
13556   grep -v '^ *+' conftest.er1 >conftest.err
13557   rm -f conftest.er1
13558   cat conftest.err >&5
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); } &&
13561          { ac_try='test -z "$ac_c_werror_flag"
13562                          || test ! -s conftest.err'
13563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13564   (eval $ac_try) 2>&5
13565   ac_status=$?
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); }; } &&
13568          { ac_try='test -s conftest$ac_exeext'
13569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570   (eval $ac_try) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); }; }; then
13574   ac_cv_search_opendir="-l$ac_lib"
13575 break
13576 else
13577   echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 fi
13581 rm -f conftest.err conftest.$ac_objext \
13582       conftest$ac_exeext conftest.$ac_ext
13583   done
13584 fi
13585 LIBS=$ac_func_search_save_LIBS
13586 fi
13587 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13588 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13589 if test "$ac_cv_search_opendir" != no; then
13590   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13591
13592 fi
13593
13594 else
13595   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13596 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13597 if test "${ac_cv_search_opendir+set}" = set; then
13598   echo $ECHO_N "(cached) $ECHO_C" >&6
13599 else
13600   ac_func_search_save_LIBS=$LIBS
13601 ac_cv_search_opendir=no
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608
13609 /* Override any gcc2 internal prototype to avoid an error.  */
13610 #ifdef __cplusplus
13611 extern "C"
13612 #endif
13613 /* We use char because int might match the return type of a gcc2
13614    builtin and then its argument prototype would still apply.  */
13615 char opendir ();
13616 int
13617 main ()
13618 {
13619 opendir ();
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 rm -f conftest.$ac_objext conftest$ac_exeext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13626   (eval $ac_link) 2>conftest.er1
13627   ac_status=$?
13628   grep -v '^ *+' conftest.er1 >conftest.err
13629   rm -f conftest.er1
13630   cat conftest.err >&5
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); } &&
13633          { ac_try='test -z "$ac_c_werror_flag"
13634                          || test ! -s conftest.err'
13635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636   (eval $ac_try) 2>&5
13637   ac_status=$?
13638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639   (exit $ac_status); }; } &&
13640          { ac_try='test -s conftest$ac_exeext'
13641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642   (eval $ac_try) 2>&5
13643   ac_status=$?
13644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645   (exit $ac_status); }; }; then
13646   ac_cv_search_opendir="none required"
13647 else
13648   echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13650
13651 fi
13652 rm -f conftest.err conftest.$ac_objext \
13653       conftest$ac_exeext conftest.$ac_ext
13654 if test "$ac_cv_search_opendir" = no; then
13655   for ac_lib in x; do
13656     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13657     cat >conftest.$ac_ext <<_ACEOF
13658 /* confdefs.h.  */
13659 _ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h.  */
13663
13664 /* Override any gcc2 internal prototype to avoid an error.  */
13665 #ifdef __cplusplus
13666 extern "C"
13667 #endif
13668 /* We use char because int might match the return type of a gcc2
13669    builtin and then its argument prototype would still apply.  */
13670 char opendir ();
13671 int
13672 main ()
13673 {
13674 opendir ();
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681   (eval $ac_link) 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -z "$ac_c_werror_flag"
13689                          || test ! -s conftest.err'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; } &&
13695          { ac_try='test -s conftest$ac_exeext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_cv_search_opendir="-l$ac_lib"
13702 break
13703 else
13704   echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 fi
13708 rm -f conftest.err conftest.$ac_objext \
13709       conftest$ac_exeext conftest.$ac_ext
13710   done
13711 fi
13712 LIBS=$ac_func_search_save_LIBS
13713 fi
13714 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13715 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13716 if test "$ac_cv_search_opendir" != no; then
13717   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13718
13719 fi
13720
13721 fi
13722
13723 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13724 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13725 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13726   echo $ECHO_N "(cached) $ECHO_C" >&6
13727 else
13728   cat >conftest.$ac_ext <<_ACEOF
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 #include <sys/types.h>
13735 #include <sys/wait.h>
13736 #ifndef WEXITSTATUS
13737 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13738 #endif
13739 #ifndef WIFEXITED
13740 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13741 #endif
13742
13743 int
13744 main ()
13745 {
13746   int s;
13747   wait (&s);
13748   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest.$ac_objext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13755   (eval $ac_compile) 2>conftest.er1
13756   ac_status=$?
13757   grep -v '^ *+' conftest.er1 >conftest.err
13758   rm -f conftest.er1
13759   cat conftest.err >&5
13760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761   (exit $ac_status); } &&
13762          { ac_try='test -z "$ac_c_werror_flag"
13763                          || test ! -s conftest.err'
13764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765   (eval $ac_try) 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; } &&
13769          { ac_try='test -s conftest.$ac_objext'
13770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771   (eval $ac_try) 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   ac_cv_header_sys_wait_h=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780 ac_cv_header_sys_wait_h=no
13781 fi
13782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13783 fi
13784 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13786 if test $ac_cv_header_sys_wait_h = yes; then
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_SYS_WAIT_H 1
13790 _ACEOF
13791
13792 fi
13793
13794 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13795 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13796 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13797   echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799   cat >conftest.$ac_ext <<_ACEOF
13800 /* confdefs.h.  */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h.  */
13805 #include <sys/types.h>
13806 #include <termios.h>
13807 #ifdef TIOCGWINSZ
13808   yes
13809 #endif
13810
13811 _ACEOF
13812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13813   $EGREP "yes" >/dev/null 2>&1; then
13814   ac_cv_sys_tiocgwinsz_in_termios_h=yes
13815 else
13816   ac_cv_sys_tiocgwinsz_in_termios_h=no
13817 fi
13818 rm -f conftest*
13819
13820 fi
13821 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13822 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13823
13824 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13825   echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13826 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13827 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   cat >conftest.$ac_ext <<_ACEOF
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836 #include <sys/types.h>
13837 #include <sys/ioctl.h>
13838 #ifdef TIOCGWINSZ
13839   yes
13840 #endif
13841
13842 _ACEOF
13843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13844   $EGREP "yes" >/dev/null 2>&1; then
13845   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13846 else
13847   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13848 fi
13849 rm -f conftest*
13850
13851 fi
13852 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13853 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13854
13855   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13856
13857 cat >>confdefs.h <<\_ACEOF
13858 #define GWINSZ_IN_SYS_IOCTL 1
13859 _ACEOF
13860
13861   fi
13862 fi
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912 for ac_header in \
13913         arpa/inet.h             \
13914         arpa/nameser.h          \
13915         assert.h                \
13916         bits/types.h            \
13917         conio.h                 \
13918         crypt.h                 \
13919         direct.h                \
13920         errno.h                 \
13921         fcntl.h                 \
13922         filio.h                 \
13923         getopt.h                \
13924         grp.h                   \
13925         io.h                    \
13926         libutil.h               \
13927         limits.h                \
13928         locale.h                \
13929         netinet/tcp.h           \
13930         malloc.h                \
13931         memory.h                \
13932         psap.h                  \
13933         pwd.h                   \
13934         process.h               \
13935         sgtty.h                 \
13936         shadow.h                \
13937         stddef.h                \
13938         string.h                \
13939         strings.h               \
13940         sysexits.h              \
13941         sys/file.h              \
13942         sys/filio.h             \
13943         sys/errno.h             \
13944         sys/ioctl.h             \
13945         sys/param.h             \
13946         sys/resource.h          \
13947         sys/select.h            \
13948         sys/socket.h            \
13949         sys/stat.h              \
13950         sys/syslog.h            \
13951         sys/time.h              \
13952         sys/types.h             \
13953         sys/uio.h               \
13954         syslog.h                \
13955         termios.h               \
13956         unistd.h                \
13957         utime.h                 \
13958         winsock.h               \
13959         winsock2.h              \
13960
13961 do
13962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13964   echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13967   echo $ECHO_N "(cached) $ECHO_C" >&6
13968 fi
13969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13971 else
13972   # Is the header compilable?
13973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 /* confdefs.h.  */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 #include <$ac_header>
13983 _ACEOF
13984 rm -f conftest.$ac_objext
13985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13986   (eval $ac_compile) 2>conftest.er1
13987   ac_status=$?
13988   grep -v '^ *+' conftest.er1 >conftest.err
13989   rm -f conftest.er1
13990   cat conftest.err >&5
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); } &&
13993          { ac_try='test -z "$ac_c_werror_flag"
13994                          || test ! -s conftest.err'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; } &&
14000          { ac_try='test -s conftest.$ac_objext'
14001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002   (eval $ac_try) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; }; then
14006   ac_header_compiler=yes
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 ac_header_compiler=no
14012 fi
14013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14015 echo "${ECHO_T}$ac_header_compiler" >&6
14016
14017 # Is the header present?
14018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026 #include <$ac_header>
14027 _ACEOF
14028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } >/dev/null; then
14036   if test -s conftest.err; then
14037     ac_cpp_err=$ac_c_preproc_warn_flag
14038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14039   else
14040     ac_cpp_err=
14041   fi
14042 else
14043   ac_cpp_err=yes
14044 fi
14045 if test -z "$ac_cpp_err"; then
14046   ac_header_preproc=yes
14047 else
14048   echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051   ac_header_preproc=no
14052 fi
14053 rm -f conftest.err conftest.$ac_ext
14054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14055 echo "${ECHO_T}$ac_header_preproc" >&6
14056
14057 # So?  What about this header?
14058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14059   yes:no: )
14060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14064     ac_header_preproc=yes
14065     ;;
14066   no:yes:* )
14067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14079     (
14080       cat <<\_ASBOX
14081 ## ------------------------------------------ ##
14082 ## Report this to the AC_PACKAGE_NAME lists.  ##
14083 ## ------------------------------------------ ##
14084 _ASBOX
14085     ) |
14086       sed "s/^/$as_me: WARNING:     /" >&2
14087     ;;
14088 esac
14089 echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 else
14094   eval "$as_ac_Header=\$ac_header_preproc"
14095 fi
14096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14098
14099 fi
14100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14101   cat >>confdefs.h <<_ACEOF
14102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14103 _ACEOF
14104
14105 fi
14106
14107 done
14108
14109
14110
14111 for ac_header in resolv.h
14112 do
14113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14114 echo "$as_me:$LINENO: checking for $ac_header" >&5
14115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117   echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119   cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 $ac_includes_default
14126 #include <netinet/in.h>
14127
14128
14129 #include <$ac_header>
14130 _ACEOF
14131 rm -f conftest.$ac_objext
14132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14133   (eval $ac_compile) 2>conftest.er1
14134   ac_status=$?
14135   grep -v '^ *+' conftest.er1 >conftest.err
14136   rm -f conftest.er1
14137   cat conftest.err >&5
14138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139   (exit $ac_status); } &&
14140          { ac_try='test -z "$ac_c_werror_flag"
14141                          || test ! -s conftest.err'
14142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143   (eval $ac_try) 2>&5
14144   ac_status=$?
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); }; } &&
14147          { ac_try='test -s conftest.$ac_objext'
14148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149   (eval $ac_try) 2>&5
14150   ac_status=$?
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); }; }; then
14153   eval "$as_ac_Header=yes"
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158 eval "$as_ac_Header=no"
14159 fi
14160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14161 fi
14162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14165   cat >>confdefs.h <<_ACEOF
14166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14167 _ACEOF
14168
14169 fi
14170
14171 done
14172
14173
14174
14175 for ac_header in sys/ucred.h
14176 do
14177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14178 echo "$as_me:$LINENO: checking for $ac_header" >&5
14179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183   cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 $ac_includes_default
14190 #ifdef HAVE_SYS_PARAM_H
14191 #include <sys/param.h>
14192 #endif
14193
14194
14195 #include <$ac_header>
14196 _ACEOF
14197 rm -f conftest.$ac_objext
14198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14199   (eval $ac_compile) 2>conftest.er1
14200   ac_status=$?
14201   grep -v '^ *+' conftest.er1 >conftest.err
14202   rm -f conftest.er1
14203   cat conftest.err >&5
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -z "$ac_c_werror_flag"
14207                          || test ! -s conftest.err'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; } &&
14213          { ac_try='test -s conftest.$ac_objext'
14214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14215   (eval $ac_try) 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; }; then
14219   eval "$as_ac_Header=yes"
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224 eval "$as_ac_Header=no"
14225 fi
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14231   cat >>confdefs.h <<_ACEOF
14232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14233 _ACEOF
14234
14235 fi
14236
14237 done
14238
14239
14240
14241
14242
14243 for ac_func in sigaction sigset
14244 do
14245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14246 echo "$as_me:$LINENO: checking for $ac_func" >&5
14247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14248 if eval "test \"\${$as_ac_var+set}\" = set"; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251   cat >conftest.$ac_ext <<_ACEOF
14252 /* confdefs.h.  */
14253 _ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h.  */
14257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14258    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14259 #define $ac_func innocuous_$ac_func
14260
14261 /* System header to define __stub macros and hopefully few prototypes,
14262     which can conflict with char $ac_func (); below.
14263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14264     <limits.h> exists even on freestanding compilers.  */
14265
14266 #ifdef __STDC__
14267 # include <limits.h>
14268 #else
14269 # include <assert.h>
14270 #endif
14271
14272 #undef $ac_func
14273
14274 /* Override any gcc2 internal prototype to avoid an error.  */
14275 #ifdef __cplusplus
14276 extern "C"
14277 {
14278 #endif
14279 /* We use char because int might match the return type of a gcc2
14280    builtin and then its argument prototype would still apply.  */
14281 char $ac_func ();
14282 /* The GNU C library defines this for functions which it implements
14283     to always fail with ENOSYS.  Some functions are actually named
14284     something starting with __ and the normal name is an alias.  */
14285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14286 choke me
14287 #else
14288 char (*f) () = $ac_func;
14289 #endif
14290 #ifdef __cplusplus
14291 }
14292 #endif
14293
14294 int
14295 main ()
14296 {
14297 return f != $ac_func;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14304   (eval $ac_link) 2>conftest.er1
14305   ac_status=$?
14306   grep -v '^ *+' conftest.er1 >conftest.err
14307   rm -f conftest.er1
14308   cat conftest.err >&5
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -z "$ac_c_werror_flag"
14312                          || test ! -s conftest.err'
14313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314   (eval $ac_try) 2>&5
14315   ac_status=$?
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); }; } &&
14318          { ac_try='test -s conftest$ac_exeext'
14319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320   (eval $ac_try) 2>&5
14321   ac_status=$?
14322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323   (exit $ac_status); }; }; then
14324   eval "$as_ac_var=yes"
14325 else
14326   echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 eval "$as_ac_var=no"
14330 fi
14331 rm -f conftest.err conftest.$ac_objext \
14332       conftest$ac_exeext conftest.$ac_ext
14333 fi
14334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14336 if test `eval echo '${'$as_ac_var'}'` = yes; then
14337   cat >>confdefs.h <<_ACEOF
14338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14339 _ACEOF
14340
14341 fi
14342 done
14343
14344
14345 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14346
14347 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14348 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14349 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14350   echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352   ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lV3  $LIBS"
14354 cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360
14361 /* Override any gcc2 internal prototype to avoid an error.  */
14362 #ifdef __cplusplus
14363 extern "C"
14364 #endif
14365 /* We use char because int might match the return type of a gcc2
14366    builtin and then its argument prototype would still apply.  */
14367 char sigset ();
14368 int
14369 main ()
14370 {
14371 sigset ();
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext conftest$ac_exeext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14378   (eval $ac_link) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag"
14386                          || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest$ac_exeext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_lib_V3_sigset=yes
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_cv_lib_V3_sigset=no
14404 fi
14405 rm -f conftest.err conftest.$ac_objext \
14406       conftest$ac_exeext conftest.$ac_ext
14407 LIBS=$ac_check_lib_save_LIBS
14408 fi
14409 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14410 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14411 if test $ac_cv_lib_V3_sigset = yes; then
14412   cat >>confdefs.h <<_ACEOF
14413 #define HAVE_LIBV3 1
14414 _ACEOF
14415
14416   LIBS="-lV3 $LIBS"
14417
14418 fi
14419
14420 fi
14421
14422 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
14423 echo "$as_me:$LINENO: checking for winsock" >&5
14424 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14425 if test "${ol_cv_winsock+set}" = set; then
14426   echo $ECHO_N "(cached) $ECHO_C" >&6
14427 else
14428   save_LIBS="$LIBS"
14429 for curlib in ws2_32 wsock32; do
14430         LIBS="$LIBS -l$curlib"
14431         cat >conftest.$ac_ext <<_ACEOF
14432 /* confdefs.h.  */
14433 _ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h.  */
14437 #include <winsock.h>
14438
14439 int
14440 main ()
14441 {
14442
14443                         socket(0,0,0);
14444                         select(0,NULL,NULL,NULL,NULL);
14445                         closesocket(0);
14446                         gethostname(NULL,0);
14447
14448   ;
14449   return 0;
14450 }
14451 _ACEOF
14452 rm -f conftest.$ac_objext conftest$ac_exeext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14454   (eval $ac_link) 2>conftest.er1
14455   ac_status=$?
14456   grep -v '^ *+' conftest.er1 >conftest.err
14457   rm -f conftest.er1
14458   cat conftest.err >&5
14459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460   (exit $ac_status); } &&
14461          { ac_try='test -z "$ac_c_werror_flag"
14462                          || test ! -s conftest.err'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; } &&
14468          { ac_try='test -s conftest$ac_exeext'
14469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470   (eval $ac_try) 2>&5
14471   ac_status=$?
14472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473   (exit $ac_status); }; }; then
14474   ol_cv_winsock=yes
14475 else
14476   echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ol_cv_winsock=no
14480 fi
14481 rm -f conftest.err conftest.$ac_objext \
14482       conftest$ac_exeext conftest.$ac_ext
14483
14484         if test $ol_cv_winsock = yes; then
14485
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_WINSOCK 1
14488 _ACEOF
14489
14490                 ac_cv_func_socket=yes
14491                 ac_cv_func_select=yes
14492                 ac_cv_func_closesocket=yes
14493                 ac_cv_func_gethostname=yes
14494                 if test $curlib = ws2_32; then
14495                         ol_cv_winsock=winsock2
14496
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_WINSOCK2 1
14499 _ACEOF
14500
14501                 fi
14502                 break
14503         fi
14504         LIBS="$save_LIBS"
14505 done
14506 fi
14507 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14508 echo "${ECHO_T}$ol_cv_winsock" >&6
14509 fi
14510
14511
14512 echo "$as_me:$LINENO: checking for socket" >&5
14513 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14514 if test "${ac_cv_func_socket+set}" = set; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 else
14517   cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14525 #define socket innocuous_socket
14526
14527 /* System header to define __stub macros and hopefully few prototypes,
14528     which can conflict with char socket (); below.
14529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14530     <limits.h> exists even on freestanding compilers.  */
14531
14532 #ifdef __STDC__
14533 # include <limits.h>
14534 #else
14535 # include <assert.h>
14536 #endif
14537
14538 #undef socket
14539
14540 /* Override any gcc2 internal prototype to avoid an error.  */
14541 #ifdef __cplusplus
14542 extern "C"
14543 {
14544 #endif
14545 /* We use char because int might match the return type of a gcc2
14546    builtin and then its argument prototype would still apply.  */
14547 char socket ();
14548 /* The GNU C library defines this for functions which it implements
14549     to always fail with ENOSYS.  Some functions are actually named
14550     something starting with __ and the normal name is an alias.  */
14551 #if defined (__stub_socket) || defined (__stub___socket)
14552 choke me
14553 #else
14554 char (*f) () = socket;
14555 #endif
14556 #ifdef __cplusplus
14557 }
14558 #endif
14559
14560 int
14561 main ()
14562 {
14563 return f != socket;
14564   ;
14565   return 0;
14566 }
14567 _ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14570   (eval $ac_link) 2>conftest.er1
14571   ac_status=$?
14572   grep -v '^ *+' conftest.er1 >conftest.err
14573   rm -f conftest.er1
14574   cat conftest.err >&5
14575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576   (exit $ac_status); } &&
14577          { ac_try='test -z "$ac_c_werror_flag"
14578                          || test ! -s conftest.err'
14579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580   (eval $ac_try) 2>&5
14581   ac_status=$?
14582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583   (exit $ac_status); }; } &&
14584          { ac_try='test -s conftest$ac_exeext'
14585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14586   (eval $ac_try) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; }; then
14590   ac_cv_func_socket=yes
14591 else
14592   echo "$as_me: failed program was:" >&5
14593 sed 's/^/| /' conftest.$ac_ext >&5
14594
14595 ac_cv_func_socket=no
14596 fi
14597 rm -f conftest.err conftest.$ac_objext \
14598       conftest$ac_exeext conftest.$ac_ext
14599 fi
14600 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14601 echo "${ECHO_T}$ac_cv_func_socket" >&6
14602 if test $ac_cv_func_socket = yes; then
14603   :
14604 else
14605
14606
14607 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14608 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14609 if test "${ac_cv_lib_socket_main+set}" = set; then
14610   echo $ECHO_N "(cached) $ECHO_C" >&6
14611 else
14612   ac_check_lib_save_LIBS=$LIBS
14613 LIBS="-lsocket  $LIBS"
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h.  */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h.  */
14620
14621
14622 int
14623 main ()
14624 {
14625 main ();
14626   ;
14627   return 0;
14628 }
14629 _ACEOF
14630 rm -f conftest.$ac_objext conftest$ac_exeext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632   (eval $ac_link) 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } &&
14639          { ac_try='test -z "$ac_c_werror_flag"
14640                          || test ! -s conftest.err'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; } &&
14646          { ac_try='test -s conftest$ac_exeext'
14647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648   (eval $ac_try) 2>&5
14649   ac_status=$?
14650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651   (exit $ac_status); }; }; then
14652   ac_cv_lib_socket_main=yes
14653 else
14654   echo "$as_me: failed program was:" >&5
14655 sed 's/^/| /' conftest.$ac_ext >&5
14656
14657 ac_cv_lib_socket_main=no
14658 fi
14659 rm -f conftest.err conftest.$ac_objext \
14660       conftest$ac_exeext conftest.$ac_ext
14661 LIBS=$ac_check_lib_save_LIBS
14662 fi
14663 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14664 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14665 if test $ac_cv_lib_socket_main = yes; then
14666   cat >>confdefs.h <<_ACEOF
14667 #define HAVE_LIBSOCKET 1
14668 _ACEOF
14669
14670   LIBS="-lsocket $LIBS"
14671
14672 fi
14673
14674
14675 echo "$as_me:$LINENO: checking for main in -lnet" >&5
14676 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
14677 if test "${ac_cv_lib_net_main+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   ac_check_lib_save_LIBS=$LIBS
14681 LIBS="-lnet  $LIBS"
14682 cat >conftest.$ac_ext <<_ACEOF
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688
14689
14690 int
14691 main ()
14692 {
14693 main ();
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700   (eval $ac_link) 2>conftest.er1
14701   ac_status=$?
14702   grep -v '^ *+' conftest.er1 >conftest.err
14703   rm -f conftest.er1
14704   cat conftest.err >&5
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); } &&
14707          { ac_try='test -z "$ac_c_werror_flag"
14708                          || test ! -s conftest.err'
14709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710   (eval $ac_try) 2>&5
14711   ac_status=$?
14712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713   (exit $ac_status); }; } &&
14714          { ac_try='test -s conftest$ac_exeext'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; }; then
14720   ac_cv_lib_net_main=yes
14721 else
14722   echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.$ac_ext >&5
14724
14725 ac_cv_lib_net_main=no
14726 fi
14727 rm -f conftest.err conftest.$ac_objext \
14728       conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14730 fi
14731 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
14732 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
14733 if test $ac_cv_lib_net_main = yes; then
14734   cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBNET 1
14736 _ACEOF
14737
14738   LIBS="-lnet $LIBS"
14739
14740 fi
14741
14742
14743 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
14744 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
14745 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
14746   echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748   ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lnsl_s  $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756
14757
14758 int
14759 main ()
14760 {
14761 main ();
14762   ;
14763   return 0;
14764 }
14765 _ACEOF
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14768   (eval $ac_link) 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag"
14776                          || test ! -s conftest.err'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; } &&
14782          { ac_try='test -s conftest$ac_exeext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788   ac_cv_lib_nsl_s_main=yes
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793 ac_cv_lib_nsl_s_main=no
14794 fi
14795 rm -f conftest.err conftest.$ac_objext \
14796       conftest$ac_exeext conftest.$ac_ext
14797 LIBS=$ac_check_lib_save_LIBS
14798 fi
14799 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
14800 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
14801 if test $ac_cv_lib_nsl_s_main = yes; then
14802   cat >>confdefs.h <<_ACEOF
14803 #define HAVE_LIBNSL_S 1
14804 _ACEOF
14805
14806   LIBS="-lnsl_s $LIBS"
14807
14808 fi
14809
14810
14811 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14812 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
14813 if test "${ac_cv_lib_nsl_main+set}" = set; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   ac_check_lib_save_LIBS=$LIBS
14817 LIBS="-lnsl  $LIBS"
14818 cat >conftest.$ac_ext <<_ACEOF
14819 /* confdefs.h.  */
14820 _ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h.  */
14824
14825
14826 int
14827 main ()
14828 {
14829 main ();
14830   ;
14831   return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14836   (eval $ac_link) 2>conftest.er1
14837   ac_status=$?
14838   grep -v '^ *+' conftest.er1 >conftest.err
14839   rm -f conftest.er1
14840   cat conftest.err >&5
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); } &&
14843          { ac_try='test -z "$ac_c_werror_flag"
14844                          || test ! -s conftest.err'
14845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846   (eval $ac_try) 2>&5
14847   ac_status=$?
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); }; } &&
14850          { ac_try='test -s conftest$ac_exeext'
14851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14852   (eval $ac_try) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); }; }; then
14856   ac_cv_lib_nsl_main=yes
14857 else
14858   echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14860
14861 ac_cv_lib_nsl_main=no
14862 fi
14863 rm -f conftest.err conftest.$ac_objext \
14864       conftest$ac_exeext conftest.$ac_ext
14865 LIBS=$ac_check_lib_save_LIBS
14866 fi
14867 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14868 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
14869 if test $ac_cv_lib_nsl_main = yes; then
14870   cat >>confdefs.h <<_ACEOF
14871 #define HAVE_LIBNSL 1
14872 _ACEOF
14873
14874   LIBS="-lnsl $LIBS"
14875
14876 fi
14877
14878
14879 echo "$as_me:$LINENO: checking for socket in -linet" >&5
14880 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
14881 if test "${ac_cv_lib_inet_socket+set}" = set; then
14882   echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884   ac_check_lib_save_LIBS=$LIBS
14885 LIBS="-linet  $LIBS"
14886 cat >conftest.$ac_ext <<_ACEOF
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892
14893 /* Override any gcc2 internal prototype to avoid an error.  */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 /* We use char because int might match the return type of a gcc2
14898    builtin and then its argument prototype would still apply.  */
14899 char socket ();
14900 int
14901 main ()
14902 {
14903 socket ();
14904   ;
14905   return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910   (eval $ac_link) 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } &&
14917          { ac_try='test -z "$ac_c_werror_flag"
14918                          || test ! -s conftest.err'
14919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920   (eval $ac_try) 2>&5
14921   ac_status=$?
14922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923   (exit $ac_status); }; } &&
14924          { ac_try='test -s conftest$ac_exeext'
14925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926   (eval $ac_try) 2>&5
14927   ac_status=$?
14928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929   (exit $ac_status); }; }; then
14930   ac_cv_lib_inet_socket=yes
14931 else
14932   echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14934
14935 ac_cv_lib_inet_socket=no
14936 fi
14937 rm -f conftest.err conftest.$ac_objext \
14938       conftest$ac_exeext conftest.$ac_ext
14939 LIBS=$ac_check_lib_save_LIBS
14940 fi
14941 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
14942 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
14943 if test $ac_cv_lib_inet_socket = yes; then
14944   cat >>confdefs.h <<_ACEOF
14945 #define HAVE_LIBINET 1
14946 _ACEOF
14947
14948   LIBS="-linet $LIBS"
14949
14950 fi
14951
14952
14953 echo "$as_me:$LINENO: checking for main in -lgen" >&5
14954 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
14955 if test "${ac_cv_lib_gen_main+set}" = set; then
14956   echo $ECHO_N "(cached) $ECHO_C" >&6
14957 else
14958   ac_check_lib_save_LIBS=$LIBS
14959 LIBS="-lgen  $LIBS"
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h.  */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h.  */
14966
14967
14968 int
14969 main ()
14970 {
14971 main ();
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14978   (eval $ac_link) 2>conftest.er1
14979   ac_status=$?
14980   grep -v '^ *+' conftest.er1 >conftest.err
14981   rm -f conftest.er1
14982   cat conftest.err >&5
14983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984   (exit $ac_status); } &&
14985          { ac_try='test -z "$ac_c_werror_flag"
14986                          || test ! -s conftest.err'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; } &&
14992          { ac_try='test -s conftest$ac_exeext'
14993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994   (eval $ac_try) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; }; then
14998   ac_cv_lib_gen_main=yes
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_gen_main=no
15004 fi
15005 rm -f conftest.err conftest.$ac_objext \
15006       conftest$ac_exeext conftest.$ac_ext
15007 LIBS=$ac_check_lib_save_LIBS
15008 fi
15009 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15010 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15011 if test $ac_cv_lib_gen_main = yes; then
15012   cat >>confdefs.h <<_ACEOF
15013 #define HAVE_LIBGEN 1
15014 _ACEOF
15015
15016   LIBS="-lgen $LIBS"
15017
15018 fi
15019
15020
15021 fi
15022
15023
15024 echo "$as_me:$LINENO: checking for select" >&5
15025 echo $ECHO_N "checking for select... $ECHO_C" >&6
15026 if test "${ac_cv_func_select+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029   cat >conftest.$ac_ext <<_ACEOF
15030 /* confdefs.h.  */
15031 _ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h.  */
15035 /* Define select to an innocuous variant, in case <limits.h> declares select.
15036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15037 #define select innocuous_select
15038
15039 /* System header to define __stub macros and hopefully few prototypes,
15040     which can conflict with char select (); below.
15041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15042     <limits.h> exists even on freestanding compilers.  */
15043
15044 #ifdef __STDC__
15045 # include <limits.h>
15046 #else
15047 # include <assert.h>
15048 #endif
15049
15050 #undef select
15051
15052 /* Override any gcc2 internal prototype to avoid an error.  */
15053 #ifdef __cplusplus
15054 extern "C"
15055 {
15056 #endif
15057 /* We use char because int might match the return type of a gcc2
15058    builtin and then its argument prototype would still apply.  */
15059 char select ();
15060 /* The GNU C library defines this for functions which it implements
15061     to always fail with ENOSYS.  Some functions are actually named
15062     something starting with __ and the normal name is an alias.  */
15063 #if defined (__stub_select) || defined (__stub___select)
15064 choke me
15065 #else
15066 char (*f) () = select;
15067 #endif
15068 #ifdef __cplusplus
15069 }
15070 #endif
15071
15072 int
15073 main ()
15074 {
15075 return f != select;
15076   ;
15077   return 0;
15078 }
15079 _ACEOF
15080 rm -f conftest.$ac_objext conftest$ac_exeext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15082   (eval $ac_link) 2>conftest.er1
15083   ac_status=$?
15084   grep -v '^ *+' conftest.er1 >conftest.err
15085   rm -f conftest.er1
15086   cat conftest.err >&5
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); } &&
15089          { ac_try='test -z "$ac_c_werror_flag"
15090                          || test ! -s conftest.err'
15091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092   (eval $ac_try) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; } &&
15096          { ac_try='test -s conftest$ac_exeext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102   ac_cv_func_select=yes
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 ac_cv_func_select=no
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111 fi
15112 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15113 echo "${ECHO_T}$ac_cv_func_select" >&6
15114 if test $ac_cv_func_select = yes; then
15115   :
15116 else
15117   { { echo "$as_me:$LINENO: error: select() required." >&5
15118 echo "$as_me: error: select() required." >&2;}
15119    { (exit 1); exit 1; }; }
15120 fi
15121
15122
15123 if test "${ac_cv_header_winsock_h}" != yes; then
15124
15125
15126 for ac_header in sys/select.h sys/socket.h
15127 do
15128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15129 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130   echo "$as_me:$LINENO: checking for $ac_header" >&5
15131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15133   echo $ECHO_N "(cached) $ECHO_C" >&6
15134 fi
15135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15137 else
15138   # Is the header compilable?
15139 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15141 cat >conftest.$ac_ext <<_ACEOF
15142 /* confdefs.h.  */
15143 _ACEOF
15144 cat confdefs.h >>conftest.$ac_ext
15145 cat >>conftest.$ac_ext <<_ACEOF
15146 /* end confdefs.h.  */
15147 $ac_includes_default
15148 #include <$ac_header>
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152   (eval $ac_compile) 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag"
15160                          || test ! -s conftest.err'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_header_compiler=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_header_compiler=no
15178 fi
15179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15181 echo "${ECHO_T}$ac_header_compiler" >&6
15182
15183 # Is the header present?
15184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15186 cat >conftest.$ac_ext <<_ACEOF
15187 /* confdefs.h.  */
15188 _ACEOF
15189 cat confdefs.h >>conftest.$ac_ext
15190 cat >>conftest.$ac_ext <<_ACEOF
15191 /* end confdefs.h.  */
15192 #include <$ac_header>
15193 _ACEOF
15194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15196   ac_status=$?
15197   grep -v '^ *+' conftest.er1 >conftest.err
15198   rm -f conftest.er1
15199   cat conftest.err >&5
15200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201   (exit $ac_status); } >/dev/null; then
15202   if test -s conftest.err; then
15203     ac_cpp_err=$ac_c_preproc_warn_flag
15204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15205   else
15206     ac_cpp_err=
15207   fi
15208 else
15209   ac_cpp_err=yes
15210 fi
15211 if test -z "$ac_cpp_err"; then
15212   ac_header_preproc=yes
15213 else
15214   echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15216
15217   ac_header_preproc=no
15218 fi
15219 rm -f conftest.err conftest.$ac_ext
15220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6
15222
15223 # So?  What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225   yes:no: )
15226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230     ac_header_preproc=yes
15231     ;;
15232   no:yes:* )
15233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245     (
15246       cat <<\_ASBOX
15247 ## ------------------------------------------ ##
15248 ## Report this to the AC_PACKAGE_NAME lists.  ##
15249 ## ------------------------------------------ ##
15250 _ASBOX
15251     ) |
15252       sed "s/^/$as_me: WARNING:     /" >&2
15253     ;;
15254 esac
15255 echo "$as_me:$LINENO: checking for $ac_header" >&5
15256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15258   echo $ECHO_N "(cached) $ECHO_C" >&6
15259 else
15260   eval "$as_ac_Header=\$ac_header_preproc"
15261 fi
15262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15264
15265 fi
15266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15267   cat >>confdefs.h <<_ACEOF
15268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 _ACEOF
15270
15271 fi
15272
15273 done
15274
15275 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15276 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15277 if test "${ac_cv_func_select_args+set}" = set; then
15278   echo $ECHO_N "(cached) $ECHO_C" >&6
15279 else
15280   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15281  for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15282   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15283    cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 #if HAVE_SYS_SELECT_H
15291 # include <sys/select.h>
15292 #endif
15293 #if HAVE_SYS_SOCKET_H
15294 # include <sys/socket.h>
15295 #endif
15296
15297 int
15298 main ()
15299 {
15300 extern int select ($ac_arg1,
15301                                             $ac_arg234, $ac_arg234, $ac_arg234,
15302                                             $ac_arg5);
15303   ;
15304   return 0;
15305 }
15306 _ACEOF
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15309   (eval $ac_compile) 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag"
15317                          || test ! -s conftest.err'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15330 else
15331   echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 fi
15335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336   done
15337  done
15338 done
15339 # Provide a safe default value.
15340 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15341
15342 fi
15343 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15344 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15345 ac_save_IFS=$IFS; IFS=','
15346 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15347 IFS=$ac_save_IFS
15348 shift
15349
15350 cat >>confdefs.h <<_ACEOF
15351 #define SELECT_TYPE_ARG1 $1
15352 _ACEOF
15353
15354
15355 cat >>confdefs.h <<_ACEOF
15356 #define SELECT_TYPE_ARG234 ($2)
15357 _ACEOF
15358
15359
15360 cat >>confdefs.h <<_ACEOF
15361 #define SELECT_TYPE_ARG5 ($3)
15362 _ACEOF
15363
15364 rm -f conftest*
15365
15366 fi
15367
15368
15369
15370 for ac_func in poll
15371 do
15372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15373 echo "$as_me:$LINENO: checking for $ac_func" >&5
15374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15375 if eval "test \"\${$as_ac_var+set}\" = set"; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15386 #define $ac_func innocuous_$ac_func
15387
15388 /* System header to define __stub macros and hopefully few prototypes,
15389     which can conflict with char $ac_func (); below.
15390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391     <limits.h> exists even on freestanding compilers.  */
15392
15393 #ifdef __STDC__
15394 # include <limits.h>
15395 #else
15396 # include <assert.h>
15397 #endif
15398
15399 #undef $ac_func
15400
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 {
15405 #endif
15406 /* We use char because int might match the return type of a gcc2
15407    builtin and then its argument prototype would still apply.  */
15408 char $ac_func ();
15409 /* The GNU C library defines this for functions which it implements
15410     to always fail with ENOSYS.  Some functions are actually named
15411     something starting with __ and the normal name is an alias.  */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 choke me
15414 #else
15415 char (*f) () = $ac_func;
15416 #endif
15417 #ifdef __cplusplus
15418 }
15419 #endif
15420
15421 int
15422 main ()
15423 {
15424 return f != $ac_func;
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>conftest.er1
15432   ac_status=$?
15433   grep -v '^ *+' conftest.er1 >conftest.err
15434   rm -f conftest.er1
15435   cat conftest.err >&5
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); } &&
15438          { ac_try='test -z "$ac_c_werror_flag"
15439                          || test ! -s conftest.err'
15440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15441   (eval $ac_try) 2>&5
15442   ac_status=$?
15443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15444   (exit $ac_status); }; } &&
15445          { ac_try='test -s conftest$ac_exeext'
15446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15447   (eval $ac_try) 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; }; then
15451   eval "$as_ac_var=yes"
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 eval "$as_ac_var=no"
15457 fi
15458 rm -f conftest.err conftest.$ac_objext \
15459       conftest$ac_exeext conftest.$ac_ext
15460 fi
15461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15463 if test `eval echo '${'$as_ac_var'}'` = yes; then
15464   cat >>confdefs.h <<_ACEOF
15465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15466 _ACEOF
15467
15468 fi
15469 done
15470
15471
15472 for ac_header in poll.h
15473 do
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15476   echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15479   echo $ECHO_N "(cached) $ECHO_C" >&6
15480 fi
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15483 else
15484   # Is the header compilable?
15485 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h.  */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h.  */
15493 $ac_includes_default
15494 #include <$ac_header>
15495 _ACEOF
15496 rm -f conftest.$ac_objext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15498   (eval $ac_compile) 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } &&
15505          { ac_try='test -z "$ac_c_werror_flag"
15506                          || test ! -s conftest.err'
15507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508   (eval $ac_try) 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest.$ac_objext'
15513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514   (eval $ac_try) 2>&5
15515   ac_status=$?
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); }; }; then
15518   ac_header_compiler=yes
15519 else
15520   echo "$as_me: failed program was:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15522
15523 ac_header_compiler=no
15524 fi
15525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15527 echo "${ECHO_T}$ac_header_compiler" >&6
15528
15529 # Is the header present?
15530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15532 cat >conftest.$ac_ext <<_ACEOF
15533 /* confdefs.h.  */
15534 _ACEOF
15535 cat confdefs.h >>conftest.$ac_ext
15536 cat >>conftest.$ac_ext <<_ACEOF
15537 /* end confdefs.h.  */
15538 #include <$ac_header>
15539 _ACEOF
15540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15541   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15542   ac_status=$?
15543   grep -v '^ *+' conftest.er1 >conftest.err
15544   rm -f conftest.er1
15545   cat conftest.err >&5
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } >/dev/null; then
15548   if test -s conftest.err; then
15549     ac_cpp_err=$ac_c_preproc_warn_flag
15550     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15551   else
15552     ac_cpp_err=
15553   fi
15554 else
15555   ac_cpp_err=yes
15556 fi
15557 if test -z "$ac_cpp_err"; then
15558   ac_header_preproc=yes
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563   ac_header_preproc=no
15564 fi
15565 rm -f conftest.err conftest.$ac_ext
15566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15567 echo "${ECHO_T}$ac_header_preproc" >&6
15568
15569 # So?  What about this header?
15570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571   yes:no: )
15572     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15576     ac_header_preproc=yes
15577     ;;
15578   no:yes:* )
15579     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15581     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15582 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15583     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15585     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15586 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591     (
15592       cat <<\_ASBOX
15593 ## ------------------------------------------ ##
15594 ## Report this to the AC_PACKAGE_NAME lists.  ##
15595 ## ------------------------------------------ ##
15596 _ASBOX
15597     ) |
15598       sed "s/^/$as_me: WARNING:     /" >&2
15599     ;;
15600 esac
15601 echo "$as_me:$LINENO: checking for $ac_header" >&5
15602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15604   echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606   eval "$as_ac_Header=\$ac_header_preproc"
15607 fi
15608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15610
15611 fi
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613   cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 _ACEOF
15616
15617 fi
15618
15619 done
15620
15621
15622
15623 for ac_header in sys/epoll.h
15624 do
15625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15627   echo "$as_me:$LINENO: checking for $ac_header" >&5
15628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15630   echo $ECHO_N "(cached) $ECHO_C" >&6
15631 fi
15632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15634 else
15635   # Is the header compilable?
15636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 $ac_includes_default
15645 #include <$ac_header>
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_c_werror_flag"
15657                          || test ! -s conftest.err'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest.$ac_objext'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   ac_header_compiler=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_header_compiler=no
15675 fi
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6
15679
15680 # Is the header present?
15681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 #include <$ac_header>
15690 _ACEOF
15691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15693   ac_status=$?
15694   grep -v '^ *+' conftest.er1 >conftest.err
15695   rm -f conftest.er1
15696   cat conftest.err >&5
15697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698   (exit $ac_status); } >/dev/null; then
15699   if test -s conftest.err; then
15700     ac_cpp_err=$ac_c_preproc_warn_flag
15701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15702   else
15703     ac_cpp_err=
15704   fi
15705 else
15706   ac_cpp_err=yes
15707 fi
15708 if test -z "$ac_cpp_err"; then
15709   ac_header_preproc=yes
15710 else
15711   echo "$as_me: failed program was:" >&5
15712 sed 's/^/| /' conftest.$ac_ext >&5
15713
15714   ac_header_preproc=no
15715 fi
15716 rm -f conftest.err conftest.$ac_ext
15717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15718 echo "${ECHO_T}$ac_header_preproc" >&6
15719
15720 # So?  What about this header?
15721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15722   yes:no: )
15723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15727     ac_header_preproc=yes
15728     ;;
15729   no:yes:* )
15730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15742     (
15743       cat <<\_ASBOX
15744 ## ------------------------------------------ ##
15745 ## Report this to the AC_PACKAGE_NAME lists.  ##
15746 ## ------------------------------------------ ##
15747 _ASBOX
15748     ) |
15749       sed "s/^/$as_me: WARNING:     /" >&2
15750     ;;
15751 esac
15752 echo "$as_me:$LINENO: checking for $ac_header" >&5
15753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15755   echo $ECHO_N "(cached) $ECHO_C" >&6
15756 else
15757   eval "$as_ac_Header=\$ac_header_preproc"
15758 fi
15759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15761
15762 fi
15763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15764   cat >>confdefs.h <<_ACEOF
15765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15766 _ACEOF
15767
15768 fi
15769
15770 done
15771
15772 if test "${ac_cv_header_sys_epoll_h}" = yes; then
15773 echo "$as_me:$LINENO: checking for epoll system call" >&5
15774 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
15775 if test "$cross_compiling" = yes; then
15776   echo "$as_me:$LINENO: result: no" >&5
15777 echo "${ECHO_T}no" >&6
15778 else
15779   cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785 int main(int argc, char *argv)
15786 {
15787         int epfd = epoll_create(256);
15788         exit (epfd == -1 ? 1 : 0);
15789 }
15790 _ACEOF
15791 rm -f conftest$ac_exeext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15793   (eval $ac_link) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802   echo "$as_me:$LINENO: result: yes" >&5
15803 echo "${ECHO_T}yes" >&6
15804
15805 cat >>confdefs.h <<\_ACEOF
15806 #define HAVE_EPOLL 1
15807 _ACEOF
15808
15809 else
15810   echo "$as_me: program exited with status $ac_status" >&5
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814 ( exit $ac_status )
15815 echo "$as_me:$LINENO: result: no" >&5
15816 echo "${ECHO_T}no" >&6
15817 fi
15818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 fi
15821
15822 # strerror checks
15823 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
15824 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
15825 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828
15829         cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835
15836 #include <stdio.h>
15837 #include <sys/types.h>
15838 #include <errno.h>
15839 #ifdef WINNT
15840 #include <stdlib.h>
15841 #endif
15842 int
15843 main ()
15844 {
15845 char *c = (char *) *sys_errlist
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852   (eval $ac_compile) 2>conftest.er1
15853   ac_status=$?
15854   grep -v '^ *+' conftest.er1 >conftest.err
15855   rm -f conftest.er1
15856   cat conftest.err >&5
15857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858   (exit $ac_status); } &&
15859          { ac_try='test -z "$ac_c_werror_flag"
15860                          || test ! -s conftest.err'
15861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862   (eval $ac_try) 2>&5
15863   ac_status=$?
15864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865   (exit $ac_status); }; } &&
15866          { ac_try='test -s conftest.$ac_objext'
15867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15868   (eval $ac_try) 2>&5
15869   ac_status=$?
15870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871   (exit $ac_status); }; }; then
15872   ol_cv_dcl_sys_errlist=yes
15873         ol_cv_have_sys_errlist=yes
15874 else
15875   echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 ol_cv_dcl_sys_errlist=no
15879 fi
15880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15881 fi
15882 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
15883 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
15884 #
15885 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15886 if test $ol_cv_dcl_sys_errlist = no ; then
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define DECL_SYS_ERRLIST 1
15890 _ACEOF
15891
15892
15893         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
15894 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
15895 if test "${ol_cv_have_sys_errlist+set}" = set; then
15896   echo $ECHO_N "(cached) $ECHO_C" >&6
15897 else
15898
15899                 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 #include <errno.h>
15906 int
15907 main ()
15908 {
15909 char *c = (char *) *sys_errlist
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916   (eval $ac_link) 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } &&
15923          { ac_try='test -z "$ac_c_werror_flag"
15924                          || test ! -s conftest.err'
15925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926   (eval $ac_try) 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest$ac_exeext'
15931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932   (eval $ac_try) 2>&5
15933   ac_status=$?
15934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935   (exit $ac_status); }; }; then
15936   ol_cv_have_sys_errlist=yes
15937 else
15938   echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ol_cv_have_sys_errlist=no
15942 fi
15943 rm -f conftest.err conftest.$ac_objext \
15944       conftest$ac_exeext conftest.$ac_ext
15945 fi
15946 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
15947 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
15948 fi
15949 if test $ol_cv_have_sys_errlist = yes ; then
15950
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE_SYS_ERRLIST 1
15953 _ACEOF
15954
15955 fi
15956
15957
15958 for ac_func in strerror strerror_r
15959 do
15960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15961 echo "$as_me:$LINENO: checking for $ac_func" >&5
15962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15963 if eval "test \"\${$as_ac_var+set}\" = set"; then
15964   echo $ECHO_N "(cached) $ECHO_C" >&6
15965 else
15966   cat >conftest.$ac_ext <<_ACEOF
15967 /* confdefs.h.  */
15968 _ACEOF
15969 cat confdefs.h >>conftest.$ac_ext
15970 cat >>conftest.$ac_ext <<_ACEOF
15971 /* end confdefs.h.  */
15972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15974 #define $ac_func innocuous_$ac_func
15975
15976 /* System header to define __stub macros and hopefully few prototypes,
15977     which can conflict with char $ac_func (); below.
15978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15979     <limits.h> exists even on freestanding compilers.  */
15980
15981 #ifdef __STDC__
15982 # include <limits.h>
15983 #else
15984 # include <assert.h>
15985 #endif
15986
15987 #undef $ac_func
15988
15989 /* Override any gcc2 internal prototype to avoid an error.  */
15990 #ifdef __cplusplus
15991 extern "C"
15992 {
15993 #endif
15994 /* We use char because int might match the return type of a gcc2
15995    builtin and then its argument prototype would still apply.  */
15996 char $ac_func ();
15997 /* The GNU C library defines this for functions which it implements
15998     to always fail with ENOSYS.  Some functions are actually named
15999     something starting with __ and the normal name is an alias.  */
16000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16001 choke me
16002 #else
16003 char (*f) () = $ac_func;
16004 #endif
16005 #ifdef __cplusplus
16006 }
16007 #endif
16008
16009 int
16010 main ()
16011 {
16012 return f != $ac_func;
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019   (eval $ac_link) 2>conftest.er1
16020   ac_status=$?
16021   grep -v '^ *+' conftest.er1 >conftest.err
16022   rm -f conftest.er1
16023   cat conftest.err >&5
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   (exit $ac_status); } &&
16026          { ac_try='test -z "$ac_c_werror_flag"
16027                          || test ! -s conftest.err'
16028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16029   (eval $ac_try) 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; } &&
16033          { ac_try='test -s conftest$ac_exeext'
16034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035   (eval $ac_try) 2>&5
16036   ac_status=$?
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); }; }; then
16039   eval "$as_ac_var=yes"
16040 else
16041   echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16043
16044 eval "$as_ac_var=no"
16045 fi
16046 rm -f conftest.err conftest.$ac_objext \
16047       conftest$ac_exeext conftest.$ac_ext
16048 fi
16049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16051 if test `eval echo '${'$as_ac_var'}'` = yes; then
16052   cat >>confdefs.h <<_ACEOF
16053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16054 _ACEOF
16055
16056 fi
16057 done
16058
16059 ol_cv_func_strerror_r=no
16060 if test "${ac_cv_func_strerror_r}" = yes ; then
16061         echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16062 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16063 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066
16067         cat >conftest.$ac_ext <<_ACEOF
16068 /* confdefs.h.  */
16069 _ACEOF
16070 cat confdefs.h >>conftest.$ac_ext
16071 cat >>conftest.$ac_ext <<_ACEOF
16072 /* end confdefs.h.  */
16073 #include <string.h>
16074 _ACEOF
16075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16076   $EGREP "strerror_r" >/dev/null 2>&1; then
16077   ol_decl_strerror_r=yes
16078 else
16079   ol_decl_strerror_r=no
16080 fi
16081 rm -f conftest*
16082
16083         if test $ol_decl_strerror_r = yes ; then
16084                 cat >conftest.$ac_ext <<_ACEOF
16085 /* confdefs.h.  */
16086 _ACEOF
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h.  */
16090 #include <string.h>
16091 int
16092 main ()
16093 {
16094    /* from autoconf 2.59 */
16095                                 char buf[100];
16096                                 char x = *strerror_r (0, buf, sizeof buf);
16097                                 char *p = strerror_r (0, buf, sizeof buf);
16098
16099   ;
16100   return 0;
16101 }
16102 _ACEOF
16103 rm -f conftest.$ac_objext
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105   (eval $ac_compile) 2>conftest.er1
16106   ac_status=$?
16107   grep -v '^ *+' conftest.er1 >conftest.err
16108   rm -f conftest.er1
16109   cat conftest.err >&5
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); } &&
16112          { ac_try='test -z "$ac_c_werror_flag"
16113                          || test ! -s conftest.err'
16114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115   (eval $ac_try) 2>&5
16116   ac_status=$?
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); }; } &&
16119          { ac_try='test -s conftest.$ac_objext'
16120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16121   (eval $ac_try) 2>&5
16122   ac_status=$?
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); }; }; then
16125   ol_cv_nonposix_strerror_r=yes
16126 else
16127   echo "$as_me: failed program was:" >&5
16128 sed 's/^/| /' conftest.$ac_ext >&5
16129
16130 ol_cv_nonposix_strerror_r=no
16131 fi
16132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16133         else
16134                 if test "$cross_compiling" = yes; then
16135   ol_cv_nonposix_strerror=no
16136 else
16137   cat >conftest.$ac_ext <<_ACEOF
16138 /* confdefs.h.  */
16139 _ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h.  */
16143
16144                         main() {
16145                                 char buf[100];
16146                                 buf[0] = 0;
16147                                 strerror_r( 1, buf, sizeof buf );
16148                                 exit( buf[0] == 0 );
16149                         }
16150
16151 _ACEOF
16152 rm -f conftest$ac_exeext
16153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16154   (eval $ac_link) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163   ol_cv_nonposix_strerror_r=yes
16164 else
16165   echo "$as_me: program exited with status $ac_status" >&5
16166 echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ( exit $ac_status )
16170 ol_cv_nonposix_strerror=no
16171 fi
16172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16173 fi
16174         fi
16175
16176 fi
16177 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16178 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16179 if test $ol_cv_nonposix_strerror_r = yes ; then
16180
16181 cat >>confdefs.h <<\_ACEOF
16182 #define HAVE_NONPOSIX_STRERROR_R 1
16183 _ACEOF
16184
16185 fi
16186
16187 elif test "${ac_cv_func_strerror}" = no ; then
16188         echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16189 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16190 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16191   echo $ECHO_N "(cached) $ECHO_C" >&6
16192 else
16193
16194         cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h.  */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h.  */
16200
16201 #include <stdio.h>
16202 #include <sys/types.h>
16203 #include <errno.h>
16204 #ifdef WINNT
16205 #include <stdlib.h>
16206 #endif
16207 int
16208 main ()
16209 {
16210 char *c = (char *) *sys_errlist
16211   ;
16212   return 0;
16213 }
16214 _ACEOF
16215 rm -f conftest.$ac_objext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16217   (eval $ac_compile) 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } &&
16224          { ac_try='test -z "$ac_c_werror_flag"
16225                          || test ! -s conftest.err'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; } &&
16231          { ac_try='test -s conftest.$ac_objext'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   ol_cv_dcl_sys_errlist=yes
16238         ol_cv_have_sys_errlist=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ol_cv_dcl_sys_errlist=no
16244 fi
16245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16246 fi
16247 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16248 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16249 #
16250 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16251 if test $ol_cv_dcl_sys_errlist = no ; then
16252
16253 cat >>confdefs.h <<\_ACEOF
16254 #define DECL_SYS_ERRLIST 1
16255 _ACEOF
16256
16257
16258         echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16259 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16260 if test "${ol_cv_have_sys_errlist+set}" = set; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263
16264                 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h.  */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h.  */
16270 #include <errno.h>
16271 int
16272 main ()
16273 {
16274 char *c = (char *) *sys_errlist
16275   ;
16276   return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281   (eval $ac_link) 2>conftest.er1
16282   ac_status=$?
16283   grep -v '^ *+' conftest.er1 >conftest.err
16284   rm -f conftest.er1
16285   cat conftest.err >&5
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); } &&
16288          { ac_try='test -z "$ac_c_werror_flag"
16289                          || test ! -s conftest.err'
16290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291   (eval $ac_try) 2>&5
16292   ac_status=$?
16293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); }; } &&
16295          { ac_try='test -s conftest$ac_exeext'
16296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297   (eval $ac_try) 2>&5
16298   ac_status=$?
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); }; }; then
16301   ol_cv_have_sys_errlist=yes
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ol_cv_have_sys_errlist=no
16307 fi
16308 rm -f conftest.err conftest.$ac_objext \
16309       conftest$ac_exeext conftest.$ac_ext
16310 fi
16311 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16312 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16313 fi
16314 if test $ol_cv_have_sys_errlist = yes ; then
16315
16316 cat >>confdefs.h <<\_ACEOF
16317 #define HAVE_SYS_ERRLIST 1
16318 _ACEOF
16319
16320 fi
16321
16322 fi
16323
16324
16325
16326 for ac_header in regex.h
16327 do
16328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330   echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 fi
16335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16337 else
16338   # Is the header compilable?
16339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 $ac_includes_default
16348 #include <$ac_header>
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16352   (eval $ac_compile) 2>conftest.er1
16353   ac_status=$?
16354   grep -v '^ *+' conftest.er1 >conftest.err
16355   rm -f conftest.er1
16356   cat conftest.err >&5
16357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358   (exit $ac_status); } &&
16359          { ac_try='test -z "$ac_c_werror_flag"
16360                          || test ! -s conftest.err'
16361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16362   (eval $ac_try) 2>&5
16363   ac_status=$?
16364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365   (exit $ac_status); }; } &&
16366          { ac_try='test -s conftest.$ac_objext'
16367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368   (eval $ac_try) 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_header_compiler=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377 ac_header_compiler=no
16378 fi
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16381 echo "${ECHO_T}$ac_header_compiler" >&6
16382
16383 # Is the header present?
16384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 #include <$ac_header>
16393 _ACEOF
16394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16396   ac_status=$?
16397   grep -v '^ *+' conftest.er1 >conftest.err
16398   rm -f conftest.er1
16399   cat conftest.err >&5
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); } >/dev/null; then
16402   if test -s conftest.err; then
16403     ac_cpp_err=$ac_c_preproc_warn_flag
16404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16405   else
16406     ac_cpp_err=
16407   fi
16408 else
16409   ac_cpp_err=yes
16410 fi
16411 if test -z "$ac_cpp_err"; then
16412   ac_header_preproc=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417   ac_header_preproc=no
16418 fi
16419 rm -f conftest.err conftest.$ac_ext
16420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16421 echo "${ECHO_T}$ac_header_preproc" >&6
16422
16423 # So?  What about this header?
16424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16425   yes:no: )
16426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16430     ac_header_preproc=yes
16431     ;;
16432   no:yes:* )
16433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16445     (
16446       cat <<\_ASBOX
16447 ## ------------------------------------------ ##
16448 ## Report this to the AC_PACKAGE_NAME lists.  ##
16449 ## ------------------------------------------ ##
16450 _ASBOX
16451     ) |
16452       sed "s/^/$as_me: WARNING:     /" >&2
16453     ;;
16454 esac
16455 echo "$as_me:$LINENO: checking for $ac_header" >&5
16456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16458   echo $ECHO_N "(cached) $ECHO_C" >&6
16459 else
16460   eval "$as_ac_Header=\$ac_header_preproc"
16461 fi
16462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16464
16465 fi
16466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16467   cat >>confdefs.h <<_ACEOF
16468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16469 _ACEOF
16470
16471 fi
16472
16473 done
16474
16475 if test "$ac_cv_header_regex_h" != yes ; then
16476         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16477 echo "$as_me: error: POSIX regex.h required." >&2;}
16478    { (exit 1); exit 1; }; }
16479 fi
16480 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16481 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16482 if test "${ac_cv_search_regfree+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   ac_func_search_save_LIBS=$LIBS
16486 ac_cv_search_regfree=no
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493
16494 /* Override any gcc2 internal prototype to avoid an error.  */
16495 #ifdef __cplusplus
16496 extern "C"
16497 #endif
16498 /* We use char because int might match the return type of a gcc2
16499    builtin and then its argument prototype would still apply.  */
16500 char regfree ();
16501 int
16502 main ()
16503 {
16504 regfree ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511   (eval $ac_link) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"
16519                          || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest$ac_exeext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   ac_cv_search_regfree="none required"
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 fi
16537 rm -f conftest.err conftest.$ac_objext \
16538       conftest$ac_exeext conftest.$ac_ext
16539 if test "$ac_cv_search_regfree" = no; then
16540   for ac_lib in regex gnuregex; do
16541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16542     cat >conftest.$ac_ext <<_ACEOF
16543 /* confdefs.h.  */
16544 _ACEOF
16545 cat confdefs.h >>conftest.$ac_ext
16546 cat >>conftest.$ac_ext <<_ACEOF
16547 /* end confdefs.h.  */
16548
16549 /* Override any gcc2 internal prototype to avoid an error.  */
16550 #ifdef __cplusplus
16551 extern "C"
16552 #endif
16553 /* We use char because int might match the return type of a gcc2
16554    builtin and then its argument prototype would still apply.  */
16555 char regfree ();
16556 int
16557 main ()
16558 {
16559 regfree ();
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 rm -f conftest.$ac_objext conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566   (eval $ac_link) 2>conftest.er1
16567   ac_status=$?
16568   grep -v '^ *+' conftest.er1 >conftest.err
16569   rm -f conftest.er1
16570   cat conftest.err >&5
16571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572   (exit $ac_status); } &&
16573          { ac_try='test -z "$ac_c_werror_flag"
16574                          || test ! -s conftest.err'
16575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16576   (eval $ac_try) 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582   (eval $ac_try) 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_search_regfree="-l$ac_lib"
16587 break
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 fi
16593 rm -f conftest.err conftest.$ac_objext \
16594       conftest$ac_exeext conftest.$ac_ext
16595   done
16596 fi
16597 LIBS=$ac_func_search_save_LIBS
16598 fi
16599 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
16600 echo "${ECHO_T}$ac_cv_search_regfree" >&6
16601 if test "$ac_cv_search_regfree" != no; then
16602   test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
16603   :
16604 else
16605   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
16606 echo "$as_me: error: POSIX regex required." >&2;}
16607    { (exit 1); exit 1; }; }
16608 fi
16609
16610
16611
16612 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
16613 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
16614 if test "${ol_cv_c_posix_regex+set}" = set; then
16615   echo $ECHO_N "(cached) $ECHO_C" >&6
16616 else
16617
16618         if test "$cross_compiling" = yes; then
16619   ol_cv_c_posix_regex=cross
16620 else
16621   cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627
16628 #include <sys/types.h>
16629 #include <regex.h>
16630 static char *pattern, *string;
16631 main()
16632 {
16633         int rc;
16634         regex_t re;
16635
16636         pattern = "^A";
16637
16638         if(regcomp(&re, pattern, 0)) {
16639                 return -1;
16640         }
16641
16642         string = "ALL MATCH";
16643
16644         rc = regexec(&re, string, 0, (void*)0, 0);
16645
16646         regfree(&re);
16647
16648         return rc;
16649 }
16650 _ACEOF
16651 rm -f conftest$ac_exeext
16652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16653   (eval $ac_link) 2>&5
16654   ac_status=$?
16655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658   (eval $ac_try) 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ol_cv_c_posix_regex=yes
16663 else
16664   echo "$as_me: program exited with status $ac_status" >&5
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16667
16668 ( exit $ac_status )
16669 ol_cv_c_posix_regex=no
16670 fi
16671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 fi
16674 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
16675 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
16676
16677 if test "$ol_cv_c_posix_regex" = no ; then
16678         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
16679 echo "$as_me: error: broken POSIX regex!" >&2;}
16680    { (exit 1); exit 1; }; }
16681 fi
16682
16683
16684 have_uuid=no
16685
16686 for ac_header in sys/uuid.h
16687 do
16688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16690   echo "$as_me:$LINENO: checking for $ac_header" >&5
16691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16693   echo $ECHO_N "(cached) $ECHO_C" >&6
16694 fi
16695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16697 else
16698   # Is the header compilable?
16699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h.  */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h.  */
16707 $ac_includes_default
16708 #include <$ac_header>
16709 _ACEOF
16710 rm -f conftest.$ac_objext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16712   (eval $ac_compile) 2>conftest.er1
16713   ac_status=$?
16714   grep -v '^ *+' conftest.er1 >conftest.err
16715   rm -f conftest.er1
16716   cat conftest.err >&5
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); } &&
16719          { ac_try='test -z "$ac_c_werror_flag"
16720                          || test ! -s conftest.err'
16721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722   (eval $ac_try) 2>&5
16723   ac_status=$?
16724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725   (exit $ac_status); }; } &&
16726          { ac_try='test -s conftest.$ac_objext'
16727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728   (eval $ac_try) 2>&5
16729   ac_status=$?
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); }; }; then
16732   ac_header_compiler=yes
16733 else
16734   echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_header_compiler=no
16738 fi
16739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16741 echo "${ECHO_T}$ac_header_compiler" >&6
16742
16743 # Is the header present?
16744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16746 cat >conftest.$ac_ext <<_ACEOF
16747 /* confdefs.h.  */
16748 _ACEOF
16749 cat confdefs.h >>conftest.$ac_ext
16750 cat >>conftest.$ac_ext <<_ACEOF
16751 /* end confdefs.h.  */
16752 #include <$ac_header>
16753 _ACEOF
16754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16756   ac_status=$?
16757   grep -v '^ *+' conftest.er1 >conftest.err
16758   rm -f conftest.er1
16759   cat conftest.err >&5
16760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761   (exit $ac_status); } >/dev/null; then
16762   if test -s conftest.err; then
16763     ac_cpp_err=$ac_c_preproc_warn_flag
16764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16765   else
16766     ac_cpp_err=
16767   fi
16768 else
16769   ac_cpp_err=yes
16770 fi
16771 if test -z "$ac_cpp_err"; then
16772   ac_header_preproc=yes
16773 else
16774   echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777   ac_header_preproc=no
16778 fi
16779 rm -f conftest.err conftest.$ac_ext
16780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16781 echo "${ECHO_T}$ac_header_preproc" >&6
16782
16783 # So?  What about this header?
16784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16785   yes:no: )
16786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16790     ac_header_preproc=yes
16791     ;;
16792   no:yes:* )
16793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16805     (
16806       cat <<\_ASBOX
16807 ## ------------------------------------------ ##
16808 ## Report this to the AC_PACKAGE_NAME lists.  ##
16809 ## ------------------------------------------ ##
16810 _ASBOX
16811     ) |
16812       sed "s/^/$as_me: WARNING:     /" >&2
16813     ;;
16814 esac
16815 echo "$as_me:$LINENO: checking for $ac_header" >&5
16816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820   eval "$as_ac_Header=\$ac_header_preproc"
16821 fi
16822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16824
16825 fi
16826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16827   cat >>confdefs.h <<_ACEOF
16828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16829 _ACEOF
16830
16831 fi
16832
16833 done
16834
16835 if test $ac_cv_header_sys_uuid_h = yes ; then
16836         save_LIBS="$LIBS"
16837         echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
16838 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
16839 if test "${ac_cv_search_uuid_to_str+set}" = set; then
16840   echo $ECHO_N "(cached) $ECHO_C" >&6
16841 else
16842   ac_func_search_save_LIBS=$LIBS
16843 ac_cv_search_uuid_to_str=no
16844 cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850
16851 /* Override any gcc2 internal prototype to avoid an error.  */
16852 #ifdef __cplusplus
16853 extern "C"
16854 #endif
16855 /* We use char because int might match the return type of a gcc2
16856    builtin and then its argument prototype would still apply.  */
16857 char uuid_to_str ();
16858 int
16859 main ()
16860 {
16861 uuid_to_str ();
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 rm -f conftest.$ac_objext conftest$ac_exeext
16867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16868   (eval $ac_link) 2>conftest.er1
16869   ac_status=$?
16870   grep -v '^ *+' conftest.er1 >conftest.err
16871   rm -f conftest.er1
16872   cat conftest.err >&5
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); } &&
16875          { ac_try='test -z "$ac_c_werror_flag"
16876                          || test ! -s conftest.err'
16877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878   (eval $ac_try) 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); }; } &&
16882          { ac_try='test -s conftest$ac_exeext'
16883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16884   (eval $ac_try) 2>&5
16885   ac_status=$?
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); }; }; then
16888   ac_cv_search_uuid_to_str="none required"
16889 else
16890   echo "$as_me: failed program was:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16892
16893 fi
16894 rm -f conftest.err conftest.$ac_objext \
16895       conftest$ac_exeext conftest.$ac_ext
16896 if test "$ac_cv_search_uuid_to_str" = no; then
16897   for ac_lib in uuid; do
16898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16899     cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906 /* Override any gcc2 internal prototype to avoid an error.  */
16907 #ifdef __cplusplus
16908 extern "C"
16909 #endif
16910 /* We use char because int might match the return type of a gcc2
16911    builtin and then its argument prototype would still apply.  */
16912 char uuid_to_str ();
16913 int
16914 main ()
16915 {
16916 uuid_to_str ();
16917   ;
16918   return 0;
16919 }
16920 _ACEOF
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16923   (eval $ac_link) 2>conftest.er1
16924   ac_status=$?
16925   grep -v '^ *+' conftest.er1 >conftest.err
16926   rm -f conftest.er1
16927   cat conftest.err >&5
16928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929   (exit $ac_status); } &&
16930          { ac_try='test -z "$ac_c_werror_flag"
16931                          || test ! -s conftest.err'
16932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933   (eval $ac_try) 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest$ac_exeext'
16938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939   (eval $ac_try) 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_cv_search_uuid_to_str="-l$ac_lib"
16944 break
16945 else
16946   echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16948
16949 fi
16950 rm -f conftest.err conftest.$ac_objext \
16951       conftest$ac_exeext conftest.$ac_ext
16952   done
16953 fi
16954 LIBS=$ac_func_search_save_LIBS
16955 fi
16956 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
16957 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
16958 if test "$ac_cv_search_uuid_to_str" != no; then
16959   test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
16960   have_uuid=yes
16961 else
16962   :
16963 fi
16964
16965         LIBS="$save_LIBS"
16966
16967         if test have_uuid = yes ; then
16968
16969 cat >>confdefs.h <<\_ACEOF
16970 #define HAVE_UUID_TO_STR 1
16971 _ACEOF
16972
16973
16974                 test "$ac_cv_search_uuid_to_str" = "none required" || \
16975                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
16976         fi
16977 fi
16978
16979 if test $have_uuid = no ; then
16980         echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
16981 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
16982         save_LIBS="$LIBS"
16983         LIBS="$LIBS -lrpcrt4"
16984         cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990
16991                 int __stdcall UuidCreate(void *);
16992                 int __stdcall UuidToStringA(void *,void **);
16993
16994 int
16995 main ()
16996 {
16997
16998                 UuidCreate(0);
16999                 UuidToStringA(0,0);
17000
17001   ;
17002   return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007   (eval $ac_link) 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } &&
17014          { ac_try='test -z "$ac_c_werror_flag"
17015                          || test ! -s conftest.err'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; } &&
17021          { ac_try='test -s conftest$ac_exeext'
17022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023   (eval $ac_try) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }; }; then
17027   need_rpcrt=yes
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 need_rpcrt=no
17033 fi
17034 rm -f conftest.err conftest.$ac_objext \
17035       conftest$ac_exeext conftest.$ac_ext
17036         if test $need_rpcrt = yes; then
17037                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
17038         fi
17039         LIBS="$save_LIBS"
17040         echo "$as_me:$LINENO: result: $need_rpcrt" >&5
17041 echo "${ECHO_T}$need_rpcrt" >&6
17042 fi
17043
17044 ol_cv_lib_resolver=no
17045 if test $ol_cv_lib_resolver = no ; then
17046         echo "$as_me:$LINENO: checking for resolver link (default)" >&5
17047 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
17048 if test "${ol_cv_resolver_none+set}" = set; then
17049   echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051
17052         ol_RESOLVER_LIB=
17053         ol_LIBS=$LIBS
17054         LIBS="$ol_RESOLVER_LIB $LIBS"
17055
17056         cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062
17063 #ifdef HAVE_SYS_TYPES_H
17064 #       include <sys/types.h>
17065 #endif
17066 #include <netinet/in.h>
17067 #ifdef HAVE_ARPA_NAMESER_H
17068 #       include <arpa/nameser.h>
17069 #endif
17070 #ifdef HAVE_RESOLV_H
17071 #       include <resolv.h>
17072 #endif
17073
17074 int
17075 main ()
17076 {
17077 {
17078         int len, status;
17079         char *request = NULL;
17080         unsigned char reply[64*1024];
17081         unsigned char host[64*1024];
17082         unsigned char *p;
17083
17084 #ifdef NS_HFIXEDSZ
17085         /* Bind 8/9 interface */
17086         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17087 #else
17088         /* Bind 4 interface */
17089 # ifndef T_SRV
17090 #  define T_SRV 33
17091 # endif
17092         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17093 #endif
17094         p = reply;
17095 #ifdef NS_HFIXEDSZ
17096         /* Bind 8/9 interface */
17097         p += NS_HFIXEDSZ;
17098 #elif defined(HFIXEDSZ)
17099         /* Bind 4 interface w/ HFIXEDSZ */
17100         p += HFIXEDSZ;
17101 #else
17102         /* Bind 4 interface w/o HFIXEDSZ */
17103         p += sizeof(HEADER);
17104 #endif
17105         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17106 }
17107   ;
17108   return 0;
17109 }
17110 _ACEOF
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113   (eval $ac_link) 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } &&
17120          { ac_try='test -z "$ac_c_werror_flag"
17121                          || test ! -s conftest.err'
17122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123   (eval $ac_try) 2>&5
17124   ac_status=$?
17125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126   (exit $ac_status); }; } &&
17127          { ac_try='test -s conftest$ac_exeext'
17128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17129   (eval $ac_try) 2>&5
17130   ac_status=$?
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); }; }; then
17133   ol_cv_resolver_none=yes
17134 else
17135   echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17137
17138 ol_cv_resolver_none=no
17139 fi
17140 rm -f conftest.err conftest.$ac_objext \
17141       conftest$ac_exeext conftest.$ac_ext
17142
17143         LIBS="$ol_LIBS"
17144
17145 fi
17146 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
17147 echo "${ECHO_T}$ol_cv_resolver_none" >&6
17148
17149         if test $ol_cv_resolver_none = yes ; then
17150                 ol_cv_lib_resolver=yes
17151         fi
17152 fi
17153
17154 if test $ol_cv_lib_resolver = no ; then
17155         echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
17156 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
17157 if test "${ol_cv_resolver_resolv+set}" = set; then
17158   echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160
17161         ol_RESOLVER_LIB=-lresolv
17162         ol_LIBS=$LIBS
17163         LIBS="$ol_RESOLVER_LIB $LIBS"
17164
17165         cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171
17172 #ifdef HAVE_SYS_TYPES_H
17173 #       include <sys/types.h>
17174 #endif
17175 #include <netinet/in.h>
17176 #ifdef HAVE_ARPA_NAMESER_H
17177 #       include <arpa/nameser.h>
17178 #endif
17179 #ifdef HAVE_RESOLV_H
17180 #       include <resolv.h>
17181 #endif
17182
17183 int
17184 main ()
17185 {
17186 {
17187         int len, status;
17188         char *request = NULL;
17189         unsigned char reply[64*1024];
17190         unsigned char host[64*1024];
17191         unsigned char *p;
17192
17193 #ifdef NS_HFIXEDSZ
17194         /* Bind 8/9 interface */
17195         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17196 #else
17197         /* Bind 4 interface */
17198 # ifndef T_SRV
17199 #  define T_SRV 33
17200 # endif
17201         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17202 #endif
17203         p = reply;
17204 #ifdef NS_HFIXEDSZ
17205         /* Bind 8/9 interface */
17206         p += NS_HFIXEDSZ;
17207 #elif defined(HFIXEDSZ)
17208         /* Bind 4 interface w/ HFIXEDSZ */
17209         p += HFIXEDSZ;
17210 #else
17211         /* Bind 4 interface w/o HFIXEDSZ */
17212         p += sizeof(HEADER);
17213 #endif
17214         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17215 }
17216   ;
17217   return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext conftest$ac_exeext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17222   (eval $ac_link) 2>conftest.er1
17223   ac_status=$?
17224   grep -v '^ *+' conftest.er1 >conftest.err
17225   rm -f conftest.er1
17226   cat conftest.err >&5
17227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228   (exit $ac_status); } &&
17229          { ac_try='test -z "$ac_c_werror_flag"
17230                          || test ! -s conftest.err'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; } &&
17236          { ac_try='test -s conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ol_cv_resolver_resolv=yes
17243 else
17244   echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ol_cv_resolver_resolv=no
17248 fi
17249 rm -f conftest.err conftest.$ac_objext \
17250       conftest$ac_exeext conftest.$ac_ext
17251
17252         LIBS="$ol_LIBS"
17253
17254 fi
17255 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
17256 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
17257
17258         if test $ol_cv_resolver_resolv = yes ; then
17259                 ol_cv_lib_resolver=-lresolv
17260         fi
17261 fi
17262
17263 if test $ol_cv_lib_resolver = no ; then
17264         echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
17265 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
17266 if test "${ol_cv_resolver_bind+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269
17270         ol_RESOLVER_LIB=-lbind
17271         ol_LIBS=$LIBS
17272         LIBS="$ol_RESOLVER_LIB $LIBS"
17273
17274         cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280
17281 #ifdef HAVE_SYS_TYPES_H
17282 #       include <sys/types.h>
17283 #endif
17284 #include <netinet/in.h>
17285 #ifdef HAVE_ARPA_NAMESER_H
17286 #       include <arpa/nameser.h>
17287 #endif
17288 #ifdef HAVE_RESOLV_H
17289 #       include <resolv.h>
17290 #endif
17291
17292 int
17293 main ()
17294 {
17295 {
17296         int len, status;
17297         char *request = NULL;
17298         unsigned char reply[64*1024];
17299         unsigned char host[64*1024];
17300         unsigned char *p;
17301
17302 #ifdef NS_HFIXEDSZ
17303         /* Bind 8/9 interface */
17304         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
17305 #else
17306         /* Bind 4 interface */
17307 # ifndef T_SRV
17308 #  define T_SRV 33
17309 # endif
17310         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
17311 #endif
17312         p = reply;
17313 #ifdef NS_HFIXEDSZ
17314         /* Bind 8/9 interface */
17315         p += NS_HFIXEDSZ;
17316 #elif defined(HFIXEDSZ)
17317         /* Bind 4 interface w/ HFIXEDSZ */
17318         p += HFIXEDSZ;
17319 #else
17320         /* Bind 4 interface w/o HFIXEDSZ */
17321         p += sizeof(HEADER);
17322 #endif
17323         status = dn_expand( reply, reply+len, p, host, sizeof(host));
17324 }
17325   ;
17326   return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17331   (eval $ac_link) 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -z "$ac_c_werror_flag"
17339                          || test ! -s conftest.err'
17340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341   (eval $ac_try) 2>&5
17342   ac_status=$?
17343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); }; } &&
17345          { ac_try='test -s conftest$ac_exeext'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351   ol_cv_resolver_bind=yes
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356 ol_cv_resolver_bind=no
17357 fi
17358 rm -f conftest.err conftest.$ac_objext \
17359       conftest$ac_exeext conftest.$ac_ext
17360
17361         LIBS="$ol_LIBS"
17362
17363 fi
17364 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
17365 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
17366
17367         if test $ol_cv_resolver_bind = yes ; then
17368                 ol_cv_lib_resolver=-lbind
17369         fi
17370 fi
17371
17372
17373
17374 ol_link_dnssrv=no
17375 if test "$ol_cv_lib_resolver" != no ; then
17376
17377 cat >>confdefs.h <<\_ACEOF
17378 #define HAVE_RES_QUERY 1
17379 _ACEOF
17380
17381
17382         if test "$ol_enable_dnssrv" != no ; then
17383                 ol_link_dnssrv=yes
17384         fi
17385
17386         if test "$ol_cv_lib_resolver" != yes ; then
17387                 LIBS="$ol_cv_lib_resolver $LIBS"
17388         fi
17389 fi
17390
17391 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
17392         if test "$ol_link_dnssrv" = no ; then
17393                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
17394 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
17395    { (exit 1); exit 1; }; }
17396         fi
17397 else
17398         ol_enable_dnssrv=no
17399 fi
17400
17401
17402 for ac_func in hstrerror
17403 do
17404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405 echo "$as_me:$LINENO: checking for $ac_func" >&5
17406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17407 if eval "test \"\${$as_ac_var+set}\" = set"; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   cat >conftest.$ac_ext <<_ACEOF
17411 /* confdefs.h.  */
17412 _ACEOF
17413 cat confdefs.h >>conftest.$ac_ext
17414 cat >>conftest.$ac_ext <<_ACEOF
17415 /* end confdefs.h.  */
17416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17418 #define $ac_func innocuous_$ac_func
17419
17420 /* System header to define __stub macros and hopefully few prototypes,
17421     which can conflict with char $ac_func (); below.
17422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17423     <limits.h> exists even on freestanding compilers.  */
17424
17425 #ifdef __STDC__
17426 # include <limits.h>
17427 #else
17428 # include <assert.h>
17429 #endif
17430
17431 #undef $ac_func
17432
17433 /* Override any gcc2 internal prototype to avoid an error.  */
17434 #ifdef __cplusplus
17435 extern "C"
17436 {
17437 #endif
17438 /* We use char because int might match the return type of a gcc2
17439    builtin and then its argument prototype would still apply.  */
17440 char $ac_func ();
17441 /* The GNU C library defines this for functions which it implements
17442     to always fail with ENOSYS.  Some functions are actually named
17443     something starting with __ and the normal name is an alias.  */
17444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17445 choke me
17446 #else
17447 char (*f) () = $ac_func;
17448 #endif
17449 #ifdef __cplusplus
17450 }
17451 #endif
17452
17453 int
17454 main ()
17455 {
17456 return f != $ac_func;
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463   (eval $ac_link) 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } &&
17470          { ac_try='test -z "$ac_c_werror_flag"
17471                          || test ! -s conftest.err'
17472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473   (eval $ac_try) 2>&5
17474   ac_status=$?
17475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476   (exit $ac_status); }; } &&
17477          { ac_try='test -s conftest$ac_exeext'
17478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479   (eval $ac_try) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); }; }; then
17483   eval "$as_ac_var=yes"
17484 else
17485   echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17487
17488 eval "$as_ac_var=no"
17489 fi
17490 rm -f conftest.err conftest.$ac_objext \
17491       conftest$ac_exeext conftest.$ac_ext
17492 fi
17493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17495 if test `eval echo '${'$as_ac_var'}'` = yes; then
17496   cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17498 _ACEOF
17499
17500 fi
17501 done
17502
17503
17504
17505
17506
17507
17508 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
17509 do
17510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17511 echo "$as_me:$LINENO: checking for $ac_func" >&5
17512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17513 if eval "test \"\${$as_ac_var+set}\" = set"; then
17514   echo $ECHO_N "(cached) $ECHO_C" >&6
17515 else
17516   cat >conftest.$ac_ext <<_ACEOF
17517 /* confdefs.h.  */
17518 _ACEOF
17519 cat confdefs.h >>conftest.$ac_ext
17520 cat >>conftest.$ac_ext <<_ACEOF
17521 /* end confdefs.h.  */
17522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17524 #define $ac_func innocuous_$ac_func
17525
17526 /* System header to define __stub macros and hopefully few prototypes,
17527     which can conflict with char $ac_func (); below.
17528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17529     <limits.h> exists even on freestanding compilers.  */
17530
17531 #ifdef __STDC__
17532 # include <limits.h>
17533 #else
17534 # include <assert.h>
17535 #endif
17536
17537 #undef $ac_func
17538
17539 /* Override any gcc2 internal prototype to avoid an error.  */
17540 #ifdef __cplusplus
17541 extern "C"
17542 {
17543 #endif
17544 /* We use char because int might match the return type of a gcc2
17545    builtin and then its argument prototype would still apply.  */
17546 char $ac_func ();
17547 /* The GNU C library defines this for functions which it implements
17548     to always fail with ENOSYS.  Some functions are actually named
17549     something starting with __ and the normal name is an alias.  */
17550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17551 choke me
17552 #else
17553 char (*f) () = $ac_func;
17554 #endif
17555 #ifdef __cplusplus
17556 }
17557 #endif
17558
17559 int
17560 main ()
17561 {
17562 return f != $ac_func;
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext conftest$ac_exeext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17569   (eval $ac_link) 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } &&
17576          { ac_try='test -z "$ac_c_werror_flag"
17577                          || test ! -s conftest.err'
17578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579   (eval $ac_try) 2>&5
17580   ac_status=$?
17581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582   (exit $ac_status); }; } &&
17583          { ac_try='test -s conftest$ac_exeext'
17584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585   (eval $ac_try) 2>&5
17586   ac_status=$?
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); }; }; then
17589   eval "$as_ac_var=yes"
17590 else
17591   echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 eval "$as_ac_var=no"
17595 fi
17596 rm -f conftest.err conftest.$ac_objext \
17597       conftest$ac_exeext conftest.$ac_ext
17598 fi
17599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17601 if test `eval echo '${'$as_ac_var'}'` = yes; then
17602   cat >>confdefs.h <<_ACEOF
17603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17604 _ACEOF
17605
17606 fi
17607 done
17608
17609
17610 ol_link_ipv6=no
17611 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
17612         if test $ol_enable_ipv6 = yes ; then
17613                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
17614 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
17615    { (exit 1); exit 1; }; }
17616         fi
17617 elif test $ol_enable_ipv6 != no ; then
17618         echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
17619 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
17620 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623
17624                 cat >conftest.$ac_ext <<_ACEOF
17625 /* confdefs.h.  */
17626 _ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h.  */
17630
17631 #                       include <netinet/in.h>
17632 #                       ifdef INET6_ADDRSTRLEN
17633                                 __has_inet6_addrstrlen__;
17634 #                       endif
17635
17636 _ACEOF
17637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17638   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
17639   ol_cv_inet6_addrstrlen=yes
17640 else
17641   ol_cv_inet6_addrstrlen=no
17642 fi
17643 rm -f conftest*
17644
17645 fi
17646 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
17647 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
17648
17649
17650         echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
17651 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
17652 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655
17656                 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662
17663 #include <sys/types.h>
17664 #include <sys/socket.h>
17665
17666 int
17667 main ()
17668 {
17669
17670                         struct sockaddr_storage ss;
17671
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678   (eval $ac_compile) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } &&
17685          { ac_try='test -z "$ac_c_werror_flag"
17686                          || test ! -s conftest.err'
17687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688   (eval $ac_try) 2>&5
17689   ac_status=$?
17690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691   (exit $ac_status); }; } &&
17692          { ac_try='test -s conftest.$ac_objext'
17693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694   (eval $ac_try) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); }; }; then
17698   ol_cv_struct_sockaddr_storage=yes
17699 else
17700   echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 ol_cv_struct_sockaddr_storage=no
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
17708 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
17709
17710         if test $ol_cv_inet6_addrstrlen = yes &&
17711            test $ol_cv_struct_sockaddr_storage = yes ; then
17712                 ol_link_ipv6=yes
17713         elif test $ol_enable_ipv6 = yes &&
17714              test $ol_cv_inet6_addrstrlen = no ; then
17715                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
17716 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
17717    { (exit 1); exit 1; }; }
17718         elif test $ol_enable_ipv6 = yes &&
17719              test $ol_cv_struct_sockaddr_storage = no ; then
17720                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
17721 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
17722    { (exit 1); exit 1; }; }
17723         fi
17724 fi
17725
17726 if test $ol_enable_local != no ; then
17727
17728 for ac_header in sys/un.h
17729 do
17730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17732   echo "$as_me:$LINENO: checking for $ac_header" >&5
17733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 fi
17737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17739 else
17740   # Is the header compilable?
17741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17743 cat >conftest.$ac_ext <<_ACEOF
17744 /* confdefs.h.  */
17745 _ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h.  */
17749 $ac_includes_default
17750 #include <$ac_header>
17751 _ACEOF
17752 rm -f conftest.$ac_objext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17754   (eval $ac_compile) 2>conftest.er1
17755   ac_status=$?
17756   grep -v '^ *+' conftest.er1 >conftest.err
17757   rm -f conftest.er1
17758   cat conftest.err >&5
17759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760   (exit $ac_status); } &&
17761          { ac_try='test -z "$ac_c_werror_flag"
17762                          || test ! -s conftest.err'
17763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17764   (eval $ac_try) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; } &&
17768          { ac_try='test -s conftest.$ac_objext'
17769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770   (eval $ac_try) 2>&5
17771   ac_status=$?
17772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); }; }; then
17774   ac_header_compiler=yes
17775 else
17776   echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ac_header_compiler=no
17780 fi
17781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17783 echo "${ECHO_T}$ac_header_compiler" >&6
17784
17785 # Is the header present?
17786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17788 cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 #include <$ac_header>
17795 _ACEOF
17796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17797   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17798   ac_status=$?
17799   grep -v '^ *+' conftest.er1 >conftest.err
17800   rm -f conftest.er1
17801   cat conftest.err >&5
17802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803   (exit $ac_status); } >/dev/null; then
17804   if test -s conftest.err; then
17805     ac_cpp_err=$ac_c_preproc_warn_flag
17806     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17807   else
17808     ac_cpp_err=
17809   fi
17810 else
17811   ac_cpp_err=yes
17812 fi
17813 if test -z "$ac_cpp_err"; then
17814   ac_header_preproc=yes
17815 else
17816   echo "$as_me: failed program was:" >&5
17817 sed 's/^/| /' conftest.$ac_ext >&5
17818
17819   ac_header_preproc=no
17820 fi
17821 rm -f conftest.err conftest.$ac_ext
17822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17823 echo "${ECHO_T}$ac_header_preproc" >&6
17824
17825 # So?  What about this header?
17826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17827   yes:no: )
17828     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17832     ac_header_preproc=yes
17833     ;;
17834   no:yes:* )
17835     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17837     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17838 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17839     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17841     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17842 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17843     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17845     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17847     (
17848       cat <<\_ASBOX
17849 ## ------------------------------------------ ##
17850 ## Report this to the AC_PACKAGE_NAME lists.  ##
17851 ## ------------------------------------------ ##
17852 _ASBOX
17853     ) |
17854       sed "s/^/$as_me: WARNING:     /" >&2
17855     ;;
17856 esac
17857 echo "$as_me:$LINENO: checking for $ac_header" >&5
17858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17860   echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862   eval "$as_ac_Header=\$ac_header_preproc"
17863 fi
17864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17866
17867 fi
17868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17869   cat >>confdefs.h <<_ACEOF
17870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17871 _ACEOF
17872
17873 fi
17874
17875 done
17876
17877
17878         if test $ol_enable_local = auto ; then
17879                 ol_enable_local=$ac_cv_header_sys_un_h
17880         elif test $ac_cv_header_sys_un_h = no ; then
17881                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
17882 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
17883    { (exit 1); exit 1; }; }
17884         fi
17885 fi
17886
17887 ol_link_kbind=no
17888 ol_link_krb5=no
17889 ol_link_krb4=no
17890
17891 case $ol_with_kerberos in yes | auto | k5 | k5only | k425)
17892
17893
17894 for ac_header in krb5.h
17895 do
17896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17898   echo "$as_me:$LINENO: checking for $ac_header" >&5
17899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17901   echo $ECHO_N "(cached) $ECHO_C" >&6
17902 fi
17903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17905 else
17906   # Is the header compilable?
17907 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h.  */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h.  */
17915 $ac_includes_default
17916 #include <$ac_header>
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17920   (eval $ac_compile) 2>conftest.er1
17921   ac_status=$?
17922   grep -v '^ *+' conftest.er1 >conftest.err
17923   rm -f conftest.er1
17924   cat conftest.err >&5
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); } &&
17927          { ac_try='test -z "$ac_c_werror_flag"
17928                          || test ! -s conftest.err'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; } &&
17934          { ac_try='test -s conftest.$ac_objext'
17935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936   (eval $ac_try) 2>&5
17937   ac_status=$?
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); }; }; then
17940   ac_header_compiler=yes
17941 else
17942   echo "$as_me: failed program was:" >&5
17943 sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_compiler=no
17946 fi
17947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17948 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17949 echo "${ECHO_T}$ac_header_compiler" >&6
17950
17951 # Is the header present?
17952 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17954 cat >conftest.$ac_ext <<_ACEOF
17955 /* confdefs.h.  */
17956 _ACEOF
17957 cat confdefs.h >>conftest.$ac_ext
17958 cat >>conftest.$ac_ext <<_ACEOF
17959 /* end confdefs.h.  */
17960 #include <$ac_header>
17961 _ACEOF
17962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } >/dev/null; then
17970   if test -s conftest.err; then
17971     ac_cpp_err=$ac_c_preproc_warn_flag
17972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17973   else
17974     ac_cpp_err=
17975   fi
17976 else
17977   ac_cpp_err=yes
17978 fi
17979 if test -z "$ac_cpp_err"; then
17980   ac_header_preproc=yes
17981 else
17982   echo "$as_me: failed program was:" >&5
17983 sed 's/^/| /' conftest.$ac_ext >&5
17984
17985   ac_header_preproc=no
17986 fi
17987 rm -f conftest.err conftest.$ac_ext
17988 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17989 echo "${ECHO_T}$ac_header_preproc" >&6
17990
17991 # So?  What about this header?
17992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17993   yes:no: )
17994     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17996     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17998     ac_header_preproc=yes
17999     ;;
18000   no:yes:* )
18001     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18003     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18004 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18005     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18007     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18008 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18009     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18011     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18013     (
18014       cat <<\_ASBOX
18015 ## ------------------------------------------ ##
18016 ## Report this to the AC_PACKAGE_NAME lists.  ##
18017 ## ------------------------------------------ ##
18018 _ASBOX
18019     ) |
18020       sed "s/^/$as_me: WARNING:     /" >&2
18021     ;;
18022 esac
18023 echo "$as_me:$LINENO: checking for $ac_header" >&5
18024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18026   echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028   eval "$as_ac_Header=\$ac_header_preproc"
18029 fi
18030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18032
18033 fi
18034 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18035   cat >>confdefs.h <<_ACEOF
18036 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18037 _ACEOF
18038
18039 fi
18040
18041 done
18042
18043
18044         if test $ac_cv_header_krb5_h = yes ; then
18045
18046 for ac_header in heim_err.h
18047 do
18048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18050   echo "$as_me:$LINENO: checking for $ac_header" >&5
18051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18052 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18053   echo $ECHO_N "(cached) $ECHO_C" >&6
18054 fi
18055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18057 else
18058   # Is the header compilable?
18059 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18060 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18061 cat >conftest.$ac_ext <<_ACEOF
18062 /* confdefs.h.  */
18063 _ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h.  */
18067 $ac_includes_default
18068 #include <$ac_header>
18069 _ACEOF
18070 rm -f conftest.$ac_objext
18071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18072   (eval $ac_compile) 2>conftest.er1
18073   ac_status=$?
18074   grep -v '^ *+' conftest.er1 >conftest.err
18075   rm -f conftest.er1
18076   cat conftest.err >&5
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); } &&
18079          { ac_try='test -z "$ac_c_werror_flag"
18080                          || test ! -s conftest.err'
18081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18082   (eval $ac_try) 2>&5
18083   ac_status=$?
18084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085   (exit $ac_status); }; } &&
18086          { ac_try='test -s conftest.$ac_objext'
18087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18088   (eval $ac_try) 2>&5
18089   ac_status=$?
18090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18091   (exit $ac_status); }; }; then
18092   ac_header_compiler=yes
18093 else
18094   echo "$as_me: failed program was:" >&5
18095 sed 's/^/| /' conftest.$ac_ext >&5
18096
18097 ac_header_compiler=no
18098 fi
18099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18101 echo "${ECHO_T}$ac_header_compiler" >&6
18102
18103 # Is the header present?
18104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18107 /* confdefs.h.  */
18108 _ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h.  */
18112 #include <$ac_header>
18113 _ACEOF
18114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18116   ac_status=$?
18117   grep -v '^ *+' conftest.er1 >conftest.err
18118   rm -f conftest.er1
18119   cat conftest.err >&5
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); } >/dev/null; then
18122   if test -s conftest.err; then
18123     ac_cpp_err=$ac_c_preproc_warn_flag
18124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18125   else
18126     ac_cpp_err=
18127   fi
18128 else
18129   ac_cpp_err=yes
18130 fi
18131 if test -z "$ac_cpp_err"; then
18132   ac_header_preproc=yes
18133 else
18134   echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137   ac_header_preproc=no
18138 fi
18139 rm -f conftest.err conftest.$ac_ext
18140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18141 echo "${ECHO_T}$ac_header_preproc" >&6
18142
18143 # So?  What about this header?
18144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18145   yes:no: )
18146     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18150     ac_header_preproc=yes
18151     ;;
18152   no:yes:* )
18153     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18155     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18156 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18157     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18159     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18160 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18161     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18163     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18165     (
18166       cat <<\_ASBOX
18167 ## ------------------------------------------ ##
18168 ## Report this to the AC_PACKAGE_NAME lists.  ##
18169 ## ------------------------------------------ ##
18170 _ASBOX
18171     ) |
18172       sed "s/^/$as_me: WARNING:     /" >&2
18173     ;;
18174 esac
18175 echo "$as_me:$LINENO: checking for $ac_header" >&5
18176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   eval "$as_ac_Header=\$ac_header_preproc"
18181 fi
18182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18184
18185 fi
18186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18187   cat >>confdefs.h <<_ACEOF
18188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18189 _ACEOF
18190
18191 fi
18192
18193 done
18194
18195                 if test $ac_cv_header_heim_err_h = yes ; then
18196                         krb5_impl=heimdal
18197                 else
18198                         krb5_impl=mit
18199                 fi
18200
18201                 if test $krb5_impl = mit; then
18202                         echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
18203 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
18204 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lk5crypto  $LIBS"
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216
18217 int
18218 main ()
18219 {
18220 main ();
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227   (eval $ac_link) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest$ac_exeext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ac_cv_lib_k5crypto_main=yes
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_cv_lib_k5crypto_main=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 LIBS=$ac_check_lib_save_LIBS
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
18259 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
18260 if test $ac_cv_lib_k5crypto_main = yes; then
18261   krb5crypto=k5crypto
18262 else
18263   krb5crypto=crypto
18264 fi
18265
18266
18267                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18268 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18269 if test "${ac_cv_lib_krb5_main+set}" = set; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 else
18272   ac_check_lib_save_LIBS=$LIBS
18273 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
18274 cat >conftest.$ac_ext <<_ACEOF
18275 /* confdefs.h.  */
18276 _ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h.  */
18280
18281
18282 int
18283 main ()
18284 {
18285 main ();
18286   ;
18287   return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext conftest$ac_exeext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292   (eval $ac_link) 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag"
18300                          || test ! -s conftest.err'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; } &&
18306          { ac_try='test -s conftest$ac_exeext'
18307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308   (eval $ac_try) 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; }; then
18312   ac_cv_lib_krb5_main=yes
18313 else
18314   echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_cv_lib_krb5_main=no
18318 fi
18319 rm -f conftest.err conftest.$ac_objext \
18320       conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18322 fi
18323 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18324 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18325 if test $ac_cv_lib_krb5_main = yes; then
18326   have_krb5=yes
18327                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
18328 else
18329   have_krb5=no
18330 fi
18331
18332
18333                 elif test $krb5_impl = heimdal; then
18334                         echo "$as_me:$LINENO: checking for main in -ldes" >&5
18335 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
18336 if test "${ac_cv_lib_des_main+set}" = set; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 else
18339   ac_check_lib_save_LIBS=$LIBS
18340 LIBS="-ldes  $LIBS"
18341 cat >conftest.$ac_ext <<_ACEOF
18342 /* confdefs.h.  */
18343 _ACEOF
18344 cat confdefs.h >>conftest.$ac_ext
18345 cat >>conftest.$ac_ext <<_ACEOF
18346 /* end confdefs.h.  */
18347
18348
18349 int
18350 main ()
18351 {
18352 main ();
18353   ;
18354   return 0;
18355 }
18356 _ACEOF
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18359   (eval $ac_link) 2>conftest.er1
18360   ac_status=$?
18361   grep -v '^ *+' conftest.er1 >conftest.err
18362   rm -f conftest.er1
18363   cat conftest.err >&5
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); } &&
18366          { ac_try='test -z "$ac_c_werror_flag"
18367                          || test ! -s conftest.err'
18368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369   (eval $ac_try) 2>&5
18370   ac_status=$?
18371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372   (exit $ac_status); }; } &&
18373          { ac_try='test -s conftest$ac_exeext'
18374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18375   (eval $ac_try) 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; }; then
18379   ac_cv_lib_des_main=yes
18380 else
18381   echo "$as_me: failed program was:" >&5
18382 sed 's/^/| /' conftest.$ac_ext >&5
18383
18384 ac_cv_lib_des_main=no
18385 fi
18386 rm -f conftest.err conftest.$ac_objext \
18387       conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18389 fi
18390 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
18391 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
18392 if test $ac_cv_lib_des_main = yes; then
18393   krb5crypto=des
18394 else
18395   krb5crypto=crypto
18396 fi
18397
18398
18399                         echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
18400 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
18401 if test "${ac_cv_lib_krb5_main+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   ac_check_lib_save_LIBS=$LIBS
18405 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18406 cat >conftest.$ac_ext <<_ACEOF
18407 /* confdefs.h.  */
18408 _ACEOF
18409 cat confdefs.h >>conftest.$ac_ext
18410 cat >>conftest.$ac_ext <<_ACEOF
18411 /* end confdefs.h.  */
18412
18413
18414 int
18415 main ()
18416 {
18417 main ();
18418   ;
18419   return 0;
18420 }
18421 _ACEOF
18422 rm -f conftest.$ac_objext conftest$ac_exeext
18423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18424   (eval $ac_link) 2>conftest.er1
18425   ac_status=$?
18426   grep -v '^ *+' conftest.er1 >conftest.err
18427   rm -f conftest.er1
18428   cat conftest.err >&5
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); } &&
18431          { ac_try='test -z "$ac_c_werror_flag"
18432                          || test ! -s conftest.err'
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); }; } &&
18438          { ac_try='test -s conftest$ac_exeext'
18439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440   (eval $ac_try) 2>&5
18441   ac_status=$?
18442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443   (exit $ac_status); }; }; then
18444   ac_cv_lib_krb5_main=yes
18445 else
18446   echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ac_cv_lib_krb5_main=no
18450 fi
18451 rm -f conftest.err conftest.$ac_objext \
18452       conftest$ac_exeext conftest.$ac_ext
18453 LIBS=$ac_check_lib_save_LIBS
18454 fi
18455 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
18456 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
18457 if test $ac_cv_lib_krb5_main = yes; then
18458   have_krb5=yes
18459                                 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
18460 else
18461   have_krb5=no
18462 fi
18463
18464
18465
18466 cat >>confdefs.h <<\_ACEOF
18467 #define HAVE_HEIMDAL_KERBEROS 1
18468 _ACEOF
18469
18470
18471                 else
18472                         have_krb5=no
18473                         { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
18474 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
18475                 fi
18476
18477                 if test $have_krb5 = yes ; then
18478                         ol_link_krb5=yes
18479
18480
18481 cat >>confdefs.h <<\_ACEOF
18482 #define HAVE_KRB5 1
18483 _ACEOF
18484
18485
18486                         if test $ol_with_kerberos = k5only ; then
18487                                 ol_with_kerberos=found
18488                         fi
18489
18490                 elif test $ol_with_kerberos != auto ; then
18491                         { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
18492 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
18493    { (exit 1); exit 1; }; }
18494                 fi
18495
18496         fi
18497         ;;
18498 esac
18499
18500 if test $ol_link_krb5 = yes &&
18501    { test $ol_with_kerberos = yes ||
18502      test $ol_with_kerberos = auto ||
18503      test $ol_with_kerberos = k425; }; then
18504
18505
18506
18507 for ac_header in kerberosIV/krb.h kerberosIV/des.h
18508 do
18509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18511   echo "$as_me:$LINENO: checking for $ac_header" >&5
18512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18514   echo $ECHO_N "(cached) $ECHO_C" >&6
18515 fi
18516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18518 else
18519   # Is the header compilable?
18520 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18522 cat >conftest.$ac_ext <<_ACEOF
18523 /* confdefs.h.  */
18524 _ACEOF
18525 cat confdefs.h >>conftest.$ac_ext
18526 cat >>conftest.$ac_ext <<_ACEOF
18527 /* end confdefs.h.  */
18528 $ac_includes_default
18529 #include <$ac_header>
18530 _ACEOF
18531 rm -f conftest.$ac_objext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18533   (eval $ac_compile) 2>conftest.er1
18534   ac_status=$?
18535   grep -v '^ *+' conftest.er1 >conftest.err
18536   rm -f conftest.er1
18537   cat conftest.err >&5
18538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539   (exit $ac_status); } &&
18540          { ac_try='test -z "$ac_c_werror_flag"
18541                          || test ! -s conftest.err'
18542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18543   (eval $ac_try) 2>&5
18544   ac_status=$?
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); }; } &&
18547          { ac_try='test -s conftest.$ac_objext'
18548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549   (eval $ac_try) 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }; }; then
18553   ac_header_compiler=yes
18554 else
18555   echo "$as_me: failed program was:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18557
18558 ac_header_compiler=no
18559 fi
18560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18561 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18562 echo "${ECHO_T}$ac_header_compiler" >&6
18563
18564 # Is the header present?
18565 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18566 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h.  */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h.  */
18573 #include <$ac_header>
18574 _ACEOF
18575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } >/dev/null; then
18583   if test -s conftest.err; then
18584     ac_cpp_err=$ac_c_preproc_warn_flag
18585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18586   else
18587     ac_cpp_err=
18588   fi
18589 else
18590   ac_cpp_err=yes
18591 fi
18592 if test -z "$ac_cpp_err"; then
18593   ac_header_preproc=yes
18594 else
18595   echo "$as_me: failed program was:" >&5
18596 sed 's/^/| /' conftest.$ac_ext >&5
18597
18598   ac_header_preproc=no
18599 fi
18600 rm -f conftest.err conftest.$ac_ext
18601 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18602 echo "${ECHO_T}$ac_header_preproc" >&6
18603
18604 # So?  What about this header?
18605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18606   yes:no: )
18607     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18611     ac_header_preproc=yes
18612     ;;
18613   no:yes:* )
18614     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18616     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18617 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18618     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18620     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18621 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18624     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18626     (
18627       cat <<\_ASBOX
18628 ## ------------------------------------------ ##
18629 ## Report this to the AC_PACKAGE_NAME lists.  ##
18630 ## ------------------------------------------ ##
18631 _ASBOX
18632     ) |
18633       sed "s/^/$as_me: WARNING:     /" >&2
18634     ;;
18635 esac
18636 echo "$as_me:$LINENO: checking for $ac_header" >&5
18637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   eval "$as_ac_Header=\$ac_header_preproc"
18642 fi
18643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18645
18646 fi
18647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18648   cat >>confdefs.h <<_ACEOF
18649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18650 _ACEOF
18651
18652 fi
18653
18654 done
18655
18656
18657         if test $ac_cv_header_kerberosIV_krb_h = yes ; then
18658                 if test $krb5_impl = mit; then
18659                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18660 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18661 if test "${ac_cv_lib_krb4_main+set}" = set; then
18662   echo $ECHO_N "(cached) $ECHO_C" >&6
18663 else
18664   ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672
18673
18674 int
18675 main ()
18676 {
18677 main ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18684   (eval $ac_link) 2>conftest.er1
18685   ac_status=$?
18686   grep -v '^ *+' conftest.er1 >conftest.err
18687   rm -f conftest.er1
18688   cat conftest.err >&5
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } &&
18691          { ac_try='test -z "$ac_c_werror_flag"
18692                          || test ! -s conftest.err'
18693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694   (eval $ac_try) 2>&5
18695   ac_status=$?
18696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); }; } &&
18698          { ac_try='test -s conftest$ac_exeext'
18699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700   (eval $ac_try) 2>&5
18701   ac_status=$?
18702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703   (exit $ac_status); }; }; then
18704   ac_cv_lib_krb4_main=yes
18705 else
18706   echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.$ac_ext >&5
18708
18709 ac_cv_lib_krb4_main=no
18710 fi
18711 rm -f conftest.err conftest.$ac_objext \
18712       conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18714 fi
18715 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18716 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18717 if test $ac_cv_lib_krb4_main = yes; then
18718   have_k425=yes
18719                                 KRB4_LIBS="-lkrb4 -ldes425"
18720 else
18721   have_k425=no
18722 fi
18723
18724
18725                 elif test $krb5_impl = heimdal; then
18726                         echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
18727 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
18728 if test "${ac_cv_lib_krb4_main+set}" = set; then
18729   echo $ECHO_N "(cached) $ECHO_C" >&6
18730 else
18731   ac_check_lib_save_LIBS=$LIBS
18732 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
18733 cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739
18740
18741 int
18742 main ()
18743 {
18744 main ();
18745   ;
18746   return 0;
18747 }
18748 _ACEOF
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18751   (eval $ac_link) 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } &&
18758          { ac_try='test -z "$ac_c_werror_flag"
18759                          || test ! -s conftest.err'
18760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761   (eval $ac_try) 2>&5
18762   ac_status=$?
18763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764   (exit $ac_status); }; } &&
18765          { ac_try='test -s conftest$ac_exeext'
18766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767   (eval $ac_try) 2>&5
18768   ac_status=$?
18769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770   (exit $ac_status); }; }; then
18771   ac_cv_lib_krb4_main=yes
18772 else
18773   echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_krb4_main=no
18777 fi
18778 rm -f conftest.err conftest.$ac_objext \
18779       conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18781 fi
18782 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
18783 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
18784 if test $ac_cv_lib_krb4_main = yes; then
18785   have_k425=yes
18786                                 KRB4_LIBS="-lkrb4"
18787 else
18788   have_k425=no
18789 fi
18790
18791
18792                 else
18793                         have_425=no
18794                         { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
18795 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
18796                 fi
18797
18798                 if test $have_k425 = yes ; then
18799                         ol_with_kerberos=found
18800                         ol_link_krb4=yes
18801
18802
18803 cat >>confdefs.h <<\_ACEOF
18804 #define HAVE_KRB425 1
18805 _ACEOF
18806
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_KRB4 1
18810 _ACEOF
18811
18812
18813                         echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
18814 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
18815 if test "${ol_cv_var_des_debug+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818
18819                                                                 save_LIBS="$LIBS"
18820                                 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
18821                                 cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827
18828 #include <kerberosIV/krb.h>
18829 #include <kerberosIV/des.h>
18830 extern int des_debug;
18831
18832 int
18833 main ()
18834 {
18835
18836 des_debug = 1;
18837
18838   ;
18839   return 0;
18840 }
18841 _ACEOF
18842 rm -f conftest.$ac_objext conftest$ac_exeext
18843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18844   (eval $ac_link) 2>conftest.er1
18845   ac_status=$?
18846   grep -v '^ *+' conftest.er1 >conftest.err
18847   rm -f conftest.er1
18848   cat conftest.err >&5
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); } &&
18851          { ac_try='test -z "$ac_c_werror_flag"
18852                          || test ! -s conftest.err'
18853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18854   (eval $ac_try) 2>&5
18855   ac_status=$?
18856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857   (exit $ac_status); }; } &&
18858          { ac_try='test -s conftest$ac_exeext'
18859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18860   (eval $ac_try) 2>&5
18861   ac_status=$?
18862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863   (exit $ac_status); }; }; then
18864   ol_cv_var_des_debug=yes
18865 else
18866   echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18868
18869 ol_cv_var_des_debug=no
18870 fi
18871 rm -f conftest.err conftest.$ac_objext \
18872       conftest$ac_exeext conftest.$ac_ext
18873                                                                 LIBS="$save_LIBS"
18874
18875 fi
18876 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
18877 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
18878
18879                         if test $ol_cv_var_des_debug = yes ; then
18880
18881 cat >>confdefs.h <<\_ACEOF
18882 #define HAVE_DES_DEBUG 1
18883 _ACEOF
18884
18885                         fi
18886
18887                         LIBS="$save_LIBS"
18888                 fi
18889         fi
18890 fi
18891
18892 if test $ol_link_krb5 = yes ; then
18893         ol_with_kerberos=found
18894 fi
18895
18896 case $ol_with_kerberos in yes | auto | k4 | kth)
18897
18898
18899
18900
18901 for ac_header in krb.h des.h krb-archaeology.h
18902 do
18903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18905   echo "$as_me:$LINENO: checking for $ac_header" >&5
18906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 fi
18910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18912 else
18913   # Is the header compilable?
18914 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 $ac_includes_default
18923 #include <$ac_header>
18924 _ACEOF
18925 rm -f conftest.$ac_objext
18926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18927   (eval $ac_compile) 2>conftest.er1
18928   ac_status=$?
18929   grep -v '^ *+' conftest.er1 >conftest.err
18930   rm -f conftest.er1
18931   cat conftest.err >&5
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); } &&
18934          { ac_try='test -z "$ac_c_werror_flag"
18935                          || test ! -s conftest.err'
18936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937   (eval $ac_try) 2>&5
18938   ac_status=$?
18939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940   (exit $ac_status); }; } &&
18941          { ac_try='test -s conftest.$ac_objext'
18942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943   (eval $ac_try) 2>&5
18944   ac_status=$?
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); }; }; then
18947   ac_header_compiler=yes
18948 else
18949   echo "$as_me: failed program was:" >&5
18950 sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_header_compiler=no
18953 fi
18954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18956 echo "${ECHO_T}$ac_header_compiler" >&6
18957
18958 # Is the header present?
18959 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18960 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h.  */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h.  */
18967 #include <$ac_header>
18968 _ACEOF
18969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18971   ac_status=$?
18972   grep -v '^ *+' conftest.er1 >conftest.err
18973   rm -f conftest.er1
18974   cat conftest.err >&5
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } >/dev/null; then
18977   if test -s conftest.err; then
18978     ac_cpp_err=$ac_c_preproc_warn_flag
18979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18980   else
18981     ac_cpp_err=
18982   fi
18983 else
18984   ac_cpp_err=yes
18985 fi
18986 if test -z "$ac_cpp_err"; then
18987   ac_header_preproc=yes
18988 else
18989   echo "$as_me: failed program was:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18991
18992   ac_header_preproc=no
18993 fi
18994 rm -f conftest.err conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18996 echo "${ECHO_T}$ac_header_preproc" >&6
18997
18998 # So?  What about this header?
18999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19000   yes:no: )
19001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19005     ac_header_preproc=yes
19006     ;;
19007   no:yes:* )
19008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19020     (
19021       cat <<\_ASBOX
19022 ## ------------------------------------------ ##
19023 ## Report this to the AC_PACKAGE_NAME lists.  ##
19024 ## ------------------------------------------ ##
19025 _ASBOX
19026     ) |
19027       sed "s/^/$as_me: WARNING:     /" >&2
19028     ;;
19029 esac
19030 echo "$as_me:$LINENO: checking for $ac_header" >&5
19031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19033   echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035   eval "$as_ac_Header=\$ac_header_preproc"
19036 fi
19037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19039
19040 fi
19041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19042   cat >>confdefs.h <<_ACEOF
19043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19044 _ACEOF
19045
19046 fi
19047
19048 done
19049
19050
19051         if test $ac_cv_header_krb_h = yes ; then
19052                 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19053 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19054 if test "${ac_cv_lib_krb_main+set}" = set; then
19055   echo $ECHO_N "(cached) $ECHO_C" >&6
19056 else
19057   ac_check_lib_save_LIBS=$LIBS
19058 LIBS="-lkrb -ldes $LIBS"
19059 cat >conftest.$ac_ext <<_ACEOF
19060 /* confdefs.h.  */
19061 _ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h.  */
19065
19066
19067 int
19068 main ()
19069 {
19070 main ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19077   (eval $ac_link) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_c_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest$ac_exeext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_lib_krb_main=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_cv_lib_krb_main=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext \
19105       conftest$ac_exeext conftest.$ac_ext
19106 LIBS=$ac_check_lib_save_LIBS
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19109 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19110 if test $ac_cv_lib_krb_main = yes; then
19111   have_k4=yes
19112 else
19113   have_k4=no
19114 fi
19115
19116
19117                 if test $have_k4 = yes ; then
19118                         ol_with_kerberos=found
19119                         ol_link_krb4=yes
19120
19121
19122 cat >>confdefs.h <<\_ACEOF
19123 #define HAVE_KRB4 1
19124 _ACEOF
19125
19126
19127                         KRB4_LIBS="-lkrb -ldes"
19128
19129                         if test $ac_cv_header_krb_archaeology_h = yes ; then
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define HAVE_KTH_KERBEROS 1
19133 _ACEOF
19134
19135                         fi
19136                 fi
19137         fi
19138         ;;
19139 esac
19140
19141 if test $ol_link_krb4 = yes && test $ol_enable_kbind != no ; then
19142         ol_link_kbind=yes
19143
19144 elif test $ol_enable_kbind = yes ; then
19145         { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
19146 echo "$as_me: error: Kerberos IV detection failed" >&2;}
19147    { (exit 1); exit 1; }; }
19148 fi
19149
19150 if test $ol_link_krb4 = yes || test $ol_link_krb5 = yes ; then
19151
19152 cat >>confdefs.h <<\_ACEOF
19153 #define HAVE_KERBEROS 1
19154 _ACEOF
19155
19156
19157 elif test $ol_with_kerberos != auto && test $ol_with_kerberos != no ; then
19158         { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
19159 echo "$as_me: error: Kerberos detection failed" >&2;}
19160    { (exit 1); exit 1; }; }
19161 fi
19162
19163
19164 ol_link_tls=no
19165 if test $ol_with_tls != no ; then
19166
19167 for ac_header in openssl/ssl.h
19168 do
19169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19171   echo "$as_me:$LINENO: checking for $ac_header" >&5
19172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 fi
19176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19178 else
19179   # Is the header compilable?
19180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19182 cat >conftest.$ac_ext <<_ACEOF
19183 /* confdefs.h.  */
19184 _ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h.  */
19188 $ac_includes_default
19189 #include <$ac_header>
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19193   (eval $ac_compile) 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } &&
19200          { ac_try='test -z "$ac_c_werror_flag"
19201                          || test ! -s conftest.err'
19202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203   (eval $ac_try) 2>&5
19204   ac_status=$?
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); }; } &&
19207          { ac_try='test -s conftest.$ac_objext'
19208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19209   (eval $ac_try) 2>&5
19210   ac_status=$?
19211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212   (exit $ac_status); }; }; then
19213   ac_header_compiler=yes
19214 else
19215   echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19217
19218 ac_header_compiler=no
19219 fi
19220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19222 echo "${ECHO_T}$ac_header_compiler" >&6
19223
19224 # Is the header present?
19225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h.  */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h.  */
19233 #include <$ac_header>
19234 _ACEOF
19235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19237   ac_status=$?
19238   grep -v '^ *+' conftest.er1 >conftest.err
19239   rm -f conftest.er1
19240   cat conftest.err >&5
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); } >/dev/null; then
19243   if test -s conftest.err; then
19244     ac_cpp_err=$ac_c_preproc_warn_flag
19245     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19246   else
19247     ac_cpp_err=
19248   fi
19249 else
19250   ac_cpp_err=yes
19251 fi
19252 if test -z "$ac_cpp_err"; then
19253   ac_header_preproc=yes
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258   ac_header_preproc=no
19259 fi
19260 rm -f conftest.err conftest.$ac_ext
19261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19262 echo "${ECHO_T}$ac_header_preproc" >&6
19263
19264 # So?  What about this header?
19265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19266   yes:no: )
19267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19271     ac_header_preproc=yes
19272     ;;
19273   no:yes:* )
19274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19286     (
19287       cat <<\_ASBOX
19288 ## ------------------------------------------ ##
19289 ## Report this to the AC_PACKAGE_NAME lists.  ##
19290 ## ------------------------------------------ ##
19291 _ASBOX
19292     ) |
19293       sed "s/^/$as_me: WARNING:     /" >&2
19294     ;;
19295 esac
19296 echo "$as_me:$LINENO: checking for $ac_header" >&5
19297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19299   echo $ECHO_N "(cached) $ECHO_C" >&6
19300 else
19301   eval "$as_ac_Header=\$ac_header_preproc"
19302 fi
19303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19305
19306 fi
19307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19308   cat >>confdefs.h <<_ACEOF
19309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19310 _ACEOF
19311
19312 fi
19313
19314 done
19315
19316
19317         if test $ac_cv_header_openssl_ssl_h = yes ; then
19318                 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19319 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19320 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323   ac_check_lib_save_LIBS=$LIBS
19324 LIBS="-lssl -lcrypto $LIBS"
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h.  */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h.  */
19331
19332 /* Override any gcc2 internal prototype to avoid an error.  */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 /* We use char because int might match the return type of a gcc2
19337    builtin and then its argument prototype would still apply.  */
19338 char SSL_library_init ();
19339 int
19340 main ()
19341 {
19342 SSL_library_init ();
19343   ;
19344   return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349   (eval $ac_link) 2>conftest.er1
19350   ac_status=$?
19351   grep -v '^ *+' conftest.er1 >conftest.err
19352   rm -f conftest.er1
19353   cat conftest.err >&5
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); } &&
19356          { ac_try='test -z "$ac_c_werror_flag"
19357                          || test ! -s conftest.err'
19358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359   (eval $ac_try) 2>&5
19360   ac_status=$?
19361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362   (exit $ac_status); }; } &&
19363          { ac_try='test -s conftest$ac_exeext'
19364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365   (eval $ac_try) 2>&5
19366   ac_status=$?
19367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368   (exit $ac_status); }; }; then
19369   ac_cv_lib_ssl_SSL_library_init=yes
19370 else
19371   echo "$as_me: failed program was:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19373
19374 ac_cv_lib_ssl_SSL_library_init=no
19375 fi
19376 rm -f conftest.err conftest.$ac_objext \
19377       conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19379 fi
19380 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19381 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19382 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19383   have_openssl=yes
19384                         need_rsaref=no
19385 else
19386   have_openssl=no
19387 fi
19388
19389
19390                 if test $have_openssl = no ; then
19391                         echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19392 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19393 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19394   echo $ECHO_N "(cached) $ECHO_C" >&6
19395 else
19396   ac_check_lib_save_LIBS=$LIBS
19397 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h.  */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h.  */
19404
19405 /* Override any gcc2 internal prototype to avoid an error.  */
19406 #ifdef __cplusplus
19407 extern "C"
19408 #endif
19409 /* We use char because int might match the return type of a gcc2
19410    builtin and then its argument prototype would still apply.  */
19411 char ssl3_accept ();
19412 int
19413 main ()
19414 {
19415 ssl3_accept ();
19416   ;
19417   return 0;
19418 }
19419 _ACEOF
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422   (eval $ac_link) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } &&
19429          { ac_try='test -z "$ac_c_werror_flag"
19430                          || test ! -s conftest.err'
19431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432   (eval $ac_try) 2>&5
19433   ac_status=$?
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); }; } &&
19436          { ac_try='test -s conftest$ac_exeext'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_cv_lib_ssl_ssl3_accept=yes
19443 else
19444   echo "$as_me: failed program was:" >&5
19445 sed 's/^/| /' conftest.$ac_ext >&5
19446
19447 ac_cv_lib_ssl_ssl3_accept=no
19448 fi
19449 rm -f conftest.err conftest.$ac_objext \
19450       conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19452 fi
19453 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19454 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19455 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19456   have_openssl=yes
19457                                 need_rsaref=yes
19458 else
19459   have_openssl=no
19460 fi
19461
19462                 fi
19463
19464                 if test $have_openssl = yes ; then
19465                         ol_with_tls=found
19466                         ol_link_tls=yes
19467
19468
19469 cat >>confdefs.h <<\_ACEOF
19470 #define HAVE_OPENSSL 1
19471 _ACEOF
19472
19473
19474                         if test $need_rsaref = yes; then
19475
19476 cat >>confdefs.h <<\_ACEOF
19477 #define HAVE_RSAREF 1
19478 _ACEOF
19479
19480
19481                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19482                         else
19483                                 TLS_LIBS="-lssl -lcrypto"
19484                         fi
19485                 fi
19486                 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19487 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19488 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19489   echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491
19492         cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498
19499 #ifdef HAVE_OPENSSL_SSL_H
19500 #include <openssl/ssl.h>
19501 #else
19502 #include <ssl.h>
19503 #endif
19504
19505 /* Require 0.9.7d+ */
19506 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19507         char *__ssl_compat = "0.9.7d";
19508 #endif
19509
19510 _ACEOF
19511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19512   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19513   ol_cv_ssl_crl_compat=yes
19514 else
19515   ol_cv_ssl_crl_compat=no
19516 fi
19517 rm -f conftest*
19518
19519 fi
19520 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19521 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19522
19523                 if test $ol_cv_ssl_crl_compat = no ; then
19524                         ol_link_ssl=no
19525                 else
19526
19527 cat >>confdefs.h <<\_ACEOF
19528 #define HAVE_OPENSSL_CRL 1
19529 _ACEOF
19530
19531                 fi
19532         fi
19533
19534 else
19535         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19536 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19537 fi
19538
19539 WITH_TLS=no
19540 if test $ol_link_tls = yes ; then
19541
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_TLS 1
19544 _ACEOF
19545
19546         WITH_TLS=yes
19547
19548 elif test $ol_with_tls = auto ; then
19549         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19550 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19551         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19552 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19553
19554 elif test $ol_with_tls != no ; then
19555         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19556 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19557    { (exit 1); exit 1; }; }
19558 fi
19559
19560 if test $ol_enable_lmpasswd != no; then
19561         if test $ol_link_tls != yes ; then
19562                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19563 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19564    { (exit 1); exit 1; }; }
19565         fi
19566
19567
19568 cat >>confdefs.h <<\_ACEOF
19569 #define SLAPD_LMHASH 1
19570 _ACEOF
19571
19572 fi
19573
19574 ol_link_threads=no
19575
19576 case $ol_with_threads in auto | yes | nt)
19577
19578
19579         echo "$as_me:$LINENO: checking for _beginthread" >&5
19580 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
19581 if test "${ac_cv_func__beginthread+set}" = set; then
19582   echo $ECHO_N "(cached) $ECHO_C" >&6
19583 else
19584   cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h.  */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h.  */
19590 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19592 #define _beginthread innocuous__beginthread
19593
19594 /* System header to define __stub macros and hopefully few prototypes,
19595     which can conflict with char _beginthread (); below.
19596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19597     <limits.h> exists even on freestanding compilers.  */
19598
19599 #ifdef __STDC__
19600 # include <limits.h>
19601 #else
19602 # include <assert.h>
19603 #endif
19604
19605 #undef _beginthread
19606
19607 /* Override any gcc2 internal prototype to avoid an error.  */
19608 #ifdef __cplusplus
19609 extern "C"
19610 {
19611 #endif
19612 /* We use char because int might match the return type of a gcc2
19613    builtin and then its argument prototype would still apply.  */
19614 char _beginthread ();
19615 /* The GNU C library defines this for functions which it implements
19616     to always fail with ENOSYS.  Some functions are actually named
19617     something starting with __ and the normal name is an alias.  */
19618 #if defined (__stub__beginthread) || defined (__stub____beginthread)
19619 choke me
19620 #else
19621 char (*f) () = _beginthread;
19622 #endif
19623 #ifdef __cplusplus
19624 }
19625 #endif
19626
19627 int
19628 main ()
19629 {
19630 return f != _beginthread;
19631   ;
19632   return 0;
19633 }
19634 _ACEOF
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637   (eval $ac_link) 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } &&
19644          { ac_try='test -z "$ac_c_werror_flag"
19645                          || test ! -s conftest.err'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; } &&
19651          { ac_try='test -s conftest$ac_exeext'
19652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653   (eval $ac_try) 2>&5
19654   ac_status=$?
19655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656   (exit $ac_status); }; }; then
19657   ac_cv_func__beginthread=yes
19658 else
19659   echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19661
19662 ac_cv_func__beginthread=no
19663 fi
19664 rm -f conftest.err conftest.$ac_objext \
19665       conftest$ac_exeext conftest.$ac_ext
19666 fi
19667 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19668 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
19669
19670
19671         if test $ac_cv_func__beginthread = yes ; then
19672
19673 cat >>confdefs.h <<\_ACEOF
19674 #define HAVE_NT_THREADS 1
19675 _ACEOF
19676
19677                 ol_cv_nt_threads=yes
19678         fi
19679
19680
19681         if test "$ol_cv_nt_threads" = yes ; then
19682                 ol_link_threads=nt
19683                 ol_with_threads=found
19684                 ol_with_yielding_select=yes
19685
19686
19687 cat >>confdefs.h <<\_ACEOF
19688 #define HAVE_NT_SERVICE_MANAGER 1
19689 _ACEOF
19690
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_NT_EVENT_LOG 1
19694 _ACEOF
19695
19696         fi
19697
19698         if test $ol_with_threads = nt ; then
19699                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19700 echo "$as_me: error: could not locate NT Threads" >&2;}
19701    { (exit 1); exit 1; }; }
19702         fi
19703         ;;
19704 esac
19705
19706 case $ol_with_threads in auto | yes | posix)
19707
19708
19709 for ac_header in pthread.h
19710 do
19711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19713   echo "$as_me:$LINENO: checking for $ac_header" >&5
19714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 fi
19718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19720 else
19721   # Is the header compilable?
19722 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19724 cat >conftest.$ac_ext <<_ACEOF
19725 /* confdefs.h.  */
19726 _ACEOF
19727 cat confdefs.h >>conftest.$ac_ext
19728 cat >>conftest.$ac_ext <<_ACEOF
19729 /* end confdefs.h.  */
19730 $ac_includes_default
19731 #include <$ac_header>
19732 _ACEOF
19733 rm -f conftest.$ac_objext
19734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735   (eval $ac_compile) 2>conftest.er1
19736   ac_status=$?
19737   grep -v '^ *+' conftest.er1 >conftest.err
19738   rm -f conftest.er1
19739   cat conftest.err >&5
19740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741   (exit $ac_status); } &&
19742          { ac_try='test -z "$ac_c_werror_flag"
19743                          || test ! -s conftest.err'
19744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745   (eval $ac_try) 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; } &&
19749          { ac_try='test -s conftest.$ac_objext'
19750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751   (eval $ac_try) 2>&5
19752   ac_status=$?
19753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754   (exit $ac_status); }; }; then
19755   ac_header_compiler=yes
19756 else
19757   echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 ac_header_compiler=no
19761 fi
19762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19763 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19764 echo "${ECHO_T}$ac_header_compiler" >&6
19765
19766 # Is the header present?
19767 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19770 /* confdefs.h.  */
19771 _ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h.  */
19775 #include <$ac_header>
19776 _ACEOF
19777 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19778   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19779   ac_status=$?
19780   grep -v '^ *+' conftest.er1 >conftest.err
19781   rm -f conftest.er1
19782   cat conftest.err >&5
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); } >/dev/null; then
19785   if test -s conftest.err; then
19786     ac_cpp_err=$ac_c_preproc_warn_flag
19787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19788   else
19789     ac_cpp_err=
19790   fi
19791 else
19792   ac_cpp_err=yes
19793 fi
19794 if test -z "$ac_cpp_err"; then
19795   ac_header_preproc=yes
19796 else
19797   echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800   ac_header_preproc=no
19801 fi
19802 rm -f conftest.err conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19804 echo "${ECHO_T}$ac_header_preproc" >&6
19805
19806 # So?  What about this header?
19807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19808   yes:no: )
19809     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19811     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19813     ac_header_preproc=yes
19814     ;;
19815   no:yes:* )
19816     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19818     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19819 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19820     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19822     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19823 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19828     (
19829       cat <<\_ASBOX
19830 ## ------------------------------------------ ##
19831 ## Report this to the AC_PACKAGE_NAME lists.  ##
19832 ## ------------------------------------------ ##
19833 _ASBOX
19834     ) |
19835       sed "s/^/$as_me: WARNING:     /" >&2
19836     ;;
19837 esac
19838 echo "$as_me:$LINENO: checking for $ac_header" >&5
19839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19841   echo $ECHO_N "(cached) $ECHO_C" >&6
19842 else
19843   eval "$as_ac_Header=\$ac_header_preproc"
19844 fi
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19847
19848 fi
19849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19850   cat >>confdefs.h <<_ACEOF
19851 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852 _ACEOF
19853
19854 fi
19855
19856 done
19857
19858
19859         if test $ac_cv_header_pthread_h = yes ; then
19860                 echo "$as_me:$LINENO: checking POSIX thread version" >&5
19861 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
19862 if test "${ol_cv_pthread_version+set}" = set; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865
19866         cat >conftest.$ac_ext <<_ACEOF
19867 /* confdefs.h.  */
19868 _ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h.  */
19872
19873 #               include <pthread.h>
19874
19875 int
19876 main ()
19877 {
19878
19879                 int i = PTHREAD_CREATE_JOINABLE;
19880
19881   ;
19882   return 0;
19883 }
19884 _ACEOF
19885 rm -f conftest.$ac_objext
19886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19887   (eval $ac_compile) 2>conftest.er1
19888   ac_status=$?
19889   grep -v '^ *+' conftest.er1 >conftest.err
19890   rm -f conftest.er1
19891   cat conftest.err >&5
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); } &&
19894          { ac_try='test -z "$ac_c_werror_flag"
19895                          || test ! -s conftest.err'
19896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19897   (eval $ac_try) 2>&5
19898   ac_status=$?
19899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900   (exit $ac_status); }; } &&
19901          { ac_try='test -s conftest.$ac_objext'
19902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19903   (eval $ac_try) 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907
19908         cat >conftest.$ac_ext <<_ACEOF
19909 /* confdefs.h.  */
19910 _ACEOF
19911 cat confdefs.h >>conftest.$ac_ext
19912 cat >>conftest.$ac_ext <<_ACEOF
19913 /* end confdefs.h.  */
19914 #include <pthread.h>
19915
19916 _ACEOF
19917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19918   $EGREP "pthread_detach" >/dev/null 2>&1; then
19919   ol_cv_pthread_version=10
19920 else
19921   ol_cv_pthread_version=8
19922 fi
19923 rm -f conftest*
19924
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929
19930         cat >conftest.$ac_ext <<_ACEOF
19931 /* confdefs.h.  */
19932 _ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h.  */
19936
19937 #               include <pthread.h>
19938 #               ifdef PTHREAD_CREATE_UNDETACHED
19939                 draft7
19940 #               endif
19941
19942 _ACEOF
19943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19944   $EGREP "draft7" >/dev/null 2>&1; then
19945   ol_cv_pthread_version=7
19946 else
19947
19948         cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <pthread.h>
19955
19956 _ACEOF
19957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19958   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
19959   ol_cv_pthread_version=6
19960 else
19961
19962         cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968
19969 #               include <pthread.h>
19970 #ifdef          PTHREAD_MUTEX_INITIALIZER
19971                 draft5
19972 #endif
19973
19974 _ACEOF
19975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19976   $EGREP "draft5" >/dev/null 2>&1; then
19977   ol_cv_pthread_version=5
19978 else
19979   ol_cv_pthread_version=4
19980 fi
19981 rm -f conftest*
19982
19983 fi
19984 rm -f conftest*
19985
19986 fi
19987 rm -f conftest*
19988
19989 fi
19990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19991
19992 fi
19993 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
19994 echo "${ECHO_T}$ol_cv_pthread_version" >&6
19995
19996
19997                 if test $ol_cv_pthread_version != 0 ; then
19998
19999 cat >>confdefs.h <<_ACEOF
20000 #define HAVE_PTHREADS $ol_cv_pthread_version
20001 _ACEOF
20002
20003                 else
20004                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20005 echo "$as_me: error: unknown pthread version" >&2;}
20006    { (exit 1); exit 1; }; }
20007                 fi
20008
20009                 # consider threads found
20010                 ol_with_threads=found
20011
20012
20013         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20014 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20015 if test "${ol_cv_header_linux_threads+set}" = set; then
20016   echo $ECHO_N "(cached) $ECHO_C" >&6
20017 else
20018   cat >conftest.$ac_ext <<_ACEOF
20019 /* confdefs.h.  */
20020 _ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h.  */
20024 #include <pthread.h>
20025 _ACEOF
20026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20027   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20028   ol_cv_header_linux_threads=yes
20029 else
20030   ol_cv_header_linux_threads=no
20031 fi
20032 rm -f conftest*
20033
20034
20035 fi
20036 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20037 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20038         if test $ol_cv_header_linux_threads = yes; then
20039
20040 cat >>confdefs.h <<\_ACEOF
20041 #define HAVE_LINUX_THREADS 1
20042 _ACEOF
20043
20044         fi
20045
20046
20047         echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20048 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20049 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 #include <pthread.h>
20059 #ifdef _POSIX_THREAD_IS_GNU_PTH
20060         __gnu_pth__;
20061 #endif
20062
20063 _ACEOF
20064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20065   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20066   ol_cv_header_gnu_pth_pthread_h=yes
20067 else
20068   ol_cv_header_gnu_pth_pthread_h=no
20069 fi
20070 rm -f conftest*
20071
20072
20073 fi
20074 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20075 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20076
20077
20078                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20079
20080 for ac_header in sched.h
20081 do
20082 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20084   echo "$as_me:$LINENO: checking for $ac_header" >&5
20085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20087   echo $ECHO_N "(cached) $ECHO_C" >&6
20088 fi
20089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20091 else
20092   # Is the header compilable?
20093 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20095 cat >conftest.$ac_ext <<_ACEOF
20096 /* confdefs.h.  */
20097 _ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h.  */
20101 $ac_includes_default
20102 #include <$ac_header>
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20106   (eval $ac_compile) 2>conftest.er1
20107   ac_status=$?
20108   grep -v '^ *+' conftest.er1 >conftest.err
20109   rm -f conftest.er1
20110   cat conftest.err >&5
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } &&
20113          { ac_try='test -z "$ac_c_werror_flag"
20114                          || test ! -s conftest.err'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; } &&
20120          { ac_try='test -s conftest.$ac_objext'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126   ac_header_compiler=yes
20127 else
20128   echo "$as_me: failed program was:" >&5
20129 sed 's/^/| /' conftest.$ac_ext >&5
20130
20131 ac_header_compiler=no
20132 fi
20133 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20135 echo "${ECHO_T}$ac_header_compiler" >&6
20136
20137 # Is the header present?
20138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146 #include <$ac_header>
20147 _ACEOF
20148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20149   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20150   ac_status=$?
20151   grep -v '^ *+' conftest.er1 >conftest.err
20152   rm -f conftest.er1
20153   cat conftest.err >&5
20154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155   (exit $ac_status); } >/dev/null; then
20156   if test -s conftest.err; then
20157     ac_cpp_err=$ac_c_preproc_warn_flag
20158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20159   else
20160     ac_cpp_err=
20161   fi
20162 else
20163   ac_cpp_err=yes
20164 fi
20165 if test -z "$ac_cpp_err"; then
20166   ac_header_preproc=yes
20167 else
20168   echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171   ac_header_preproc=no
20172 fi
20173 rm -f conftest.err conftest.$ac_ext
20174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20175 echo "${ECHO_T}$ac_header_preproc" >&6
20176
20177 # So?  What about this header?
20178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20179   yes:no: )
20180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20184     ac_header_preproc=yes
20185     ;;
20186   no:yes:* )
20187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20199     (
20200       cat <<\_ASBOX
20201 ## ------------------------------------------ ##
20202 ## Report this to the AC_PACKAGE_NAME lists.  ##
20203 ## ------------------------------------------ ##
20204 _ASBOX
20205     ) |
20206       sed "s/^/$as_me: WARNING:     /" >&2
20207     ;;
20208 esac
20209 echo "$as_me:$LINENO: checking for $ac_header" >&5
20210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20212   echo $ECHO_N "(cached) $ECHO_C" >&6
20213 else
20214   eval "$as_ac_Header=\$ac_header_preproc"
20215 fi
20216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20218
20219 fi
20220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20221   cat >>confdefs.h <<_ACEOF
20222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20223 _ACEOF
20224
20225 fi
20226
20227 done
20228
20229                 fi
20230
20231
20232                                 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20233 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20234 if test "${ol_cv_pthread_create+set}" = set; then
20235   echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237
20238                         if test "$cross_compiling" = yes; then
20239   cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h.  */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h.  */
20245
20246 /* pthread test headers */
20247 #include <pthread.h>
20248 #if HAVE_PTHREADS < 7
20249 #include <errno.h>
20250 #endif
20251 #ifndef NULL
20252 #define NULL (void*)0
20253 #endif
20254
20255 static void *task(p)
20256         void *p;
20257 {
20258         return (void *) (p == NULL);
20259 }
20260
20261 int
20262 main ()
20263 {
20264
20265         /* pthread test function */
20266 #ifndef PTHREAD_CREATE_DETACHED
20267 #define PTHREAD_CREATE_DETACHED 1
20268 #endif
20269         pthread_t t;
20270         int status;
20271         int detach = PTHREAD_CREATE_DETACHED;
20272
20273 #if HAVE_PTHREADS > 4
20274         /* Final pthreads */
20275         pthread_attr_t attr;
20276
20277         status = pthread_attr_init(&attr);
20278         if( status ) return status;
20279
20280 #if HAVE_PTHREADS < 7
20281         status = pthread_attr_setdetachstate(&attr, &detach);
20282         if( status < 0 ) status = errno;
20283 #else
20284         status = pthread_attr_setdetachstate(&attr, detach);
20285 #endif
20286         if( status ) return status;
20287         status = pthread_create( &t, &attr, task, NULL );
20288 #if HAVE_PTHREADS < 7
20289         if( status < 0 ) status = errno;
20290 #endif
20291         if( status ) return status;
20292 #else
20293         /* Draft 4 pthreads */
20294         status = pthread_create( &t, pthread_attr_default, task, NULL );
20295         if( status ) return errno;
20296
20297         /* give thread a chance to complete */
20298         /* it should remain joinable and hence detachable */
20299         sleep( 1 );
20300
20301         status = pthread_detach( &t );
20302         if( status ) return errno;
20303 #endif
20304
20305 #ifdef HAVE_LINUX_THREADS
20306         pthread_kill_other_threads_np();
20307 #endif
20308
20309         return 0;
20310
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 rm -f conftest.$ac_objext conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317   (eval $ac_link) 2>conftest.er1
20318   ac_status=$?
20319   grep -v '^ *+' conftest.er1 >conftest.err
20320   rm -f conftest.er1
20321   cat conftest.err >&5
20322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323   (exit $ac_status); } &&
20324          { ac_try='test -z "$ac_c_werror_flag"
20325                          || test ! -s conftest.err'
20326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327   (eval $ac_try) 2>&5
20328   ac_status=$?
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); }; } &&
20331          { ac_try='test -s conftest$ac_exeext'
20332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20333   (eval $ac_try) 2>&5
20334   ac_status=$?
20335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336   (exit $ac_status); }; }; then
20337   ol_cv_pthread_create=yes
20338 else
20339   echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342 ol_cv_pthread_create=no
20343 fi
20344 rm -f conftest.err conftest.$ac_objext \
20345       conftest$ac_exeext conftest.$ac_ext
20346 else
20347   cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 /* pthread test headers */
20355 #include <pthread.h>
20356 #if HAVE_PTHREADS < 7
20357 #include <errno.h>
20358 #endif
20359 #ifndef NULL
20360 #define NULL (void*)0
20361 #endif
20362
20363 static void *task(p)
20364         void *p;
20365 {
20366         return (void *) (p == NULL);
20367 }
20368
20369
20370 int main(argc, argv)
20371         int argc;
20372         char **argv;
20373 {
20374
20375         /* pthread test function */
20376 #ifndef PTHREAD_CREATE_DETACHED
20377 #define PTHREAD_CREATE_DETACHED 1
20378 #endif
20379         pthread_t t;
20380         int status;
20381         int detach = PTHREAD_CREATE_DETACHED;
20382
20383 #if HAVE_PTHREADS > 4
20384         /* Final pthreads */
20385         pthread_attr_t attr;
20386
20387         status = pthread_attr_init(&attr);
20388         if( status ) return status;
20389
20390 #if HAVE_PTHREADS < 7
20391         status = pthread_attr_setdetachstate(&attr, &detach);
20392         if( status < 0 ) status = errno;
20393 #else
20394         status = pthread_attr_setdetachstate(&attr, detach);
20395 #endif
20396         if( status ) return status;
20397         status = pthread_create( &t, &attr, task, NULL );
20398 #if HAVE_PTHREADS < 7
20399         if( status < 0 ) status = errno;
20400 #endif
20401         if( status ) return status;
20402 #else
20403         /* Draft 4 pthreads */
20404         status = pthread_create( &t, pthread_attr_default, task, NULL );
20405         if( status ) return errno;
20406
20407         /* give thread a chance to complete */
20408         /* it should remain joinable and hence detachable */
20409         sleep( 1 );
20410
20411         status = pthread_detach( &t );
20412         if( status ) return errno;
20413 #endif
20414
20415 #ifdef HAVE_LINUX_THREADS
20416         pthread_kill_other_threads_np();
20417 #endif
20418
20419         return 0;
20420
20421 }
20422
20423 _ACEOF
20424 rm -f conftest$ac_exeext
20425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20426   (eval $ac_link) 2>&5
20427   ac_status=$?
20428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431   (eval $ac_try) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }; then
20435   ol_cv_pthread_create=yes
20436 else
20437   echo "$as_me: program exited with status $ac_status" >&5
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 ( exit $ac_status )
20442 ol_cv_pthread_create=no
20443 fi
20444 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20445 fi
20446 fi
20447 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20448 echo "${ECHO_T}$ol_cv_pthread_create" >&6
20449
20450                 if test $ol_cv_pthread_create != no ; then
20451                         ol_link_threads=posix
20452                         ol_link_pthreads=""
20453                 fi
20454
20455                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20456 if test "$ol_link_threads" = no ; then
20457         # try -kthread
20458         echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20459 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
20460 if test "${ol_cv_pthread_kthread+set}" = set; then
20461   echo $ECHO_N "(cached) $ECHO_C" >&6
20462 else
20463
20464                 # save the flags
20465                 ol_LIBS="$LIBS"
20466                 LIBS="-kthread $LIBS"
20467
20468                 if test "$cross_compiling" = yes; then
20469   cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h.  */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h.  */
20475
20476 /* pthread test headers */
20477 #include <pthread.h>
20478 #if HAVE_PTHREADS < 7
20479 #include <errno.h>
20480 #endif
20481 #ifndef NULL
20482 #define NULL (void*)0
20483 #endif
20484
20485 static void *task(p)
20486         void *p;
20487 {
20488         return (void *) (p == NULL);
20489 }
20490
20491 int
20492 main ()
20493 {
20494
20495         /* pthread test function */
20496 #ifndef PTHREAD_CREATE_DETACHED
20497 #define PTHREAD_CREATE_DETACHED 1
20498 #endif
20499         pthread_t t;
20500         int status;
20501         int detach = PTHREAD_CREATE_DETACHED;
20502
20503 #if HAVE_PTHREADS > 4
20504         /* Final pthreads */
20505         pthread_attr_t attr;
20506
20507         status = pthread_attr_init(&attr);
20508         if( status ) return status;
20509
20510 #if HAVE_PTHREADS < 7
20511         status = pthread_attr_setdetachstate(&attr, &detach);
20512         if( status < 0 ) status = errno;
20513 #else
20514         status = pthread_attr_setdetachstate(&attr, detach);
20515 #endif
20516         if( status ) return status;
20517         status = pthread_create( &t, &attr, task, NULL );
20518 #if HAVE_PTHREADS < 7
20519         if( status < 0 ) status = errno;
20520 #endif
20521         if( status ) return status;
20522 #else
20523         /* Draft 4 pthreads */
20524         status = pthread_create( &t, pthread_attr_default, task, NULL );
20525         if( status ) return errno;
20526
20527         /* give thread a chance to complete */
20528         /* it should remain joinable and hence detachable */
20529         sleep( 1 );
20530
20531         status = pthread_detach( &t );
20532         if( status ) return errno;
20533 #endif
20534
20535 #ifdef HAVE_LINUX_THREADS
20536         pthread_kill_other_threads_np();
20537 #endif
20538
20539         return 0;
20540
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20547   (eval $ac_link) 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_c_werror_flag"
20555                          || test ! -s conftest.err'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; } &&
20561          { ac_try='test -s conftest$ac_exeext'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; }; then
20567   ol_cv_pthread_kthread=yes
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ol_cv_pthread_kthread=no
20573 fi
20574 rm -f conftest.err conftest.$ac_objext \
20575       conftest$ac_exeext conftest.$ac_ext
20576 else
20577   cat >conftest.$ac_ext <<_ACEOF
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583
20584 /* pthread test headers */
20585 #include <pthread.h>
20586 #if HAVE_PTHREADS < 7
20587 #include <errno.h>
20588 #endif
20589 #ifndef NULL
20590 #define NULL (void*)0
20591 #endif
20592
20593 static void *task(p)
20594         void *p;
20595 {
20596         return (void *) (p == NULL);
20597 }
20598
20599
20600 int main(argc, argv)
20601         int argc;
20602         char **argv;
20603 {
20604
20605         /* pthread test function */
20606 #ifndef PTHREAD_CREATE_DETACHED
20607 #define PTHREAD_CREATE_DETACHED 1
20608 #endif
20609         pthread_t t;
20610         int status;
20611         int detach = PTHREAD_CREATE_DETACHED;
20612
20613 #if HAVE_PTHREADS > 4
20614         /* Final pthreads */
20615         pthread_attr_t attr;
20616
20617         status = pthread_attr_init(&attr);
20618         if( status ) return status;
20619
20620 #if HAVE_PTHREADS < 7
20621         status = pthread_attr_setdetachstate(&attr, &detach);
20622         if( status < 0 ) status = errno;
20623 #else
20624         status = pthread_attr_setdetachstate(&attr, detach);
20625 #endif
20626         if( status ) return status;
20627         status = pthread_create( &t, &attr, task, NULL );
20628 #if HAVE_PTHREADS < 7
20629         if( status < 0 ) status = errno;
20630 #endif
20631         if( status ) return status;
20632 #else
20633         /* Draft 4 pthreads */
20634         status = pthread_create( &t, pthread_attr_default, task, NULL );
20635         if( status ) return errno;
20636
20637         /* give thread a chance to complete */
20638         /* it should remain joinable and hence detachable */
20639         sleep( 1 );
20640
20641         status = pthread_detach( &t );
20642         if( status ) return errno;
20643 #endif
20644
20645 #ifdef HAVE_LINUX_THREADS
20646         pthread_kill_other_threads_np();
20647 #endif
20648
20649         return 0;
20650
20651 }
20652
20653 _ACEOF
20654 rm -f conftest$ac_exeext
20655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20656   (eval $ac_link) 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20661   (eval $ac_try) 2>&5
20662   ac_status=$?
20663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664   (exit $ac_status); }; }; then
20665   ol_cv_pthread_kthread=yes
20666 else
20667   echo "$as_me: program exited with status $ac_status" >&5
20668 echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20670
20671 ( exit $ac_status )
20672 ol_cv_pthread_kthread=no
20673 fi
20674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20675 fi
20676
20677                 # restore the LIBS
20678                 LIBS="$ol_LIBS"
20679
20680 fi
20681 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20682 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
20683
20684         if test $ol_cv_pthread_kthread = yes ; then
20685                 ol_link_pthreads="-kthread"
20686                 ol_link_threads=posix
20687         fi
20688 fi
20689
20690                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20691 if test "$ol_link_threads" = no ; then
20692         # try -pthread
20693         echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20694 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
20695 if test "${ol_cv_pthread_pthread+set}" = set; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698
20699                 # save the flags
20700                 ol_LIBS="$LIBS"
20701                 LIBS="-pthread $LIBS"
20702
20703                 if test "$cross_compiling" = yes; then
20704   cat >conftest.$ac_ext <<_ACEOF
20705 /* confdefs.h.  */
20706 _ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h.  */
20710
20711 /* pthread test headers */
20712 #include <pthread.h>
20713 #if HAVE_PTHREADS < 7
20714 #include <errno.h>
20715 #endif
20716 #ifndef NULL
20717 #define NULL (void*)0
20718 #endif
20719
20720 static void *task(p)
20721         void *p;
20722 {
20723         return (void *) (p == NULL);
20724 }
20725
20726 int
20727 main ()
20728 {
20729
20730         /* pthread test function */
20731 #ifndef PTHREAD_CREATE_DETACHED
20732 #define PTHREAD_CREATE_DETACHED 1
20733 #endif
20734         pthread_t t;
20735         int status;
20736         int detach = PTHREAD_CREATE_DETACHED;
20737
20738 #if HAVE_PTHREADS > 4
20739         /* Final pthreads */
20740         pthread_attr_t attr;
20741
20742         status = pthread_attr_init(&attr);
20743         if( status ) return status;
20744
20745 #if HAVE_PTHREADS < 7
20746         status = pthread_attr_setdetachstate(&attr, &detach);
20747         if( status < 0 ) status = errno;
20748 #else
20749         status = pthread_attr_setdetachstate(&attr, detach);
20750 #endif
20751         if( status ) return status;
20752         status = pthread_create( &t, &attr, task, NULL );
20753 #if HAVE_PTHREADS < 7
20754         if( status < 0 ) status = errno;
20755 #endif
20756         if( status ) return status;
20757 #else
20758         /* Draft 4 pthreads */
20759         status = pthread_create( &t, pthread_attr_default, task, NULL );
20760         if( status ) return errno;
20761
20762         /* give thread a chance to complete */
20763         /* it should remain joinable and hence detachable */
20764         sleep( 1 );
20765
20766         status = pthread_detach( &t );
20767         if( status ) return errno;
20768 #endif
20769
20770 #ifdef HAVE_LINUX_THREADS
20771         pthread_kill_other_threads_np();
20772 #endif
20773
20774         return 0;
20775
20776   ;
20777   return 0;
20778 }
20779 _ACEOF
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20782   (eval $ac_link) 2>conftest.er1
20783   ac_status=$?
20784   grep -v '^ *+' conftest.er1 >conftest.err
20785   rm -f conftest.er1
20786   cat conftest.err >&5
20787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788   (exit $ac_status); } &&
20789          { ac_try='test -z "$ac_c_werror_flag"
20790                          || test ! -s conftest.err'
20791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20792   (eval $ac_try) 2>&5
20793   ac_status=$?
20794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795   (exit $ac_status); }; } &&
20796          { ac_try='test -s conftest$ac_exeext'
20797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20798   (eval $ac_try) 2>&5
20799   ac_status=$?
20800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801   (exit $ac_status); }; }; then
20802   ol_cv_pthread_pthread=yes
20803 else
20804   echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20806
20807 ol_cv_pthread_pthread=no
20808 fi
20809 rm -f conftest.err conftest.$ac_objext \
20810       conftest$ac_exeext conftest.$ac_ext
20811 else
20812   cat >conftest.$ac_ext <<_ACEOF
20813 /* confdefs.h.  */
20814 _ACEOF
20815 cat confdefs.h >>conftest.$ac_ext
20816 cat >>conftest.$ac_ext <<_ACEOF
20817 /* end confdefs.h.  */
20818
20819 /* pthread test headers */
20820 #include <pthread.h>
20821 #if HAVE_PTHREADS < 7
20822 #include <errno.h>
20823 #endif
20824 #ifndef NULL
20825 #define NULL (void*)0
20826 #endif
20827
20828 static void *task(p)
20829         void *p;
20830 {
20831         return (void *) (p == NULL);
20832 }
20833
20834
20835 int main(argc, argv)
20836         int argc;
20837         char **argv;
20838 {
20839
20840         /* pthread test function */
20841 #ifndef PTHREAD_CREATE_DETACHED
20842 #define PTHREAD_CREATE_DETACHED 1
20843 #endif
20844         pthread_t t;
20845         int status;
20846         int detach = PTHREAD_CREATE_DETACHED;
20847
20848 #if HAVE_PTHREADS > 4
20849         /* Final pthreads */
20850         pthread_attr_t attr;
20851
20852         status = pthread_attr_init(&attr);
20853         if( status ) return status;
20854
20855 #if HAVE_PTHREADS < 7
20856         status = pthread_attr_setdetachstate(&attr, &detach);
20857         if( status < 0 ) status = errno;
20858 #else
20859         status = pthread_attr_setdetachstate(&attr, detach);
20860 #endif
20861         if( status ) return status;
20862         status = pthread_create( &t, &attr, task, NULL );
20863 #if HAVE_PTHREADS < 7
20864         if( status < 0 ) status = errno;
20865 #endif
20866         if( status ) return status;
20867 #else
20868         /* Draft 4 pthreads */
20869         status = pthread_create( &t, pthread_attr_default, task, NULL );
20870         if( status ) return errno;
20871
20872         /* give thread a chance to complete */
20873         /* it should remain joinable and hence detachable */
20874         sleep( 1 );
20875
20876         status = pthread_detach( &t );
20877         if( status ) return errno;
20878 #endif
20879
20880 #ifdef HAVE_LINUX_THREADS
20881         pthread_kill_other_threads_np();
20882 #endif
20883
20884         return 0;
20885
20886 }
20887
20888 _ACEOF
20889 rm -f conftest$ac_exeext
20890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20891   (eval $ac_link) 2>&5
20892   ac_status=$?
20893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896   (eval $ac_try) 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   ol_cv_pthread_pthread=yes
20901 else
20902   echo "$as_me: program exited with status $ac_status" >&5
20903 echo "$as_me: failed program was:" >&5
20904 sed 's/^/| /' conftest.$ac_ext >&5
20905
20906 ( exit $ac_status )
20907 ol_cv_pthread_pthread=no
20908 fi
20909 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20910 fi
20911
20912                 # restore the LIBS
20913                 LIBS="$ol_LIBS"
20914
20915 fi
20916 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
20917 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
20918
20919         if test $ol_cv_pthread_pthread = yes ; then
20920                 ol_link_pthreads="-pthread"
20921                 ol_link_threads=posix
20922         fi
20923 fi
20924
20925                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
20926 if test "$ol_link_threads" = no ; then
20927         # try -pthreads
20928         echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
20929 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
20930 if test "${ol_cv_pthread_pthreads+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933
20934                 # save the flags
20935                 ol_LIBS="$LIBS"
20936                 LIBS="-pthreads $LIBS"
20937
20938                 if test "$cross_compiling" = yes; then
20939   cat >conftest.$ac_ext <<_ACEOF
20940 /* confdefs.h.  */
20941 _ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h.  */
20945
20946 /* pthread test headers */
20947 #include <pthread.h>
20948 #if HAVE_PTHREADS < 7
20949 #include <errno.h>
20950 #endif
20951 #ifndef NULL
20952 #define NULL (void*)0
20953 #endif
20954
20955 static void *task(p)
20956         void *p;
20957 {
20958         return (void *) (p == NULL);
20959 }
20960
20961 int
20962 main ()
20963 {
20964
20965         /* pthread test function */
20966 #ifndef PTHREAD_CREATE_DETACHED
20967 #define PTHREAD_CREATE_DETACHED 1
20968 #endif
20969         pthread_t t;
20970         int status;
20971         int detach = PTHREAD_CREATE_DETACHED;
20972
20973 #if HAVE_PTHREADS > 4
20974         /* Final pthreads */
20975         pthread_attr_t attr;
20976
20977         status = pthread_attr_init(&attr);
20978         if( status ) return status;
20979
20980 #if HAVE_PTHREADS < 7
20981         status = pthread_attr_setdetachstate(&attr, &detach);
20982         if( status < 0 ) status = errno;
20983 #else
20984         status = pthread_attr_setdetachstate(&attr, detach);
20985 #endif
20986         if( status ) return status;
20987         status = pthread_create( &t, &attr, task, NULL );
20988 #if HAVE_PTHREADS < 7
20989         if( status < 0 ) status = errno;
20990 #endif
20991         if( status ) return status;
20992 #else
20993         /* Draft 4 pthreads */
20994         status = pthread_create( &t, pthread_attr_default, task, NULL );
20995         if( status ) return errno;
20996
20997         /* give thread a chance to complete */
20998         /* it should remain joinable and hence detachable */
20999         sleep( 1 );
21000
21001         status = pthread_detach( &t );
21002         if( status ) return errno;
21003 #endif
21004
21005 #ifdef HAVE_LINUX_THREADS
21006         pthread_kill_other_threads_np();
21007 #endif
21008
21009         return 0;
21010
21011   ;
21012   return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21017   (eval $ac_link) 2>conftest.er1
21018   ac_status=$?
21019   grep -v '^ *+' conftest.er1 >conftest.err
21020   rm -f conftest.er1
21021   cat conftest.err >&5
21022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023   (exit $ac_status); } &&
21024          { ac_try='test -z "$ac_c_werror_flag"
21025                          || test ! -s conftest.err'
21026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21027   (eval $ac_try) 2>&5
21028   ac_status=$?
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); }; } &&
21031          { ac_try='test -s conftest$ac_exeext'
21032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033   (eval $ac_try) 2>&5
21034   ac_status=$?
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); }; }; then
21037   ol_cv_pthread_pthreads=yes
21038 else
21039   echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21041
21042 ol_cv_pthread_pthreads=no
21043 fi
21044 rm -f conftest.err conftest.$ac_objext \
21045       conftest$ac_exeext conftest.$ac_ext
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053
21054 /* pthread test headers */
21055 #include <pthread.h>
21056 #if HAVE_PTHREADS < 7
21057 #include <errno.h>
21058 #endif
21059 #ifndef NULL
21060 #define NULL (void*)0
21061 #endif
21062
21063 static void *task(p)
21064         void *p;
21065 {
21066         return (void *) (p == NULL);
21067 }
21068
21069
21070 int main(argc, argv)
21071         int argc;
21072         char **argv;
21073 {
21074
21075         /* pthread test function */
21076 #ifndef PTHREAD_CREATE_DETACHED
21077 #define PTHREAD_CREATE_DETACHED 1
21078 #endif
21079         pthread_t t;
21080         int status;
21081         int detach = PTHREAD_CREATE_DETACHED;
21082
21083 #if HAVE_PTHREADS > 4
21084         /* Final pthreads */
21085         pthread_attr_t attr;
21086
21087         status = pthread_attr_init(&attr);
21088         if( status ) return status;
21089
21090 #if HAVE_PTHREADS < 7
21091         status = pthread_attr_setdetachstate(&attr, &detach);
21092         if( status < 0 ) status = errno;
21093 #else
21094         status = pthread_attr_setdetachstate(&attr, detach);
21095 #endif
21096         if( status ) return status;
21097         status = pthread_create( &t, &attr, task, NULL );
21098 #if HAVE_PTHREADS < 7
21099         if( status < 0 ) status = errno;
21100 #endif
21101         if( status ) return status;
21102 #else
21103         /* Draft 4 pthreads */
21104         status = pthread_create( &t, pthread_attr_default, task, NULL );
21105         if( status ) return errno;
21106
21107         /* give thread a chance to complete */
21108         /* it should remain joinable and hence detachable */
21109         sleep( 1 );
21110
21111         status = pthread_detach( &t );
21112         if( status ) return errno;
21113 #endif
21114
21115 #ifdef HAVE_LINUX_THREADS
21116         pthread_kill_other_threads_np();
21117 #endif
21118
21119         return 0;
21120
21121 }
21122
21123 _ACEOF
21124 rm -f conftest$ac_exeext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21126   (eval $ac_link) 2>&5
21127   ac_status=$?
21128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131   (eval $ac_try) 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ol_cv_pthread_pthreads=yes
21136 else
21137   echo "$as_me: program exited with status $ac_status" >&5
21138 echo "$as_me: failed program was:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21140
21141 ( exit $ac_status )
21142 ol_cv_pthread_pthreads=no
21143 fi
21144 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21145 fi
21146
21147                 # restore the LIBS
21148                 LIBS="$ol_LIBS"
21149
21150 fi
21151 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21152 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21153
21154         if test $ol_cv_pthread_pthreads = yes ; then
21155                 ol_link_pthreads="-pthreads"
21156                 ol_link_threads=posix
21157         fi
21158 fi
21159
21160                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21161 if test "$ol_link_threads" = no ; then
21162         # try -mthreads
21163         echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21164 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21165 if test "${ol_cv_pthread_mthreads+set}" = set; then
21166   echo $ECHO_N "(cached) $ECHO_C" >&6
21167 else
21168
21169                 # save the flags
21170                 ol_LIBS="$LIBS"
21171                 LIBS="-mthreads $LIBS"
21172
21173                 if test "$cross_compiling" = yes; then
21174   cat >conftest.$ac_ext <<_ACEOF
21175 /* confdefs.h.  */
21176 _ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h.  */
21180
21181 /* pthread test headers */
21182 #include <pthread.h>
21183 #if HAVE_PTHREADS < 7
21184 #include <errno.h>
21185 #endif
21186 #ifndef NULL
21187 #define NULL (void*)0
21188 #endif
21189
21190 static void *task(p)
21191         void *p;
21192 {
21193         return (void *) (p == NULL);
21194 }
21195
21196 int
21197 main ()
21198 {
21199
21200         /* pthread test function */
21201 #ifndef PTHREAD_CREATE_DETACHED
21202 #define PTHREAD_CREATE_DETACHED 1
21203 #endif
21204         pthread_t t;
21205         int status;
21206         int detach = PTHREAD_CREATE_DETACHED;
21207
21208 #if HAVE_PTHREADS > 4
21209         /* Final pthreads */
21210         pthread_attr_t attr;
21211
21212         status = pthread_attr_init(&attr);
21213         if( status ) return status;
21214
21215 #if HAVE_PTHREADS < 7
21216         status = pthread_attr_setdetachstate(&attr, &detach);
21217         if( status < 0 ) status = errno;
21218 #else
21219         status = pthread_attr_setdetachstate(&attr, detach);
21220 #endif
21221         if( status ) return status;
21222         status = pthread_create( &t, &attr, task, NULL );
21223 #if HAVE_PTHREADS < 7
21224         if( status < 0 ) status = errno;
21225 #endif
21226         if( status ) return status;
21227 #else
21228         /* Draft 4 pthreads */
21229         status = pthread_create( &t, pthread_attr_default, task, NULL );
21230         if( status ) return errno;
21231
21232         /* give thread a chance to complete */
21233         /* it should remain joinable and hence detachable */
21234         sleep( 1 );
21235
21236         status = pthread_detach( &t );
21237         if( status ) return errno;
21238 #endif
21239
21240 #ifdef HAVE_LINUX_THREADS
21241         pthread_kill_other_threads_np();
21242 #endif
21243
21244         return 0;
21245
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext conftest$ac_exeext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21252   (eval $ac_link) 2>conftest.er1
21253   ac_status=$?
21254   grep -v '^ *+' conftest.er1 >conftest.err
21255   rm -f conftest.er1
21256   cat conftest.err >&5
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); } &&
21259          { ac_try='test -z "$ac_c_werror_flag"
21260                          || test ! -s conftest.err'
21261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262   (eval $ac_try) 2>&5
21263   ac_status=$?
21264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265   (exit $ac_status); }; } &&
21266          { ac_try='test -s conftest$ac_exeext'
21267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21268   (eval $ac_try) 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; }; then
21272   ol_cv_pthread_mthreads=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277 ol_cv_pthread_mthreads=no
21278 fi
21279 rm -f conftest.err conftest.$ac_objext \
21280       conftest$ac_exeext conftest.$ac_ext
21281 else
21282   cat >conftest.$ac_ext <<_ACEOF
21283 /* confdefs.h.  */
21284 _ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h.  */
21288
21289 /* pthread test headers */
21290 #include <pthread.h>
21291 #if HAVE_PTHREADS < 7
21292 #include <errno.h>
21293 #endif
21294 #ifndef NULL
21295 #define NULL (void*)0
21296 #endif
21297
21298 static void *task(p)
21299         void *p;
21300 {
21301         return (void *) (p == NULL);
21302 }
21303
21304
21305 int main(argc, argv)
21306         int argc;
21307         char **argv;
21308 {
21309
21310         /* pthread test function */
21311 #ifndef PTHREAD_CREATE_DETACHED
21312 #define PTHREAD_CREATE_DETACHED 1
21313 #endif
21314         pthread_t t;
21315         int status;
21316         int detach = PTHREAD_CREATE_DETACHED;
21317
21318 #if HAVE_PTHREADS > 4
21319         /* Final pthreads */
21320         pthread_attr_t attr;
21321
21322         status = pthread_attr_init(&attr);
21323         if( status ) return status;
21324
21325 #if HAVE_PTHREADS < 7
21326         status = pthread_attr_setdetachstate(&attr, &detach);
21327         if( status < 0 ) status = errno;
21328 #else
21329         status = pthread_attr_setdetachstate(&attr, detach);
21330 #endif
21331         if( status ) return status;
21332         status = pthread_create( &t, &attr, task, NULL );
21333 #if HAVE_PTHREADS < 7
21334         if( status < 0 ) status = errno;
21335 #endif
21336         if( status ) return status;
21337 #else
21338         /* Draft 4 pthreads */
21339         status = pthread_create( &t, pthread_attr_default, task, NULL );
21340         if( status ) return errno;
21341
21342         /* give thread a chance to complete */
21343         /* it should remain joinable and hence detachable */
21344         sleep( 1 );
21345
21346         status = pthread_detach( &t );
21347         if( status ) return errno;
21348 #endif
21349
21350 #ifdef HAVE_LINUX_THREADS
21351         pthread_kill_other_threads_np();
21352 #endif
21353
21354         return 0;
21355
21356 }
21357
21358 _ACEOF
21359 rm -f conftest$ac_exeext
21360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21361   (eval $ac_link) 2>&5
21362   ac_status=$?
21363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366   (eval $ac_try) 2>&5
21367   ac_status=$?
21368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369   (exit $ac_status); }; }; then
21370   ol_cv_pthread_mthreads=yes
21371 else
21372   echo "$as_me: program exited with status $ac_status" >&5
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376 ( exit $ac_status )
21377 ol_cv_pthread_mthreads=no
21378 fi
21379 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21380 fi
21381
21382                 # restore the LIBS
21383                 LIBS="$ol_LIBS"
21384
21385 fi
21386 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21387 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
21388
21389         if test $ol_cv_pthread_mthreads = yes ; then
21390                 ol_link_pthreads="-mthreads"
21391                 ol_link_threads=posix
21392         fi
21393 fi
21394
21395                 # Pthread try link: -thread (ol_cv_pthread_thread)
21396 if test "$ol_link_threads" = no ; then
21397         # try -thread
21398         echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21399 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
21400 if test "${ol_cv_pthread_thread+set}" = set; then
21401   echo $ECHO_N "(cached) $ECHO_C" >&6
21402 else
21403
21404                 # save the flags
21405                 ol_LIBS="$LIBS"
21406                 LIBS="-thread $LIBS"
21407
21408                 if test "$cross_compiling" = yes; then
21409   cat >conftest.$ac_ext <<_ACEOF
21410 /* confdefs.h.  */
21411 _ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h.  */
21415
21416 /* pthread test headers */
21417 #include <pthread.h>
21418 #if HAVE_PTHREADS < 7
21419 #include <errno.h>
21420 #endif
21421 #ifndef NULL
21422 #define NULL (void*)0
21423 #endif
21424
21425 static void *task(p)
21426         void *p;
21427 {
21428         return (void *) (p == NULL);
21429 }
21430
21431 int
21432 main ()
21433 {
21434
21435         /* pthread test function */
21436 #ifndef PTHREAD_CREATE_DETACHED
21437 #define PTHREAD_CREATE_DETACHED 1
21438 #endif
21439         pthread_t t;
21440         int status;
21441         int detach = PTHREAD_CREATE_DETACHED;
21442
21443 #if HAVE_PTHREADS > 4
21444         /* Final pthreads */
21445         pthread_attr_t attr;
21446
21447         status = pthread_attr_init(&attr);
21448         if( status ) return status;
21449
21450 #if HAVE_PTHREADS < 7
21451         status = pthread_attr_setdetachstate(&attr, &detach);
21452         if( status < 0 ) status = errno;
21453 #else
21454         status = pthread_attr_setdetachstate(&attr, detach);
21455 #endif
21456         if( status ) return status;
21457         status = pthread_create( &t, &attr, task, NULL );
21458 #if HAVE_PTHREADS < 7
21459         if( status < 0 ) status = errno;
21460 #endif
21461         if( status ) return status;
21462 #else
21463         /* Draft 4 pthreads */
21464         status = pthread_create( &t, pthread_attr_default, task, NULL );
21465         if( status ) return errno;
21466
21467         /* give thread a chance to complete */
21468         /* it should remain joinable and hence detachable */
21469         sleep( 1 );
21470
21471         status = pthread_detach( &t );
21472         if( status ) return errno;
21473 #endif
21474
21475 #ifdef HAVE_LINUX_THREADS
21476         pthread_kill_other_threads_np();
21477 #endif
21478
21479         return 0;
21480
21481   ;
21482   return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21487   (eval $ac_link) 2>conftest.er1
21488   ac_status=$?
21489   grep -v '^ *+' conftest.er1 >conftest.err
21490   rm -f conftest.er1
21491   cat conftest.err >&5
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); } &&
21494          { ac_try='test -z "$ac_c_werror_flag"
21495                          || test ! -s conftest.err'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; } &&
21501          { ac_try='test -s conftest$ac_exeext'
21502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503   (eval $ac_try) 2>&5
21504   ac_status=$?
21505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506   (exit $ac_status); }; }; then
21507   ol_cv_pthread_thread=yes
21508 else
21509   echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ol_cv_pthread_thread=no
21513 fi
21514 rm -f conftest.err conftest.$ac_objext \
21515       conftest$ac_exeext conftest.$ac_ext
21516 else
21517   cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523
21524 /* pthread test headers */
21525 #include <pthread.h>
21526 #if HAVE_PTHREADS < 7
21527 #include <errno.h>
21528 #endif
21529 #ifndef NULL
21530 #define NULL (void*)0
21531 #endif
21532
21533 static void *task(p)
21534         void *p;
21535 {
21536         return (void *) (p == NULL);
21537 }
21538
21539
21540 int main(argc, argv)
21541         int argc;
21542         char **argv;
21543 {
21544
21545         /* pthread test function */
21546 #ifndef PTHREAD_CREATE_DETACHED
21547 #define PTHREAD_CREATE_DETACHED 1
21548 #endif
21549         pthread_t t;
21550         int status;
21551         int detach = PTHREAD_CREATE_DETACHED;
21552
21553 #if HAVE_PTHREADS > 4
21554         /* Final pthreads */
21555         pthread_attr_t attr;
21556
21557         status = pthread_attr_init(&attr);
21558         if( status ) return status;
21559
21560 #if HAVE_PTHREADS < 7
21561         status = pthread_attr_setdetachstate(&attr, &detach);
21562         if( status < 0 ) status = errno;
21563 #else
21564         status = pthread_attr_setdetachstate(&attr, detach);
21565 #endif
21566         if( status ) return status;
21567         status = pthread_create( &t, &attr, task, NULL );
21568 #if HAVE_PTHREADS < 7
21569         if( status < 0 ) status = errno;
21570 #endif
21571         if( status ) return status;
21572 #else
21573         /* Draft 4 pthreads */
21574         status = pthread_create( &t, pthread_attr_default, task, NULL );
21575         if( status ) return errno;
21576
21577         /* give thread a chance to complete */
21578         /* it should remain joinable and hence detachable */
21579         sleep( 1 );
21580
21581         status = pthread_detach( &t );
21582         if( status ) return errno;
21583 #endif
21584
21585 #ifdef HAVE_LINUX_THREADS
21586         pthread_kill_other_threads_np();
21587 #endif
21588
21589         return 0;
21590
21591 }
21592
21593 _ACEOF
21594 rm -f conftest$ac_exeext
21595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21596   (eval $ac_link) 2>&5
21597   ac_status=$?
21598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601   (eval $ac_try) 2>&5
21602   ac_status=$?
21603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604   (exit $ac_status); }; }; then
21605   ol_cv_pthread_thread=yes
21606 else
21607   echo "$as_me: program exited with status $ac_status" >&5
21608 echo "$as_me: failed program was:" >&5
21609 sed 's/^/| /' conftest.$ac_ext >&5
21610
21611 ( exit $ac_status )
21612 ol_cv_pthread_thread=no
21613 fi
21614 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21615 fi
21616
21617                 # restore the LIBS
21618                 LIBS="$ol_LIBS"
21619
21620 fi
21621 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21622 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
21623
21624         if test $ol_cv_pthread_thread = yes ; then
21625                 ol_link_pthreads="-thread"
21626                 ol_link_threads=posix
21627         fi
21628 fi
21629
21630
21631                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21632 if test "$ol_link_threads" = no ; then
21633         # try -lpthread -lmach -lexc -lc_r
21634         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21635 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
21636 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21637   echo $ECHO_N "(cached) $ECHO_C" >&6
21638 else
21639
21640                 # save the flags
21641                 ol_LIBS="$LIBS"
21642                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21643
21644                 if test "$cross_compiling" = yes; then
21645   cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h.  */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h.  */
21651
21652 /* pthread test headers */
21653 #include <pthread.h>
21654 #if HAVE_PTHREADS < 7
21655 #include <errno.h>
21656 #endif
21657 #ifndef NULL
21658 #define NULL (void*)0
21659 #endif
21660
21661 static void *task(p)
21662         void *p;
21663 {
21664         return (void *) (p == NULL);
21665 }
21666
21667 int
21668 main ()
21669 {
21670
21671         /* pthread test function */
21672 #ifndef PTHREAD_CREATE_DETACHED
21673 #define PTHREAD_CREATE_DETACHED 1
21674 #endif
21675         pthread_t t;
21676         int status;
21677         int detach = PTHREAD_CREATE_DETACHED;
21678
21679 #if HAVE_PTHREADS > 4
21680         /* Final pthreads */
21681         pthread_attr_t attr;
21682
21683         status = pthread_attr_init(&attr);
21684         if( status ) return status;
21685
21686 #if HAVE_PTHREADS < 7
21687         status = pthread_attr_setdetachstate(&attr, &detach);
21688         if( status < 0 ) status = errno;
21689 #else
21690         status = pthread_attr_setdetachstate(&attr, detach);
21691 #endif
21692         if( status ) return status;
21693         status = pthread_create( &t, &attr, task, NULL );
21694 #if HAVE_PTHREADS < 7
21695         if( status < 0 ) status = errno;
21696 #endif
21697         if( status ) return status;
21698 #else
21699         /* Draft 4 pthreads */
21700         status = pthread_create( &t, pthread_attr_default, task, NULL );
21701         if( status ) return errno;
21702
21703         /* give thread a chance to complete */
21704         /* it should remain joinable and hence detachable */
21705         sleep( 1 );
21706
21707         status = pthread_detach( &t );
21708         if( status ) return errno;
21709 #endif
21710
21711 #ifdef HAVE_LINUX_THREADS
21712         pthread_kill_other_threads_np();
21713 #endif
21714
21715         return 0;
21716
21717   ;
21718   return 0;
21719 }
21720 _ACEOF
21721 rm -f conftest.$ac_objext conftest$ac_exeext
21722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21723   (eval $ac_link) 2>conftest.er1
21724   ac_status=$?
21725   grep -v '^ *+' conftest.er1 >conftest.err
21726   rm -f conftest.er1
21727   cat conftest.err >&5
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); } &&
21730          { ac_try='test -z "$ac_c_werror_flag"
21731                          || test ! -s conftest.err'
21732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21733   (eval $ac_try) 2>&5
21734   ac_status=$?
21735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736   (exit $ac_status); }; } &&
21737          { ac_try='test -s conftest$ac_exeext'
21738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739   (eval $ac_try) 2>&5
21740   ac_status=$?
21741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742   (exit $ac_status); }; }; then
21743   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21744 else
21745   echo "$as_me: failed program was:" >&5
21746 sed 's/^/| /' conftest.$ac_ext >&5
21747
21748 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21749 fi
21750 rm -f conftest.err conftest.$ac_objext \
21751       conftest$ac_exeext conftest.$ac_ext
21752 else
21753   cat >conftest.$ac_ext <<_ACEOF
21754 /* confdefs.h.  */
21755 _ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h.  */
21759
21760 /* pthread test headers */
21761 #include <pthread.h>
21762 #if HAVE_PTHREADS < 7
21763 #include <errno.h>
21764 #endif
21765 #ifndef NULL
21766 #define NULL (void*)0
21767 #endif
21768
21769 static void *task(p)
21770         void *p;
21771 {
21772         return (void *) (p == NULL);
21773 }
21774
21775
21776 int main(argc, argv)
21777         int argc;
21778         char **argv;
21779 {
21780
21781         /* pthread test function */
21782 #ifndef PTHREAD_CREATE_DETACHED
21783 #define PTHREAD_CREATE_DETACHED 1
21784 #endif
21785         pthread_t t;
21786         int status;
21787         int detach = PTHREAD_CREATE_DETACHED;
21788
21789 #if HAVE_PTHREADS > 4
21790         /* Final pthreads */
21791         pthread_attr_t attr;
21792
21793         status = pthread_attr_init(&attr);
21794         if( status ) return status;
21795
21796 #if HAVE_PTHREADS < 7
21797         status = pthread_attr_setdetachstate(&attr, &detach);
21798         if( status < 0 ) status = errno;
21799 #else
21800         status = pthread_attr_setdetachstate(&attr, detach);
21801 #endif
21802         if( status ) return status;
21803         status = pthread_create( &t, &attr, task, NULL );
21804 #if HAVE_PTHREADS < 7
21805         if( status < 0 ) status = errno;
21806 #endif
21807         if( status ) return status;
21808 #else
21809         /* Draft 4 pthreads */
21810         status = pthread_create( &t, pthread_attr_default, task, NULL );
21811         if( status ) return errno;
21812
21813         /* give thread a chance to complete */
21814         /* it should remain joinable and hence detachable */
21815         sleep( 1 );
21816
21817         status = pthread_detach( &t );
21818         if( status ) return errno;
21819 #endif
21820
21821 #ifdef HAVE_LINUX_THREADS
21822         pthread_kill_other_threads_np();
21823 #endif
21824
21825         return 0;
21826
21827 }
21828
21829 _ACEOF
21830 rm -f conftest$ac_exeext
21831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21832   (eval $ac_link) 2>&5
21833   ac_status=$?
21834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21837   (eval $ac_try) 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); }; }; then
21841   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21842 else
21843   echo "$as_me: program exited with status $ac_status" >&5
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ( exit $ac_status )
21848 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
21849 fi
21850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21851 fi
21852
21853                 # restore the LIBS
21854                 LIBS="$ol_LIBS"
21855
21856 fi
21857 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
21858 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
21859
21860         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
21861                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
21862                 ol_link_threads=posix
21863         fi
21864 fi
21865
21866                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
21867 if test "$ol_link_threads" = no ; then
21868         # try -lpthread -lmach -lexc
21869         echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
21870 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
21871 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
21872   echo $ECHO_N "(cached) $ECHO_C" >&6
21873 else
21874
21875                 # save the flags
21876                 ol_LIBS="$LIBS"
21877                 LIBS="-lpthread -lmach -lexc $LIBS"
21878
21879                 if test "$cross_compiling" = yes; then
21880   cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886
21887 /* pthread test headers */
21888 #include <pthread.h>
21889 #if HAVE_PTHREADS < 7
21890 #include <errno.h>
21891 #endif
21892 #ifndef NULL
21893 #define NULL (void*)0
21894 #endif
21895
21896 static void *task(p)
21897         void *p;
21898 {
21899         return (void *) (p == NULL);
21900 }
21901
21902 int
21903 main ()
21904 {
21905
21906         /* pthread test function */
21907 #ifndef PTHREAD_CREATE_DETACHED
21908 #define PTHREAD_CREATE_DETACHED 1
21909 #endif
21910         pthread_t t;
21911         int status;
21912         int detach = PTHREAD_CREATE_DETACHED;
21913
21914 #if HAVE_PTHREADS > 4
21915         /* Final pthreads */
21916         pthread_attr_t attr;
21917
21918         status = pthread_attr_init(&attr);
21919         if( status ) return status;
21920
21921 #if HAVE_PTHREADS < 7
21922         status = pthread_attr_setdetachstate(&attr, &detach);
21923         if( status < 0 ) status = errno;
21924 #else
21925         status = pthread_attr_setdetachstate(&attr, detach);
21926 #endif
21927         if( status ) return status;
21928         status = pthread_create( &t, &attr, task, NULL );
21929 #if HAVE_PTHREADS < 7
21930         if( status < 0 ) status = errno;
21931 #endif
21932         if( status ) return status;
21933 #else
21934         /* Draft 4 pthreads */
21935         status = pthread_create( &t, pthread_attr_default, task, NULL );
21936         if( status ) return errno;
21937
21938         /* give thread a chance to complete */
21939         /* it should remain joinable and hence detachable */
21940         sleep( 1 );
21941
21942         status = pthread_detach( &t );
21943         if( status ) return errno;
21944 #endif
21945
21946 #ifdef HAVE_LINUX_THREADS
21947         pthread_kill_other_threads_np();
21948 #endif
21949
21950         return 0;
21951
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext conftest$ac_exeext
21957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21958   (eval $ac_link) 2>conftest.er1
21959   ac_status=$?
21960   grep -v '^ *+' conftest.er1 >conftest.err
21961   rm -f conftest.er1
21962   cat conftest.err >&5
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); } &&
21965          { ac_try='test -z "$ac_c_werror_flag"
21966                          || test ! -s conftest.err'
21967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21968   (eval $ac_try) 2>&5
21969   ac_status=$?
21970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971   (exit $ac_status); }; } &&
21972          { ac_try='test -s conftest$ac_exeext'
21973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21974   (eval $ac_try) 2>&5
21975   ac_status=$?
21976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977   (exit $ac_status); }; }; then
21978   ol_cv_pthread_lpthread_lmach_lexc=yes
21979 else
21980   echo "$as_me: failed program was:" >&5
21981 sed 's/^/| /' conftest.$ac_ext >&5
21982
21983 ol_cv_pthread_lpthread_lmach_lexc=no
21984 fi
21985 rm -f conftest.err conftest.$ac_objext \
21986       conftest$ac_exeext conftest.$ac_ext
21987 else
21988   cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h.  */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h.  */
21994
21995 /* pthread test headers */
21996 #include <pthread.h>
21997 #if HAVE_PTHREADS < 7
21998 #include <errno.h>
21999 #endif
22000 #ifndef NULL
22001 #define NULL (void*)0
22002 #endif
22003
22004 static void *task(p)
22005         void *p;
22006 {
22007         return (void *) (p == NULL);
22008 }
22009
22010
22011 int main(argc, argv)
22012         int argc;
22013         char **argv;
22014 {
22015
22016         /* pthread test function */
22017 #ifndef PTHREAD_CREATE_DETACHED
22018 #define PTHREAD_CREATE_DETACHED 1
22019 #endif
22020         pthread_t t;
22021         int status;
22022         int detach = PTHREAD_CREATE_DETACHED;
22023
22024 #if HAVE_PTHREADS > 4
22025         /* Final pthreads */
22026         pthread_attr_t attr;
22027
22028         status = pthread_attr_init(&attr);
22029         if( status ) return status;
22030
22031 #if HAVE_PTHREADS < 7
22032         status = pthread_attr_setdetachstate(&attr, &detach);
22033         if( status < 0 ) status = errno;
22034 #else
22035         status = pthread_attr_setdetachstate(&attr, detach);
22036 #endif
22037         if( status ) return status;
22038         status = pthread_create( &t, &attr, task, NULL );
22039 #if HAVE_PTHREADS < 7
22040         if( status < 0 ) status = errno;
22041 #endif
22042         if( status ) return status;
22043 #else
22044         /* Draft 4 pthreads */
22045         status = pthread_create( &t, pthread_attr_default, task, NULL );
22046         if( status ) return errno;
22047
22048         /* give thread a chance to complete */
22049         /* it should remain joinable and hence detachable */
22050         sleep( 1 );
22051
22052         status = pthread_detach( &t );
22053         if( status ) return errno;
22054 #endif
22055
22056 #ifdef HAVE_LINUX_THREADS
22057         pthread_kill_other_threads_np();
22058 #endif
22059
22060         return 0;
22061
22062 }
22063
22064 _ACEOF
22065 rm -f conftest$ac_exeext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22067   (eval $ac_link) 2>&5
22068   ac_status=$?
22069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072   (eval $ac_try) 2>&5
22073   ac_status=$?
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); }; }; then
22076   ol_cv_pthread_lpthread_lmach_lexc=yes
22077 else
22078   echo "$as_me: program exited with status $ac_status" >&5
22079 echo "$as_me: failed program was:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22081
22082 ( exit $ac_status )
22083 ol_cv_pthread_lpthread_lmach_lexc=no
22084 fi
22085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22086 fi
22087
22088                 # restore the LIBS
22089                 LIBS="$ol_LIBS"
22090
22091 fi
22092 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22093 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22094
22095         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22096                 ol_link_pthreads="-lpthread -lmach -lexc"
22097                 ol_link_threads=posix
22098         fi
22099 fi
22100
22101
22102                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22103 if test "$ol_link_threads" = no ; then
22104         # try -lpthread -Wl,-woff,85
22105         echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22106 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22107 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22108   echo $ECHO_N "(cached) $ECHO_C" >&6
22109 else
22110
22111                 # save the flags
22112                 ol_LIBS="$LIBS"
22113                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22114
22115                 if test "$cross_compiling" = yes; then
22116   cat >conftest.$ac_ext <<_ACEOF
22117 /* confdefs.h.  */
22118 _ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h.  */
22122
22123 /* pthread test headers */
22124 #include <pthread.h>
22125 #if HAVE_PTHREADS < 7
22126 #include <errno.h>
22127 #endif
22128 #ifndef NULL
22129 #define NULL (void*)0
22130 #endif
22131
22132 static void *task(p)
22133         void *p;
22134 {
22135         return (void *) (p == NULL);
22136 }
22137
22138 int
22139 main ()
22140 {
22141
22142         /* pthread test function */
22143 #ifndef PTHREAD_CREATE_DETACHED
22144 #define PTHREAD_CREATE_DETACHED 1
22145 #endif
22146         pthread_t t;
22147         int status;
22148         int detach = PTHREAD_CREATE_DETACHED;
22149
22150 #if HAVE_PTHREADS > 4
22151         /* Final pthreads */
22152         pthread_attr_t attr;
22153
22154         status = pthread_attr_init(&attr);
22155         if( status ) return status;
22156
22157 #if HAVE_PTHREADS < 7
22158         status = pthread_attr_setdetachstate(&attr, &detach);
22159         if( status < 0 ) status = errno;
22160 #else
22161         status = pthread_attr_setdetachstate(&attr, detach);
22162 #endif
22163         if( status ) return status;
22164         status = pthread_create( &t, &attr, task, NULL );
22165 #if HAVE_PTHREADS < 7
22166         if( status < 0 ) status = errno;
22167 #endif
22168         if( status ) return status;
22169 #else
22170         /* Draft 4 pthreads */
22171         status = pthread_create( &t, pthread_attr_default, task, NULL );
22172         if( status ) return errno;
22173
22174         /* give thread a chance to complete */
22175         /* it should remain joinable and hence detachable */
22176         sleep( 1 );
22177
22178         status = pthread_detach( &t );
22179         if( status ) return errno;
22180 #endif
22181
22182 #ifdef HAVE_LINUX_THREADS
22183         pthread_kill_other_threads_np();
22184 #endif
22185
22186         return 0;
22187
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext conftest$ac_exeext
22193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22194   (eval $ac_link) 2>conftest.er1
22195   ac_status=$?
22196   grep -v '^ *+' conftest.er1 >conftest.err
22197   rm -f conftest.er1
22198   cat conftest.err >&5
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); } &&
22201          { ac_try='test -z "$ac_c_werror_flag"
22202                          || test ! -s conftest.err'
22203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204   (eval $ac_try) 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; } &&
22208          { ac_try='test -s conftest$ac_exeext'
22209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210   (eval $ac_try) 2>&5
22211   ac_status=$?
22212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213   (exit $ac_status); }; }; then
22214   ol_cv_pthread_lib_lpthread_woff=yes
22215 else
22216   echo "$as_me: failed program was:" >&5
22217 sed 's/^/| /' conftest.$ac_ext >&5
22218
22219 ol_cv_pthread_lib_lpthread_woff=no
22220 fi
22221 rm -f conftest.err conftest.$ac_objext \
22222       conftest$ac_exeext conftest.$ac_ext
22223 else
22224   cat >conftest.$ac_ext <<_ACEOF
22225 /* confdefs.h.  */
22226 _ACEOF
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h.  */
22230
22231 /* pthread test headers */
22232 #include <pthread.h>
22233 #if HAVE_PTHREADS < 7
22234 #include <errno.h>
22235 #endif
22236 #ifndef NULL
22237 #define NULL (void*)0
22238 #endif
22239
22240 static void *task(p)
22241         void *p;
22242 {
22243         return (void *) (p == NULL);
22244 }
22245
22246
22247 int main(argc, argv)
22248         int argc;
22249         char **argv;
22250 {
22251
22252         /* pthread test function */
22253 #ifndef PTHREAD_CREATE_DETACHED
22254 #define PTHREAD_CREATE_DETACHED 1
22255 #endif
22256         pthread_t t;
22257         int status;
22258         int detach = PTHREAD_CREATE_DETACHED;
22259
22260 #if HAVE_PTHREADS > 4
22261         /* Final pthreads */
22262         pthread_attr_t attr;
22263
22264         status = pthread_attr_init(&attr);
22265         if( status ) return status;
22266
22267 #if HAVE_PTHREADS < 7
22268         status = pthread_attr_setdetachstate(&attr, &detach);
22269         if( status < 0 ) status = errno;
22270 #else
22271         status = pthread_attr_setdetachstate(&attr, detach);
22272 #endif
22273         if( status ) return status;
22274         status = pthread_create( &t, &attr, task, NULL );
22275 #if HAVE_PTHREADS < 7
22276         if( status < 0 ) status = errno;
22277 #endif
22278         if( status ) return status;
22279 #else
22280         /* Draft 4 pthreads */
22281         status = pthread_create( &t, pthread_attr_default, task, NULL );
22282         if( status ) return errno;
22283
22284         /* give thread a chance to complete */
22285         /* it should remain joinable and hence detachable */
22286         sleep( 1 );
22287
22288         status = pthread_detach( &t );
22289         if( status ) return errno;
22290 #endif
22291
22292 #ifdef HAVE_LINUX_THREADS
22293         pthread_kill_other_threads_np();
22294 #endif
22295
22296         return 0;
22297
22298 }
22299
22300 _ACEOF
22301 rm -f conftest$ac_exeext
22302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22303   (eval $ac_link) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308   (eval $ac_try) 2>&5
22309   ac_status=$?
22310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311   (exit $ac_status); }; }; then
22312   ol_cv_pthread_lib_lpthread_woff=yes
22313 else
22314   echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ( exit $ac_status )
22319 ol_cv_pthread_lib_lpthread_woff=no
22320 fi
22321 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22322 fi
22323
22324                 # restore the LIBS
22325                 LIBS="$ol_LIBS"
22326
22327 fi
22328 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22329 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22330
22331         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22332                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22333                 ol_link_threads=posix
22334         fi
22335 fi
22336
22337
22338                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22339 if test "$ol_link_threads" = no ; then
22340         # try -lpthread
22341         echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22342 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22343 if test "${ol_cv_pthread_lpthread+set}" = set; then
22344   echo $ECHO_N "(cached) $ECHO_C" >&6
22345 else
22346
22347                 # save the flags
22348                 ol_LIBS="$LIBS"
22349                 LIBS="-lpthread $LIBS"
22350
22351                 if test "$cross_compiling" = yes; then
22352   cat >conftest.$ac_ext <<_ACEOF
22353 /* confdefs.h.  */
22354 _ACEOF
22355 cat confdefs.h >>conftest.$ac_ext
22356 cat >>conftest.$ac_ext <<_ACEOF
22357 /* end confdefs.h.  */
22358
22359 /* pthread test headers */
22360 #include <pthread.h>
22361 #if HAVE_PTHREADS < 7
22362 #include <errno.h>
22363 #endif
22364 #ifndef NULL
22365 #define NULL (void*)0
22366 #endif
22367
22368 static void *task(p)
22369         void *p;
22370 {
22371         return (void *) (p == NULL);
22372 }
22373
22374 int
22375 main ()
22376 {
22377
22378         /* pthread test function */
22379 #ifndef PTHREAD_CREATE_DETACHED
22380 #define PTHREAD_CREATE_DETACHED 1
22381 #endif
22382         pthread_t t;
22383         int status;
22384         int detach = PTHREAD_CREATE_DETACHED;
22385
22386 #if HAVE_PTHREADS > 4
22387         /* Final pthreads */
22388         pthread_attr_t attr;
22389
22390         status = pthread_attr_init(&attr);
22391         if( status ) return status;
22392
22393 #if HAVE_PTHREADS < 7
22394         status = pthread_attr_setdetachstate(&attr, &detach);
22395         if( status < 0 ) status = errno;
22396 #else
22397         status = pthread_attr_setdetachstate(&attr, detach);
22398 #endif
22399         if( status ) return status;
22400         status = pthread_create( &t, &attr, task, NULL );
22401 #if HAVE_PTHREADS < 7
22402         if( status < 0 ) status = errno;
22403 #endif
22404         if( status ) return status;
22405 #else
22406         /* Draft 4 pthreads */
22407         status = pthread_create( &t, pthread_attr_default, task, NULL );
22408         if( status ) return errno;
22409
22410         /* give thread a chance to complete */
22411         /* it should remain joinable and hence detachable */
22412         sleep( 1 );
22413
22414         status = pthread_detach( &t );
22415         if( status ) return errno;
22416 #endif
22417
22418 #ifdef HAVE_LINUX_THREADS
22419         pthread_kill_other_threads_np();
22420 #endif
22421
22422         return 0;
22423
22424   ;
22425   return 0;
22426 }
22427 _ACEOF
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430   (eval $ac_link) 2>conftest.er1
22431   ac_status=$?
22432   grep -v '^ *+' conftest.er1 >conftest.err
22433   rm -f conftest.er1
22434   cat conftest.err >&5
22435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436   (exit $ac_status); } &&
22437          { ac_try='test -z "$ac_c_werror_flag"
22438                          || test ! -s conftest.err'
22439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440   (eval $ac_try) 2>&5
22441   ac_status=$?
22442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443   (exit $ac_status); }; } &&
22444          { ac_try='test -s conftest$ac_exeext'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; }; then
22450   ol_cv_pthread_lpthread=yes
22451 else
22452   echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 ol_cv_pthread_lpthread=no
22456 fi
22457 rm -f conftest.err conftest.$ac_objext \
22458       conftest$ac_exeext conftest.$ac_ext
22459 else
22460   cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h.  */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h.  */
22466
22467 /* pthread test headers */
22468 #include <pthread.h>
22469 #if HAVE_PTHREADS < 7
22470 #include <errno.h>
22471 #endif
22472 #ifndef NULL
22473 #define NULL (void*)0
22474 #endif
22475
22476 static void *task(p)
22477         void *p;
22478 {
22479         return (void *) (p == NULL);
22480 }
22481
22482
22483 int main(argc, argv)
22484         int argc;
22485         char **argv;
22486 {
22487
22488         /* pthread test function */
22489 #ifndef PTHREAD_CREATE_DETACHED
22490 #define PTHREAD_CREATE_DETACHED 1
22491 #endif
22492         pthread_t t;
22493         int status;
22494         int detach = PTHREAD_CREATE_DETACHED;
22495
22496 #if HAVE_PTHREADS > 4
22497         /* Final pthreads */
22498         pthread_attr_t attr;
22499
22500         status = pthread_attr_init(&attr);
22501         if( status ) return status;
22502
22503 #if HAVE_PTHREADS < 7
22504         status = pthread_attr_setdetachstate(&attr, &detach);
22505         if( status < 0 ) status = errno;
22506 #else
22507         status = pthread_attr_setdetachstate(&attr, detach);
22508 #endif
22509         if( status ) return status;
22510         status = pthread_create( &t, &attr, task, NULL );
22511 #if HAVE_PTHREADS < 7
22512         if( status < 0 ) status = errno;
22513 #endif
22514         if( status ) return status;
22515 #else
22516         /* Draft 4 pthreads */
22517         status = pthread_create( &t, pthread_attr_default, task, NULL );
22518         if( status ) return errno;
22519
22520         /* give thread a chance to complete */
22521         /* it should remain joinable and hence detachable */
22522         sleep( 1 );
22523
22524         status = pthread_detach( &t );
22525         if( status ) return errno;
22526 #endif
22527
22528 #ifdef HAVE_LINUX_THREADS
22529         pthread_kill_other_threads_np();
22530 #endif
22531
22532         return 0;
22533
22534 }
22535
22536 _ACEOF
22537 rm -f conftest$ac_exeext
22538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22539   (eval $ac_link) 2>&5
22540   ac_status=$?
22541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22544   (eval $ac_try) 2>&5
22545   ac_status=$?
22546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22547   (exit $ac_status); }; }; then
22548   ol_cv_pthread_lpthread=yes
22549 else
22550   echo "$as_me: program exited with status $ac_status" >&5
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22553
22554 ( exit $ac_status )
22555 ol_cv_pthread_lpthread=no
22556 fi
22557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22558 fi
22559
22560                 # restore the LIBS
22561                 LIBS="$ol_LIBS"
22562
22563 fi
22564 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22565 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
22566
22567         if test $ol_cv_pthread_lpthread = yes ; then
22568                 ol_link_pthreads="-lpthread"
22569                 ol_link_threads=posix
22570         fi
22571 fi
22572
22573                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22574 if test "$ol_link_threads" = no ; then
22575         # try -lc_r
22576         echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22577 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
22578 if test "${ol_cv_pthread_lc_r+set}" = set; then
22579   echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581
22582                 # save the flags
22583                 ol_LIBS="$LIBS"
22584                 LIBS="-lc_r $LIBS"
22585
22586                 if test "$cross_compiling" = yes; then
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593
22594 /* pthread test headers */
22595 #include <pthread.h>
22596 #if HAVE_PTHREADS < 7
22597 #include <errno.h>
22598 #endif
22599 #ifndef NULL
22600 #define NULL (void*)0
22601 #endif
22602
22603 static void *task(p)
22604         void *p;
22605 {
22606         return (void *) (p == NULL);
22607 }
22608
22609 int
22610 main ()
22611 {
22612
22613         /* pthread test function */
22614 #ifndef PTHREAD_CREATE_DETACHED
22615 #define PTHREAD_CREATE_DETACHED 1
22616 #endif
22617         pthread_t t;
22618         int status;
22619         int detach = PTHREAD_CREATE_DETACHED;
22620
22621 #if HAVE_PTHREADS > 4
22622         /* Final pthreads */
22623         pthread_attr_t attr;
22624
22625         status = pthread_attr_init(&attr);
22626         if( status ) return status;
22627
22628 #if HAVE_PTHREADS < 7
22629         status = pthread_attr_setdetachstate(&attr, &detach);
22630         if( status < 0 ) status = errno;
22631 #else
22632         status = pthread_attr_setdetachstate(&attr, detach);
22633 #endif
22634         if( status ) return status;
22635         status = pthread_create( &t, &attr, task, NULL );
22636 #if HAVE_PTHREADS < 7
22637         if( status < 0 ) status = errno;
22638 #endif
22639         if( status ) return status;
22640 #else
22641         /* Draft 4 pthreads */
22642         status = pthread_create( &t, pthread_attr_default, task, NULL );
22643         if( status ) return errno;
22644
22645         /* give thread a chance to complete */
22646         /* it should remain joinable and hence detachable */
22647         sleep( 1 );
22648
22649         status = pthread_detach( &t );
22650         if( status ) return errno;
22651 #endif
22652
22653 #ifdef HAVE_LINUX_THREADS
22654         pthread_kill_other_threads_np();
22655 #endif
22656
22657         return 0;
22658
22659   ;
22660   return 0;
22661 }
22662 _ACEOF
22663 rm -f conftest.$ac_objext conftest$ac_exeext
22664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22665   (eval $ac_link) 2>conftest.er1
22666   ac_status=$?
22667   grep -v '^ *+' conftest.er1 >conftest.err
22668   rm -f conftest.er1
22669   cat conftest.err >&5
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); } &&
22672          { ac_try='test -z "$ac_c_werror_flag"
22673                          || test ! -s conftest.err'
22674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675   (eval $ac_try) 2>&5
22676   ac_status=$?
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); }; } &&
22679          { ac_try='test -s conftest$ac_exeext'
22680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681   (eval $ac_try) 2>&5
22682   ac_status=$?
22683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684   (exit $ac_status); }; }; then
22685   ol_cv_pthread_lc_r=yes
22686 else
22687   echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22689
22690 ol_cv_pthread_lc_r=no
22691 fi
22692 rm -f conftest.err conftest.$ac_objext \
22693       conftest$ac_exeext conftest.$ac_ext
22694 else
22695   cat >conftest.$ac_ext <<_ACEOF
22696 /* confdefs.h.  */
22697 _ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h.  */
22701
22702 /* pthread test headers */
22703 #include <pthread.h>
22704 #if HAVE_PTHREADS < 7
22705 #include <errno.h>
22706 #endif
22707 #ifndef NULL
22708 #define NULL (void*)0
22709 #endif
22710
22711 static void *task(p)
22712         void *p;
22713 {
22714         return (void *) (p == NULL);
22715 }
22716
22717
22718 int main(argc, argv)
22719         int argc;
22720         char **argv;
22721 {
22722
22723         /* pthread test function */
22724 #ifndef PTHREAD_CREATE_DETACHED
22725 #define PTHREAD_CREATE_DETACHED 1
22726 #endif
22727         pthread_t t;
22728         int status;
22729         int detach = PTHREAD_CREATE_DETACHED;
22730
22731 #if HAVE_PTHREADS > 4
22732         /* Final pthreads */
22733         pthread_attr_t attr;
22734
22735         status = pthread_attr_init(&attr);
22736         if( status ) return status;
22737
22738 #if HAVE_PTHREADS < 7
22739         status = pthread_attr_setdetachstate(&attr, &detach);
22740         if( status < 0 ) status = errno;
22741 #else
22742         status = pthread_attr_setdetachstate(&attr, detach);
22743 #endif
22744         if( status ) return status;
22745         status = pthread_create( &t, &attr, task, NULL );
22746 #if HAVE_PTHREADS < 7
22747         if( status < 0 ) status = errno;
22748 #endif
22749         if( status ) return status;
22750 #else
22751         /* Draft 4 pthreads */
22752         status = pthread_create( &t, pthread_attr_default, task, NULL );
22753         if( status ) return errno;
22754
22755         /* give thread a chance to complete */
22756         /* it should remain joinable and hence detachable */
22757         sleep( 1 );
22758
22759         status = pthread_detach( &t );
22760         if( status ) return errno;
22761 #endif
22762
22763 #ifdef HAVE_LINUX_THREADS
22764         pthread_kill_other_threads_np();
22765 #endif
22766
22767         return 0;
22768
22769 }
22770
22771 _ACEOF
22772 rm -f conftest$ac_exeext
22773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22774   (eval $ac_link) 2>&5
22775   ac_status=$?
22776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; }; then
22783   ol_cv_pthread_lc_r=yes
22784 else
22785   echo "$as_me: program exited with status $ac_status" >&5
22786 echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22788
22789 ( exit $ac_status )
22790 ol_cv_pthread_lc_r=no
22791 fi
22792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22793 fi
22794
22795                 # restore the LIBS
22796                 LIBS="$ol_LIBS"
22797
22798 fi
22799 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
22800 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
22801
22802         if test $ol_cv_pthread_lc_r = yes ; then
22803                 ol_link_pthreads="-lc_r"
22804                 ol_link_threads=posix
22805         fi
22806 fi
22807
22808
22809                 # Pthread try link: -threads (ol_cv_pthread_threads)
22810 if test "$ol_link_threads" = no ; then
22811         # try -threads
22812         echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
22813 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
22814 if test "${ol_cv_pthread_threads+set}" = set; then
22815   echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817
22818                 # save the flags
22819                 ol_LIBS="$LIBS"
22820                 LIBS="-threads $LIBS"
22821
22822                 if test "$cross_compiling" = yes; then
22823   cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829
22830 /* pthread test headers */
22831 #include <pthread.h>
22832 #if HAVE_PTHREADS < 7
22833 #include <errno.h>
22834 #endif
22835 #ifndef NULL
22836 #define NULL (void*)0
22837 #endif
22838
22839 static void *task(p)
22840         void *p;
22841 {
22842         return (void *) (p == NULL);
22843 }
22844
22845 int
22846 main ()
22847 {
22848
22849         /* pthread test function */
22850 #ifndef PTHREAD_CREATE_DETACHED
22851 #define PTHREAD_CREATE_DETACHED 1
22852 #endif
22853         pthread_t t;
22854         int status;
22855         int detach = PTHREAD_CREATE_DETACHED;
22856
22857 #if HAVE_PTHREADS > 4
22858         /* Final pthreads */
22859         pthread_attr_t attr;
22860
22861         status = pthread_attr_init(&attr);
22862         if( status ) return status;
22863
22864 #if HAVE_PTHREADS < 7
22865         status = pthread_attr_setdetachstate(&attr, &detach);
22866         if( status < 0 ) status = errno;
22867 #else
22868         status = pthread_attr_setdetachstate(&attr, detach);
22869 #endif
22870         if( status ) return status;
22871         status = pthread_create( &t, &attr, task, NULL );
22872 #if HAVE_PTHREADS < 7
22873         if( status < 0 ) status = errno;
22874 #endif
22875         if( status ) return status;
22876 #else
22877         /* Draft 4 pthreads */
22878         status = pthread_create( &t, pthread_attr_default, task, NULL );
22879         if( status ) return errno;
22880
22881         /* give thread a chance to complete */
22882         /* it should remain joinable and hence detachable */
22883         sleep( 1 );
22884
22885         status = pthread_detach( &t );
22886         if( status ) return errno;
22887 #endif
22888
22889 #ifdef HAVE_LINUX_THREADS
22890         pthread_kill_other_threads_np();
22891 #endif
22892
22893         return 0;
22894
22895   ;
22896   return 0;
22897 }
22898 _ACEOF
22899 rm -f conftest.$ac_objext conftest$ac_exeext
22900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22901   (eval $ac_link) 2>conftest.er1
22902   ac_status=$?
22903   grep -v '^ *+' conftest.er1 >conftest.err
22904   rm -f conftest.er1
22905   cat conftest.err >&5
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); } &&
22908          { ac_try='test -z "$ac_c_werror_flag"
22909                          || test ! -s conftest.err'
22910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22911   (eval $ac_try) 2>&5
22912   ac_status=$?
22913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914   (exit $ac_status); }; } &&
22915          { ac_try='test -s conftest$ac_exeext'
22916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917   (eval $ac_try) 2>&5
22918   ac_status=$?
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); }; }; then
22921   ol_cv_pthread_threads=yes
22922 else
22923   echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ol_cv_pthread_threads=no
22927 fi
22928 rm -f conftest.err conftest.$ac_objext \
22929       conftest$ac_exeext conftest.$ac_ext
22930 else
22931   cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937
22938 /* pthread test headers */
22939 #include <pthread.h>
22940 #if HAVE_PTHREADS < 7
22941 #include <errno.h>
22942 #endif
22943 #ifndef NULL
22944 #define NULL (void*)0
22945 #endif
22946
22947 static void *task(p)
22948         void *p;
22949 {
22950         return (void *) (p == NULL);
22951 }
22952
22953
22954 int main(argc, argv)
22955         int argc;
22956         char **argv;
22957 {
22958
22959         /* pthread test function */
22960 #ifndef PTHREAD_CREATE_DETACHED
22961 #define PTHREAD_CREATE_DETACHED 1
22962 #endif
22963         pthread_t t;
22964         int status;
22965         int detach = PTHREAD_CREATE_DETACHED;
22966
22967 #if HAVE_PTHREADS > 4
22968         /* Final pthreads */
22969         pthread_attr_t attr;
22970
22971         status = pthread_attr_init(&attr);
22972         if( status ) return status;
22973
22974 #if HAVE_PTHREADS < 7
22975         status = pthread_attr_setdetachstate(&attr, &detach);
22976         if( status < 0 ) status = errno;
22977 #else
22978         status = pthread_attr_setdetachstate(&attr, detach);
22979 #endif
22980         if( status ) return status;
22981         status = pthread_create( &t, &attr, task, NULL );
22982 #if HAVE_PTHREADS < 7
22983         if( status < 0 ) status = errno;
22984 #endif
22985         if( status ) return status;
22986 #else
22987         /* Draft 4 pthreads */
22988         status = pthread_create( &t, pthread_attr_default, task, NULL );
22989         if( status ) return errno;
22990
22991         /* give thread a chance to complete */
22992         /* it should remain joinable and hence detachable */
22993         sleep( 1 );
22994
22995         status = pthread_detach( &t );
22996         if( status ) return errno;
22997 #endif
22998
22999 #ifdef HAVE_LINUX_THREADS
23000         pthread_kill_other_threads_np();
23001 #endif
23002
23003         return 0;
23004
23005 }
23006
23007 _ACEOF
23008 rm -f conftest$ac_exeext
23009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23010   (eval $ac_link) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015   (eval $ac_try) 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; }; then
23019   ol_cv_pthread_threads=yes
23020 else
23021   echo "$as_me: program exited with status $ac_status" >&5
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 ( exit $ac_status )
23026 ol_cv_pthread_threads=no
23027 fi
23028 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23029 fi
23030
23031                 # restore the LIBS
23032                 LIBS="$ol_LIBS"
23033
23034 fi
23035 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23036 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23037
23038         if test $ol_cv_pthread_threads = yes ; then
23039                 ol_link_pthreads="-threads"
23040                 ol_link_threads=posix
23041         fi
23042 fi
23043
23044
23045                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23046 if test "$ol_link_threads" = no ; then
23047         # try -lpthreads -lmach -lexc -lc_r
23048         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23049 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23050 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23051   echo $ECHO_N "(cached) $ECHO_C" >&6
23052 else
23053
23054                 # save the flags
23055                 ol_LIBS="$LIBS"
23056                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23057
23058                 if test "$cross_compiling" = yes; then
23059   cat >conftest.$ac_ext <<_ACEOF
23060 /* confdefs.h.  */
23061 _ACEOF
23062 cat confdefs.h >>conftest.$ac_ext
23063 cat >>conftest.$ac_ext <<_ACEOF
23064 /* end confdefs.h.  */
23065
23066 /* pthread test headers */
23067 #include <pthread.h>
23068 #if HAVE_PTHREADS < 7
23069 #include <errno.h>
23070 #endif
23071 #ifndef NULL
23072 #define NULL (void*)0
23073 #endif
23074
23075 static void *task(p)
23076         void *p;
23077 {
23078         return (void *) (p == NULL);
23079 }
23080
23081 int
23082 main ()
23083 {
23084
23085         /* pthread test function */
23086 #ifndef PTHREAD_CREATE_DETACHED
23087 #define PTHREAD_CREATE_DETACHED 1
23088 #endif
23089         pthread_t t;
23090         int status;
23091         int detach = PTHREAD_CREATE_DETACHED;
23092
23093 #if HAVE_PTHREADS > 4
23094         /* Final pthreads */
23095         pthread_attr_t attr;
23096
23097         status = pthread_attr_init(&attr);
23098         if( status ) return status;
23099
23100 #if HAVE_PTHREADS < 7
23101         status = pthread_attr_setdetachstate(&attr, &detach);
23102         if( status < 0 ) status = errno;
23103 #else
23104         status = pthread_attr_setdetachstate(&attr, detach);
23105 #endif
23106         if( status ) return status;
23107         status = pthread_create( &t, &attr, task, NULL );
23108 #if HAVE_PTHREADS < 7
23109         if( status < 0 ) status = errno;
23110 #endif
23111         if( status ) return status;
23112 #else
23113         /* Draft 4 pthreads */
23114         status = pthread_create( &t, pthread_attr_default, task, NULL );
23115         if( status ) return errno;
23116
23117         /* give thread a chance to complete */
23118         /* it should remain joinable and hence detachable */
23119         sleep( 1 );
23120
23121         status = pthread_detach( &t );
23122         if( status ) return errno;
23123 #endif
23124
23125 #ifdef HAVE_LINUX_THREADS
23126         pthread_kill_other_threads_np();
23127 #endif
23128
23129         return 0;
23130
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 rm -f conftest.$ac_objext conftest$ac_exeext
23136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23137   (eval $ac_link) 2>conftest.er1
23138   ac_status=$?
23139   grep -v '^ *+' conftest.er1 >conftest.err
23140   rm -f conftest.er1
23141   cat conftest.err >&5
23142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143   (exit $ac_status); } &&
23144          { ac_try='test -z "$ac_c_werror_flag"
23145                          || test ! -s conftest.err'
23146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147   (eval $ac_try) 2>&5
23148   ac_status=$?
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); }; } &&
23151          { ac_try='test -s conftest$ac_exeext'
23152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23153   (eval $ac_try) 2>&5
23154   ac_status=$?
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); }; }; then
23157   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23158 else
23159   echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23161
23162 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23163 fi
23164 rm -f conftest.err conftest.$ac_objext \
23165       conftest$ac_exeext conftest.$ac_ext
23166 else
23167   cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h.  */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h.  */
23173
23174 /* pthread test headers */
23175 #include <pthread.h>
23176 #if HAVE_PTHREADS < 7
23177 #include <errno.h>
23178 #endif
23179 #ifndef NULL
23180 #define NULL (void*)0
23181 #endif
23182
23183 static void *task(p)
23184         void *p;
23185 {
23186         return (void *) (p == NULL);
23187 }
23188
23189
23190 int main(argc, argv)
23191         int argc;
23192         char **argv;
23193 {
23194
23195         /* pthread test function */
23196 #ifndef PTHREAD_CREATE_DETACHED
23197 #define PTHREAD_CREATE_DETACHED 1
23198 #endif
23199         pthread_t t;
23200         int status;
23201         int detach = PTHREAD_CREATE_DETACHED;
23202
23203 #if HAVE_PTHREADS > 4
23204         /* Final pthreads */
23205         pthread_attr_t attr;
23206
23207         status = pthread_attr_init(&attr);
23208         if( status ) return status;
23209
23210 #if HAVE_PTHREADS < 7
23211         status = pthread_attr_setdetachstate(&attr, &detach);
23212         if( status < 0 ) status = errno;
23213 #else
23214         status = pthread_attr_setdetachstate(&attr, detach);
23215 #endif
23216         if( status ) return status;
23217         status = pthread_create( &t, &attr, task, NULL );
23218 #if HAVE_PTHREADS < 7
23219         if( status < 0 ) status = errno;
23220 #endif
23221         if( status ) return status;
23222 #else
23223         /* Draft 4 pthreads */
23224         status = pthread_create( &t, pthread_attr_default, task, NULL );
23225         if( status ) return errno;
23226
23227         /* give thread a chance to complete */
23228         /* it should remain joinable and hence detachable */
23229         sleep( 1 );
23230
23231         status = pthread_detach( &t );
23232         if( status ) return errno;
23233 #endif
23234
23235 #ifdef HAVE_LINUX_THREADS
23236         pthread_kill_other_threads_np();
23237 #endif
23238
23239         return 0;
23240
23241 }
23242
23243 _ACEOF
23244 rm -f conftest$ac_exeext
23245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23246   (eval $ac_link) 2>&5
23247   ac_status=$?
23248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251   (eval $ac_try) 2>&5
23252   ac_status=$?
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); }; }; then
23255   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23256 else
23257   echo "$as_me: program exited with status $ac_status" >&5
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23260
23261 ( exit $ac_status )
23262 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23263 fi
23264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23265 fi
23266
23267                 # restore the LIBS
23268                 LIBS="$ol_LIBS"
23269
23270 fi
23271 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23272 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23273
23274         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23275                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23276                 ol_link_threads=posix
23277         fi
23278 fi
23279
23280                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23281 if test "$ol_link_threads" = no ; then
23282         # try -lpthreads -lmach -lexc
23283         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23284 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23285 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23286   echo $ECHO_N "(cached) $ECHO_C" >&6
23287 else
23288
23289                 # save the flags
23290                 ol_LIBS="$LIBS"
23291                 LIBS="-lpthreads -lmach -lexc $LIBS"
23292
23293                 if test "$cross_compiling" = yes; then
23294   cat >conftest.$ac_ext <<_ACEOF
23295 /* confdefs.h.  */
23296 _ACEOF
23297 cat confdefs.h >>conftest.$ac_ext
23298 cat >>conftest.$ac_ext <<_ACEOF
23299 /* end confdefs.h.  */
23300
23301 /* pthread test headers */
23302 #include <pthread.h>
23303 #if HAVE_PTHREADS < 7
23304 #include <errno.h>
23305 #endif
23306 #ifndef NULL
23307 #define NULL (void*)0
23308 #endif
23309
23310 static void *task(p)
23311         void *p;
23312 {
23313         return (void *) (p == NULL);
23314 }
23315
23316 int
23317 main ()
23318 {
23319
23320         /* pthread test function */
23321 #ifndef PTHREAD_CREATE_DETACHED
23322 #define PTHREAD_CREATE_DETACHED 1
23323 #endif
23324         pthread_t t;
23325         int status;
23326         int detach = PTHREAD_CREATE_DETACHED;
23327
23328 #if HAVE_PTHREADS > 4
23329         /* Final pthreads */
23330         pthread_attr_t attr;
23331
23332         status = pthread_attr_init(&attr);
23333         if( status ) return status;
23334
23335 #if HAVE_PTHREADS < 7
23336         status = pthread_attr_setdetachstate(&attr, &detach);
23337         if( status < 0 ) status = errno;
23338 #else
23339         status = pthread_attr_setdetachstate(&attr, detach);
23340 #endif
23341         if( status ) return status;
23342         status = pthread_create( &t, &attr, task, NULL );
23343 #if HAVE_PTHREADS < 7
23344         if( status < 0 ) status = errno;
23345 #endif
23346         if( status ) return status;
23347 #else
23348         /* Draft 4 pthreads */
23349         status = pthread_create( &t, pthread_attr_default, task, NULL );
23350         if( status ) return errno;
23351
23352         /* give thread a chance to complete */
23353         /* it should remain joinable and hence detachable */
23354         sleep( 1 );
23355
23356         status = pthread_detach( &t );
23357         if( status ) return errno;
23358 #endif
23359
23360 #ifdef HAVE_LINUX_THREADS
23361         pthread_kill_other_threads_np();
23362 #endif
23363
23364         return 0;
23365
23366   ;
23367   return 0;
23368 }
23369 _ACEOF
23370 rm -f conftest.$ac_objext conftest$ac_exeext
23371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23372   (eval $ac_link) 2>conftest.er1
23373   ac_status=$?
23374   grep -v '^ *+' conftest.er1 >conftest.err
23375   rm -f conftest.er1
23376   cat conftest.err >&5
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } &&
23379          { ac_try='test -z "$ac_c_werror_flag"
23380                          || test ! -s conftest.err'
23381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382   (eval $ac_try) 2>&5
23383   ac_status=$?
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); }; } &&
23386          { ac_try='test -s conftest$ac_exeext'
23387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388   (eval $ac_try) 2>&5
23389   ac_status=$?
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); }; }; then
23392   ol_cv_pthread_lpthreads_lmach_lexc=yes
23393 else
23394   echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23396
23397 ol_cv_pthread_lpthreads_lmach_lexc=no
23398 fi
23399 rm -f conftest.err conftest.$ac_objext \
23400       conftest$ac_exeext conftest.$ac_ext
23401 else
23402   cat >conftest.$ac_ext <<_ACEOF
23403 /* confdefs.h.  */
23404 _ACEOF
23405 cat confdefs.h >>conftest.$ac_ext
23406 cat >>conftest.$ac_ext <<_ACEOF
23407 /* end confdefs.h.  */
23408
23409 /* pthread test headers */
23410 #include <pthread.h>
23411 #if HAVE_PTHREADS < 7
23412 #include <errno.h>
23413 #endif
23414 #ifndef NULL
23415 #define NULL (void*)0
23416 #endif
23417
23418 static void *task(p)
23419         void *p;
23420 {
23421         return (void *) (p == NULL);
23422 }
23423
23424
23425 int main(argc, argv)
23426         int argc;
23427         char **argv;
23428 {
23429
23430         /* pthread test function */
23431 #ifndef PTHREAD_CREATE_DETACHED
23432 #define PTHREAD_CREATE_DETACHED 1
23433 #endif
23434         pthread_t t;
23435         int status;
23436         int detach = PTHREAD_CREATE_DETACHED;
23437
23438 #if HAVE_PTHREADS > 4
23439         /* Final pthreads */
23440         pthread_attr_t attr;
23441
23442         status = pthread_attr_init(&attr);
23443         if( status ) return status;
23444
23445 #if HAVE_PTHREADS < 7
23446         status = pthread_attr_setdetachstate(&attr, &detach);
23447         if( status < 0 ) status = errno;
23448 #else
23449         status = pthread_attr_setdetachstate(&attr, detach);
23450 #endif
23451         if( status ) return status;
23452         status = pthread_create( &t, &attr, task, NULL );
23453 #if HAVE_PTHREADS < 7
23454         if( status < 0 ) status = errno;
23455 #endif
23456         if( status ) return status;
23457 #else
23458         /* Draft 4 pthreads */
23459         status = pthread_create( &t, pthread_attr_default, task, NULL );
23460         if( status ) return errno;
23461
23462         /* give thread a chance to complete */
23463         /* it should remain joinable and hence detachable */
23464         sleep( 1 );
23465
23466         status = pthread_detach( &t );
23467         if( status ) return errno;
23468 #endif
23469
23470 #ifdef HAVE_LINUX_THREADS
23471         pthread_kill_other_threads_np();
23472 #endif
23473
23474         return 0;
23475
23476 }
23477
23478 _ACEOF
23479 rm -f conftest$ac_exeext
23480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23481   (eval $ac_link) 2>&5
23482   ac_status=$?
23483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486   (eval $ac_try) 2>&5
23487   ac_status=$?
23488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489   (exit $ac_status); }; }; then
23490   ol_cv_pthread_lpthreads_lmach_lexc=yes
23491 else
23492   echo "$as_me: program exited with status $ac_status" >&5
23493 echo "$as_me: failed program was:" >&5
23494 sed 's/^/| /' conftest.$ac_ext >&5
23495
23496 ( exit $ac_status )
23497 ol_cv_pthread_lpthreads_lmach_lexc=no
23498 fi
23499 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23500 fi
23501
23502                 # restore the LIBS
23503                 LIBS="$ol_LIBS"
23504
23505 fi
23506 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23507 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
23508
23509         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23510                 ol_link_pthreads="-lpthreads -lmach -lexc"
23511                 ol_link_threads=posix
23512         fi
23513 fi
23514
23515                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23516 if test "$ol_link_threads" = no ; then
23517         # try -lpthreads -lexc
23518         echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23519 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
23520 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23521   echo $ECHO_N "(cached) $ECHO_C" >&6
23522 else
23523
23524                 # save the flags
23525                 ol_LIBS="$LIBS"
23526                 LIBS="-lpthreads -lexc $LIBS"
23527
23528                 if test "$cross_compiling" = yes; then
23529   cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h.  */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h.  */
23535
23536 /* pthread test headers */
23537 #include <pthread.h>
23538 #if HAVE_PTHREADS < 7
23539 #include <errno.h>
23540 #endif
23541 #ifndef NULL
23542 #define NULL (void*)0
23543 #endif
23544
23545 static void *task(p)
23546         void *p;
23547 {
23548         return (void *) (p == NULL);
23549 }
23550
23551 int
23552 main ()
23553 {
23554
23555         /* pthread test function */
23556 #ifndef PTHREAD_CREATE_DETACHED
23557 #define PTHREAD_CREATE_DETACHED 1
23558 #endif
23559         pthread_t t;
23560         int status;
23561         int detach = PTHREAD_CREATE_DETACHED;
23562
23563 #if HAVE_PTHREADS > 4
23564         /* Final pthreads */
23565         pthread_attr_t attr;
23566
23567         status = pthread_attr_init(&attr);
23568         if( status ) return status;
23569
23570 #if HAVE_PTHREADS < 7
23571         status = pthread_attr_setdetachstate(&attr, &detach);
23572         if( status < 0 ) status = errno;
23573 #else
23574         status = pthread_attr_setdetachstate(&attr, detach);
23575 #endif
23576         if( status ) return status;
23577         status = pthread_create( &t, &attr, task, NULL );
23578 #if HAVE_PTHREADS < 7
23579         if( status < 0 ) status = errno;
23580 #endif
23581         if( status ) return status;
23582 #else
23583         /* Draft 4 pthreads */
23584         status = pthread_create( &t, pthread_attr_default, task, NULL );
23585         if( status ) return errno;
23586
23587         /* give thread a chance to complete */
23588         /* it should remain joinable and hence detachable */
23589         sleep( 1 );
23590
23591         status = pthread_detach( &t );
23592         if( status ) return errno;
23593 #endif
23594
23595 #ifdef HAVE_LINUX_THREADS
23596         pthread_kill_other_threads_np();
23597 #endif
23598
23599         return 0;
23600
23601   ;
23602   return 0;
23603 }
23604 _ACEOF
23605 rm -f conftest.$ac_objext conftest$ac_exeext
23606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23607   (eval $ac_link) 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } &&
23614          { ac_try='test -z "$ac_c_werror_flag"
23615                          || test ! -s conftest.err'
23616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617   (eval $ac_try) 2>&5
23618   ac_status=$?
23619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620   (exit $ac_status); }; } &&
23621          { ac_try='test -s conftest$ac_exeext'
23622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623   (eval $ac_try) 2>&5
23624   ac_status=$?
23625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626   (exit $ac_status); }; }; then
23627   ol_cv_pthread_lpthreads_lexc=yes
23628 else
23629   echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632 ol_cv_pthread_lpthreads_lexc=no
23633 fi
23634 rm -f conftest.err conftest.$ac_objext \
23635       conftest$ac_exeext conftest.$ac_ext
23636 else
23637   cat >conftest.$ac_ext <<_ACEOF
23638 /* confdefs.h.  */
23639 _ACEOF
23640 cat confdefs.h >>conftest.$ac_ext
23641 cat >>conftest.$ac_ext <<_ACEOF
23642 /* end confdefs.h.  */
23643
23644 /* pthread test headers */
23645 #include <pthread.h>
23646 #if HAVE_PTHREADS < 7
23647 #include <errno.h>
23648 #endif
23649 #ifndef NULL
23650 #define NULL (void*)0
23651 #endif
23652
23653 static void *task(p)
23654         void *p;
23655 {
23656         return (void *) (p == NULL);
23657 }
23658
23659
23660 int main(argc, argv)
23661         int argc;
23662         char **argv;
23663 {
23664
23665         /* pthread test function */
23666 #ifndef PTHREAD_CREATE_DETACHED
23667 #define PTHREAD_CREATE_DETACHED 1
23668 #endif
23669         pthread_t t;
23670         int status;
23671         int detach = PTHREAD_CREATE_DETACHED;
23672
23673 #if HAVE_PTHREADS > 4
23674         /* Final pthreads */
23675         pthread_attr_t attr;
23676
23677         status = pthread_attr_init(&attr);
23678         if( status ) return status;
23679
23680 #if HAVE_PTHREADS < 7
23681         status = pthread_attr_setdetachstate(&attr, &detach);
23682         if( status < 0 ) status = errno;
23683 #else
23684         status = pthread_attr_setdetachstate(&attr, detach);
23685 #endif
23686         if( status ) return status;
23687         status = pthread_create( &t, &attr, task, NULL );
23688 #if HAVE_PTHREADS < 7
23689         if( status < 0 ) status = errno;
23690 #endif
23691         if( status ) return status;
23692 #else
23693         /* Draft 4 pthreads */
23694         status = pthread_create( &t, pthread_attr_default, task, NULL );
23695         if( status ) return errno;
23696
23697         /* give thread a chance to complete */
23698         /* it should remain joinable and hence detachable */
23699         sleep( 1 );
23700
23701         status = pthread_detach( &t );
23702         if( status ) return errno;
23703 #endif
23704
23705 #ifdef HAVE_LINUX_THREADS
23706         pthread_kill_other_threads_np();
23707 #endif
23708
23709         return 0;
23710
23711 }
23712
23713 _ACEOF
23714 rm -f conftest$ac_exeext
23715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23716   (eval $ac_link) 2>&5
23717   ac_status=$?
23718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721   (eval $ac_try) 2>&5
23722   ac_status=$?
23723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724   (exit $ac_status); }; }; then
23725   ol_cv_pthread_lpthreads_lexc=yes
23726 else
23727   echo "$as_me: program exited with status $ac_status" >&5
23728 echo "$as_me: failed program was:" >&5
23729 sed 's/^/| /' conftest.$ac_ext >&5
23730
23731 ( exit $ac_status )
23732 ol_cv_pthread_lpthreads_lexc=no
23733 fi
23734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23735 fi
23736
23737                 # restore the LIBS
23738                 LIBS="$ol_LIBS"
23739
23740 fi
23741 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
23742 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
23743
23744         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
23745                 ol_link_pthreads="-lpthreads -lexc"
23746                 ol_link_threads=posix
23747         fi
23748 fi
23749
23750
23751                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
23752 if test "$ol_link_threads" = no ; then
23753         # try -lpthreads
23754         echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
23755 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
23756 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
23757   echo $ECHO_N "(cached) $ECHO_C" >&6
23758 else
23759
23760                 # save the flags
23761                 ol_LIBS="$LIBS"
23762                 LIBS="-lpthreads $LIBS"
23763
23764                 if test "$cross_compiling" = yes; then
23765   cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771
23772 /* pthread test headers */
23773 #include <pthread.h>
23774 #if HAVE_PTHREADS < 7
23775 #include <errno.h>
23776 #endif
23777 #ifndef NULL
23778 #define NULL (void*)0
23779 #endif
23780
23781 static void *task(p)
23782         void *p;
23783 {
23784         return (void *) (p == NULL);
23785 }
23786
23787 int
23788 main ()
23789 {
23790
23791         /* pthread test function */
23792 #ifndef PTHREAD_CREATE_DETACHED
23793 #define PTHREAD_CREATE_DETACHED 1
23794 #endif
23795         pthread_t t;
23796         int status;
23797         int detach = PTHREAD_CREATE_DETACHED;
23798
23799 #if HAVE_PTHREADS > 4
23800         /* Final pthreads */
23801         pthread_attr_t attr;
23802
23803         status = pthread_attr_init(&attr);
23804         if( status ) return status;
23805
23806 #if HAVE_PTHREADS < 7
23807         status = pthread_attr_setdetachstate(&attr, &detach);
23808         if( status < 0 ) status = errno;
23809 #else
23810         status = pthread_attr_setdetachstate(&attr, detach);
23811 #endif
23812         if( status ) return status;
23813         status = pthread_create( &t, &attr, task, NULL );
23814 #if HAVE_PTHREADS < 7
23815         if( status < 0 ) status = errno;
23816 #endif
23817         if( status ) return status;
23818 #else
23819         /* Draft 4 pthreads */
23820         status = pthread_create( &t, pthread_attr_default, task, NULL );
23821         if( status ) return errno;
23822
23823         /* give thread a chance to complete */
23824         /* it should remain joinable and hence detachable */
23825         sleep( 1 );
23826
23827         status = pthread_detach( &t );
23828         if( status ) return errno;
23829 #endif
23830
23831 #ifdef HAVE_LINUX_THREADS
23832         pthread_kill_other_threads_np();
23833 #endif
23834
23835         return 0;
23836
23837   ;
23838   return 0;
23839 }
23840 _ACEOF
23841 rm -f conftest.$ac_objext conftest$ac_exeext
23842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23843   (eval $ac_link) 2>conftest.er1
23844   ac_status=$?
23845   grep -v '^ *+' conftest.er1 >conftest.err
23846   rm -f conftest.er1
23847   cat conftest.err >&5
23848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849   (exit $ac_status); } &&
23850          { ac_try='test -z "$ac_c_werror_flag"
23851                          || test ! -s conftest.err'
23852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23853   (eval $ac_try) 2>&5
23854   ac_status=$?
23855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23856   (exit $ac_status); }; } &&
23857          { ac_try='test -s conftest$ac_exeext'
23858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23859   (eval $ac_try) 2>&5
23860   ac_status=$?
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); }; }; then
23863   ol_cv_pthread_lib_lpthreads=yes
23864 else
23865   echo "$as_me: failed program was:" >&5
23866 sed 's/^/| /' conftest.$ac_ext >&5
23867
23868 ol_cv_pthread_lib_lpthreads=no
23869 fi
23870 rm -f conftest.err conftest.$ac_objext \
23871       conftest$ac_exeext conftest.$ac_ext
23872 else
23873   cat >conftest.$ac_ext <<_ACEOF
23874 /* confdefs.h.  */
23875 _ACEOF
23876 cat confdefs.h >>conftest.$ac_ext
23877 cat >>conftest.$ac_ext <<_ACEOF
23878 /* end confdefs.h.  */
23879
23880 /* pthread test headers */
23881 #include <pthread.h>
23882 #if HAVE_PTHREADS < 7
23883 #include <errno.h>
23884 #endif
23885 #ifndef NULL
23886 #define NULL (void*)0
23887 #endif
23888
23889 static void *task(p)
23890         void *p;
23891 {
23892         return (void *) (p == NULL);
23893 }
23894
23895
23896 int main(argc, argv)
23897         int argc;
23898         char **argv;
23899 {
23900
23901         /* pthread test function */
23902 #ifndef PTHREAD_CREATE_DETACHED
23903 #define PTHREAD_CREATE_DETACHED 1
23904 #endif
23905         pthread_t t;
23906         int status;
23907         int detach = PTHREAD_CREATE_DETACHED;
23908
23909 #if HAVE_PTHREADS > 4
23910         /* Final pthreads */
23911         pthread_attr_t attr;
23912
23913         status = pthread_attr_init(&attr);
23914         if( status ) return status;
23915
23916 #if HAVE_PTHREADS < 7
23917         status = pthread_attr_setdetachstate(&attr, &detach);
23918         if( status < 0 ) status = errno;
23919 #else
23920         status = pthread_attr_setdetachstate(&attr, detach);
23921 #endif
23922         if( status ) return status;
23923         status = pthread_create( &t, &attr, task, NULL );
23924 #if HAVE_PTHREADS < 7
23925         if( status < 0 ) status = errno;
23926 #endif
23927         if( status ) return status;
23928 #else
23929         /* Draft 4 pthreads */
23930         status = pthread_create( &t, pthread_attr_default, task, NULL );
23931         if( status ) return errno;
23932
23933         /* give thread a chance to complete */
23934         /* it should remain joinable and hence detachable */
23935         sleep( 1 );
23936
23937         status = pthread_detach( &t );
23938         if( status ) return errno;
23939 #endif
23940
23941 #ifdef HAVE_LINUX_THREADS
23942         pthread_kill_other_threads_np();
23943 #endif
23944
23945         return 0;
23946
23947 }
23948
23949 _ACEOF
23950 rm -f conftest$ac_exeext
23951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23952   (eval $ac_link) 2>&5
23953   ac_status=$?
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957   (eval $ac_try) 2>&5
23958   ac_status=$?
23959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960   (exit $ac_status); }; }; then
23961   ol_cv_pthread_lib_lpthreads=yes
23962 else
23963   echo "$as_me: program exited with status $ac_status" >&5
23964 echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23966
23967 ( exit $ac_status )
23968 ol_cv_pthread_lib_lpthreads=no
23969 fi
23970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23971 fi
23972
23973                 # restore the LIBS
23974                 LIBS="$ol_LIBS"
23975
23976 fi
23977 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
23978 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
23979
23980         if test $ol_cv_pthread_lib_lpthreads = yes ; then
23981                 ol_link_pthreads="-lpthreads"
23982                 ol_link_threads=posix
23983         fi
23984 fi
23985
23986
23987                 if test $ol_link_threads != no ; then
23988                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
23989
23990                                                 save_CPPFLAGS="$CPPFLAGS"
23991                         save_LIBS="$LIBS"
23992                         LIBS="$LTHREAD_LIBS $LIBS"
23993
23994
23995
23996
23997 for ac_func in sched_yield pthread_yield thr_yield
23998 do
23999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24000 echo "$as_me:$LINENO: checking for $ac_func" >&5
24001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24002 if eval "test \"\${$as_ac_var+set}\" = set"; then
24003   echo $ECHO_N "(cached) $ECHO_C" >&6
24004 else
24005   cat >conftest.$ac_ext <<_ACEOF
24006 /* confdefs.h.  */
24007 _ACEOF
24008 cat confdefs.h >>conftest.$ac_ext
24009 cat >>conftest.$ac_ext <<_ACEOF
24010 /* end confdefs.h.  */
24011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24013 #define $ac_func innocuous_$ac_func
24014
24015 /* System header to define __stub macros and hopefully few prototypes,
24016     which can conflict with char $ac_func (); below.
24017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24018     <limits.h> exists even on freestanding compilers.  */
24019
24020 #ifdef __STDC__
24021 # include <limits.h>
24022 #else
24023 # include <assert.h>
24024 #endif
24025
24026 #undef $ac_func
24027
24028 /* Override any gcc2 internal prototype to avoid an error.  */
24029 #ifdef __cplusplus
24030 extern "C"
24031 {
24032 #endif
24033 /* We use char because int might match the return type of a gcc2
24034    builtin and then its argument prototype would still apply.  */
24035 char $ac_func ();
24036 /* The GNU C library defines this for functions which it implements
24037     to always fail with ENOSYS.  Some functions are actually named
24038     something starting with __ and the normal name is an alias.  */
24039 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24040 choke me
24041 #else
24042 char (*f) () = $ac_func;
24043 #endif
24044 #ifdef __cplusplus
24045 }
24046 #endif
24047
24048 int
24049 main ()
24050 {
24051 return f != $ac_func;
24052   ;
24053   return 0;
24054 }
24055 _ACEOF
24056 rm -f conftest.$ac_objext conftest$ac_exeext
24057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24058   (eval $ac_link) 2>conftest.er1
24059   ac_status=$?
24060   grep -v '^ *+' conftest.er1 >conftest.err
24061   rm -f conftest.er1
24062   cat conftest.err >&5
24063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064   (exit $ac_status); } &&
24065          { ac_try='test -z "$ac_c_werror_flag"
24066                          || test ! -s conftest.err'
24067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24068   (eval $ac_try) 2>&5
24069   ac_status=$?
24070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); }; } &&
24072          { ac_try='test -s conftest$ac_exeext'
24073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074   (eval $ac_try) 2>&5
24075   ac_status=$?
24076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077   (exit $ac_status); }; }; then
24078   eval "$as_ac_var=yes"
24079 else
24080   echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24082
24083 eval "$as_ac_var=no"
24084 fi
24085 rm -f conftest.err conftest.$ac_objext \
24086       conftest$ac_exeext conftest.$ac_ext
24087 fi
24088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24089 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24090 if test `eval echo '${'$as_ac_var'}'` = yes; then
24091   cat >>confdefs.h <<_ACEOF
24092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24093 _ACEOF
24094
24095 fi
24096 done
24097
24098
24099                         if test $ac_cv_func_sched_yield = no &&
24100                            test $ac_cv_func_pthread_yield = no &&
24101                            test $ac_cv_func_thr_yield = no ; then
24102                                                                 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24103 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24104 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24105   echo $ECHO_N "(cached) $ECHO_C" >&6
24106 else
24107   ac_check_lib_save_LIBS=$LIBS
24108 LIBS="-lrt  $LIBS"
24109 cat >conftest.$ac_ext <<_ACEOF
24110 /* confdefs.h.  */
24111 _ACEOF
24112 cat confdefs.h >>conftest.$ac_ext
24113 cat >>conftest.$ac_ext <<_ACEOF
24114 /* end confdefs.h.  */
24115
24116 /* Override any gcc2 internal prototype to avoid an error.  */
24117 #ifdef __cplusplus
24118 extern "C"
24119 #endif
24120 /* We use char because int might match the return type of a gcc2
24121    builtin and then its argument prototype would still apply.  */
24122 char sched_yield ();
24123 int
24124 main ()
24125 {
24126 sched_yield ();
24127   ;
24128   return 0;
24129 }
24130 _ACEOF
24131 rm -f conftest.$ac_objext conftest$ac_exeext
24132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24133   (eval $ac_link) 2>conftest.er1
24134   ac_status=$?
24135   grep -v '^ *+' conftest.er1 >conftest.err
24136   rm -f conftest.er1
24137   cat conftest.err >&5
24138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139   (exit $ac_status); } &&
24140          { ac_try='test -z "$ac_c_werror_flag"
24141                          || test ! -s conftest.err'
24142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143   (eval $ac_try) 2>&5
24144   ac_status=$?
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); }; } &&
24147          { ac_try='test -s conftest$ac_exeext'
24148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149   (eval $ac_try) 2>&5
24150   ac_status=$?
24151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152   (exit $ac_status); }; }; then
24153   ac_cv_lib_rt_sched_yield=yes
24154 else
24155   echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 ac_cv_lib_rt_sched_yield=no
24159 fi
24160 rm -f conftest.err conftest.$ac_objext \
24161       conftest$ac_exeext conftest.$ac_ext
24162 LIBS=$ac_check_lib_save_LIBS
24163 fi
24164 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24165 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24166 if test $ac_cv_lib_rt_sched_yield = yes; then
24167   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24168
24169 cat >>confdefs.h <<\_ACEOF
24170 #define HAVE_SCHED_YIELD 1
24171 _ACEOF
24172
24173                                         ac_cv_func_sched_yield=yes
24174 else
24175   ac_cv_func_sched_yield=no
24176 fi
24177
24178                         fi
24179                         if test $ac_cv_func_sched_yield = no &&
24180                            test $ac_cv_func_pthread_yield = no &&
24181                            test "$ac_cv_func_thr_yield" = no ; then
24182                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24183 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24184                         fi
24185
24186
24187
24188 for ac_func in pthread_kill pthread_rwlock_destroy
24189 do
24190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24191 echo "$as_me:$LINENO: checking for $ac_func" >&5
24192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24193 if eval "test \"\${$as_ac_var+set}\" = set"; then
24194   echo $ECHO_N "(cached) $ECHO_C" >&6
24195 else
24196   cat >conftest.$ac_ext <<_ACEOF
24197 /* confdefs.h.  */
24198 _ACEOF
24199 cat confdefs.h >>conftest.$ac_ext
24200 cat >>conftest.$ac_ext <<_ACEOF
24201 /* end confdefs.h.  */
24202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24204 #define $ac_func innocuous_$ac_func
24205
24206 /* System header to define __stub macros and hopefully few prototypes,
24207     which can conflict with char $ac_func (); below.
24208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24209     <limits.h> exists even on freestanding compilers.  */
24210
24211 #ifdef __STDC__
24212 # include <limits.h>
24213 #else
24214 # include <assert.h>
24215 #endif
24216
24217 #undef $ac_func
24218
24219 /* Override any gcc2 internal prototype to avoid an error.  */
24220 #ifdef __cplusplus
24221 extern "C"
24222 {
24223 #endif
24224 /* We use char because int might match the return type of a gcc2
24225    builtin and then its argument prototype would still apply.  */
24226 char $ac_func ();
24227 /* The GNU C library defines this for functions which it implements
24228     to always fail with ENOSYS.  Some functions are actually named
24229     something starting with __ and the normal name is an alias.  */
24230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24231 choke me
24232 #else
24233 char (*f) () = $ac_func;
24234 #endif
24235 #ifdef __cplusplus
24236 }
24237 #endif
24238
24239 int
24240 main ()
24241 {
24242 return f != $ac_func;
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 rm -f conftest.$ac_objext conftest$ac_exeext
24248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24249   (eval $ac_link) 2>conftest.er1
24250   ac_status=$?
24251   grep -v '^ *+' conftest.er1 >conftest.err
24252   rm -f conftest.er1
24253   cat conftest.err >&5
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); } &&
24256          { ac_try='test -z "$ac_c_werror_flag"
24257                          || test ! -s conftest.err'
24258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259   (eval $ac_try) 2>&5
24260   ac_status=$?
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); }; } &&
24263          { ac_try='test -s conftest$ac_exeext'
24264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265   (eval $ac_try) 2>&5
24266   ac_status=$?
24267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268   (exit $ac_status); }; }; then
24269   eval "$as_ac_var=yes"
24270 else
24271   echo "$as_me: failed program was:" >&5
24272 sed 's/^/| /' conftest.$ac_ext >&5
24273
24274 eval "$as_ac_var=no"
24275 fi
24276 rm -f conftest.err conftest.$ac_objext \
24277       conftest$ac_exeext conftest.$ac_ext
24278 fi
24279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24281 if test `eval echo '${'$as_ac_var'}'` = yes; then
24282   cat >>confdefs.h <<_ACEOF
24283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24284 _ACEOF
24285
24286 fi
24287 done
24288
24289
24290                                                                         echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24291 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24292 if test "${ol_cv_func_pthread_detach+set}" = set; then
24293   echo $ECHO_N "(cached) $ECHO_C" >&6
24294 else
24295
24296                                                                 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h.  */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h.  */
24302
24303 #include <pthread.h>
24304 #ifndef NULL
24305 #define NULL (void*)0
24306 #endif
24307
24308 int
24309 main ()
24310 {
24311 pthread_detach(NULL);
24312   ;
24313   return 0;
24314 }
24315 _ACEOF
24316 rm -f conftest.$ac_objext conftest$ac_exeext
24317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24318   (eval $ac_link) 2>conftest.er1
24319   ac_status=$?
24320   grep -v '^ *+' conftest.er1 >conftest.err
24321   rm -f conftest.er1
24322   cat conftest.err >&5
24323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324   (exit $ac_status); } &&
24325          { ac_try='test -z "$ac_c_werror_flag"
24326                          || test ! -s conftest.err'
24327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328   (eval $ac_try) 2>&5
24329   ac_status=$?
24330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331   (exit $ac_status); }; } &&
24332          { ac_try='test -s conftest$ac_exeext'
24333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334   (eval $ac_try) 2>&5
24335   ac_status=$?
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); }; }; then
24338   ol_cv_func_pthread_detach=yes
24339 else
24340   echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24342
24343 ol_cv_func_pthread_detach=no
24344 fi
24345 rm -f conftest.err conftest.$ac_objext \
24346       conftest$ac_exeext conftest.$ac_ext
24347
24348 fi
24349 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24350 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
24351
24352                         if test $ol_cv_func_pthread_detach = no ; then
24353                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24354 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24355    { (exit 1); exit 1; }; }
24356                         fi
24357
24358
24359 cat >>confdefs.h <<\_ACEOF
24360 #define HAVE_PTHREAD_DETACH 1
24361 _ACEOF
24362
24363
24364
24365
24366
24367
24368 for ac_func in \
24369                                 pthread_setconcurrency \
24370                                 pthread_getconcurrency \
24371                                 thr_setconcurrency \
24372                                 thr_getconcurrency \
24373
24374 do
24375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24376 echo "$as_me:$LINENO: checking for $ac_func" >&5
24377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24378 if eval "test \"\${$as_ac_var+set}\" = set"; then
24379   echo $ECHO_N "(cached) $ECHO_C" >&6
24380 else
24381   cat >conftest.$ac_ext <<_ACEOF
24382 /* confdefs.h.  */
24383 _ACEOF
24384 cat confdefs.h >>conftest.$ac_ext
24385 cat >>conftest.$ac_ext <<_ACEOF
24386 /* end confdefs.h.  */
24387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24389 #define $ac_func innocuous_$ac_func
24390
24391 /* System header to define __stub macros and hopefully few prototypes,
24392     which can conflict with char $ac_func (); below.
24393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24394     <limits.h> exists even on freestanding compilers.  */
24395
24396 #ifdef __STDC__
24397 # include <limits.h>
24398 #else
24399 # include <assert.h>
24400 #endif
24401
24402 #undef $ac_func
24403
24404 /* Override any gcc2 internal prototype to avoid an error.  */
24405 #ifdef __cplusplus
24406 extern "C"
24407 {
24408 #endif
24409 /* We use char because int might match the return type of a gcc2
24410    builtin and then its argument prototype would still apply.  */
24411 char $ac_func ();
24412 /* The GNU C library defines this for functions which it implements
24413     to always fail with ENOSYS.  Some functions are actually named
24414     something starting with __ and the normal name is an alias.  */
24415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24416 choke me
24417 #else
24418 char (*f) () = $ac_func;
24419 #endif
24420 #ifdef __cplusplus
24421 }
24422 #endif
24423
24424 int
24425 main ()
24426 {
24427 return f != $ac_func;
24428   ;
24429   return 0;
24430 }
24431 _ACEOF
24432 rm -f conftest.$ac_objext conftest$ac_exeext
24433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24434   (eval $ac_link) 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } &&
24441          { ac_try='test -z "$ac_c_werror_flag"
24442                          || test ! -s conftest.err'
24443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24444   (eval $ac_try) 2>&5
24445   ac_status=$?
24446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447   (exit $ac_status); }; } &&
24448          { ac_try='test -s conftest$ac_exeext'
24449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24450   (eval $ac_try) 2>&5
24451   ac_status=$?
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); }; }; then
24454   eval "$as_ac_var=yes"
24455 else
24456   echo "$as_me: failed program was:" >&5
24457 sed 's/^/| /' conftest.$ac_ext >&5
24458
24459 eval "$as_ac_var=no"
24460 fi
24461 rm -f conftest.err conftest.$ac_objext \
24462       conftest$ac_exeext conftest.$ac_ext
24463 fi
24464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24466 if test `eval echo '${'$as_ac_var'}'` = yes; then
24467   cat >>confdefs.h <<_ACEOF
24468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24469 _ACEOF
24470
24471 fi
24472 done
24473
24474
24475
24476
24477 for ac_func in pthread_kill_other_threads_np
24478 do
24479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24480 echo "$as_me:$LINENO: checking for $ac_func" >&5
24481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24482 if eval "test \"\${$as_ac_var+set}\" = set"; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 else
24485   cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24493 #define $ac_func innocuous_$ac_func
24494
24495 /* System header to define __stub macros and hopefully few prototypes,
24496     which can conflict with char $ac_func (); below.
24497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24498     <limits.h> exists even on freestanding compilers.  */
24499
24500 #ifdef __STDC__
24501 # include <limits.h>
24502 #else
24503 # include <assert.h>
24504 #endif
24505
24506 #undef $ac_func
24507
24508 /* Override any gcc2 internal prototype to avoid an error.  */
24509 #ifdef __cplusplus
24510 extern "C"
24511 {
24512 #endif
24513 /* We use char because int might match the return type of a gcc2
24514    builtin and then its argument prototype would still apply.  */
24515 char $ac_func ();
24516 /* The GNU C library defines this for functions which it implements
24517     to always fail with ENOSYS.  Some functions are actually named
24518     something starting with __ and the normal name is an alias.  */
24519 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24520 choke me
24521 #else
24522 char (*f) () = $ac_func;
24523 #endif
24524 #ifdef __cplusplus
24525 }
24526 #endif
24527
24528 int
24529 main ()
24530 {
24531 return f != $ac_func;
24532   ;
24533   return 0;
24534 }
24535 _ACEOF
24536 rm -f conftest.$ac_objext conftest$ac_exeext
24537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24538   (eval $ac_link) 2>conftest.er1
24539   ac_status=$?
24540   grep -v '^ *+' conftest.er1 >conftest.err
24541   rm -f conftest.er1
24542   cat conftest.err >&5
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); } &&
24545          { ac_try='test -z "$ac_c_werror_flag"
24546                          || test ! -s conftest.err'
24547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548   (eval $ac_try) 2>&5
24549   ac_status=$?
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); }; } &&
24552          { ac_try='test -s conftest$ac_exeext'
24553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24554   (eval $ac_try) 2>&5
24555   ac_status=$?
24556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557   (exit $ac_status); }; }; then
24558   eval "$as_ac_var=yes"
24559 else
24560   echo "$as_me: failed program was:" >&5
24561 sed 's/^/| /' conftest.$ac_ext >&5
24562
24563 eval "$as_ac_var=no"
24564 fi
24565 rm -f conftest.err conftest.$ac_objext \
24566       conftest$ac_exeext conftest.$ac_ext
24567 fi
24568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24570 if test `eval echo '${'$as_ac_var'}'` = yes; then
24571   cat >>confdefs.h <<_ACEOF
24572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24573 _ACEOF
24574
24575 fi
24576 done
24577
24578         echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24579 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
24580 if test "${ol_cv_sys_linux_threads+set}" = set; then
24581   echo $ECHO_N "(cached) $ECHO_C" >&6
24582 else
24583   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24584 fi
24585 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24586 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
24587
24588
24589
24590
24591         echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24592 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
24593 if test "${ol_cv_linux_threads+set}" = set; then
24594   echo $ECHO_N "(cached) $ECHO_C" >&6
24595 else
24596
24597                 if test $ol_cv_header_linux_threads = yes &&
24598                    test $ol_cv_sys_linux_threads = yes; then
24599                         ol_cv_linux_threads=yes
24600                 elif test $ol_cv_header_linux_threads = no &&
24601                      test $ol_cv_sys_linux_threads = no; then
24602                         ol_cv_linux_threads=no
24603                 else
24604                         ol_cv_linux_threads=error
24605                 fi
24606
24607 fi
24608 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24609 echo "${ECHO_T}$ol_cv_linux_threads" >&6
24610
24611
24612                         if test $ol_cv_linux_threads = error; then
24613                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24614 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24615    { (exit 1); exit 1; }; };
24616                         fi
24617
24618                         echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24619 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
24620 if test "${ol_cv_pthread_create_works+set}" = set; then
24621   echo $ECHO_N "(cached) $ECHO_C" >&6
24622 else
24623
24624                         if test "$cross_compiling" = yes; then
24625                                 ol_cv_pthread_create_works=yes
24626 else
24627   cat >conftest.$ac_ext <<_ACEOF
24628 /* confdefs.h.  */
24629 _ACEOF
24630 cat confdefs.h >>conftest.$ac_ext
24631 cat >>conftest.$ac_ext <<_ACEOF
24632 /* end confdefs.h.  */
24633
24634 /* pthread test headers */
24635 #include <pthread.h>
24636 #if HAVE_PTHREADS < 7
24637 #include <errno.h>
24638 #endif
24639 #ifndef NULL
24640 #define NULL (void*)0
24641 #endif
24642
24643 static void *task(p)
24644         void *p;
24645 {
24646         return (void *) (p == NULL);
24647 }
24648
24649
24650 int main(argc, argv)
24651         int argc;
24652         char **argv;
24653 {
24654
24655         /* pthread test function */
24656 #ifndef PTHREAD_CREATE_DETACHED
24657 #define PTHREAD_CREATE_DETACHED 1
24658 #endif
24659         pthread_t t;
24660         int status;
24661         int detach = PTHREAD_CREATE_DETACHED;
24662
24663 #if HAVE_PTHREADS > 4
24664         /* Final pthreads */
24665         pthread_attr_t attr;
24666
24667         status = pthread_attr_init(&attr);
24668         if( status ) return status;
24669
24670 #if HAVE_PTHREADS < 7
24671         status = pthread_attr_setdetachstate(&attr, &detach);
24672         if( status < 0 ) status = errno;
24673 #else
24674         status = pthread_attr_setdetachstate(&attr, detach);
24675 #endif
24676         if( status ) return status;
24677         status = pthread_create( &t, &attr, task, NULL );
24678 #if HAVE_PTHREADS < 7
24679         if( status < 0 ) status = errno;
24680 #endif
24681         if( status ) return status;
24682 #else
24683         /* Draft 4 pthreads */
24684         status = pthread_create( &t, pthread_attr_default, task, NULL );
24685         if( status ) return errno;
24686
24687         /* give thread a chance to complete */
24688         /* it should remain joinable and hence detachable */
24689         sleep( 1 );
24690
24691         status = pthread_detach( &t );
24692         if( status ) return errno;
24693 #endif
24694
24695 #ifdef HAVE_LINUX_THREADS
24696         pthread_kill_other_threads_np();
24697 #endif
24698
24699         return 0;
24700
24701 }
24702
24703 _ACEOF
24704 rm -f conftest$ac_exeext
24705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24706   (eval $ac_link) 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24711   (eval $ac_try) 2>&5
24712   ac_status=$?
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); }; }; then
24715   ol_cv_pthread_create_works=yes
24716 else
24717   echo "$as_me: program exited with status $ac_status" >&5
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24720
24721 ( exit $ac_status )
24722 ol_cv_pthread_create_works=no
24723 fi
24724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24725 fi
24726 fi
24727 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
24728 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
24729
24730                         if test $ol_cv_pthread_create_works = no ; then
24731                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
24732 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
24733    { (exit 1); exit 1; }; }
24734                         fi
24735
24736                                                 if test $ol_with_yielding_select = auto ; then
24737                                 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
24738 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
24739 if test "${ol_cv_pthread_select_yields+set}" = set; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742
24743                                 if test "$cross_compiling" = yes; then
24744   ol_cv_pthread_select_yields=cross
24745 else
24746   cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h.  */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h.  */
24752
24753 #include <sys/types.h>
24754 #include <sys/time.h>
24755 #include <unistd.h>
24756 #include <pthread.h>
24757 #ifndef NULL
24758 #define NULL (void*) 0
24759 #endif
24760
24761 static int fildes[2];
24762
24763 static void *task(p)
24764         void *p;
24765 {
24766         int i;
24767         struct timeval tv;
24768
24769         fd_set rfds;
24770
24771         tv.tv_sec=10;
24772         tv.tv_usec=0;
24773
24774         FD_ZERO(&rfds);
24775         FD_SET(fildes[0], &rfds);
24776
24777         /* we're not interested in any fds */
24778         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
24779
24780         if(i < 0) {
24781                 perror("select");
24782                 exit(10);
24783         }
24784
24785         exit(0); /* if we exit here, the select blocked the whole process */
24786 }
24787
24788 int main(argc, argv)
24789         int argc;
24790         char **argv;
24791 {
24792         pthread_t t;
24793
24794         /* create a pipe to select */
24795         if(pipe(&fildes[0])) {
24796                 perror("select");
24797                 exit(1);
24798         }
24799
24800 #ifdef HAVE_PTHREAD_SETCONCURRENCY
24801         (void) pthread_setconcurrency(2);
24802 #else
24803 #ifdef HAVE_THR_SETCONCURRENCY
24804         /* Set Solaris LWP concurrency to 2 */
24805         thr_setconcurrency(2);
24806 #endif
24807 #endif
24808
24809 #if HAVE_PTHREADS < 6
24810         pthread_create(&t, pthread_attr_default, task, NULL);
24811 #else
24812         pthread_create(&t, NULL, task, NULL);
24813 #endif
24814
24815         /* make sure task runs first */
24816 #if HAVE_THR_YIELD
24817         thr_yield();
24818 #elif defined( HAVE_SCHED_YIELD )
24819         sched_yield();
24820 #elif defined( HAVE_PTHREAD_YIELD )
24821         pthread_yield();
24822 #endif
24823
24824         exit(2);
24825 }
24826 _ACEOF
24827 rm -f conftest$ac_exeext
24828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24829   (eval $ac_link) 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834   (eval $ac_try) 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); }; }; then
24838   ol_cv_pthread_select_yields=no
24839 else
24840   echo "$as_me: program exited with status $ac_status" >&5
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ( exit $ac_status )
24845 ol_cv_pthread_select_yields=yes
24846 fi
24847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24848 fi
24849 fi
24850 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
24851 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
24852
24853                                 if test $ol_cv_pthread_select_yields = cross ; then
24854                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
24855 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
24856    { (exit 1); exit 1; }; }
24857                                 fi
24858
24859                                 if test $ol_cv_pthread_select_yields = yes ; then
24860                                         ol_with_yielding_select=yes
24861                                 fi
24862                         fi
24863
24864                                                 CPPFLAGS="$save_CPPFLAGS"
24865                         LIBS="$save_LIBS"
24866                 else
24867                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
24868 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
24869    { (exit 1); exit 1; }; }
24870                 fi
24871         fi
24872
24873         if test $ol_with_threads = posix ; then
24874                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
24875 echo "$as_me: error: could not locate POSIX Threads" >&2;}
24876    { (exit 1); exit 1; }; }
24877         fi
24878         ;;
24879 esac
24880
24881 case $ol_with_threads in auto | yes | mach)
24882
24883
24884
24885 for ac_header in mach/cthreads.h cthreads.h
24886 do
24887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24889   echo "$as_me:$LINENO: checking for $ac_header" >&5
24890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24892   echo $ECHO_N "(cached) $ECHO_C" >&6
24893 fi
24894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24896 else
24897   # Is the header compilable?
24898 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24900 cat >conftest.$ac_ext <<_ACEOF
24901 /* confdefs.h.  */
24902 _ACEOF
24903 cat confdefs.h >>conftest.$ac_ext
24904 cat >>conftest.$ac_ext <<_ACEOF
24905 /* end confdefs.h.  */
24906 $ac_includes_default
24907 #include <$ac_header>
24908 _ACEOF
24909 rm -f conftest.$ac_objext
24910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24911   (eval $ac_compile) 2>conftest.er1
24912   ac_status=$?
24913   grep -v '^ *+' conftest.er1 >conftest.err
24914   rm -f conftest.er1
24915   cat conftest.err >&5
24916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917   (exit $ac_status); } &&
24918          { ac_try='test -z "$ac_c_werror_flag"
24919                          || test ! -s conftest.err'
24920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921   (eval $ac_try) 2>&5
24922   ac_status=$?
24923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924   (exit $ac_status); }; } &&
24925          { ac_try='test -s conftest.$ac_objext'
24926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24927   (eval $ac_try) 2>&5
24928   ac_status=$?
24929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24930   (exit $ac_status); }; }; then
24931   ac_header_compiler=yes
24932 else
24933   echo "$as_me: failed program was:" >&5
24934 sed 's/^/| /' conftest.$ac_ext >&5
24935
24936 ac_header_compiler=no
24937 fi
24938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24939 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24940 echo "${ECHO_T}$ac_header_compiler" >&6
24941
24942 # Is the header present?
24943 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24945 cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h.  */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h.  */
24951 #include <$ac_header>
24952 _ACEOF
24953 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24954   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24955   ac_status=$?
24956   grep -v '^ *+' conftest.er1 >conftest.err
24957   rm -f conftest.er1
24958   cat conftest.err >&5
24959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960   (exit $ac_status); } >/dev/null; then
24961   if test -s conftest.err; then
24962     ac_cpp_err=$ac_c_preproc_warn_flag
24963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24964   else
24965     ac_cpp_err=
24966   fi
24967 else
24968   ac_cpp_err=yes
24969 fi
24970 if test -z "$ac_cpp_err"; then
24971   ac_header_preproc=yes
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976   ac_header_preproc=no
24977 fi
24978 rm -f conftest.err conftest.$ac_ext
24979 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24980 echo "${ECHO_T}$ac_header_preproc" >&6
24981
24982 # So?  What about this header?
24983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24984   yes:no: )
24985     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24987     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24989     ac_header_preproc=yes
24990     ;;
24991   no:yes:* )
24992     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24994     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24995 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24996     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24998     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24999 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25000     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25002     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25004     (
25005       cat <<\_ASBOX
25006 ## ------------------------------------------ ##
25007 ## Report this to the AC_PACKAGE_NAME lists.  ##
25008 ## ------------------------------------------ ##
25009 _ASBOX
25010     ) |
25011       sed "s/^/$as_me: WARNING:     /" >&2
25012     ;;
25013 esac
25014 echo "$as_me:$LINENO: checking for $ac_header" >&5
25015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25017   echo $ECHO_N "(cached) $ECHO_C" >&6
25018 else
25019   eval "$as_ac_Header=\$ac_header_preproc"
25020 fi
25021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25022 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25023
25024 fi
25025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25026   cat >>confdefs.h <<_ACEOF
25027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25028 _ACEOF
25029
25030 fi
25031
25032 done
25033
25034         if test $ac_cv_header_mach_cthreads_h = yes ; then
25035                 ol_with_threads=found
25036
25037                                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25038 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25039 if test "${ac_cv_func_cthread_fork+set}" = set; then
25040   echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042   cat >conftest.$ac_ext <<_ACEOF
25043 /* confdefs.h.  */
25044 _ACEOF
25045 cat confdefs.h >>conftest.$ac_ext
25046 cat >>conftest.$ac_ext <<_ACEOF
25047 /* end confdefs.h.  */
25048 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25050 #define cthread_fork innocuous_cthread_fork
25051
25052 /* System header to define __stub macros and hopefully few prototypes,
25053     which can conflict with char cthread_fork (); below.
25054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25055     <limits.h> exists even on freestanding compilers.  */
25056
25057 #ifdef __STDC__
25058 # include <limits.h>
25059 #else
25060 # include <assert.h>
25061 #endif
25062
25063 #undef cthread_fork
25064
25065 /* Override any gcc2 internal prototype to avoid an error.  */
25066 #ifdef __cplusplus
25067 extern "C"
25068 {
25069 #endif
25070 /* We use char because int might match the return type of a gcc2
25071    builtin and then its argument prototype would still apply.  */
25072 char cthread_fork ();
25073 /* The GNU C library defines this for functions which it implements
25074     to always fail with ENOSYS.  Some functions are actually named
25075     something starting with __ and the normal name is an alias.  */
25076 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25077 choke me
25078 #else
25079 char (*f) () = cthread_fork;
25080 #endif
25081 #ifdef __cplusplus
25082 }
25083 #endif
25084
25085 int
25086 main ()
25087 {
25088 return f != cthread_fork;
25089   ;
25090   return 0;
25091 }
25092 _ACEOF
25093 rm -f conftest.$ac_objext conftest$ac_exeext
25094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25095   (eval $ac_link) 2>conftest.er1
25096   ac_status=$?
25097   grep -v '^ *+' conftest.er1 >conftest.err
25098   rm -f conftest.er1
25099   cat conftest.err >&5
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); } &&
25102          { ac_try='test -z "$ac_c_werror_flag"
25103                          || test ! -s conftest.err'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; } &&
25109          { ac_try='test -s conftest$ac_exeext'
25110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25111   (eval $ac_try) 2>&5
25112   ac_status=$?
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); }; }; then
25115   ac_cv_func_cthread_fork=yes
25116 else
25117   echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25119
25120 ac_cv_func_cthread_fork=no
25121 fi
25122 rm -f conftest.err conftest.$ac_objext \
25123       conftest$ac_exeext conftest.$ac_ext
25124 fi
25125 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25126 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25127 if test $ac_cv_func_cthread_fork = yes; then
25128   ol_link_threads=yes
25129 fi
25130
25131
25132                 if test $ol_link_threads = no ; then
25133                                                                         echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25134 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25135 if test "${ol_cv_cthread_all_load+set}" = set; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138
25139                                                                 save_LIBS="$LIBS"
25140                                 LIBS="-all_load $LIBS"
25141                                 cat >conftest.$ac_ext <<_ACEOF
25142 /* confdefs.h.  */
25143 _ACEOF
25144 cat confdefs.h >>conftest.$ac_ext
25145 cat >>conftest.$ac_ext <<_ACEOF
25146 /* end confdefs.h.  */
25147 #include <mach/cthreads.h>
25148 int
25149 main ()
25150 {
25151
25152                                         cthread_fork((void *)0, (void *)0);
25153
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext conftest$ac_exeext
25159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160   (eval $ac_link) 2>conftest.er1
25161   ac_status=$?
25162   grep -v '^ *+' conftest.er1 >conftest.err
25163   rm -f conftest.er1
25164   cat conftest.err >&5
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); } &&
25167          { ac_try='test -z "$ac_c_werror_flag"
25168                          || test ! -s conftest.err'
25169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170   (eval $ac_try) 2>&5
25171   ac_status=$?
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); }; } &&
25174          { ac_try='test -s conftest$ac_exeext'
25175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176   (eval $ac_try) 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   ol_cv_cthread_all_load=yes
25181 else
25182   echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185 ol_cv_cthread_all_load=no
25186 fi
25187 rm -f conftest.err conftest.$ac_objext \
25188       conftest$ac_exeext conftest.$ac_ext
25189                                                                 LIBS="$save_LIBS"
25190
25191 fi
25192 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25193 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25194
25195                         if test $ol_cv_cthread_all_load = yes ; then
25196                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25197                                 ol_link_threads=mach
25198                                 ol_with_threads=found
25199                         fi
25200                 fi
25201
25202         elif test $ac_cv_header_cthreads_h = yes ; then
25203
25204                 ol_with_threads=found
25205
25206                                 save_LIBS="$LIBS"
25207                 LIBS="$LIBS -lthreads"
25208                 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25209 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25210 if test "${ac_cv_func_cthread_fork+set}" = set; then
25211   echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213   cat >conftest.$ac_ext <<_ACEOF
25214 /* confdefs.h.  */
25215 _ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h.  */
25219 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25221 #define cthread_fork innocuous_cthread_fork
25222
25223 /* System header to define __stub macros and hopefully few prototypes,
25224     which can conflict with char cthread_fork (); below.
25225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25226     <limits.h> exists even on freestanding compilers.  */
25227
25228 #ifdef __STDC__
25229 # include <limits.h>
25230 #else
25231 # include <assert.h>
25232 #endif
25233
25234 #undef cthread_fork
25235
25236 /* Override any gcc2 internal prototype to avoid an error.  */
25237 #ifdef __cplusplus
25238 extern "C"
25239 {
25240 #endif
25241 /* We use char because int might match the return type of a gcc2
25242    builtin and then its argument prototype would still apply.  */
25243 char cthread_fork ();
25244 /* The GNU C library defines this for functions which it implements
25245     to always fail with ENOSYS.  Some functions are actually named
25246     something starting with __ and the normal name is an alias.  */
25247 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25248 choke me
25249 #else
25250 char (*f) () = cthread_fork;
25251 #endif
25252 #ifdef __cplusplus
25253 }
25254 #endif
25255
25256 int
25257 main ()
25258 {
25259 return f != cthread_fork;
25260   ;
25261   return 0;
25262 }
25263 _ACEOF
25264 rm -f conftest.$ac_objext conftest$ac_exeext
25265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25266   (eval $ac_link) 2>conftest.er1
25267   ac_status=$?
25268   grep -v '^ *+' conftest.er1 >conftest.err
25269   rm -f conftest.er1
25270   cat conftest.err >&5
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); } &&
25273          { ac_try='test -z "$ac_c_werror_flag"
25274                          || test ! -s conftest.err'
25275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276   (eval $ac_try) 2>&5
25277   ac_status=$?
25278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279   (exit $ac_status); }; } &&
25280          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25286   ac_cv_func_cthread_fork=yes
25287 else
25288   echo "$as_me: failed program was:" >&5
25289 sed 's/^/| /' conftest.$ac_ext >&5
25290
25291 ac_cv_func_cthread_fork=no
25292 fi
25293 rm -f conftest.err conftest.$ac_objext \
25294       conftest$ac_exeext conftest.$ac_ext
25295 fi
25296 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25297 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25298 if test $ac_cv_func_cthread_fork = yes; then
25299   ol_link_threads=yes
25300 fi
25301
25302                 LIBS="$save_LIBS"
25303
25304                 if test $ol_link_threads = yes ; then
25305                         LTHREAD_LIBS="-lthreads"
25306                         ol_link_threads=mach
25307                         ol_with_threads=found
25308                 else
25309                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25310 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25311    { (exit 1); exit 1; }; }
25312                 fi
25313
25314         elif test $ol_with_threads = mach ; then
25315                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25316 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25317    { (exit 1); exit 1; }; }
25318         fi
25319
25320         if test $ol_link_threads = mach ; then
25321
25322 cat >>confdefs.h <<\_ACEOF
25323 #define HAVE_MACH_CTHREADS 1
25324 _ACEOF
25325
25326         elif test $ol_with_threads = found ; then
25327                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25328 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25329    { (exit 1); exit 1; }; }
25330         fi
25331         ;;
25332 esac
25333
25334 case $ol_with_threads in auto | yes | pth)
25335
25336
25337 for ac_header in pth.h
25338 do
25339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25341   echo "$as_me:$LINENO: checking for $ac_header" >&5
25342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 fi
25346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25348 else
25349   # Is the header compilable?
25350 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25352 cat >conftest.$ac_ext <<_ACEOF
25353 /* confdefs.h.  */
25354 _ACEOF
25355 cat confdefs.h >>conftest.$ac_ext
25356 cat >>conftest.$ac_ext <<_ACEOF
25357 /* end confdefs.h.  */
25358 $ac_includes_default
25359 #include <$ac_header>
25360 _ACEOF
25361 rm -f conftest.$ac_objext
25362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25363   (eval $ac_compile) 2>conftest.er1
25364   ac_status=$?
25365   grep -v '^ *+' conftest.er1 >conftest.err
25366   rm -f conftest.er1
25367   cat conftest.err >&5
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); } &&
25370          { ac_try='test -z "$ac_c_werror_flag"
25371                          || test ! -s conftest.err'
25372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25373   (eval $ac_try) 2>&5
25374   ac_status=$?
25375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376   (exit $ac_status); }; } &&
25377          { ac_try='test -s conftest.$ac_objext'
25378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25379   (eval $ac_try) 2>&5
25380   ac_status=$?
25381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25382   (exit $ac_status); }; }; then
25383   ac_header_compiler=yes
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 ac_header_compiler=no
25389 fi
25390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25392 echo "${ECHO_T}$ac_header_compiler" >&6
25393
25394 # Is the header present?
25395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25397 cat >conftest.$ac_ext <<_ACEOF
25398 /* confdefs.h.  */
25399 _ACEOF
25400 cat confdefs.h >>conftest.$ac_ext
25401 cat >>conftest.$ac_ext <<_ACEOF
25402 /* end confdefs.h.  */
25403 #include <$ac_header>
25404 _ACEOF
25405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25406   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25407   ac_status=$?
25408   grep -v '^ *+' conftest.er1 >conftest.err
25409   rm -f conftest.er1
25410   cat conftest.err >&5
25411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25412   (exit $ac_status); } >/dev/null; then
25413   if test -s conftest.err; then
25414     ac_cpp_err=$ac_c_preproc_warn_flag
25415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25416   else
25417     ac_cpp_err=
25418   fi
25419 else
25420   ac_cpp_err=yes
25421 fi
25422 if test -z "$ac_cpp_err"; then
25423   ac_header_preproc=yes
25424 else
25425   echo "$as_me: failed program was:" >&5
25426 sed 's/^/| /' conftest.$ac_ext >&5
25427
25428   ac_header_preproc=no
25429 fi
25430 rm -f conftest.err conftest.$ac_ext
25431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25432 echo "${ECHO_T}$ac_header_preproc" >&6
25433
25434 # So?  What about this header?
25435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25436   yes:no: )
25437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25441     ac_header_preproc=yes
25442     ;;
25443   no:yes:* )
25444     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25446     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25447 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25448     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25450     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25451 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25452     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25454     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25456     (
25457       cat <<\_ASBOX
25458 ## ------------------------------------------ ##
25459 ## Report this to the AC_PACKAGE_NAME lists.  ##
25460 ## ------------------------------------------ ##
25461 _ASBOX
25462     ) |
25463       sed "s/^/$as_me: WARNING:     /" >&2
25464     ;;
25465 esac
25466 echo "$as_me:$LINENO: checking for $ac_header" >&5
25467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25469   echo $ECHO_N "(cached) $ECHO_C" >&6
25470 else
25471   eval "$as_ac_Header=\$ac_header_preproc"
25472 fi
25473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25474 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25475
25476 fi
25477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25478   cat >>confdefs.h <<_ACEOF
25479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25480 _ACEOF
25481
25482 fi
25483
25484 done
25485
25486
25487         if test $ac_cv_header_pth_h = yes ; then
25488                 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25489 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
25490 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25491   echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493   ac_check_lib_save_LIBS=$LIBS
25494 LIBS="-lpth  $LIBS"
25495 cat >conftest.$ac_ext <<_ACEOF
25496 /* confdefs.h.  */
25497 _ACEOF
25498 cat confdefs.h >>conftest.$ac_ext
25499 cat >>conftest.$ac_ext <<_ACEOF
25500 /* end confdefs.h.  */
25501
25502 /* Override any gcc2 internal prototype to avoid an error.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 /* We use char because int might match the return type of a gcc2
25507    builtin and then its argument prototype would still apply.  */
25508 char pth_version ();
25509 int
25510 main ()
25511 {
25512 pth_version ();
25513   ;
25514   return 0;
25515 }
25516 _ACEOF
25517 rm -f conftest.$ac_objext conftest$ac_exeext
25518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25519   (eval $ac_link) 2>conftest.er1
25520   ac_status=$?
25521   grep -v '^ *+' conftest.er1 >conftest.err
25522   rm -f conftest.er1
25523   cat conftest.err >&5
25524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525   (exit $ac_status); } &&
25526          { ac_try='test -z "$ac_c_werror_flag"
25527                          || test ! -s conftest.err'
25528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529   (eval $ac_try) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; } &&
25533          { ac_try='test -s conftest$ac_exeext'
25534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535   (eval $ac_try) 2>&5
25536   ac_status=$?
25537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538   (exit $ac_status); }; }; then
25539   ac_cv_lib_pth_pth_version=yes
25540 else
25541   echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.$ac_ext >&5
25543
25544 ac_cv_lib_pth_pth_version=no
25545 fi
25546 rm -f conftest.err conftest.$ac_objext \
25547       conftest$ac_exeext conftest.$ac_ext
25548 LIBS=$ac_check_lib_save_LIBS
25549 fi
25550 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25551 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
25552 if test $ac_cv_lib_pth_pth_version = yes; then
25553   have_pth=yes
25554 else
25555   have_pth=no
25556 fi
25557
25558
25559                 if test $have_pth = yes ; then
25560
25561 cat >>confdefs.h <<\_ACEOF
25562 #define HAVE_GNU_PTH 1
25563 _ACEOF
25564
25565                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25566                         ol_link_threads=pth
25567                         ol_with_threads=found
25568
25569                         if test $ol_with_yielding_select = auto ; then
25570                                 ol_with_yielding_select=yes
25571                         fi
25572                 fi
25573         fi
25574         ;;
25575 esac
25576
25577 case $ol_with_threads in auto | yes | lwp)
25578
25579
25580
25581 for ac_header in thread.h synch.h
25582 do
25583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25585   echo "$as_me:$LINENO: checking for $ac_header" >&5
25586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25588   echo $ECHO_N "(cached) $ECHO_C" >&6
25589 fi
25590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25592 else
25593   # Is the header compilable?
25594 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25595 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25596 cat >conftest.$ac_ext <<_ACEOF
25597 /* confdefs.h.  */
25598 _ACEOF
25599 cat confdefs.h >>conftest.$ac_ext
25600 cat >>conftest.$ac_ext <<_ACEOF
25601 /* end confdefs.h.  */
25602 $ac_includes_default
25603 #include <$ac_header>
25604 _ACEOF
25605 rm -f conftest.$ac_objext
25606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25607   (eval $ac_compile) 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } &&
25614          { ac_try='test -z "$ac_c_werror_flag"
25615                          || test ! -s conftest.err'
25616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617   (eval $ac_try) 2>&5
25618   ac_status=$?
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); }; } &&
25621          { ac_try='test -s conftest.$ac_objext'
25622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623   (eval $ac_try) 2>&5
25624   ac_status=$?
25625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626   (exit $ac_status); }; }; then
25627   ac_header_compiler=yes
25628 else
25629   echo "$as_me: failed program was:" >&5
25630 sed 's/^/| /' conftest.$ac_ext >&5
25631
25632 ac_header_compiler=no
25633 fi
25634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25636 echo "${ECHO_T}$ac_header_compiler" >&6
25637
25638 # Is the header present?
25639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25641 cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647 #include <$ac_header>
25648 _ACEOF
25649 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25650   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25651   ac_status=$?
25652   grep -v '^ *+' conftest.er1 >conftest.err
25653   rm -f conftest.er1
25654   cat conftest.err >&5
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); } >/dev/null; then
25657   if test -s conftest.err; then
25658     ac_cpp_err=$ac_c_preproc_warn_flag
25659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25660   else
25661     ac_cpp_err=
25662   fi
25663 else
25664   ac_cpp_err=yes
25665 fi
25666 if test -z "$ac_cpp_err"; then
25667   ac_header_preproc=yes
25668 else
25669   echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25671
25672   ac_header_preproc=no
25673 fi
25674 rm -f conftest.err conftest.$ac_ext
25675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25676 echo "${ECHO_T}$ac_header_preproc" >&6
25677
25678 # So?  What about this header?
25679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25680   yes:no: )
25681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25685     ac_header_preproc=yes
25686     ;;
25687   no:yes:* )
25688     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25690     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25691 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25692     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25694     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25695 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25696     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25698     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25700     (
25701       cat <<\_ASBOX
25702 ## ------------------------------------------ ##
25703 ## Report this to the AC_PACKAGE_NAME lists.  ##
25704 ## ------------------------------------------ ##
25705 _ASBOX
25706     ) |
25707       sed "s/^/$as_me: WARNING:     /" >&2
25708     ;;
25709 esac
25710 echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25713   echo $ECHO_N "(cached) $ECHO_C" >&6
25714 else
25715   eval "$as_ac_Header=\$ac_header_preproc"
25716 fi
25717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25719
25720 fi
25721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25722   cat >>confdefs.h <<_ACEOF
25723 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25724 _ACEOF
25725
25726 fi
25727
25728 done
25729
25730         if test $ac_cv_header_thread_h = yes &&
25731            test $ac_cv_header_synch_h = yes ; then
25732                 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
25733 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
25734 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737   ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lthread  $LIBS"
25739 cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745
25746 /* Override any gcc2 internal prototype to avoid an error.  */
25747 #ifdef __cplusplus
25748 extern "C"
25749 #endif
25750 /* We use char because int might match the return type of a gcc2
25751    builtin and then its argument prototype would still apply.  */
25752 char thr_create ();
25753 int
25754 main ()
25755 {
25756 thr_create ();
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext conftest$ac_exeext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25763   (eval $ac_link) 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } &&
25770          { ac_try='test -z "$ac_c_werror_flag"
25771                          || test ! -s conftest.err'
25772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773   (eval $ac_try) 2>&5
25774   ac_status=$?
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); }; } &&
25777          { ac_try='test -s conftest$ac_exeext'
25778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779   (eval $ac_try) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); }; }; then
25783   ac_cv_lib_thread_thr_create=yes
25784 else
25785   echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25787
25788 ac_cv_lib_thread_thr_create=no
25789 fi
25790 rm -f conftest.err conftest.$ac_objext \
25791       conftest$ac_exeext conftest.$ac_ext
25792 LIBS=$ac_check_lib_save_LIBS
25793 fi
25794 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
25795 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
25796 if test $ac_cv_lib_thread_thr_create = yes; then
25797   have_thr=yes
25798 else
25799   have_thr=no
25800 fi
25801
25802
25803                 if test $have_thr = yes ; then
25804
25805 cat >>confdefs.h <<\_ACEOF
25806 #define HAVE_THR 1
25807 _ACEOF
25808
25809                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
25810                         ol_link_threads=thr
25811
25812                         if test $ol_with_yielding_select = auto ; then
25813                                 ol_with_yielding_select=yes
25814                         fi
25815
25816
25817
25818 for ac_func in \
25819                                 thr_setconcurrency \
25820                                 thr_getconcurrency \
25821
25822 do
25823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25824 echo "$as_me:$LINENO: checking for $ac_func" >&5
25825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25826 if eval "test \"\${$as_ac_var+set}\" = set"; then
25827   echo $ECHO_N "(cached) $ECHO_C" >&6
25828 else
25829   cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h.  */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h.  */
25835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25836    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25837 #define $ac_func innocuous_$ac_func
25838
25839 /* System header to define __stub macros and hopefully few prototypes,
25840     which can conflict with char $ac_func (); below.
25841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25842     <limits.h> exists even on freestanding compilers.  */
25843
25844 #ifdef __STDC__
25845 # include <limits.h>
25846 #else
25847 # include <assert.h>
25848 #endif
25849
25850 #undef $ac_func
25851
25852 /* Override any gcc2 internal prototype to avoid an error.  */
25853 #ifdef __cplusplus
25854 extern "C"
25855 {
25856 #endif
25857 /* We use char because int might match the return type of a gcc2
25858    builtin and then its argument prototype would still apply.  */
25859 char $ac_func ();
25860 /* The GNU C library defines this for functions which it implements
25861     to always fail with ENOSYS.  Some functions are actually named
25862     something starting with __ and the normal name is an alias.  */
25863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25864 choke me
25865 #else
25866 char (*f) () = $ac_func;
25867 #endif
25868 #ifdef __cplusplus
25869 }
25870 #endif
25871
25872 int
25873 main ()
25874 {
25875 return f != $ac_func;
25876   ;
25877   return 0;
25878 }
25879 _ACEOF
25880 rm -f conftest.$ac_objext conftest$ac_exeext
25881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25882   (eval $ac_link) 2>conftest.er1
25883   ac_status=$?
25884   grep -v '^ *+' conftest.er1 >conftest.err
25885   rm -f conftest.er1
25886   cat conftest.err >&5
25887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888   (exit $ac_status); } &&
25889          { ac_try='test -z "$ac_c_werror_flag"
25890                          || test ! -s conftest.err'
25891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892   (eval $ac_try) 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; } &&
25896          { ac_try='test -s conftest$ac_exeext'
25897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898   (eval $ac_try) 2>&5
25899   ac_status=$?
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); }; }; then
25902   eval "$as_ac_var=yes"
25903 else
25904   echo "$as_me: failed program was:" >&5
25905 sed 's/^/| /' conftest.$ac_ext >&5
25906
25907 eval "$as_ac_var=no"
25908 fi
25909 rm -f conftest.err conftest.$ac_objext \
25910       conftest$ac_exeext conftest.$ac_ext
25911 fi
25912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25914 if test `eval echo '${'$as_ac_var'}'` = yes; then
25915   cat >>confdefs.h <<_ACEOF
25916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25917 _ACEOF
25918
25919 fi
25920 done
25921
25922                 fi
25923         fi
25924
25925
25926 for ac_header in lwp/lwp.h
25927 do
25928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25930   echo "$as_me:$LINENO: checking for $ac_header" >&5
25931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25933   echo $ECHO_N "(cached) $ECHO_C" >&6
25934 fi
25935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25937 else
25938   # Is the header compilable?
25939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h.  */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h.  */
25947 $ac_includes_default
25948 #include <$ac_header>
25949 _ACEOF
25950 rm -f conftest.$ac_objext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952   (eval $ac_compile) 2>conftest.er1
25953   ac_status=$?
25954   grep -v '^ *+' conftest.er1 >conftest.err
25955   rm -f conftest.er1
25956   cat conftest.err >&5
25957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958   (exit $ac_status); } &&
25959          { ac_try='test -z "$ac_c_werror_flag"
25960                          || test ! -s conftest.err'
25961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25962   (eval $ac_try) 2>&5
25963   ac_status=$?
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); }; } &&
25966          { ac_try='test -s conftest.$ac_objext'
25967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968   (eval $ac_try) 2>&5
25969   ac_status=$?
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); }; }; then
25972   ac_header_compiler=yes
25973 else
25974   echo "$as_me: failed program was:" >&5
25975 sed 's/^/| /' conftest.$ac_ext >&5
25976
25977 ac_header_compiler=no
25978 fi
25979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25981 echo "${ECHO_T}$ac_header_compiler" >&6
25982
25983 # Is the header present?
25984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25986 cat >conftest.$ac_ext <<_ACEOF
25987 /* confdefs.h.  */
25988 _ACEOF
25989 cat confdefs.h >>conftest.$ac_ext
25990 cat >>conftest.$ac_ext <<_ACEOF
25991 /* end confdefs.h.  */
25992 #include <$ac_header>
25993 _ACEOF
25994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25996   ac_status=$?
25997   grep -v '^ *+' conftest.er1 >conftest.err
25998   rm -f conftest.er1
25999   cat conftest.err >&5
26000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26001   (exit $ac_status); } >/dev/null; then
26002   if test -s conftest.err; then
26003     ac_cpp_err=$ac_c_preproc_warn_flag
26004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26005   else
26006     ac_cpp_err=
26007   fi
26008 else
26009   ac_cpp_err=yes
26010 fi
26011 if test -z "$ac_cpp_err"; then
26012   ac_header_preproc=yes
26013 else
26014   echo "$as_me: failed program was:" >&5
26015 sed 's/^/| /' conftest.$ac_ext >&5
26016
26017   ac_header_preproc=no
26018 fi
26019 rm -f conftest.err conftest.$ac_ext
26020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26021 echo "${ECHO_T}$ac_header_preproc" >&6
26022
26023 # So?  What about this header?
26024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26025   yes:no: )
26026     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26028     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26030     ac_header_preproc=yes
26031     ;;
26032   no:yes:* )
26033     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26035     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26036 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26037     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26039     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26040 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26043     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26045     (
26046       cat <<\_ASBOX
26047 ## ------------------------------------------ ##
26048 ## Report this to the AC_PACKAGE_NAME lists.  ##
26049 ## ------------------------------------------ ##
26050 _ASBOX
26051     ) |
26052       sed "s/^/$as_me: WARNING:     /" >&2
26053     ;;
26054 esac
26055 echo "$as_me:$LINENO: checking for $ac_header" >&5
26056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26058   echo $ECHO_N "(cached) $ECHO_C" >&6
26059 else
26060   eval "$as_ac_Header=\$ac_header_preproc"
26061 fi
26062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26064
26065 fi
26066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26067   cat >>confdefs.h <<_ACEOF
26068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26069 _ACEOF
26070
26071 fi
26072
26073 done
26074
26075         if test $ac_cv_header_lwp_lwp_h = yes ; then
26076                 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26077 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26078 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26079   echo $ECHO_N "(cached) $ECHO_C" >&6
26080 else
26081   ac_check_lib_save_LIBS=$LIBS
26082 LIBS="-llwp  $LIBS"
26083 cat >conftest.$ac_ext <<_ACEOF
26084 /* confdefs.h.  */
26085 _ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h.  */
26089
26090 /* Override any gcc2 internal prototype to avoid an error.  */
26091 #ifdef __cplusplus
26092 extern "C"
26093 #endif
26094 /* We use char because int might match the return type of a gcc2
26095    builtin and then its argument prototype would still apply.  */
26096 char lwp_create ();
26097 int
26098 main ()
26099 {
26100 lwp_create ();
26101   ;
26102   return 0;
26103 }
26104 _ACEOF
26105 rm -f conftest.$ac_objext conftest$ac_exeext
26106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26107   (eval $ac_link) 2>conftest.er1
26108   ac_status=$?
26109   grep -v '^ *+' conftest.er1 >conftest.err
26110   rm -f conftest.er1
26111   cat conftest.err >&5
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); } &&
26114          { ac_try='test -z "$ac_c_werror_flag"
26115                          || test ! -s conftest.err'
26116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117   (eval $ac_try) 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; } &&
26121          { ac_try='test -s conftest$ac_exeext'
26122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26123   (eval $ac_try) 2>&5
26124   ac_status=$?
26125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126   (exit $ac_status); }; }; then
26127   ac_cv_lib_lwp_lwp_create=yes
26128 else
26129   echo "$as_me: failed program was:" >&5
26130 sed 's/^/| /' conftest.$ac_ext >&5
26131
26132 ac_cv_lib_lwp_lwp_create=no
26133 fi
26134 rm -f conftest.err conftest.$ac_objext \
26135       conftest$ac_exeext conftest.$ac_ext
26136 LIBS=$ac_check_lib_save_LIBS
26137 fi
26138 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26139 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26140 if test $ac_cv_lib_lwp_lwp_create = yes; then
26141   have_lwp=yes
26142 else
26143   have_lwp=no
26144 fi
26145
26146
26147                 if test $have_lwp = yes ; then
26148
26149 cat >>confdefs.h <<\_ACEOF
26150 #define HAVE_LWP 1
26151 _ACEOF
26152
26153                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26154                         ol_link_threads=lwp
26155
26156                         if test $ol_with_yielding_select = auto ; then
26157                                 ol_with_yielding_select=no
26158                         fi
26159                 fi
26160         fi
26161         ;;
26162 esac
26163
26164 if test $ol_with_yielding_select = yes ; then
26165
26166 cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_YIELDING_SELECT 1
26168 _ACEOF
26169
26170 fi
26171
26172 if test $ol_with_threads = manual ; then
26173                 ol_link_threads=yes
26174
26175         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26176 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26177
26178
26179
26180 for ac_header in pthread.h sched.h
26181 do
26182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26184   echo "$as_me:$LINENO: checking for $ac_header" >&5
26185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26187   echo $ECHO_N "(cached) $ECHO_C" >&6
26188 fi
26189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26191 else
26192   # Is the header compilable?
26193 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26195 cat >conftest.$ac_ext <<_ACEOF
26196 /* confdefs.h.  */
26197 _ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h.  */
26201 $ac_includes_default
26202 #include <$ac_header>
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206   (eval $ac_compile) 2>conftest.er1
26207   ac_status=$?
26208   grep -v '^ *+' conftest.er1 >conftest.err
26209   rm -f conftest.er1
26210   cat conftest.err >&5
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); } &&
26213          { ac_try='test -z "$ac_c_werror_flag"
26214                          || test ! -s conftest.err'
26215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216   (eval $ac_try) 2>&5
26217   ac_status=$?
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); }; } &&
26220          { ac_try='test -s conftest.$ac_objext'
26221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222   (eval $ac_try) 2>&5
26223   ac_status=$?
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); }; }; then
26226   ac_header_compiler=yes
26227 else
26228   echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26230
26231 ac_header_compiler=no
26232 fi
26233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26234 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26235 echo "${ECHO_T}$ac_header_compiler" >&6
26236
26237 # Is the header present?
26238 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h.  */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h.  */
26246 #include <$ac_header>
26247 _ACEOF
26248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26249   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26250   ac_status=$?
26251   grep -v '^ *+' conftest.er1 >conftest.err
26252   rm -f conftest.er1
26253   cat conftest.err >&5
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); } >/dev/null; then
26256   if test -s conftest.err; then
26257     ac_cpp_err=$ac_c_preproc_warn_flag
26258     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26259   else
26260     ac_cpp_err=
26261   fi
26262 else
26263   ac_cpp_err=yes
26264 fi
26265 if test -z "$ac_cpp_err"; then
26266   ac_header_preproc=yes
26267 else
26268   echo "$as_me: failed program was:" >&5
26269 sed 's/^/| /' conftest.$ac_ext >&5
26270
26271   ac_header_preproc=no
26272 fi
26273 rm -f conftest.err conftest.$ac_ext
26274 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26275 echo "${ECHO_T}$ac_header_preproc" >&6
26276
26277 # So?  What about this header?
26278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26279   yes:no: )
26280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26284     ac_header_preproc=yes
26285     ;;
26286   no:yes:* )
26287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26299     (
26300       cat <<\_ASBOX
26301 ## ------------------------------------------ ##
26302 ## Report this to the AC_PACKAGE_NAME lists.  ##
26303 ## ------------------------------------------ ##
26304 _ASBOX
26305     ) |
26306       sed "s/^/$as_me: WARNING:     /" >&2
26307     ;;
26308 esac
26309 echo "$as_me:$LINENO: checking for $ac_header" >&5
26310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26312   echo $ECHO_N "(cached) $ECHO_C" >&6
26313 else
26314   eval "$as_ac_Header=\$ac_header_preproc"
26315 fi
26316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26318
26319 fi
26320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26321   cat >>confdefs.h <<_ACEOF
26322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26323 _ACEOF
26324
26325 fi
26326
26327 done
26328
26329
26330
26331 for ac_func in sched_yield pthread_yield
26332 do
26333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26334 echo "$as_me:$LINENO: checking for $ac_func" >&5
26335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26336 if eval "test \"\${$as_ac_var+set}\" = set"; then
26337   echo $ECHO_N "(cached) $ECHO_C" >&6
26338 else
26339   cat >conftest.$ac_ext <<_ACEOF
26340 /* confdefs.h.  */
26341 _ACEOF
26342 cat confdefs.h >>conftest.$ac_ext
26343 cat >>conftest.$ac_ext <<_ACEOF
26344 /* end confdefs.h.  */
26345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26347 #define $ac_func innocuous_$ac_func
26348
26349 /* System header to define __stub macros and hopefully few prototypes,
26350     which can conflict with char $ac_func (); below.
26351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26352     <limits.h> exists even on freestanding compilers.  */
26353
26354 #ifdef __STDC__
26355 # include <limits.h>
26356 #else
26357 # include <assert.h>
26358 #endif
26359
26360 #undef $ac_func
26361
26362 /* Override any gcc2 internal prototype to avoid an error.  */
26363 #ifdef __cplusplus
26364 extern "C"
26365 {
26366 #endif
26367 /* We use char because int might match the return type of a gcc2
26368    builtin and then its argument prototype would still apply.  */
26369 char $ac_func ();
26370 /* The GNU C library defines this for functions which it implements
26371     to always fail with ENOSYS.  Some functions are actually named
26372     something starting with __ and the normal name is an alias.  */
26373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26374 choke me
26375 #else
26376 char (*f) () = $ac_func;
26377 #endif
26378 #ifdef __cplusplus
26379 }
26380 #endif
26381
26382 int
26383 main ()
26384 {
26385 return f != $ac_func;
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26392   (eval $ac_link) 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } &&
26399          { ac_try='test -z "$ac_c_werror_flag"
26400                          || test ! -s conftest.err'
26401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402   (eval $ac_try) 2>&5
26403   ac_status=$?
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); }; } &&
26406          { ac_try='test -s conftest$ac_exeext'
26407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408   (eval $ac_try) 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; }; then
26412   eval "$as_ac_var=yes"
26413 else
26414   echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26416
26417 eval "$as_ac_var=no"
26418 fi
26419 rm -f conftest.err conftest.$ac_objext \
26420       conftest$ac_exeext conftest.$ac_ext
26421 fi
26422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26424 if test `eval echo '${'$as_ac_var'}'` = yes; then
26425   cat >>confdefs.h <<_ACEOF
26426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26427 _ACEOF
26428
26429 fi
26430 done
26431
26432
26433         echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26434 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
26435 if test "${ol_cv_header_linux_threads+set}" = set; then
26436   echo $ECHO_N "(cached) $ECHO_C" >&6
26437 else
26438   cat >conftest.$ac_ext <<_ACEOF
26439 /* confdefs.h.  */
26440 _ACEOF
26441 cat confdefs.h >>conftest.$ac_ext
26442 cat >>conftest.$ac_ext <<_ACEOF
26443 /* end confdefs.h.  */
26444 #include <pthread.h>
26445 _ACEOF
26446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26447   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26448   ol_cv_header_linux_threads=yes
26449 else
26450   ol_cv_header_linux_threads=no
26451 fi
26452 rm -f conftest*
26453
26454
26455 fi
26456 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26457 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
26458         if test $ol_cv_header_linux_threads = yes; then
26459
26460 cat >>confdefs.h <<\_ACEOF
26461 #define HAVE_LINUX_THREADS 1
26462 _ACEOF
26463
26464         fi
26465
26466
26467
26468 for ac_header in mach/cthreads.h
26469 do
26470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26472   echo "$as_me:$LINENO: checking for $ac_header" >&5
26473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26475   echo $ECHO_N "(cached) $ECHO_C" >&6
26476 fi
26477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26479 else
26480   # Is the header compilable?
26481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h.  */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h.  */
26489 $ac_includes_default
26490 #include <$ac_header>
26491 _ACEOF
26492 rm -f conftest.$ac_objext
26493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26494   (eval $ac_compile) 2>conftest.er1
26495   ac_status=$?
26496   grep -v '^ *+' conftest.er1 >conftest.err
26497   rm -f conftest.er1
26498   cat conftest.err >&5
26499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); } &&
26501          { ac_try='test -z "$ac_c_werror_flag"
26502                          || test ! -s conftest.err'
26503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504   (eval $ac_try) 2>&5
26505   ac_status=$?
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); }; } &&
26508          { ac_try='test -s conftest.$ac_objext'
26509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510   (eval $ac_try) 2>&5
26511   ac_status=$?
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); }; }; then
26514   ac_header_compiler=yes
26515 else
26516   echo "$as_me: failed program was:" >&5
26517 sed 's/^/| /' conftest.$ac_ext >&5
26518
26519 ac_header_compiler=no
26520 fi
26521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26523 echo "${ECHO_T}$ac_header_compiler" >&6
26524
26525 # Is the header present?
26526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26528 cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534 #include <$ac_header>
26535 _ACEOF
26536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } >/dev/null; then
26544   if test -s conftest.err; then
26545     ac_cpp_err=$ac_c_preproc_warn_flag
26546     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26547   else
26548     ac_cpp_err=
26549   fi
26550 else
26551   ac_cpp_err=yes
26552 fi
26553 if test -z "$ac_cpp_err"; then
26554   ac_header_preproc=yes
26555 else
26556   echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26558
26559   ac_header_preproc=no
26560 fi
26561 rm -f conftest.err conftest.$ac_ext
26562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26563 echo "${ECHO_T}$ac_header_preproc" >&6
26564
26565 # So?  What about this header?
26566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26567   yes:no: )
26568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26572     ac_header_preproc=yes
26573     ;;
26574   no:yes:* )
26575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26577     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26578 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26579     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26581     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26582 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26583     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26585     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26587     (
26588       cat <<\_ASBOX
26589 ## ------------------------------------------ ##
26590 ## Report this to the AC_PACKAGE_NAME lists.  ##
26591 ## ------------------------------------------ ##
26592 _ASBOX
26593     ) |
26594       sed "s/^/$as_me: WARNING:     /" >&2
26595     ;;
26596 esac
26597 echo "$as_me:$LINENO: checking for $ac_header" >&5
26598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26600   echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602   eval "$as_ac_Header=\$ac_header_preproc"
26603 fi
26604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26606
26607 fi
26608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609   cat >>confdefs.h <<_ACEOF
26610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26611 _ACEOF
26612
26613 fi
26614
26615 done
26616
26617
26618 for ac_header in lwp/lwp.h
26619 do
26620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26622   echo "$as_me:$LINENO: checking for $ac_header" >&5
26623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26625   echo $ECHO_N "(cached) $ECHO_C" >&6
26626 fi
26627 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26628 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26629 else
26630   # Is the header compilable?
26631 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26633 cat >conftest.$ac_ext <<_ACEOF
26634 /* confdefs.h.  */
26635 _ACEOF
26636 cat confdefs.h >>conftest.$ac_ext
26637 cat >>conftest.$ac_ext <<_ACEOF
26638 /* end confdefs.h.  */
26639 $ac_includes_default
26640 #include <$ac_header>
26641 _ACEOF
26642 rm -f conftest.$ac_objext
26643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26644   (eval $ac_compile) 2>conftest.er1
26645   ac_status=$?
26646   grep -v '^ *+' conftest.er1 >conftest.err
26647   rm -f conftest.er1
26648   cat conftest.err >&5
26649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650   (exit $ac_status); } &&
26651          { ac_try='test -z "$ac_c_werror_flag"
26652                          || test ! -s conftest.err'
26653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654   (eval $ac_try) 2>&5
26655   ac_status=$?
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); }; } &&
26658          { ac_try='test -s conftest.$ac_objext'
26659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26660   (eval $ac_try) 2>&5
26661   ac_status=$?
26662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663   (exit $ac_status); }; }; then
26664   ac_header_compiler=yes
26665 else
26666   echo "$as_me: failed program was:" >&5
26667 sed 's/^/| /' conftest.$ac_ext >&5
26668
26669 ac_header_compiler=no
26670 fi
26671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26672 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26673 echo "${ECHO_T}$ac_header_compiler" >&6
26674
26675 # Is the header present?
26676 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26678 cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684 #include <$ac_header>
26685 _ACEOF
26686 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26687   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } >/dev/null; then
26694   if test -s conftest.err; then
26695     ac_cpp_err=$ac_c_preproc_warn_flag
26696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26697   else
26698     ac_cpp_err=
26699   fi
26700 else
26701   ac_cpp_err=yes
26702 fi
26703 if test -z "$ac_cpp_err"; then
26704   ac_header_preproc=yes
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709   ac_header_preproc=no
26710 fi
26711 rm -f conftest.err conftest.$ac_ext
26712 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26713 echo "${ECHO_T}$ac_header_preproc" >&6
26714
26715 # So?  What about this header?
26716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26717   yes:no: )
26718     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26719 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26720     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26722     ac_header_preproc=yes
26723     ;;
26724   no:yes:* )
26725     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26726 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26727     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26728 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26729     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26730 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26731     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26732 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26733     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26735     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26736 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26737     (
26738       cat <<\_ASBOX
26739 ## ------------------------------------------ ##
26740 ## Report this to the AC_PACKAGE_NAME lists.  ##
26741 ## ------------------------------------------ ##
26742 _ASBOX
26743     ) |
26744       sed "s/^/$as_me: WARNING:     /" >&2
26745     ;;
26746 esac
26747 echo "$as_me:$LINENO: checking for $ac_header" >&5
26748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26750   echo $ECHO_N "(cached) $ECHO_C" >&6
26751 else
26752   eval "$as_ac_Header=\$ac_header_preproc"
26753 fi
26754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26756
26757 fi
26758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26759   cat >>confdefs.h <<_ACEOF
26760 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26761 _ACEOF
26762
26763 fi
26764
26765 done
26766
26767
26768
26769 for ac_header in thread.h synch.h
26770 do
26771 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26773   echo "$as_me:$LINENO: checking for $ac_header" >&5
26774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26776   echo $ECHO_N "(cached) $ECHO_C" >&6
26777 fi
26778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26779 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26780 else
26781   # Is the header compilable?
26782 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26784 cat >conftest.$ac_ext <<_ACEOF
26785 /* confdefs.h.  */
26786 _ACEOF
26787 cat confdefs.h >>conftest.$ac_ext
26788 cat >>conftest.$ac_ext <<_ACEOF
26789 /* end confdefs.h.  */
26790 $ac_includes_default
26791 #include <$ac_header>
26792 _ACEOF
26793 rm -f conftest.$ac_objext
26794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26795   (eval $ac_compile) 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } &&
26802          { ac_try='test -z "$ac_c_werror_flag"
26803                          || test ! -s conftest.err'
26804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805   (eval $ac_try) 2>&5
26806   ac_status=$?
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); }; } &&
26809          { ac_try='test -s conftest.$ac_objext'
26810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811   (eval $ac_try) 2>&5
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; }; then
26815   ac_header_compiler=yes
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820 ac_header_compiler=no
26821 fi
26822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26824 echo "${ECHO_T}$ac_header_compiler" >&6
26825
26826 # Is the header present?
26827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26829 cat >conftest.$ac_ext <<_ACEOF
26830 /* confdefs.h.  */
26831 _ACEOF
26832 cat confdefs.h >>conftest.$ac_ext
26833 cat >>conftest.$ac_ext <<_ACEOF
26834 /* end confdefs.h.  */
26835 #include <$ac_header>
26836 _ACEOF
26837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26839   ac_status=$?
26840   grep -v '^ *+' conftest.er1 >conftest.err
26841   rm -f conftest.er1
26842   cat conftest.err >&5
26843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844   (exit $ac_status); } >/dev/null; then
26845   if test -s conftest.err; then
26846     ac_cpp_err=$ac_c_preproc_warn_flag
26847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26848   else
26849     ac_cpp_err=
26850   fi
26851 else
26852   ac_cpp_err=yes
26853 fi
26854 if test -z "$ac_cpp_err"; then
26855   ac_header_preproc=yes
26856 else
26857   echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860   ac_header_preproc=no
26861 fi
26862 rm -f conftest.err conftest.$ac_ext
26863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26864 echo "${ECHO_T}$ac_header_preproc" >&6
26865
26866 # So?  What about this header?
26867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26868   yes:no: )
26869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26873     ac_header_preproc=yes
26874     ;;
26875   no:yes:* )
26876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26888     (
26889       cat <<\_ASBOX
26890 ## ------------------------------------------ ##
26891 ## Report this to the AC_PACKAGE_NAME lists.  ##
26892 ## ------------------------------------------ ##
26893 _ASBOX
26894     ) |
26895       sed "s/^/$as_me: WARNING:     /" >&2
26896     ;;
26897 esac
26898 echo "$as_me:$LINENO: checking for $ac_header" >&5
26899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26901   echo $ECHO_N "(cached) $ECHO_C" >&6
26902 else
26903   eval "$as_ac_Header=\$ac_header_preproc"
26904 fi
26905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26907
26908 fi
26909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26910   cat >>confdefs.h <<_ACEOF
26911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26912 _ACEOF
26913
26914 fi
26915
26916 done
26917
26918 fi
26919
26920 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
26921                         cat >>confdefs.h <<\_ACEOF
26922 #define REENTRANT 1
26923 _ACEOF
26924
26925         cat >>confdefs.h <<\_ACEOF
26926 #define _REENTRANT 1
26927 _ACEOF
26928
26929         cat >>confdefs.h <<\_ACEOF
26930 #define THREAD_SAFE 1
26931 _ACEOF
26932
26933         cat >>confdefs.h <<\_ACEOF
26934 #define _THREAD_SAFE 1
26935 _ACEOF
26936
26937         cat >>confdefs.h <<\_ACEOF
26938 #define THREADSAFE 1
26939 _ACEOF
26940
26941         cat >>confdefs.h <<\_ACEOF
26942 #define _THREADSAFE 1
26943 _ACEOF
26944
26945         cat >>confdefs.h <<\_ACEOF
26946 #define _SGI_MP_SOURCE 1
26947 _ACEOF
26948
26949
26950                         echo "$as_me:$LINENO: checking for thread specific errno" >&5
26951 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
26952 if test "${ol_cv_errno_thread_specific+set}" = set; then
26953   echo $ECHO_N "(cached) $ECHO_C" >&6
26954 else
26955
26956                 cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h.  */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h.  */
26962 #include <errno.h>
26963 int
26964 main ()
26965 {
26966 errno = 0;
26967   ;
26968   return 0;
26969 }
26970 _ACEOF
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973   (eval $ac_link) 2>conftest.er1
26974   ac_status=$?
26975   grep -v '^ *+' conftest.er1 >conftest.err
26976   rm -f conftest.er1
26977   cat conftest.err >&5
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); } &&
26980          { ac_try='test -z "$ac_c_werror_flag"
26981                          || test ! -s conftest.err'
26982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983   (eval $ac_try) 2>&5
26984   ac_status=$?
26985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986   (exit $ac_status); }; } &&
26987          { ac_try='test -s conftest$ac_exeext'
26988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989   (eval $ac_try) 2>&5
26990   ac_status=$?
26991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992   (exit $ac_status); }; }; then
26993   ol_cv_errno_thread_specific=yes
26994 else
26995   echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.$ac_ext >&5
26997
26998 ol_cv_errno_thread_specific=no
26999 fi
27000 rm -f conftest.err conftest.$ac_objext \
27001       conftest$ac_exeext conftest.$ac_ext
27002
27003 fi
27004 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27005 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27006
27007                         echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27008 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27009 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27010   echo $ECHO_N "(cached) $ECHO_C" >&6
27011 else
27012
27013                 cat >conftest.$ac_ext <<_ACEOF
27014 /* confdefs.h.  */
27015 _ACEOF
27016 cat confdefs.h >>conftest.$ac_ext
27017 cat >>conftest.$ac_ext <<_ACEOF
27018 /* end confdefs.h.  */
27019 #include <netdb.h>
27020 int
27021 main ()
27022 {
27023 h_errno = 0;
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 rm -f conftest.$ac_objext conftest$ac_exeext
27029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27030   (eval $ac_link) 2>conftest.er1
27031   ac_status=$?
27032   grep -v '^ *+' conftest.er1 >conftest.err
27033   rm -f conftest.er1
27034   cat conftest.err >&5
27035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036   (exit $ac_status); } &&
27037          { ac_try='test -z "$ac_c_werror_flag"
27038                          || test ! -s conftest.err'
27039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040   (eval $ac_try) 2>&5
27041   ac_status=$?
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); }; } &&
27044          { ac_try='test -s conftest$ac_exeext'
27045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27046   (eval $ac_try) 2>&5
27047   ac_status=$?
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); }; }; then
27050   ol_cv_h_errno_thread_specific=yes
27051 else
27052   echo "$as_me: failed program was:" >&5
27053 sed 's/^/| /' conftest.$ac_ext >&5
27054
27055 ol_cv_h_errno_thread_specific=no
27056 fi
27057 rm -f conftest.err conftest.$ac_objext \
27058       conftest$ac_exeext conftest.$ac_ext
27059
27060 fi
27061 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27062 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27063
27064         if test $ol_cv_errno_thread_specific != yes ||
27065            test $ol_cv_h_errno_thread_specific != yes ; then
27066                 LIBS="$LTHREAD_LIBS $LIBS"
27067                 LTHREAD_LIBS=""
27068         fi
27069
27070 fi
27071
27072 if test $ol_link_threads = no ; then
27073         if test $ol_with_threads = yes ; then
27074                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27075 echo "$as_me: error: no suitable thread support" >&2;}
27076    { (exit 1); exit 1; }; }
27077         fi
27078
27079         if test $ol_with_threads = auto ; then
27080                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27081 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27082                 ol_with_threads=no
27083         fi
27084
27085
27086 cat >>confdefs.h <<\_ACEOF
27087 #define NO_THREADS 1
27088 _ACEOF
27089
27090         LTHREAD_LIBS=""
27091 fi
27092
27093 if test $ol_link_threads != no ; then
27094
27095 cat >>confdefs.h <<\_ACEOF
27096 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27097 _ACEOF
27098
27099 fi
27100
27101
27102
27103
27104 for ac_func in \
27105         ctime_r                 \
27106         gethostbyname_r gethostbyaddr_r \
27107
27108 do
27109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27110 echo "$as_me:$LINENO: checking for $ac_func" >&5
27111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27112 if eval "test \"\${$as_ac_var+set}\" = set"; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27123 #define $ac_func innocuous_$ac_func
27124
27125 /* System header to define __stub macros and hopefully few prototypes,
27126     which can conflict with char $ac_func (); below.
27127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128     <limits.h> exists even on freestanding compilers.  */
27129
27130 #ifdef __STDC__
27131 # include <limits.h>
27132 #else
27133 # include <assert.h>
27134 #endif
27135
27136 #undef $ac_func
27137
27138 /* Override any gcc2 internal prototype to avoid an error.  */
27139 #ifdef __cplusplus
27140 extern "C"
27141 {
27142 #endif
27143 /* We use char because int might match the return type of a gcc2
27144    builtin and then its argument prototype would still apply.  */
27145 char $ac_func ();
27146 /* The GNU C library defines this for functions which it implements
27147     to always fail with ENOSYS.  Some functions are actually named
27148     something starting with __ and the normal name is an alias.  */
27149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27150 choke me
27151 #else
27152 char (*f) () = $ac_func;
27153 #endif
27154 #ifdef __cplusplus
27155 }
27156 #endif
27157
27158 int
27159 main ()
27160 {
27161 return f != $ac_func;
27162   ;
27163   return 0;
27164 }
27165 _ACEOF
27166 rm -f conftest.$ac_objext conftest$ac_exeext
27167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27168   (eval $ac_link) 2>conftest.er1
27169   ac_status=$?
27170   grep -v '^ *+' conftest.er1 >conftest.err
27171   rm -f conftest.er1
27172   cat conftest.err >&5
27173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174   (exit $ac_status); } &&
27175          { ac_try='test -z "$ac_c_werror_flag"
27176                          || test ! -s conftest.err'
27177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178   (eval $ac_try) 2>&5
27179   ac_status=$?
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); }; } &&
27182          { ac_try='test -s conftest$ac_exeext'
27183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27184   (eval $ac_try) 2>&5
27185   ac_status=$?
27186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187   (exit $ac_status); }; }; then
27188   eval "$as_ac_var=yes"
27189 else
27190   echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27192
27193 eval "$as_ac_var=no"
27194 fi
27195 rm -f conftest.err conftest.$ac_objext \
27196       conftest$ac_exeext conftest.$ac_ext
27197 fi
27198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27200 if test `eval echo '${'$as_ac_var'}'` = yes; then
27201   cat >>confdefs.h <<_ACEOF
27202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27203 _ACEOF
27204
27205 fi
27206 done
27207
27208
27209 if test "$ac_cv_func_ctime_r" = no ; then
27210         ol_cv_func_ctime_r_nargs=0
27211 else
27212         echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27213 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27214 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27215   echo $ECHO_N "(cached) $ECHO_C" >&6
27216 else
27217   cat >conftest.$ac_ext <<_ACEOF
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 #include <time.h>
27224 int
27225 main ()
27226 {
27227 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27228   ;
27229   return 0;
27230 }
27231 _ACEOF
27232 rm -f conftest.$ac_objext
27233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27234   (eval $ac_compile) 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } &&
27241          { ac_try='test -z "$ac_c_werror_flag"
27242                          || test ! -s conftest.err'
27243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244   (eval $ac_try) 2>&5
27245   ac_status=$?
27246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247   (exit $ac_status); }; } &&
27248          { ac_try='test -s conftest.$ac_objext'
27249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27250   (eval $ac_try) 2>&5
27251   ac_status=$?
27252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27253   (exit $ac_status); }; }; then
27254   ol_cv_func_ctime_r_nargs3=yes
27255 else
27256   echo "$as_me: failed program was:" >&5
27257 sed 's/^/| /' conftest.$ac_ext >&5
27258
27259 ol_cv_func_ctime_r_nargs3=no
27260 fi
27261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27262
27263         cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269 #include <time.h>
27270 int
27271 main ()
27272 {
27273 time_t ti; char *buffer; ctime_r(&ti,buffer);
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest.$ac_objext
27279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27280   (eval $ac_compile) 2>conftest.er1
27281   ac_status=$?
27282   grep -v '^ *+' conftest.er1 >conftest.err
27283   rm -f conftest.er1
27284   cat conftest.err >&5
27285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286   (exit $ac_status); } &&
27287          { ac_try='test -z "$ac_c_werror_flag"
27288                          || test ! -s conftest.err'
27289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27290   (eval $ac_try) 2>&5
27291   ac_status=$?
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); }; } &&
27294          { ac_try='test -s conftest.$ac_objext'
27295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296   (eval $ac_try) 2>&5
27297   ac_status=$?
27298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299   (exit $ac_status); }; }; then
27300   ol_cv_func_ctime_r_nargs2=yes
27301 else
27302   echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.$ac_ext >&5
27304
27305 ol_cv_func_ctime_r_nargs2=no
27306 fi
27307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27308
27309         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27310            test $ol_cv_func_ctime_r_nargs2 = no ; then
27311
27312                 ol_cv_func_ctime_r_nargs=3
27313
27314         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27315              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27316
27317                 ol_cv_func_ctime_r_nargs=2
27318
27319         else
27320                 ol_cv_func_ctime_r_nargs=0
27321         fi
27322
27323 fi
27324 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27325 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
27326
27327   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27328
27329 cat >>confdefs.h <<_ACEOF
27330 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27331 _ACEOF
27332
27333   fi
27334
27335 fi
27336
27337 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27338         echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27339 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
27340 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   cat >conftest.$ac_ext <<_ACEOF
27344 /* confdefs.h.  */
27345 _ACEOF
27346 cat confdefs.h >>conftest.$ac_ext
27347 cat >>conftest.$ac_ext <<_ACEOF
27348 /* end confdefs.h.  */
27349 #include <sys/types.h>
27350 #include <sys/socket.h>
27351 #include <netinet/in.h>
27352 #include <netdb.h>
27353 #define BUFSIZE (sizeof(struct hostent)+10)
27354 int
27355 main ()
27356 {
27357 struct hostent hent; char buffer[BUFSIZE];
27358                 int bufsize=BUFSIZE;int h_errno;
27359                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27360                         buffer, bufsize, &h_errno);
27361   ;
27362   return 0;
27363 }
27364 _ACEOF
27365 rm -f conftest.$ac_objext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27367   (eval $ac_compile) 2>conftest.er1
27368   ac_status=$?
27369   grep -v '^ *+' conftest.er1 >conftest.err
27370   rm -f conftest.er1
27371   cat conftest.err >&5
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); } &&
27374          { ac_try='test -z "$ac_c_werror_flag"
27375                          || test ! -s conftest.err'
27376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377   (eval $ac_try) 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; } &&
27381          { ac_try='test -s conftest.$ac_objext'
27382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383   (eval $ac_try) 2>&5
27384   ac_status=$?
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); }; }; then
27387   ol_cv_func_gethostbyname_r_nargs5=yes
27388 else
27389   echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ol_cv_func_gethostbyname_r_nargs5=no
27393 fi
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395
27396         cat >conftest.$ac_ext <<_ACEOF
27397 /* confdefs.h.  */
27398 _ACEOF
27399 cat confdefs.h >>conftest.$ac_ext
27400 cat >>conftest.$ac_ext <<_ACEOF
27401 /* end confdefs.h.  */
27402 #include <sys/types.h>
27403 #include <sys/socket.h>
27404 #include <netinet/in.h>
27405 #include <netdb.h>
27406 #define BUFSIZE (sizeof(struct hostent)+10)
27407 int
27408 main ()
27409 {
27410 struct hostent hent;struct hostent *rhent;
27411                 char buffer[BUFSIZE];
27412                 int bufsize=BUFSIZE;int h_errno;
27413                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27414                         &rhent, &h_errno);
27415   ;
27416   return 0;
27417 }
27418 _ACEOF
27419 rm -f conftest.$ac_objext
27420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27421   (eval $ac_compile) 2>conftest.er1
27422   ac_status=$?
27423   grep -v '^ *+' conftest.er1 >conftest.err
27424   rm -f conftest.er1
27425   cat conftest.err >&5
27426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427   (exit $ac_status); } &&
27428          { ac_try='test -z "$ac_c_werror_flag"
27429                          || test ! -s conftest.err'
27430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27431   (eval $ac_try) 2>&5
27432   ac_status=$?
27433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434   (exit $ac_status); }; } &&
27435          { ac_try='test -s conftest.$ac_objext'
27436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27437   (eval $ac_try) 2>&5
27438   ac_status=$?
27439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27440   (exit $ac_status); }; }; then
27441   ol_cv_func_gethostbyname_r_nargs6=yes
27442 else
27443   echo "$as_me: failed program was:" >&5
27444 sed 's/^/| /' conftest.$ac_ext >&5
27445
27446 ol_cv_func_gethostbyname_r_nargs6=no
27447 fi
27448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27449
27450         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27451            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27452
27453                 ol_cv_func_gethostbyname_r_nargs=5
27454
27455         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27456              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27457
27458                 ol_cv_func_gethostbyname_r_nargs=6
27459
27460         else
27461                 ol_cv_func_gethostbyname_r_nargs=0
27462         fi
27463
27464 fi
27465 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27466 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
27467   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27468
27469 cat >>confdefs.h <<_ACEOF
27470 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27471 _ACEOF
27472
27473   fi
27474
27475 else
27476         ol_cv_func_gethostbyname_r_nargs=0
27477 fi
27478
27479 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27480         echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27481 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
27482 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27483   echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485   cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 #include <sys/types.h>
27492 #include <sys/socket.h>
27493 #include <netinet/in.h>
27494 #include <netdb.h>
27495 #define BUFSIZE (sizeof(struct hostent)+10)
27496 int
27497 main ()
27498 {
27499 struct hostent hent; char buffer[BUFSIZE];
27500             struct in_addr add;
27501             size_t alen=sizeof(struct in_addr);
27502             int bufsize=BUFSIZE;int h_errno;
27503                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27504                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27505   ;
27506   return 0;
27507 }
27508 _ACEOF
27509 rm -f conftest.$ac_objext
27510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27511   (eval $ac_compile) 2>conftest.er1
27512   ac_status=$?
27513   grep -v '^ *+' conftest.er1 >conftest.err
27514   rm -f conftest.er1
27515   cat conftest.err >&5
27516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27517   (exit $ac_status); } &&
27518          { ac_try='test -z "$ac_c_werror_flag"
27519                          || test ! -s conftest.err'
27520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27521   (eval $ac_try) 2>&5
27522   ac_status=$?
27523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524   (exit $ac_status); }; } &&
27525          { ac_try='test -s conftest.$ac_objext'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   ol_cv_func_gethostbyaddr_r_nargs7=yes
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536 ol_cv_func_gethostbyaddr_r_nargs7=no
27537 fi
27538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27539
27540         cat >conftest.$ac_ext <<_ACEOF
27541 /* confdefs.h.  */
27542 _ACEOF
27543 cat confdefs.h >>conftest.$ac_ext
27544 cat >>conftest.$ac_ext <<_ACEOF
27545 /* end confdefs.h.  */
27546 #include <sys/types.h>
27547 #include <sys/socket.h>
27548 #include <netinet/in.h>
27549 #include <netdb.h>
27550 #define BUFSIZE (sizeof(struct hostent)+10)
27551 int
27552 main ()
27553 {
27554 struct hostent hent;
27555                 struct hostent *rhent; char buffer[BUFSIZE];
27556                 struct in_addr add;
27557                 size_t alen=sizeof(struct in_addr);
27558                 int bufsize=BUFSIZE;int h_errno;
27559                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27560                         alen, AF_INET, &hent, buffer, bufsize,
27561                         &rhent, &h_errno);
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27568   (eval $ac_compile) 2>conftest.er1
27569   ac_status=$?
27570   grep -v '^ *+' conftest.er1 >conftest.err
27571   rm -f conftest.er1
27572   cat conftest.err >&5
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); } &&
27575          { ac_try='test -z "$ac_c_werror_flag"
27576                          || test ! -s conftest.err'
27577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578   (eval $ac_try) 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; } &&
27582          { ac_try='test -s conftest.$ac_objext'
27583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584   (eval $ac_try) 2>&5
27585   ac_status=$?
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); }; }; then
27588   ol_cv_func_gethostbyaddr_r_nargs8=yes
27589 else
27590   echo "$as_me: failed program was:" >&5
27591 sed 's/^/| /' conftest.$ac_ext >&5
27592
27593 ol_cv_func_gethostbyaddr_r_nargs8=no
27594 fi
27595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27596
27597         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27598            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27599
27600                 ol_cv_func_gethostbyaddr_r_nargs=7
27601
27602         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27603              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27604
27605                 ol_cv_func_gethostbyaddr_r_nargs=8
27606
27607         else
27608                 ol_cv_func_gethostbyaddr_r_nargs=0
27609         fi
27610
27611 fi
27612 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27613 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
27614   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27615
27616 cat >>confdefs.h <<_ACEOF
27617 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27618 _ACEOF
27619
27620   fi
27621
27622 else
27623         ol_cv_func_gethostbyaddr_r_nargs=0
27624 fi
27625
27626 ol_link_ldbm=no
27627
27628 case $ol_enable_ldbm_api in auto | berkeley | bcompat)
27629
27630         if test $ol_enable_ldbm_api = bcompat; then \
27631
27632
27633 for ac_header in db_185.h db.h
27634 do
27635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27637   echo "$as_me:$LINENO: checking for $ac_header" >&5
27638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27640   echo $ECHO_N "(cached) $ECHO_C" >&6
27641 fi
27642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27644 else
27645   # Is the header compilable?
27646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27648 cat >conftest.$ac_ext <<_ACEOF
27649 /* confdefs.h.  */
27650 _ACEOF
27651 cat confdefs.h >>conftest.$ac_ext
27652 cat >>conftest.$ac_ext <<_ACEOF
27653 /* end confdefs.h.  */
27654 $ac_includes_default
27655 #include <$ac_header>
27656 _ACEOF
27657 rm -f conftest.$ac_objext
27658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27659   (eval $ac_compile) 2>conftest.er1
27660   ac_status=$?
27661   grep -v '^ *+' conftest.er1 >conftest.err
27662   rm -f conftest.er1
27663   cat conftest.err >&5
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); } &&
27666          { ac_try='test -z "$ac_c_werror_flag"
27667                          || test ! -s conftest.err'
27668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27669   (eval $ac_try) 2>&5
27670   ac_status=$?
27671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672   (exit $ac_status); }; } &&
27673          { ac_try='test -s conftest.$ac_objext'
27674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27675   (eval $ac_try) 2>&5
27676   ac_status=$?
27677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678   (exit $ac_status); }; }; then
27679   ac_header_compiler=yes
27680 else
27681   echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 ac_header_compiler=no
27685 fi
27686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27688 echo "${ECHO_T}$ac_header_compiler" >&6
27689
27690 # Is the header present?
27691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27693 cat >conftest.$ac_ext <<_ACEOF
27694 /* confdefs.h.  */
27695 _ACEOF
27696 cat confdefs.h >>conftest.$ac_ext
27697 cat >>conftest.$ac_ext <<_ACEOF
27698 /* end confdefs.h.  */
27699 #include <$ac_header>
27700 _ACEOF
27701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27702   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27703   ac_status=$?
27704   grep -v '^ *+' conftest.er1 >conftest.err
27705   rm -f conftest.er1
27706   cat conftest.err >&5
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); } >/dev/null; then
27709   if test -s conftest.err; then
27710     ac_cpp_err=$ac_c_preproc_warn_flag
27711     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27712   else
27713     ac_cpp_err=
27714   fi
27715 else
27716   ac_cpp_err=yes
27717 fi
27718 if test -z "$ac_cpp_err"; then
27719   ac_header_preproc=yes
27720 else
27721   echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27723
27724   ac_header_preproc=no
27725 fi
27726 rm -f conftest.err conftest.$ac_ext
27727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27728 echo "${ECHO_T}$ac_header_preproc" >&6
27729
27730 # So?  What about this header?
27731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27732   yes:no: )
27733     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27735     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27737     ac_header_preproc=yes
27738     ;;
27739   no:yes:* )
27740     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27742     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27743 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27744     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27746     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27747 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27750     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27752     (
27753       cat <<\_ASBOX
27754 ## ------------------------------------------ ##
27755 ## Report this to the AC_PACKAGE_NAME lists.  ##
27756 ## ------------------------------------------ ##
27757 _ASBOX
27758     ) |
27759       sed "s/^/$as_me: WARNING:     /" >&2
27760     ;;
27761 esac
27762 echo "$as_me:$LINENO: checking for $ac_header" >&5
27763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   eval "$as_ac_Header=\$ac_header_preproc"
27768 fi
27769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27771
27772 fi
27773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27774   cat >>confdefs.h <<_ACEOF
27775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27776 _ACEOF
27777
27778 fi
27779
27780 done
27781
27782 if test $ac_cv_header_db_185_h = yes || test $ac_cv_header_db_h = yes; then
27783         echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
27784 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
27785 if test "${ol_cv_header_db1+set}" = set; then
27786   echo $ECHO_N "(cached) $ECHO_C" >&6
27787 else
27788
27789                 cat >conftest.$ac_ext <<_ACEOF
27790 /* confdefs.h.  */
27791 _ACEOF
27792 cat confdefs.h >>conftest.$ac_ext
27793 cat >>conftest.$ac_ext <<_ACEOF
27794 /* end confdefs.h.  */
27795
27796 #if HAVE_DB_185_H
27797 #       include <db_185.h>
27798 #else
27799 #       include <db.h>
27800 #endif
27801
27802  /* this check could be improved */
27803 #ifndef DB_VERSION_MAJOR
27804 #       define DB_VERSION_MAJOR 1
27805 #endif
27806
27807 #if DB_VERSION_MAJOR == 1
27808         __db_version_1
27809 #endif
27810
27811 _ACEOF
27812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27813   $EGREP "__db_version_1" >/dev/null 2>&1; then
27814   ol_cv_header_db1=yes
27815 else
27816   ol_cv_header_db1=no
27817 fi
27818 rm -f conftest*
27819
27820 fi
27821 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
27822 echo "${ECHO_T}$ol_cv_header_db1" >&6
27823
27824         if test $ol_cv_header_db1 = yes ; then
27825                 ol_cv_lib_db=no
27826 if test $ol_cv_lib_db = no ; then
27827         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
27828 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
27829 if test "${ol_cv_db_none+set}" = set; then
27830   echo $ECHO_N "(cached) $ECHO_C" >&6
27831 else
27832
27833         ol_DB_LIB=
27834         ol_LIBS=$LIBS
27835         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27836
27837         cat >conftest.$ac_ext <<_ACEOF
27838 /* confdefs.h.  */
27839 _ACEOF
27840 cat confdefs.h >>conftest.$ac_ext
27841 cat >>conftest.$ac_ext <<_ACEOF
27842 /* end confdefs.h.  */
27843
27844 #ifdef HAVE_DB_185_H
27845 # include <db_185.h>
27846 #else
27847 # include <db.h>
27848 #endif
27849
27850 #ifndef DB_VERSION_MAJOR
27851 # define DB_VERSION_MAJOR 1
27852 #endif
27853
27854 #ifndef NULL
27855 #define NULL ((void*)0)
27856 #endif
27857
27858 int
27859 main ()
27860 {
27861
27862 #if DB_VERSION_MAJOR > 1
27863         {
27864                 char *version;
27865                 int major, minor, patch;
27866
27867                 version = db_version( &major, &minor, &patch );
27868
27869                 if( major != DB_VERSION_MAJOR ||
27870                         minor < DB_VERSION_MINOR )
27871                 {
27872                         printf("Berkeley DB version mismatch\n"
27873                                 "\theader: %s\n\tlibrary: %s\n",
27874                                 DB_VERSION_STRING, version);
27875                         return 1;
27876                 }
27877         }
27878 #endif
27879
27880 #if DB_VERSION_MAJOR > 2
27881         db_env_create( NULL, 0 );
27882 #elif DB_VERSION_MAJOR > 1
27883         db_appexit( NULL );
27884 #else
27885         (void) dbopen( NULL, 0, 0, 0, NULL);
27886 #endif
27887
27888   ;
27889   return 0;
27890 }
27891 _ACEOF
27892 rm -f conftest.$ac_objext conftest$ac_exeext
27893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27894   (eval $ac_link) 2>conftest.er1
27895   ac_status=$?
27896   grep -v '^ *+' conftest.er1 >conftest.err
27897   rm -f conftest.er1
27898   cat conftest.err >&5
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); } &&
27901          { ac_try='test -z "$ac_c_werror_flag"
27902                          || test ! -s conftest.err'
27903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27904   (eval $ac_try) 2>&5
27905   ac_status=$?
27906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27907   (exit $ac_status); }; } &&
27908          { ac_try='test -s conftest$ac_exeext'
27909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27910   (eval $ac_try) 2>&5
27911   ac_status=$?
27912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27913   (exit $ac_status); }; }; then
27914   ol_cv_db_none=yes
27915 else
27916   echo "$as_me: failed program was:" >&5
27917 sed 's/^/| /' conftest.$ac_ext >&5
27918
27919 ol_cv_db_none=no
27920 fi
27921 rm -f conftest.err conftest.$ac_objext \
27922       conftest$ac_exeext conftest.$ac_ext
27923
27924         LIBS="$ol_LIBS"
27925
27926 fi
27927 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
27928 echo "${ECHO_T}$ol_cv_db_none" >&6
27929
27930         if test $ol_cv_db_none = yes ; then
27931                 ol_cv_lib_db=yes
27932         fi
27933 fi
27934
27935 if test $ol_cv_lib_db = no ; then
27936         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
27937 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
27938 if test "${ol_cv_db_db43+set}" = set; then
27939   echo $ECHO_N "(cached) $ECHO_C" >&6
27940 else
27941
27942         ol_DB_LIB=-ldb43
27943         ol_LIBS=$LIBS
27944         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
27945
27946         cat >conftest.$ac_ext <<_ACEOF
27947 /* confdefs.h.  */
27948 _ACEOF
27949 cat confdefs.h >>conftest.$ac_ext
27950 cat >>conftest.$ac_ext <<_ACEOF
27951 /* end confdefs.h.  */
27952
27953 #ifdef HAVE_DB_185_H
27954 # include <db_185.h>
27955 #else
27956 # include <db.h>
27957 #endif
27958
27959 #ifndef DB_VERSION_MAJOR
27960 # define DB_VERSION_MAJOR 1
27961 #endif
27962
27963 #ifndef NULL
27964 #define NULL ((void*)0)
27965 #endif
27966
27967 int
27968 main ()
27969 {
27970
27971 #if DB_VERSION_MAJOR > 1
27972         {
27973                 char *version;
27974                 int major, minor, patch;
27975
27976                 version = db_version( &major, &minor, &patch );
27977
27978                 if( major != DB_VERSION_MAJOR ||
27979                         minor < DB_VERSION_MINOR )
27980                 {
27981                         printf("Berkeley DB version mismatch\n"
27982                                 "\theader: %s\n\tlibrary: %s\n",
27983                                 DB_VERSION_STRING, version);
27984                         return 1;
27985                 }
27986         }
27987 #endif
27988
27989 #if DB_VERSION_MAJOR > 2
27990         db_env_create( NULL, 0 );
27991 #elif DB_VERSION_MAJOR > 1
27992         db_appexit( NULL );
27993 #else
27994         (void) dbopen( NULL, 0, 0, 0, NULL);
27995 #endif
27996
27997   ;
27998   return 0;
27999 }
28000 _ACEOF
28001 rm -f conftest.$ac_objext conftest$ac_exeext
28002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28003   (eval $ac_link) 2>conftest.er1
28004   ac_status=$?
28005   grep -v '^ *+' conftest.er1 >conftest.err
28006   rm -f conftest.er1
28007   cat conftest.err >&5
28008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28009   (exit $ac_status); } &&
28010          { ac_try='test -z "$ac_c_werror_flag"
28011                          || test ! -s conftest.err'
28012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013   (eval $ac_try) 2>&5
28014   ac_status=$?
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); }; } &&
28017          { ac_try='test -s conftest$ac_exeext'
28018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28019   (eval $ac_try) 2>&5
28020   ac_status=$?
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); }; }; then
28023   ol_cv_db_db43=yes
28024 else
28025   echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28027
28028 ol_cv_db_db43=no
28029 fi
28030 rm -f conftest.err conftest.$ac_objext \
28031       conftest$ac_exeext conftest.$ac_ext
28032
28033         LIBS="$ol_LIBS"
28034
28035 fi
28036 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
28037 echo "${ECHO_T}$ol_cv_db_db43" >&6
28038
28039         if test $ol_cv_db_db43 = yes ; then
28040                 ol_cv_lib_db=-ldb43
28041         fi
28042 fi
28043
28044 if test $ol_cv_lib_db = no ; then
28045         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
28046 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
28047 if test "${ol_cv_db_db_43+set}" = set; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050
28051         ol_DB_LIB=-ldb-43
28052         ol_LIBS=$LIBS
28053         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28054
28055         cat >conftest.$ac_ext <<_ACEOF
28056 /* confdefs.h.  */
28057 _ACEOF
28058 cat confdefs.h >>conftest.$ac_ext
28059 cat >>conftest.$ac_ext <<_ACEOF
28060 /* end confdefs.h.  */
28061
28062 #ifdef HAVE_DB_185_H
28063 # include <db_185.h>
28064 #else
28065 # include <db.h>
28066 #endif
28067
28068 #ifndef DB_VERSION_MAJOR
28069 # define DB_VERSION_MAJOR 1
28070 #endif
28071
28072 #ifndef NULL
28073 #define NULL ((void*)0)
28074 #endif
28075
28076 int
28077 main ()
28078 {
28079
28080 #if DB_VERSION_MAJOR > 1
28081         {
28082                 char *version;
28083                 int major, minor, patch;
28084
28085                 version = db_version( &major, &minor, &patch );
28086
28087                 if( major != DB_VERSION_MAJOR ||
28088                         minor < DB_VERSION_MINOR )
28089                 {
28090                         printf("Berkeley DB version mismatch\n"
28091                                 "\theader: %s\n\tlibrary: %s\n",
28092                                 DB_VERSION_STRING, version);
28093                         return 1;
28094                 }
28095         }
28096 #endif
28097
28098 #if DB_VERSION_MAJOR > 2
28099         db_env_create( NULL, 0 );
28100 #elif DB_VERSION_MAJOR > 1
28101         db_appexit( NULL );
28102 #else
28103         (void) dbopen( NULL, 0, 0, 0, NULL);
28104 #endif
28105
28106   ;
28107   return 0;
28108 }
28109 _ACEOF
28110 rm -f conftest.$ac_objext conftest$ac_exeext
28111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28112   (eval $ac_link) 2>conftest.er1
28113   ac_status=$?
28114   grep -v '^ *+' conftest.er1 >conftest.err
28115   rm -f conftest.er1
28116   cat conftest.err >&5
28117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118   (exit $ac_status); } &&
28119          { ac_try='test -z "$ac_c_werror_flag"
28120                          || test ! -s conftest.err'
28121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28122   (eval $ac_try) 2>&5
28123   ac_status=$?
28124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28125   (exit $ac_status); }; } &&
28126          { ac_try='test -s conftest$ac_exeext'
28127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128   (eval $ac_try) 2>&5
28129   ac_status=$?
28130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131   (exit $ac_status); }; }; then
28132   ol_cv_db_db_43=yes
28133 else
28134   echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28136
28137 ol_cv_db_db_43=no
28138 fi
28139 rm -f conftest.err conftest.$ac_objext \
28140       conftest$ac_exeext conftest.$ac_ext
28141
28142         LIBS="$ol_LIBS"
28143
28144 fi
28145 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
28146 echo "${ECHO_T}$ol_cv_db_db_43" >&6
28147
28148         if test $ol_cv_db_db_43 = yes ; then
28149                 ol_cv_lib_db=-ldb-43
28150         fi
28151 fi
28152
28153 if test $ol_cv_lib_db = no ; then
28154         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
28155 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
28156 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
28157   echo $ECHO_N "(cached) $ECHO_C" >&6
28158 else
28159
28160         ol_DB_LIB=-ldb-4.3
28161         ol_LIBS=$LIBS
28162         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28163
28164         cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170
28171 #ifdef HAVE_DB_185_H
28172 # include <db_185.h>
28173 #else
28174 # include <db.h>
28175 #endif
28176
28177 #ifndef DB_VERSION_MAJOR
28178 # define DB_VERSION_MAJOR 1
28179 #endif
28180
28181 #ifndef NULL
28182 #define NULL ((void*)0)
28183 #endif
28184
28185 int
28186 main ()
28187 {
28188
28189 #if DB_VERSION_MAJOR > 1
28190         {
28191                 char *version;
28192                 int major, minor, patch;
28193
28194                 version = db_version( &major, &minor, &patch );
28195
28196                 if( major != DB_VERSION_MAJOR ||
28197                         minor < DB_VERSION_MINOR )
28198                 {
28199                         printf("Berkeley DB version mismatch\n"
28200                                 "\theader: %s\n\tlibrary: %s\n",
28201                                 DB_VERSION_STRING, version);
28202                         return 1;
28203                 }
28204         }
28205 #endif
28206
28207 #if DB_VERSION_MAJOR > 2
28208         db_env_create( NULL, 0 );
28209 #elif DB_VERSION_MAJOR > 1
28210         db_appexit( NULL );
28211 #else
28212         (void) dbopen( NULL, 0, 0, 0, NULL);
28213 #endif
28214
28215   ;
28216   return 0;
28217 }
28218 _ACEOF
28219 rm -f conftest.$ac_objext conftest$ac_exeext
28220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28221   (eval $ac_link) 2>conftest.er1
28222   ac_status=$?
28223   grep -v '^ *+' conftest.er1 >conftest.err
28224   rm -f conftest.er1
28225   cat conftest.err >&5
28226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227   (exit $ac_status); } &&
28228          { ac_try='test -z "$ac_c_werror_flag"
28229                          || test ! -s conftest.err'
28230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28231   (eval $ac_try) 2>&5
28232   ac_status=$?
28233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234   (exit $ac_status); }; } &&
28235          { ac_try='test -s conftest$ac_exeext'
28236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28237   (eval $ac_try) 2>&5
28238   ac_status=$?
28239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240   (exit $ac_status); }; }; then
28241   ol_cv_db_db_4_dot_3=yes
28242 else
28243   echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ol_cv_db_db_4_dot_3=no
28247 fi
28248 rm -f conftest.err conftest.$ac_objext \
28249       conftest$ac_exeext conftest.$ac_ext
28250
28251         LIBS="$ol_LIBS"
28252
28253 fi
28254 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
28255 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
28256
28257         if test $ol_cv_db_db_4_dot_3 = yes ; then
28258                 ol_cv_lib_db=-ldb-4.3
28259         fi
28260 fi
28261
28262 if test $ol_cv_lib_db = no ; then
28263         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
28264 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
28265 if test "${ol_cv_db_db_4_3+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268
28269         ol_DB_LIB=-ldb-4-3
28270         ol_LIBS=$LIBS
28271         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28272
28273         cat >conftest.$ac_ext <<_ACEOF
28274 /* confdefs.h.  */
28275 _ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h.  */
28279
28280 #ifdef HAVE_DB_185_H
28281 # include <db_185.h>
28282 #else
28283 # include <db.h>
28284 #endif
28285
28286 #ifndef DB_VERSION_MAJOR
28287 # define DB_VERSION_MAJOR 1
28288 #endif
28289
28290 #ifndef NULL
28291 #define NULL ((void*)0)
28292 #endif
28293
28294 int
28295 main ()
28296 {
28297
28298 #if DB_VERSION_MAJOR > 1
28299         {
28300                 char *version;
28301                 int major, minor, patch;
28302
28303                 version = db_version( &major, &minor, &patch );
28304
28305                 if( major != DB_VERSION_MAJOR ||
28306                         minor < DB_VERSION_MINOR )
28307                 {
28308                         printf("Berkeley DB version mismatch\n"
28309                                 "\theader: %s\n\tlibrary: %s\n",
28310                                 DB_VERSION_STRING, version);
28311                         return 1;
28312                 }
28313         }
28314 #endif
28315
28316 #if DB_VERSION_MAJOR > 2
28317         db_env_create( NULL, 0 );
28318 #elif DB_VERSION_MAJOR > 1
28319         db_appexit( NULL );
28320 #else
28321         (void) dbopen( NULL, 0, 0, 0, NULL);
28322 #endif
28323
28324   ;
28325   return 0;
28326 }
28327 _ACEOF
28328 rm -f conftest.$ac_objext conftest$ac_exeext
28329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28330   (eval $ac_link) 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } &&
28337          { ac_try='test -z "$ac_c_werror_flag"
28338                          || test ! -s conftest.err'
28339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340   (eval $ac_try) 2>&5
28341   ac_status=$?
28342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343   (exit $ac_status); }; } &&
28344          { ac_try='test -s conftest$ac_exeext'
28345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346   (eval $ac_try) 2>&5
28347   ac_status=$?
28348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349   (exit $ac_status); }; }; then
28350   ol_cv_db_db_4_3=yes
28351 else
28352   echo "$as_me: failed program was:" >&5
28353 sed 's/^/| /' conftest.$ac_ext >&5
28354
28355 ol_cv_db_db_4_3=no
28356 fi
28357 rm -f conftest.err conftest.$ac_objext \
28358       conftest$ac_exeext conftest.$ac_ext
28359
28360         LIBS="$ol_LIBS"
28361
28362 fi
28363 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
28364 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
28365
28366         if test $ol_cv_db_db_4_3 = yes ; then
28367                 ol_cv_lib_db=-ldb-4-3
28368         fi
28369 fi
28370
28371 if test $ol_cv_lib_db = no ; then
28372         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
28373 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
28374 if test "${ol_cv_db_db42+set}" = set; then
28375   echo $ECHO_N "(cached) $ECHO_C" >&6
28376 else
28377
28378         ol_DB_LIB=-ldb42
28379         ol_LIBS=$LIBS
28380         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28381
28382         cat >conftest.$ac_ext <<_ACEOF
28383 /* confdefs.h.  */
28384 _ACEOF
28385 cat confdefs.h >>conftest.$ac_ext
28386 cat >>conftest.$ac_ext <<_ACEOF
28387 /* end confdefs.h.  */
28388
28389 #ifdef HAVE_DB_185_H
28390 # include <db_185.h>
28391 #else
28392 # include <db.h>
28393 #endif
28394
28395 #ifndef DB_VERSION_MAJOR
28396 # define DB_VERSION_MAJOR 1
28397 #endif
28398
28399 #ifndef NULL
28400 #define NULL ((void*)0)
28401 #endif
28402
28403 int
28404 main ()
28405 {
28406
28407 #if DB_VERSION_MAJOR > 1
28408         {
28409                 char *version;
28410                 int major, minor, patch;
28411
28412                 version = db_version( &major, &minor, &patch );
28413
28414                 if( major != DB_VERSION_MAJOR ||
28415                         minor < DB_VERSION_MINOR )
28416                 {
28417                         printf("Berkeley DB version mismatch\n"
28418                                 "\theader: %s\n\tlibrary: %s\n",
28419                                 DB_VERSION_STRING, version);
28420                         return 1;
28421                 }
28422         }
28423 #endif
28424
28425 #if DB_VERSION_MAJOR > 2
28426         db_env_create( NULL, 0 );
28427 #elif DB_VERSION_MAJOR > 1
28428         db_appexit( NULL );
28429 #else
28430         (void) dbopen( NULL, 0, 0, 0, NULL);
28431 #endif
28432
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28439   (eval $ac_link) 2>conftest.er1
28440   ac_status=$?
28441   grep -v '^ *+' conftest.er1 >conftest.err
28442   rm -f conftest.er1
28443   cat conftest.err >&5
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } &&
28446          { ac_try='test -z "$ac_c_werror_flag"
28447                          || test ! -s conftest.err'
28448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449   (eval $ac_try) 2>&5
28450   ac_status=$?
28451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452   (exit $ac_status); }; } &&
28453          { ac_try='test -s conftest$ac_exeext'
28454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455   (eval $ac_try) 2>&5
28456   ac_status=$?
28457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458   (exit $ac_status); }; }; then
28459   ol_cv_db_db42=yes
28460 else
28461   echo "$as_me: failed program was:" >&5
28462 sed 's/^/| /' conftest.$ac_ext >&5
28463
28464 ol_cv_db_db42=no
28465 fi
28466 rm -f conftest.err conftest.$ac_objext \
28467       conftest$ac_exeext conftest.$ac_ext
28468
28469         LIBS="$ol_LIBS"
28470
28471 fi
28472 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
28473 echo "${ECHO_T}$ol_cv_db_db42" >&6
28474
28475         if test $ol_cv_db_db42 = yes ; then
28476                 ol_cv_lib_db=-ldb42
28477         fi
28478 fi
28479
28480 if test $ol_cv_lib_db = no ; then
28481         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
28482 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
28483 if test "${ol_cv_db_db_42+set}" = set; then
28484   echo $ECHO_N "(cached) $ECHO_C" >&6
28485 else
28486
28487         ol_DB_LIB=-ldb-42
28488         ol_LIBS=$LIBS
28489         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28490
28491         cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497
28498 #ifdef HAVE_DB_185_H
28499 # include <db_185.h>
28500 #else
28501 # include <db.h>
28502 #endif
28503
28504 #ifndef DB_VERSION_MAJOR
28505 # define DB_VERSION_MAJOR 1
28506 #endif
28507
28508 #ifndef NULL
28509 #define NULL ((void*)0)
28510 #endif
28511
28512 int
28513 main ()
28514 {
28515
28516 #if DB_VERSION_MAJOR > 1
28517         {
28518                 char *version;
28519                 int major, minor, patch;
28520
28521                 version = db_version( &major, &minor, &patch );
28522
28523                 if( major != DB_VERSION_MAJOR ||
28524                         minor < DB_VERSION_MINOR )
28525                 {
28526                         printf("Berkeley DB version mismatch\n"
28527                                 "\theader: %s\n\tlibrary: %s\n",
28528                                 DB_VERSION_STRING, version);
28529                         return 1;
28530                 }
28531         }
28532 #endif
28533
28534 #if DB_VERSION_MAJOR > 2
28535         db_env_create( NULL, 0 );
28536 #elif DB_VERSION_MAJOR > 1
28537         db_appexit( NULL );
28538 #else
28539         (void) dbopen( NULL, 0, 0, 0, NULL);
28540 #endif
28541
28542   ;
28543   return 0;
28544 }
28545 _ACEOF
28546 rm -f conftest.$ac_objext conftest$ac_exeext
28547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28548   (eval $ac_link) 2>conftest.er1
28549   ac_status=$?
28550   grep -v '^ *+' conftest.er1 >conftest.err
28551   rm -f conftest.er1
28552   cat conftest.err >&5
28553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554   (exit $ac_status); } &&
28555          { ac_try='test -z "$ac_c_werror_flag"
28556                          || test ! -s conftest.err'
28557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558   (eval $ac_try) 2>&5
28559   ac_status=$?
28560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561   (exit $ac_status); }; } &&
28562          { ac_try='test -s conftest$ac_exeext'
28563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564   (eval $ac_try) 2>&5
28565   ac_status=$?
28566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); }; }; then
28568   ol_cv_db_db_42=yes
28569 else
28570   echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573 ol_cv_db_db_42=no
28574 fi
28575 rm -f conftest.err conftest.$ac_objext \
28576       conftest$ac_exeext conftest.$ac_ext
28577
28578         LIBS="$ol_LIBS"
28579
28580 fi
28581 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
28582 echo "${ECHO_T}$ol_cv_db_db_42" >&6
28583
28584         if test $ol_cv_db_db_42 = yes ; then
28585                 ol_cv_lib_db=-ldb-42
28586         fi
28587 fi
28588
28589 if test $ol_cv_lib_db = no ; then
28590         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
28591 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
28592 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
28593   echo $ECHO_N "(cached) $ECHO_C" >&6
28594 else
28595
28596         ol_DB_LIB=-ldb-4.2
28597         ol_LIBS=$LIBS
28598         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28599
28600         cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606
28607 #ifdef HAVE_DB_185_H
28608 # include <db_185.h>
28609 #else
28610 # include <db.h>
28611 #endif
28612
28613 #ifndef DB_VERSION_MAJOR
28614 # define DB_VERSION_MAJOR 1
28615 #endif
28616
28617 #ifndef NULL
28618 #define NULL ((void*)0)
28619 #endif
28620
28621 int
28622 main ()
28623 {
28624
28625 #if DB_VERSION_MAJOR > 1
28626         {
28627                 char *version;
28628                 int major, minor, patch;
28629
28630                 version = db_version( &major, &minor, &patch );
28631
28632                 if( major != DB_VERSION_MAJOR ||
28633                         minor < DB_VERSION_MINOR )
28634                 {
28635                         printf("Berkeley DB version mismatch\n"
28636                                 "\theader: %s\n\tlibrary: %s\n",
28637                                 DB_VERSION_STRING, version);
28638                         return 1;
28639                 }
28640         }
28641 #endif
28642
28643 #if DB_VERSION_MAJOR > 2
28644         db_env_create( NULL, 0 );
28645 #elif DB_VERSION_MAJOR > 1
28646         db_appexit( NULL );
28647 #else
28648         (void) dbopen( NULL, 0, 0, 0, NULL);
28649 #endif
28650
28651   ;
28652   return 0;
28653 }
28654 _ACEOF
28655 rm -f conftest.$ac_objext conftest$ac_exeext
28656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28657   (eval $ac_link) 2>conftest.er1
28658   ac_status=$?
28659   grep -v '^ *+' conftest.er1 >conftest.err
28660   rm -f conftest.er1
28661   cat conftest.err >&5
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); } &&
28664          { ac_try='test -z "$ac_c_werror_flag"
28665                          || test ! -s conftest.err'
28666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667   (eval $ac_try) 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); }; } &&
28671          { ac_try='test -s conftest$ac_exeext'
28672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28673   (eval $ac_try) 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); }; }; then
28677   ol_cv_db_db_4_dot_2=yes
28678 else
28679   echo "$as_me: failed program was:" >&5
28680 sed 's/^/| /' conftest.$ac_ext >&5
28681
28682 ol_cv_db_db_4_dot_2=no
28683 fi
28684 rm -f conftest.err conftest.$ac_objext \
28685       conftest$ac_exeext conftest.$ac_ext
28686
28687         LIBS="$ol_LIBS"
28688
28689 fi
28690 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
28691 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
28692
28693         if test $ol_cv_db_db_4_dot_2 = yes ; then
28694                 ol_cv_lib_db=-ldb-4.2
28695         fi
28696 fi
28697
28698 if test $ol_cv_lib_db = no ; then
28699         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
28700 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
28701 if test "${ol_cv_db_db_4_2+set}" = set; then
28702   echo $ECHO_N "(cached) $ECHO_C" >&6
28703 else
28704
28705         ol_DB_LIB=-ldb-4-2
28706         ol_LIBS=$LIBS
28707         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28708
28709         cat >conftest.$ac_ext <<_ACEOF
28710 /* confdefs.h.  */
28711 _ACEOF
28712 cat confdefs.h >>conftest.$ac_ext
28713 cat >>conftest.$ac_ext <<_ACEOF
28714 /* end confdefs.h.  */
28715
28716 #ifdef HAVE_DB_185_H
28717 # include <db_185.h>
28718 #else
28719 # include <db.h>
28720 #endif
28721
28722 #ifndef DB_VERSION_MAJOR
28723 # define DB_VERSION_MAJOR 1
28724 #endif
28725
28726 #ifndef NULL
28727 #define NULL ((void*)0)
28728 #endif
28729
28730 int
28731 main ()
28732 {
28733
28734 #if DB_VERSION_MAJOR > 1
28735         {
28736                 char *version;
28737                 int major, minor, patch;
28738
28739                 version = db_version( &major, &minor, &patch );
28740
28741                 if( major != DB_VERSION_MAJOR ||
28742                         minor < DB_VERSION_MINOR )
28743                 {
28744                         printf("Berkeley DB version mismatch\n"
28745                                 "\theader: %s\n\tlibrary: %s\n",
28746                                 DB_VERSION_STRING, version);
28747                         return 1;
28748                 }
28749         }
28750 #endif
28751
28752 #if DB_VERSION_MAJOR > 2
28753         db_env_create( NULL, 0 );
28754 #elif DB_VERSION_MAJOR > 1
28755         db_appexit( NULL );
28756 #else
28757         (void) dbopen( NULL, 0, 0, 0, NULL);
28758 #endif
28759
28760   ;
28761   return 0;
28762 }
28763 _ACEOF
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28766   (eval $ac_link) 2>conftest.er1
28767   ac_status=$?
28768   grep -v '^ *+' conftest.er1 >conftest.err
28769   rm -f conftest.er1
28770   cat conftest.err >&5
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); } &&
28773          { ac_try='test -z "$ac_c_werror_flag"
28774                          || test ! -s conftest.err'
28775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776   (eval $ac_try) 2>&5
28777   ac_status=$?
28778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779   (exit $ac_status); }; } &&
28780          { ac_try='test -s conftest$ac_exeext'
28781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782   (eval $ac_try) 2>&5
28783   ac_status=$?
28784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785   (exit $ac_status); }; }; then
28786   ol_cv_db_db_4_2=yes
28787 else
28788   echo "$as_me: failed program was:" >&5
28789 sed 's/^/| /' conftest.$ac_ext >&5
28790
28791 ol_cv_db_db_4_2=no
28792 fi
28793 rm -f conftest.err conftest.$ac_objext \
28794       conftest$ac_exeext conftest.$ac_ext
28795
28796         LIBS="$ol_LIBS"
28797
28798 fi
28799 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
28800 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
28801
28802         if test $ol_cv_db_db_4_2 = yes ; then
28803                 ol_cv_lib_db=-ldb-4-2
28804         fi
28805 fi
28806
28807 if test $ol_cv_lib_db = no ; then
28808         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28809 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28810 if test "${ol_cv_db_db_4+set}" = set; then
28811   echo $ECHO_N "(cached) $ECHO_C" >&6
28812 else
28813
28814         ol_DB_LIB=-ldb-4
28815         ol_LIBS=$LIBS
28816         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28817
28818         cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h.  */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h.  */
28824
28825 #ifdef HAVE_DB_185_H
28826 # include <db_185.h>
28827 #else
28828 # include <db.h>
28829 #endif
28830
28831 #ifndef DB_VERSION_MAJOR
28832 # define DB_VERSION_MAJOR 1
28833 #endif
28834
28835 #ifndef NULL
28836 #define NULL ((void*)0)
28837 #endif
28838
28839 int
28840 main ()
28841 {
28842
28843 #if DB_VERSION_MAJOR > 1
28844         {
28845                 char *version;
28846                 int major, minor, patch;
28847
28848                 version = db_version( &major, &minor, &patch );
28849
28850                 if( major != DB_VERSION_MAJOR ||
28851                         minor < DB_VERSION_MINOR )
28852                 {
28853                         printf("Berkeley DB version mismatch\n"
28854                                 "\theader: %s\n\tlibrary: %s\n",
28855                                 DB_VERSION_STRING, version);
28856                         return 1;
28857                 }
28858         }
28859 #endif
28860
28861 #if DB_VERSION_MAJOR > 2
28862         db_env_create( NULL, 0 );
28863 #elif DB_VERSION_MAJOR > 1
28864         db_appexit( NULL );
28865 #else
28866         (void) dbopen( NULL, 0, 0, 0, NULL);
28867 #endif
28868
28869   ;
28870   return 0;
28871 }
28872 _ACEOF
28873 rm -f conftest.$ac_objext conftest$ac_exeext
28874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28875   (eval $ac_link) 2>conftest.er1
28876   ac_status=$?
28877   grep -v '^ *+' conftest.er1 >conftest.err
28878   rm -f conftest.er1
28879   cat conftest.err >&5
28880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881   (exit $ac_status); } &&
28882          { ac_try='test -z "$ac_c_werror_flag"
28883                          || test ! -s conftest.err'
28884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28885   (eval $ac_try) 2>&5
28886   ac_status=$?
28887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888   (exit $ac_status); }; } &&
28889          { ac_try='test -s conftest$ac_exeext'
28890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28891   (eval $ac_try) 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); }; }; then
28895   ol_cv_db_db_4=yes
28896 else
28897   echo "$as_me: failed program was:" >&5
28898 sed 's/^/| /' conftest.$ac_ext >&5
28899
28900 ol_cv_db_db_4=no
28901 fi
28902 rm -f conftest.err conftest.$ac_objext \
28903       conftest$ac_exeext conftest.$ac_ext
28904
28905         LIBS="$ol_LIBS"
28906
28907 fi
28908 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28909 echo "${ECHO_T}$ol_cv_db_db_4" >&6
28910
28911         if test $ol_cv_db_db_4 = yes ; then
28912                 ol_cv_lib_db=-ldb-4
28913         fi
28914 fi
28915
28916 if test $ol_cv_lib_db = no ; then
28917         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28918 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
28919 if test "${ol_cv_db_db4+set}" = set; then
28920   echo $ECHO_N "(cached) $ECHO_C" >&6
28921 else
28922
28923         ol_DB_LIB=-ldb4
28924         ol_LIBS=$LIBS
28925         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28926
28927         cat >conftest.$ac_ext <<_ACEOF
28928 /* confdefs.h.  */
28929 _ACEOF
28930 cat confdefs.h >>conftest.$ac_ext
28931 cat >>conftest.$ac_ext <<_ACEOF
28932 /* end confdefs.h.  */
28933
28934 #ifdef HAVE_DB_185_H
28935 # include <db_185.h>
28936 #else
28937 # include <db.h>
28938 #endif
28939
28940 #ifndef DB_VERSION_MAJOR
28941 # define DB_VERSION_MAJOR 1
28942 #endif
28943
28944 #ifndef NULL
28945 #define NULL ((void*)0)
28946 #endif
28947
28948 int
28949 main ()
28950 {
28951
28952 #if DB_VERSION_MAJOR > 1
28953         {
28954                 char *version;
28955                 int major, minor, patch;
28956
28957                 version = db_version( &major, &minor, &patch );
28958
28959                 if( major != DB_VERSION_MAJOR ||
28960                         minor < DB_VERSION_MINOR )
28961                 {
28962                         printf("Berkeley DB version mismatch\n"
28963                                 "\theader: %s\n\tlibrary: %s\n",
28964                                 DB_VERSION_STRING, version);
28965                         return 1;
28966                 }
28967         }
28968 #endif
28969
28970 #if DB_VERSION_MAJOR > 2
28971         db_env_create( NULL, 0 );
28972 #elif DB_VERSION_MAJOR > 1
28973         db_appexit( NULL );
28974 #else
28975         (void) dbopen( NULL, 0, 0, 0, NULL);
28976 #endif
28977
28978   ;
28979   return 0;
28980 }
28981 _ACEOF
28982 rm -f conftest.$ac_objext conftest$ac_exeext
28983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28984   (eval $ac_link) 2>conftest.er1
28985   ac_status=$?
28986   grep -v '^ *+' conftest.er1 >conftest.err
28987   rm -f conftest.er1
28988   cat conftest.err >&5
28989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990   (exit $ac_status); } &&
28991          { ac_try='test -z "$ac_c_werror_flag"
28992                          || test ! -s conftest.err'
28993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28994   (eval $ac_try) 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; } &&
28998          { ac_try='test -s conftest$ac_exeext'
28999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000   (eval $ac_try) 2>&5
29001   ac_status=$?
29002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003   (exit $ac_status); }; }; then
29004   ol_cv_db_db4=yes
29005 else
29006   echo "$as_me: failed program was:" >&5
29007 sed 's/^/| /' conftest.$ac_ext >&5
29008
29009 ol_cv_db_db4=no
29010 fi
29011 rm -f conftest.err conftest.$ac_objext \
29012       conftest$ac_exeext conftest.$ac_ext
29013
29014         LIBS="$ol_LIBS"
29015
29016 fi
29017 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29018 echo "${ECHO_T}$ol_cv_db_db4" >&6
29019
29020         if test $ol_cv_db_db4 = yes ; then
29021                 ol_cv_lib_db=-ldb4
29022         fi
29023 fi
29024
29025 if test $ol_cv_lib_db = no ; then
29026         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29027 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29028 if test "${ol_cv_db_db+set}" = set; then
29029   echo $ECHO_N "(cached) $ECHO_C" >&6
29030 else
29031
29032         ol_DB_LIB=-ldb
29033         ol_LIBS=$LIBS
29034         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29035
29036         cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042
29043 #ifdef HAVE_DB_185_H
29044 # include <db_185.h>
29045 #else
29046 # include <db.h>
29047 #endif
29048
29049 #ifndef DB_VERSION_MAJOR
29050 # define DB_VERSION_MAJOR 1
29051 #endif
29052
29053 #ifndef NULL
29054 #define NULL ((void*)0)
29055 #endif
29056
29057 int
29058 main ()
29059 {
29060
29061 #if DB_VERSION_MAJOR > 1
29062         {
29063                 char *version;
29064                 int major, minor, patch;
29065
29066                 version = db_version( &major, &minor, &patch );
29067
29068                 if( major != DB_VERSION_MAJOR ||
29069                         minor < DB_VERSION_MINOR )
29070                 {
29071                         printf("Berkeley DB version mismatch\n"
29072                                 "\theader: %s\n\tlibrary: %s\n",
29073                                 DB_VERSION_STRING, version);
29074                         return 1;
29075                 }
29076         }
29077 #endif
29078
29079 #if DB_VERSION_MAJOR > 2
29080         db_env_create( NULL, 0 );
29081 #elif DB_VERSION_MAJOR > 1
29082         db_appexit( NULL );
29083 #else
29084         (void) dbopen( NULL, 0, 0, 0, NULL);
29085 #endif
29086
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093   (eval $ac_link) 2>conftest.er1
29094   ac_status=$?
29095   grep -v '^ *+' conftest.er1 >conftest.err
29096   rm -f conftest.er1
29097   cat conftest.err >&5
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); } &&
29100          { ac_try='test -z "$ac_c_werror_flag"
29101                          || test ! -s conftest.err'
29102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103   (eval $ac_try) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; } &&
29107          { ac_try='test -s conftest$ac_exeext'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; }; then
29113   ol_cv_db_db=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ol_cv_db_db=no
29119 fi
29120 rm -f conftest.err conftest.$ac_objext \
29121       conftest$ac_exeext conftest.$ac_ext
29122
29123         LIBS="$ol_LIBS"
29124
29125 fi
29126 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29127 echo "${ECHO_T}$ol_cv_db_db" >&6
29128
29129         if test $ol_cv_db_db = yes ; then
29130                 ol_cv_lib_db=-ldb
29131         fi
29132 fi
29133
29134 if test $ol_cv_lib_db = no ; then
29135         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
29136 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
29137 if test "${ol_cv_db_db41+set}" = set; then
29138   echo $ECHO_N "(cached) $ECHO_C" >&6
29139 else
29140
29141         ol_DB_LIB=-ldb41
29142         ol_LIBS=$LIBS
29143         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29144
29145         cat >conftest.$ac_ext <<_ACEOF
29146 /* confdefs.h.  */
29147 _ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h.  */
29151
29152 #ifdef HAVE_DB_185_H
29153 # include <db_185.h>
29154 #else
29155 # include <db.h>
29156 #endif
29157
29158 #ifndef DB_VERSION_MAJOR
29159 # define DB_VERSION_MAJOR 1
29160 #endif
29161
29162 #ifndef NULL
29163 #define NULL ((void*)0)
29164 #endif
29165
29166 int
29167 main ()
29168 {
29169
29170 #if DB_VERSION_MAJOR > 1
29171         {
29172                 char *version;
29173                 int major, minor, patch;
29174
29175                 version = db_version( &major, &minor, &patch );
29176
29177                 if( major != DB_VERSION_MAJOR ||
29178                         minor < DB_VERSION_MINOR )
29179                 {
29180                         printf("Berkeley DB version mismatch\n"
29181                                 "\theader: %s\n\tlibrary: %s\n",
29182                                 DB_VERSION_STRING, version);
29183                         return 1;
29184                 }
29185         }
29186 #endif
29187
29188 #if DB_VERSION_MAJOR > 2
29189         db_env_create( NULL, 0 );
29190 #elif DB_VERSION_MAJOR > 1
29191         db_appexit( NULL );
29192 #else
29193         (void) dbopen( NULL, 0, 0, 0, NULL);
29194 #endif
29195
29196   ;
29197   return 0;
29198 }
29199 _ACEOF
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29202   (eval $ac_link) 2>conftest.er1
29203   ac_status=$?
29204   grep -v '^ *+' conftest.er1 >conftest.err
29205   rm -f conftest.er1
29206   cat conftest.err >&5
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } &&
29209          { ac_try='test -z "$ac_c_werror_flag"
29210                          || test ! -s conftest.err'
29211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212   (eval $ac_try) 2>&5
29213   ac_status=$?
29214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215   (exit $ac_status); }; } &&
29216          { ac_try='test -s conftest$ac_exeext'
29217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218   (eval $ac_try) 2>&5
29219   ac_status=$?
29220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221   (exit $ac_status); }; }; then
29222   ol_cv_db_db41=yes
29223 else
29224   echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29226
29227 ol_cv_db_db41=no
29228 fi
29229 rm -f conftest.err conftest.$ac_objext \
29230       conftest$ac_exeext conftest.$ac_ext
29231
29232         LIBS="$ol_LIBS"
29233
29234 fi
29235 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
29236 echo "${ECHO_T}$ol_cv_db_db41" >&6
29237
29238         if test $ol_cv_db_db41 = yes ; then
29239                 ol_cv_lib_db=-ldb41
29240         fi
29241 fi
29242
29243 if test $ol_cv_lib_db = no ; then
29244         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
29245 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
29246 if test "${ol_cv_db_db_41+set}" = set; then
29247   echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249
29250         ol_DB_LIB=-ldb-41
29251         ol_LIBS=$LIBS
29252         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29253
29254         cat >conftest.$ac_ext <<_ACEOF
29255 /* confdefs.h.  */
29256 _ACEOF
29257 cat confdefs.h >>conftest.$ac_ext
29258 cat >>conftest.$ac_ext <<_ACEOF
29259 /* end confdefs.h.  */
29260
29261 #ifdef HAVE_DB_185_H
29262 # include <db_185.h>
29263 #else
29264 # include <db.h>
29265 #endif
29266
29267 #ifndef DB_VERSION_MAJOR
29268 # define DB_VERSION_MAJOR 1
29269 #endif
29270
29271 #ifndef NULL
29272 #define NULL ((void*)0)
29273 #endif
29274
29275 int
29276 main ()
29277 {
29278
29279 #if DB_VERSION_MAJOR > 1
29280         {
29281                 char *version;
29282                 int major, minor, patch;
29283
29284                 version = db_version( &major, &minor, &patch );
29285
29286                 if( major != DB_VERSION_MAJOR ||
29287                         minor < DB_VERSION_MINOR )
29288                 {
29289                         printf("Berkeley DB version mismatch\n"
29290                                 "\theader: %s\n\tlibrary: %s\n",
29291                                 DB_VERSION_STRING, version);
29292                         return 1;
29293                 }
29294         }
29295 #endif
29296
29297 #if DB_VERSION_MAJOR > 2
29298         db_env_create( NULL, 0 );
29299 #elif DB_VERSION_MAJOR > 1
29300         db_appexit( NULL );
29301 #else
29302         (void) dbopen( NULL, 0, 0, 0, NULL);
29303 #endif
29304
29305   ;
29306   return 0;
29307 }
29308 _ACEOF
29309 rm -f conftest.$ac_objext conftest$ac_exeext
29310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29311   (eval $ac_link) 2>conftest.er1
29312   ac_status=$?
29313   grep -v '^ *+' conftest.er1 >conftest.err
29314   rm -f conftest.er1
29315   cat conftest.err >&5
29316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317   (exit $ac_status); } &&
29318          { ac_try='test -z "$ac_c_werror_flag"
29319                          || test ! -s conftest.err'
29320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29321   (eval $ac_try) 2>&5
29322   ac_status=$?
29323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324   (exit $ac_status); }; } &&
29325          { ac_try='test -s conftest$ac_exeext'
29326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327   (eval $ac_try) 2>&5
29328   ac_status=$?
29329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330   (exit $ac_status); }; }; then
29331   ol_cv_db_db_41=yes
29332 else
29333   echo "$as_me: failed program was:" >&5
29334 sed 's/^/| /' conftest.$ac_ext >&5
29335
29336 ol_cv_db_db_41=no
29337 fi
29338 rm -f conftest.err conftest.$ac_objext \
29339       conftest$ac_exeext conftest.$ac_ext
29340
29341         LIBS="$ol_LIBS"
29342
29343 fi
29344 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
29345 echo "${ECHO_T}$ol_cv_db_db_41" >&6
29346
29347         if test $ol_cv_db_db_41 = yes ; then
29348                 ol_cv_lib_db=-ldb-41
29349         fi
29350 fi
29351
29352 if test $ol_cv_lib_db = no ; then
29353         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
29354 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
29355 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
29356   echo $ECHO_N "(cached) $ECHO_C" >&6
29357 else
29358
29359         ol_DB_LIB=-ldb-4.1
29360         ol_LIBS=$LIBS
29361         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29362
29363         cat >conftest.$ac_ext <<_ACEOF
29364 /* confdefs.h.  */
29365 _ACEOF
29366 cat confdefs.h >>conftest.$ac_ext
29367 cat >>conftest.$ac_ext <<_ACEOF
29368 /* end confdefs.h.  */
29369
29370 #ifdef HAVE_DB_185_H
29371 # include <db_185.h>
29372 #else
29373 # include <db.h>
29374 #endif
29375
29376 #ifndef DB_VERSION_MAJOR
29377 # define DB_VERSION_MAJOR 1
29378 #endif
29379
29380 #ifndef NULL
29381 #define NULL ((void*)0)
29382 #endif
29383
29384 int
29385 main ()
29386 {
29387
29388 #if DB_VERSION_MAJOR > 1
29389         {
29390                 char *version;
29391                 int major, minor, patch;
29392
29393                 version = db_version( &major, &minor, &patch );
29394
29395                 if( major != DB_VERSION_MAJOR ||
29396                         minor < DB_VERSION_MINOR )
29397                 {
29398                         printf("Berkeley DB version mismatch\n"
29399                                 "\theader: %s\n\tlibrary: %s\n",
29400                                 DB_VERSION_STRING, version);
29401                         return 1;
29402                 }
29403         }
29404 #endif
29405
29406 #if DB_VERSION_MAJOR > 2
29407         db_env_create( NULL, 0 );
29408 #elif DB_VERSION_MAJOR > 1
29409         db_appexit( NULL );
29410 #else
29411         (void) dbopen( NULL, 0, 0, 0, NULL);
29412 #endif
29413
29414   ;
29415   return 0;
29416 }
29417 _ACEOF
29418 rm -f conftest.$ac_objext conftest$ac_exeext
29419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29420   (eval $ac_link) 2>conftest.er1
29421   ac_status=$?
29422   grep -v '^ *+' conftest.er1 >conftest.err
29423   rm -f conftest.er1
29424   cat conftest.err >&5
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); } &&
29427          { ac_try='test -z "$ac_c_werror_flag"
29428                          || test ! -s conftest.err'
29429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430   (eval $ac_try) 2>&5
29431   ac_status=$?
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); }; } &&
29434          { ac_try='test -s conftest$ac_exeext'
29435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436   (eval $ac_try) 2>&5
29437   ac_status=$?
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); }; }; then
29440   ol_cv_db_db_4_dot_1=yes
29441 else
29442   echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29444
29445 ol_cv_db_db_4_dot_1=no
29446 fi
29447 rm -f conftest.err conftest.$ac_objext \
29448       conftest$ac_exeext conftest.$ac_ext
29449
29450         LIBS="$ol_LIBS"
29451
29452 fi
29453 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
29454 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
29455
29456         if test $ol_cv_db_db_4_dot_1 = yes ; then
29457                 ol_cv_lib_db=-ldb-4.1
29458         fi
29459 fi
29460
29461 if test $ol_cv_lib_db = no ; then
29462         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
29463 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
29464 if test "${ol_cv_db_db_4_1+set}" = set; then
29465   echo $ECHO_N "(cached) $ECHO_C" >&6
29466 else
29467
29468         ol_DB_LIB=-ldb-4-1
29469         ol_LIBS=$LIBS
29470         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29471
29472         cat >conftest.$ac_ext <<_ACEOF
29473 /* confdefs.h.  */
29474 _ACEOF
29475 cat confdefs.h >>conftest.$ac_ext
29476 cat >>conftest.$ac_ext <<_ACEOF
29477 /* end confdefs.h.  */
29478
29479 #ifdef HAVE_DB_185_H
29480 # include <db_185.h>
29481 #else
29482 # include <db.h>
29483 #endif
29484
29485 #ifndef DB_VERSION_MAJOR
29486 # define DB_VERSION_MAJOR 1
29487 #endif
29488
29489 #ifndef NULL
29490 #define NULL ((void*)0)
29491 #endif
29492
29493 int
29494 main ()
29495 {
29496
29497 #if DB_VERSION_MAJOR > 1
29498         {
29499                 char *version;
29500                 int major, minor, patch;
29501
29502                 version = db_version( &major, &minor, &patch );
29503
29504                 if( major != DB_VERSION_MAJOR ||
29505                         minor < DB_VERSION_MINOR )
29506                 {
29507                         printf("Berkeley DB version mismatch\n"
29508                                 "\theader: %s\n\tlibrary: %s\n",
29509                                 DB_VERSION_STRING, version);
29510                         return 1;
29511                 }
29512         }
29513 #endif
29514
29515 #if DB_VERSION_MAJOR > 2
29516         db_env_create( NULL, 0 );
29517 #elif DB_VERSION_MAJOR > 1
29518         db_appexit( NULL );
29519 #else
29520         (void) dbopen( NULL, 0, 0, 0, NULL);
29521 #endif
29522
29523   ;
29524   return 0;
29525 }
29526 _ACEOF
29527 rm -f conftest.$ac_objext conftest$ac_exeext
29528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29529   (eval $ac_link) 2>conftest.er1
29530   ac_status=$?
29531   grep -v '^ *+' conftest.er1 >conftest.err
29532   rm -f conftest.er1
29533   cat conftest.err >&5
29534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535   (exit $ac_status); } &&
29536          { ac_try='test -z "$ac_c_werror_flag"
29537                          || test ! -s conftest.err'
29538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29539   (eval $ac_try) 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; } &&
29543          { ac_try='test -s conftest$ac_exeext'
29544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29545   (eval $ac_try) 2>&5
29546   ac_status=$?
29547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548   (exit $ac_status); }; }; then
29549   ol_cv_db_db_4_1=yes
29550 else
29551   echo "$as_me: failed program was:" >&5
29552 sed 's/^/| /' conftest.$ac_ext >&5
29553
29554 ol_cv_db_db_4_1=no
29555 fi
29556 rm -f conftest.err conftest.$ac_objext \
29557       conftest$ac_exeext conftest.$ac_ext
29558
29559         LIBS="$ol_LIBS"
29560
29561 fi
29562 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
29563 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
29564
29565         if test $ol_cv_db_db_4_1 = yes ; then
29566                 ol_cv_lib_db=-ldb-4-1
29567         fi
29568 fi
29569
29570 if test $ol_cv_lib_db = no ; then
29571         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
29572 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
29573 if test "${ol_cv_db_db3+set}" = set; then
29574   echo $ECHO_N "(cached) $ECHO_C" >&6
29575 else
29576
29577         ol_DB_LIB=-ldb3
29578         ol_LIBS=$LIBS
29579         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29580
29581         cat >conftest.$ac_ext <<_ACEOF
29582 /* confdefs.h.  */
29583 _ACEOF
29584 cat confdefs.h >>conftest.$ac_ext
29585 cat >>conftest.$ac_ext <<_ACEOF
29586 /* end confdefs.h.  */
29587
29588 #ifdef HAVE_DB_185_H
29589 # include <db_185.h>
29590 #else
29591 # include <db.h>
29592 #endif
29593
29594 #ifndef DB_VERSION_MAJOR
29595 # define DB_VERSION_MAJOR 1
29596 #endif
29597
29598 #ifndef NULL
29599 #define NULL ((void*)0)
29600 #endif
29601
29602 int
29603 main ()
29604 {
29605
29606 #if DB_VERSION_MAJOR > 1
29607         {
29608                 char *version;
29609                 int major, minor, patch;
29610
29611                 version = db_version( &major, &minor, &patch );
29612
29613                 if( major != DB_VERSION_MAJOR ||
29614                         minor < DB_VERSION_MINOR )
29615                 {
29616                         printf("Berkeley DB version mismatch\n"
29617                                 "\theader: %s\n\tlibrary: %s\n",
29618                                 DB_VERSION_STRING, version);
29619                         return 1;
29620                 }
29621         }
29622 #endif
29623
29624 #if DB_VERSION_MAJOR > 2
29625         db_env_create( NULL, 0 );
29626 #elif DB_VERSION_MAJOR > 1
29627         db_appexit( NULL );
29628 #else
29629         (void) dbopen( NULL, 0, 0, 0, NULL);
29630 #endif
29631
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 rm -f conftest.$ac_objext conftest$ac_exeext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29638   (eval $ac_link) 2>conftest.er1
29639   ac_status=$?
29640   grep -v '^ *+' conftest.er1 >conftest.err
29641   rm -f conftest.er1
29642   cat conftest.err >&5
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); } &&
29645          { ac_try='test -z "$ac_c_werror_flag"
29646                          || test ! -s conftest.err'
29647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648   (eval $ac_try) 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; } &&
29652          { ac_try='test -s conftest$ac_exeext'
29653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654   (eval $ac_try) 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; }; then
29658   ol_cv_db_db3=yes
29659 else
29660   echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29662
29663 ol_cv_db_db3=no
29664 fi
29665 rm -f conftest.err conftest.$ac_objext \
29666       conftest$ac_exeext conftest.$ac_ext
29667
29668         LIBS="$ol_LIBS"
29669
29670 fi
29671 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
29672 echo "${ECHO_T}$ol_cv_db_db3" >&6
29673
29674         if test $ol_cv_db_db3 = yes ; then
29675                 ol_cv_lib_db=-ldb3
29676         fi
29677 fi
29678
29679 if test $ol_cv_lib_db = no ; then
29680         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
29681 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
29682 if test "${ol_cv_db_db_3+set}" = set; then
29683   echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685
29686         ol_DB_LIB=-ldb-3
29687         ol_LIBS=$LIBS
29688         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29689
29690         cat >conftest.$ac_ext <<_ACEOF
29691 /* confdefs.h.  */
29692 _ACEOF
29693 cat confdefs.h >>conftest.$ac_ext
29694 cat >>conftest.$ac_ext <<_ACEOF
29695 /* end confdefs.h.  */
29696
29697 #ifdef HAVE_DB_185_H
29698 # include <db_185.h>
29699 #else
29700 # include <db.h>
29701 #endif
29702
29703 #ifndef DB_VERSION_MAJOR
29704 # define DB_VERSION_MAJOR 1
29705 #endif
29706
29707 #ifndef NULL
29708 #define NULL ((void*)0)
29709 #endif
29710
29711 int
29712 main ()
29713 {
29714
29715 #if DB_VERSION_MAJOR > 1
29716         {
29717                 char *version;
29718                 int major, minor, patch;
29719
29720                 version = db_version( &major, &minor, &patch );
29721
29722                 if( major != DB_VERSION_MAJOR ||
29723                         minor < DB_VERSION_MINOR )
29724                 {
29725                         printf("Berkeley DB version mismatch\n"
29726                                 "\theader: %s\n\tlibrary: %s\n",
29727                                 DB_VERSION_STRING, version);
29728                         return 1;
29729                 }
29730         }
29731 #endif
29732
29733 #if DB_VERSION_MAJOR > 2
29734         db_env_create( NULL, 0 );
29735 #elif DB_VERSION_MAJOR > 1
29736         db_appexit( NULL );
29737 #else
29738         (void) dbopen( NULL, 0, 0, 0, NULL);
29739 #endif
29740
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747   (eval $ac_link) 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_c_werror_flag"
29755                          || test ! -s conftest.err'
29756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757   (eval $ac_try) 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); }; } &&
29761          { ac_try='test -s conftest$ac_exeext'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; }; then
29767   ol_cv_db_db_3=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772 ol_cv_db_db_3=no
29773 fi
29774 rm -f conftest.err conftest.$ac_objext \
29775       conftest$ac_exeext conftest.$ac_ext
29776
29777         LIBS="$ol_LIBS"
29778
29779 fi
29780 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
29781 echo "${ECHO_T}$ol_cv_db_db_3" >&6
29782
29783         if test $ol_cv_db_db_3 = yes ; then
29784                 ol_cv_lib_db=-ldb-3
29785         fi
29786 fi
29787
29788 if test $ol_cv_lib_db = no ; then
29789         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
29790 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
29791 if test "${ol_cv_db_db2+set}" = set; then
29792   echo $ECHO_N "(cached) $ECHO_C" >&6
29793 else
29794
29795         ol_DB_LIB=-ldb2
29796         ol_LIBS=$LIBS
29797         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29798
29799         cat >conftest.$ac_ext <<_ACEOF
29800 /* confdefs.h.  */
29801 _ACEOF
29802 cat confdefs.h >>conftest.$ac_ext
29803 cat >>conftest.$ac_ext <<_ACEOF
29804 /* end confdefs.h.  */
29805
29806 #ifdef HAVE_DB_185_H
29807 # include <db_185.h>
29808 #else
29809 # include <db.h>
29810 #endif
29811
29812 #ifndef DB_VERSION_MAJOR
29813 # define DB_VERSION_MAJOR 1
29814 #endif
29815
29816 #ifndef NULL
29817 #define NULL ((void*)0)
29818 #endif
29819
29820 int
29821 main ()
29822 {
29823
29824 #if DB_VERSION_MAJOR > 1
29825         {
29826                 char *version;
29827                 int major, minor, patch;
29828
29829                 version = db_version( &major, &minor, &patch );
29830
29831                 if( major != DB_VERSION_MAJOR ||
29832                         minor < DB_VERSION_MINOR )
29833                 {
29834                         printf("Berkeley DB version mismatch\n"
29835                                 "\theader: %s\n\tlibrary: %s\n",
29836                                 DB_VERSION_STRING, version);
29837                         return 1;
29838                 }
29839         }
29840 #endif
29841
29842 #if DB_VERSION_MAJOR > 2
29843         db_env_create( NULL, 0 );
29844 #elif DB_VERSION_MAJOR > 1
29845         db_appexit( NULL );
29846 #else
29847         (void) dbopen( NULL, 0, 0, 0, NULL);
29848 #endif
29849
29850   ;
29851   return 0;
29852 }
29853 _ACEOF
29854 rm -f conftest.$ac_objext conftest$ac_exeext
29855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29856   (eval $ac_link) 2>conftest.er1
29857   ac_status=$?
29858   grep -v '^ *+' conftest.er1 >conftest.err
29859   rm -f conftest.er1
29860   cat conftest.err >&5
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); } &&
29863          { ac_try='test -z "$ac_c_werror_flag"
29864                          || test ! -s conftest.err'
29865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29866   (eval $ac_try) 2>&5
29867   ac_status=$?
29868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869   (exit $ac_status); }; } &&
29870          { ac_try='test -s conftest$ac_exeext'
29871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29872   (eval $ac_try) 2>&5
29873   ac_status=$?
29874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875   (exit $ac_status); }; }; then
29876   ol_cv_db_db2=yes
29877 else
29878   echo "$as_me: failed program was:" >&5
29879 sed 's/^/| /' conftest.$ac_ext >&5
29880
29881 ol_cv_db_db2=no
29882 fi
29883 rm -f conftest.err conftest.$ac_objext \
29884       conftest$ac_exeext conftest.$ac_ext
29885
29886         LIBS="$ol_LIBS"
29887
29888 fi
29889 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
29890 echo "${ECHO_T}$ol_cv_db_db2" >&6
29891
29892         if test $ol_cv_db_db2 = yes ; then
29893                 ol_cv_lib_db=-ldb2
29894         fi
29895 fi
29896
29897 if test $ol_cv_lib_db = no ; then
29898         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
29899 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
29900 if test "${ol_cv_db_db_2+set}" = set; then
29901   echo $ECHO_N "(cached) $ECHO_C" >&6
29902 else
29903
29904         ol_DB_LIB=-ldb-2
29905         ol_LIBS=$LIBS
29906         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29907
29908         cat >conftest.$ac_ext <<_ACEOF
29909 /* confdefs.h.  */
29910 _ACEOF
29911 cat confdefs.h >>conftest.$ac_ext
29912 cat >>conftest.$ac_ext <<_ACEOF
29913 /* end confdefs.h.  */
29914
29915 #ifdef HAVE_DB_185_H
29916 # include <db_185.h>
29917 #else
29918 # include <db.h>
29919 #endif
29920
29921 #ifndef DB_VERSION_MAJOR
29922 # define DB_VERSION_MAJOR 1
29923 #endif
29924
29925 #ifndef NULL
29926 #define NULL ((void*)0)
29927 #endif
29928
29929 int
29930 main ()
29931 {
29932
29933 #if DB_VERSION_MAJOR > 1
29934         {
29935                 char *version;
29936                 int major, minor, patch;
29937
29938                 version = db_version( &major, &minor, &patch );
29939
29940                 if( major != DB_VERSION_MAJOR ||
29941                         minor < DB_VERSION_MINOR )
29942                 {
29943                         printf("Berkeley DB version mismatch\n"
29944                                 "\theader: %s\n\tlibrary: %s\n",
29945                                 DB_VERSION_STRING, version);
29946                         return 1;
29947                 }
29948         }
29949 #endif
29950
29951 #if DB_VERSION_MAJOR > 2
29952         db_env_create( NULL, 0 );
29953 #elif DB_VERSION_MAJOR > 1
29954         db_appexit( NULL );
29955 #else
29956         (void) dbopen( NULL, 0, 0, 0, NULL);
29957 #endif
29958
29959   ;
29960   return 0;
29961 }
29962 _ACEOF
29963 rm -f conftest.$ac_objext conftest$ac_exeext
29964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29965   (eval $ac_link) 2>conftest.er1
29966   ac_status=$?
29967   grep -v '^ *+' conftest.er1 >conftest.err
29968   rm -f conftest.er1
29969   cat conftest.err >&5
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); } &&
29972          { ac_try='test -z "$ac_c_werror_flag"
29973                          || test ! -s conftest.err'
29974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975   (eval $ac_try) 2>&5
29976   ac_status=$?
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); }; } &&
29979          { ac_try='test -s conftest$ac_exeext'
29980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981   (eval $ac_try) 2>&5
29982   ac_status=$?
29983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984   (exit $ac_status); }; }; then
29985   ol_cv_db_db_2=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990 ol_cv_db_db_2=no
29991 fi
29992 rm -f conftest.err conftest.$ac_objext \
29993       conftest$ac_exeext conftest.$ac_ext
29994
29995         LIBS="$ol_LIBS"
29996
29997 fi
29998 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
29999 echo "${ECHO_T}$ol_cv_db_db_2" >&6
30000
30001         if test $ol_cv_db_db_2 = yes ; then
30002                 ol_cv_lib_db=-ldb-2
30003         fi
30004 fi
30005
30006 if test $ol_cv_lib_db = no ; then
30007         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
30008 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
30009 if test "${ol_cv_db_db1+set}" = set; then
30010   echo $ECHO_N "(cached) $ECHO_C" >&6
30011 else
30012
30013         ol_DB_LIB=-ldb1
30014         ol_LIBS=$LIBS
30015         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30016
30017         cat >conftest.$ac_ext <<_ACEOF
30018 /* confdefs.h.  */
30019 _ACEOF
30020 cat confdefs.h >>conftest.$ac_ext
30021 cat >>conftest.$ac_ext <<_ACEOF
30022 /* end confdefs.h.  */
30023
30024 #ifdef HAVE_DB_185_H
30025 # include <db_185.h>
30026 #else
30027 # include <db.h>
30028 #endif
30029
30030 #ifndef DB_VERSION_MAJOR
30031 # define DB_VERSION_MAJOR 1
30032 #endif
30033
30034 #ifndef NULL
30035 #define NULL ((void*)0)
30036 #endif
30037
30038 int
30039 main ()
30040 {
30041
30042 #if DB_VERSION_MAJOR > 1
30043         {
30044                 char *version;
30045                 int major, minor, patch;
30046
30047                 version = db_version( &major, &minor, &patch );
30048
30049                 if( major != DB_VERSION_MAJOR ||
30050                         minor < DB_VERSION_MINOR )
30051                 {
30052                         printf("Berkeley DB version mismatch\n"
30053                                 "\theader: %s\n\tlibrary: %s\n",
30054                                 DB_VERSION_STRING, version);
30055                         return 1;
30056                 }
30057         }
30058 #endif
30059
30060 #if DB_VERSION_MAJOR > 2
30061         db_env_create( NULL, 0 );
30062 #elif DB_VERSION_MAJOR > 1
30063         db_appexit( NULL );
30064 #else
30065         (void) dbopen( NULL, 0, 0, 0, NULL);
30066 #endif
30067
30068   ;
30069   return 0;
30070 }
30071 _ACEOF
30072 rm -f conftest.$ac_objext conftest$ac_exeext
30073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30074   (eval $ac_link) 2>conftest.er1
30075   ac_status=$?
30076   grep -v '^ *+' conftest.er1 >conftest.err
30077   rm -f conftest.er1
30078   cat conftest.err >&5
30079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080   (exit $ac_status); } &&
30081          { ac_try='test -z "$ac_c_werror_flag"
30082                          || test ! -s conftest.err'
30083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30084   (eval $ac_try) 2>&5
30085   ac_status=$?
30086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30087   (exit $ac_status); }; } &&
30088          { ac_try='test -s conftest$ac_exeext'
30089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090   (eval $ac_try) 2>&5
30091   ac_status=$?
30092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093   (exit $ac_status); }; }; then
30094   ol_cv_db_db1=yes
30095 else
30096   echo "$as_me: failed program was:" >&5
30097 sed 's/^/| /' conftest.$ac_ext >&5
30098
30099 ol_cv_db_db1=no
30100 fi
30101 rm -f conftest.err conftest.$ac_objext \
30102       conftest$ac_exeext conftest.$ac_ext
30103
30104         LIBS="$ol_LIBS"
30105
30106 fi
30107 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
30108 echo "${ECHO_T}$ol_cv_db_db1" >&6
30109
30110         if test $ol_cv_db_db1 = yes ; then
30111                 ol_cv_lib_db=-ldb1
30112         fi
30113 fi
30114
30115 if test $ol_cv_lib_db = no ; then
30116         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
30117 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
30118 if test "${ol_cv_db_db_1+set}" = set; then
30119   echo $ECHO_N "(cached) $ECHO_C" >&6
30120 else
30121
30122         ol_DB_LIB=-ldb-1
30123         ol_LIBS=$LIBS
30124         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30125
30126         cat >conftest.$ac_ext <<_ACEOF
30127 /* confdefs.h.  */
30128 _ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h.  */
30132
30133 #ifdef HAVE_DB_185_H
30134 # include <db_185.h>
30135 #else
30136 # include <db.h>
30137 #endif
30138
30139 #ifndef DB_VERSION_MAJOR
30140 # define DB_VERSION_MAJOR 1
30141 #endif
30142
30143 #ifndef NULL
30144 #define NULL ((void*)0)
30145 #endif
30146
30147 int
30148 main ()
30149 {
30150
30151 #if DB_VERSION_MAJOR > 1
30152         {
30153                 char *version;
30154                 int major, minor, patch;
30155
30156                 version = db_version( &major, &minor, &patch );
30157
30158                 if( major != DB_VERSION_MAJOR ||
30159                         minor < DB_VERSION_MINOR )
30160                 {
30161                         printf("Berkeley DB version mismatch\n"
30162                                 "\theader: %s\n\tlibrary: %s\n",
30163                                 DB_VERSION_STRING, version);
30164                         return 1;
30165                 }
30166         }
30167 #endif
30168
30169 #if DB_VERSION_MAJOR > 2
30170         db_env_create( NULL, 0 );
30171 #elif DB_VERSION_MAJOR > 1
30172         db_appexit( NULL );
30173 #else
30174         (void) dbopen( NULL, 0, 0, 0, NULL);
30175 #endif
30176
30177   ;
30178   return 0;
30179 }
30180 _ACEOF
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30183   (eval $ac_link) 2>conftest.er1
30184   ac_status=$?
30185   grep -v '^ *+' conftest.er1 >conftest.err
30186   rm -f conftest.er1
30187   cat conftest.err >&5
30188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189   (exit $ac_status); } &&
30190          { ac_try='test -z "$ac_c_werror_flag"
30191                          || test ! -s conftest.err'
30192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193   (eval $ac_try) 2>&5
30194   ac_status=$?
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); }; } &&
30197          { ac_try='test -s conftest$ac_exeext'
30198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30199   (eval $ac_try) 2>&5
30200   ac_status=$?
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); }; }; then
30203   ol_cv_db_db_1=yes
30204 else
30205   echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30207
30208 ol_cv_db_db_1=no
30209 fi
30210 rm -f conftest.err conftest.$ac_objext \
30211       conftest$ac_exeext conftest.$ac_ext
30212
30213         LIBS="$ol_LIBS"
30214
30215 fi
30216 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
30217 echo "${ECHO_T}$ol_cv_db_db_1" >&6
30218
30219         if test $ol_cv_db_db_1 = yes ; then
30220                 ol_cv_lib_db=-ldb-1
30221         fi
30222 fi
30223
30224
30225                 if test "$ol_cv_lib_db" != no ; then
30226                         ol_cv_berkeley_db=yes
30227                 fi
30228         fi
30229 fi
30230
30231         else
30232                 ol_cv_berkeley_db=no
30233
30234 for ac_header in db.h
30235 do
30236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30238   echo "$as_me:$LINENO: checking for $ac_header" >&5
30239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30241   echo $ECHO_N "(cached) $ECHO_C" >&6
30242 fi
30243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30245 else
30246   # Is the header compilable?
30247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30249 cat >conftest.$ac_ext <<_ACEOF
30250 /* confdefs.h.  */
30251 _ACEOF
30252 cat confdefs.h >>conftest.$ac_ext
30253 cat >>conftest.$ac_ext <<_ACEOF
30254 /* end confdefs.h.  */
30255 $ac_includes_default
30256 #include <$ac_header>
30257 _ACEOF
30258 rm -f conftest.$ac_objext
30259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30260   (eval $ac_compile) 2>conftest.er1
30261   ac_status=$?
30262   grep -v '^ *+' conftest.er1 >conftest.err
30263   rm -f conftest.er1
30264   cat conftest.err >&5
30265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30266   (exit $ac_status); } &&
30267          { ac_try='test -z "$ac_c_werror_flag"
30268                          || test ! -s conftest.err'
30269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30270   (eval $ac_try) 2>&5
30271   ac_status=$?
30272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273   (exit $ac_status); }; } &&
30274          { ac_try='test -s conftest.$ac_objext'
30275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30276   (eval $ac_try) 2>&5
30277   ac_status=$?
30278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279   (exit $ac_status); }; }; then
30280   ac_header_compiler=yes
30281 else
30282   echo "$as_me: failed program was:" >&5
30283 sed 's/^/| /' conftest.$ac_ext >&5
30284
30285 ac_header_compiler=no
30286 fi
30287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30289 echo "${ECHO_T}$ac_header_compiler" >&6
30290
30291 # Is the header present?
30292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30294 cat >conftest.$ac_ext <<_ACEOF
30295 /* confdefs.h.  */
30296 _ACEOF
30297 cat confdefs.h >>conftest.$ac_ext
30298 cat >>conftest.$ac_ext <<_ACEOF
30299 /* end confdefs.h.  */
30300 #include <$ac_header>
30301 _ACEOF
30302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30304   ac_status=$?
30305   grep -v '^ *+' conftest.er1 >conftest.err
30306   rm -f conftest.er1
30307   cat conftest.err >&5
30308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309   (exit $ac_status); } >/dev/null; then
30310   if test -s conftest.err; then
30311     ac_cpp_err=$ac_c_preproc_warn_flag
30312     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30313   else
30314     ac_cpp_err=
30315   fi
30316 else
30317   ac_cpp_err=yes
30318 fi
30319 if test -z "$ac_cpp_err"; then
30320   ac_header_preproc=yes
30321 else
30322   echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30324
30325   ac_header_preproc=no
30326 fi
30327 rm -f conftest.err conftest.$ac_ext
30328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30329 echo "${ECHO_T}$ac_header_preproc" >&6
30330
30331 # So?  What about this header?
30332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30333   yes:no: )
30334     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30336     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30338     ac_header_preproc=yes
30339     ;;
30340   no:yes:* )
30341     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30343     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30344 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30345     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30347     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30348 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30349     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30351     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30353     (
30354       cat <<\_ASBOX
30355 ## ------------------------------------------ ##
30356 ## Report this to the AC_PACKAGE_NAME lists.  ##
30357 ## ------------------------------------------ ##
30358 _ASBOX
30359     ) |
30360       sed "s/^/$as_me: WARNING:     /" >&2
30361     ;;
30362 esac
30363 echo "$as_me:$LINENO: checking for $ac_header" >&5
30364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30366   echo $ECHO_N "(cached) $ECHO_C" >&6
30367 else
30368   eval "$as_ac_Header=\$ac_header_preproc"
30369 fi
30370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30372
30373 fi
30374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30375   cat >>confdefs.h <<_ACEOF
30376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30377 _ACEOF
30378
30379 fi
30380
30381 done
30382
30383 if test $ac_cv_header_db_h = yes; then
30384         ol_cv_lib_db=no
30385 if test $ol_cv_lib_db = no ; then
30386         echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
30387 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
30388 if test "${ol_cv_db_none+set}" = set; then
30389   echo $ECHO_N "(cached) $ECHO_C" >&6
30390 else
30391
30392         ol_DB_LIB=
30393         ol_LIBS=$LIBS
30394         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30395
30396         cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402
30403 #ifdef HAVE_DB_185_H
30404 # include <db_185.h>
30405 #else
30406 # include <db.h>
30407 #endif
30408
30409 #ifndef DB_VERSION_MAJOR
30410 # define DB_VERSION_MAJOR 1
30411 #endif
30412
30413 #ifndef NULL
30414 #define NULL ((void*)0)
30415 #endif
30416
30417 int
30418 main ()
30419 {
30420
30421 #if DB_VERSION_MAJOR > 1
30422         {
30423                 char *version;
30424                 int major, minor, patch;
30425
30426                 version = db_version( &major, &minor, &patch );
30427
30428                 if( major != DB_VERSION_MAJOR ||
30429                         minor < DB_VERSION_MINOR )
30430                 {
30431                         printf("Berkeley DB version mismatch\n"
30432                                 "\theader: %s\n\tlibrary: %s\n",
30433                                 DB_VERSION_STRING, version);
30434                         return 1;
30435                 }
30436         }
30437 #endif
30438
30439 #if DB_VERSION_MAJOR > 2
30440         db_env_create( NULL, 0 );
30441 #elif DB_VERSION_MAJOR > 1
30442         db_appexit( NULL );
30443 #else
30444         (void) dbopen( NULL, 0, 0, 0, NULL);
30445 #endif
30446
30447   ;
30448   return 0;
30449 }
30450 _ACEOF
30451 rm -f conftest.$ac_objext conftest$ac_exeext
30452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30453   (eval $ac_link) 2>conftest.er1
30454   ac_status=$?
30455   grep -v '^ *+' conftest.er1 >conftest.err
30456   rm -f conftest.er1
30457   cat conftest.err >&5
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); } &&
30460          { ac_try='test -z "$ac_c_werror_flag"
30461                          || test ! -s conftest.err'
30462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463   (eval $ac_try) 2>&5
30464   ac_status=$?
30465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466   (exit $ac_status); }; } &&
30467          { ac_try='test -s conftest$ac_exeext'
30468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30469   (eval $ac_try) 2>&5
30470   ac_status=$?
30471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472   (exit $ac_status); }; }; then
30473   ol_cv_db_none=yes
30474 else
30475   echo "$as_me: failed program was:" >&5
30476 sed 's/^/| /' conftest.$ac_ext >&5
30477
30478 ol_cv_db_none=no
30479 fi
30480 rm -f conftest.err conftest.$ac_objext \
30481       conftest$ac_exeext conftest.$ac_ext
30482
30483         LIBS="$ol_LIBS"
30484
30485 fi
30486 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
30487 echo "${ECHO_T}$ol_cv_db_none" >&6
30488
30489         if test $ol_cv_db_none = yes ; then
30490                 ol_cv_lib_db=yes
30491         fi
30492 fi
30493
30494 if test $ol_cv_lib_db = no ; then
30495         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
30496 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
30497 if test "${ol_cv_db_db43+set}" = set; then
30498   echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500
30501         ol_DB_LIB=-ldb43
30502         ol_LIBS=$LIBS
30503         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30504
30505         cat >conftest.$ac_ext <<_ACEOF
30506 /* confdefs.h.  */
30507 _ACEOF
30508 cat confdefs.h >>conftest.$ac_ext
30509 cat >>conftest.$ac_ext <<_ACEOF
30510 /* end confdefs.h.  */
30511
30512 #ifdef HAVE_DB_185_H
30513 # include <db_185.h>
30514 #else
30515 # include <db.h>
30516 #endif
30517
30518 #ifndef DB_VERSION_MAJOR
30519 # define DB_VERSION_MAJOR 1
30520 #endif
30521
30522 #ifndef NULL
30523 #define NULL ((void*)0)
30524 #endif
30525
30526 int
30527 main ()
30528 {
30529
30530 #if DB_VERSION_MAJOR > 1
30531         {
30532                 char *version;
30533                 int major, minor, patch;
30534
30535                 version = db_version( &major, &minor, &patch );
30536
30537                 if( major != DB_VERSION_MAJOR ||
30538                         minor < DB_VERSION_MINOR )
30539                 {
30540                         printf("Berkeley DB version mismatch\n"
30541                                 "\theader: %s\n\tlibrary: %s\n",
30542                                 DB_VERSION_STRING, version);
30543                         return 1;
30544                 }
30545         }
30546 #endif
30547
30548 #if DB_VERSION_MAJOR > 2
30549         db_env_create( NULL, 0 );
30550 #elif DB_VERSION_MAJOR > 1
30551         db_appexit( NULL );
30552 #else
30553         (void) dbopen( NULL, 0, 0, 0, NULL);
30554 #endif
30555
30556   ;
30557   return 0;
30558 }
30559 _ACEOF
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30562   (eval $ac_link) 2>conftest.er1
30563   ac_status=$?
30564   grep -v '^ *+' conftest.er1 >conftest.err
30565   rm -f conftest.er1
30566   cat conftest.err >&5
30567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568   (exit $ac_status); } &&
30569          { ac_try='test -z "$ac_c_werror_flag"
30570                          || test ! -s conftest.err'
30571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572   (eval $ac_try) 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; } &&
30576          { ac_try='test -s conftest$ac_exeext'
30577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578   (eval $ac_try) 2>&5
30579   ac_status=$?
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); }; }; then
30582   ol_cv_db_db43=yes
30583 else
30584   echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587 ol_cv_db_db43=no
30588 fi
30589 rm -f conftest.err conftest.$ac_objext \
30590       conftest$ac_exeext conftest.$ac_ext
30591
30592         LIBS="$ol_LIBS"
30593
30594 fi
30595 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
30596 echo "${ECHO_T}$ol_cv_db_db43" >&6
30597
30598         if test $ol_cv_db_db43 = yes ; then
30599                 ol_cv_lib_db=-ldb43
30600         fi
30601 fi
30602
30603 if test $ol_cv_lib_db = no ; then
30604         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
30605 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
30606 if test "${ol_cv_db_db_43+set}" = set; then
30607   echo $ECHO_N "(cached) $ECHO_C" >&6
30608 else
30609
30610         ol_DB_LIB=-ldb-43
30611         ol_LIBS=$LIBS
30612         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30613
30614         cat >conftest.$ac_ext <<_ACEOF
30615 /* confdefs.h.  */
30616 _ACEOF
30617 cat confdefs.h >>conftest.$ac_ext
30618 cat >>conftest.$ac_ext <<_ACEOF
30619 /* end confdefs.h.  */
30620
30621 #ifdef HAVE_DB_185_H
30622 # include <db_185.h>
30623 #else
30624 # include <db.h>
30625 #endif
30626
30627 #ifndef DB_VERSION_MAJOR
30628 # define DB_VERSION_MAJOR 1
30629 #endif
30630
30631 #ifndef NULL
30632 #define NULL ((void*)0)
30633 #endif
30634
30635 int
30636 main ()
30637 {
30638
30639 #if DB_VERSION_MAJOR > 1
30640         {
30641                 char *version;
30642                 int major, minor, patch;
30643
30644                 version = db_version( &major, &minor, &patch );
30645
30646                 if( major != DB_VERSION_MAJOR ||
30647                         minor < DB_VERSION_MINOR )
30648                 {
30649                         printf("Berkeley DB version mismatch\n"
30650                                 "\theader: %s\n\tlibrary: %s\n",
30651                                 DB_VERSION_STRING, version);
30652                         return 1;
30653                 }
30654         }
30655 #endif
30656
30657 #if DB_VERSION_MAJOR > 2
30658         db_env_create( NULL, 0 );
30659 #elif DB_VERSION_MAJOR > 1
30660         db_appexit( NULL );
30661 #else
30662         (void) dbopen( NULL, 0, 0, 0, NULL);
30663 #endif
30664
30665   ;
30666   return 0;
30667 }
30668 _ACEOF
30669 rm -f conftest.$ac_objext conftest$ac_exeext
30670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30671   (eval $ac_link) 2>conftest.er1
30672   ac_status=$?
30673   grep -v '^ *+' conftest.er1 >conftest.err
30674   rm -f conftest.er1
30675   cat conftest.err >&5
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } &&
30678          { ac_try='test -z "$ac_c_werror_flag"
30679                          || test ! -s conftest.err'
30680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681   (eval $ac_try) 2>&5
30682   ac_status=$?
30683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684   (exit $ac_status); }; } &&
30685          { ac_try='test -s conftest$ac_exeext'
30686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687   (eval $ac_try) 2>&5
30688   ac_status=$?
30689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690   (exit $ac_status); }; }; then
30691   ol_cv_db_db_43=yes
30692 else
30693   echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30695
30696 ol_cv_db_db_43=no
30697 fi
30698 rm -f conftest.err conftest.$ac_objext \
30699       conftest$ac_exeext conftest.$ac_ext
30700
30701         LIBS="$ol_LIBS"
30702
30703 fi
30704 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
30705 echo "${ECHO_T}$ol_cv_db_db_43" >&6
30706
30707         if test $ol_cv_db_db_43 = yes ; then
30708                 ol_cv_lib_db=-ldb-43
30709         fi
30710 fi
30711
30712 if test $ol_cv_lib_db = no ; then
30713         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
30714 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
30715 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
30716   echo $ECHO_N "(cached) $ECHO_C" >&6
30717 else
30718
30719         ol_DB_LIB=-ldb-4.3
30720         ol_LIBS=$LIBS
30721         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30722
30723         cat >conftest.$ac_ext <<_ACEOF
30724 /* confdefs.h.  */
30725 _ACEOF
30726 cat confdefs.h >>conftest.$ac_ext
30727 cat >>conftest.$ac_ext <<_ACEOF
30728 /* end confdefs.h.  */
30729
30730 #ifdef HAVE_DB_185_H
30731 # include <db_185.h>
30732 #else
30733 # include <db.h>
30734 #endif
30735
30736 #ifndef DB_VERSION_MAJOR
30737 # define DB_VERSION_MAJOR 1
30738 #endif
30739
30740 #ifndef NULL
30741 #define NULL ((void*)0)
30742 #endif
30743
30744 int
30745 main ()
30746 {
30747
30748 #if DB_VERSION_MAJOR > 1
30749         {
30750                 char *version;
30751                 int major, minor, patch;
30752
30753                 version = db_version( &major, &minor, &patch );
30754
30755                 if( major != DB_VERSION_MAJOR ||
30756                         minor < DB_VERSION_MINOR )
30757                 {
30758                         printf("Berkeley DB version mismatch\n"
30759                                 "\theader: %s\n\tlibrary: %s\n",
30760                                 DB_VERSION_STRING, version);
30761                         return 1;
30762                 }
30763         }
30764 #endif
30765
30766 #if DB_VERSION_MAJOR > 2
30767         db_env_create( NULL, 0 );
30768 #elif DB_VERSION_MAJOR > 1
30769         db_appexit( NULL );
30770 #else
30771         (void) dbopen( NULL, 0, 0, 0, NULL);
30772 #endif
30773
30774   ;
30775   return 0;
30776 }
30777 _ACEOF
30778 rm -f conftest.$ac_objext conftest$ac_exeext
30779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30780   (eval $ac_link) 2>conftest.er1
30781   ac_status=$?
30782   grep -v '^ *+' conftest.er1 >conftest.err
30783   rm -f conftest.er1
30784   cat conftest.err >&5
30785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786   (exit $ac_status); } &&
30787          { ac_try='test -z "$ac_c_werror_flag"
30788                          || test ! -s conftest.err'
30789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30790   (eval $ac_try) 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); }; } &&
30794          { ac_try='test -s conftest$ac_exeext'
30795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30796   (eval $ac_try) 2>&5
30797   ac_status=$?
30798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799   (exit $ac_status); }; }; then
30800   ol_cv_db_db_4_dot_3=yes
30801 else
30802   echo "$as_me: failed program was:" >&5
30803 sed 's/^/| /' conftest.$ac_ext >&5
30804
30805 ol_cv_db_db_4_dot_3=no
30806 fi
30807 rm -f conftest.err conftest.$ac_objext \
30808       conftest$ac_exeext conftest.$ac_ext
30809
30810         LIBS="$ol_LIBS"
30811
30812 fi
30813 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
30814 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
30815
30816         if test $ol_cv_db_db_4_dot_3 = yes ; then
30817                 ol_cv_lib_db=-ldb-4.3
30818         fi
30819 fi
30820
30821 if test $ol_cv_lib_db = no ; then
30822         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
30823 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
30824 if test "${ol_cv_db_db_4_3+set}" = set; then
30825   echo $ECHO_N "(cached) $ECHO_C" >&6
30826 else
30827
30828         ol_DB_LIB=-ldb-4-3
30829         ol_LIBS=$LIBS
30830         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30831
30832         cat >conftest.$ac_ext <<_ACEOF
30833 /* confdefs.h.  */
30834 _ACEOF
30835 cat confdefs.h >>conftest.$ac_ext
30836 cat >>conftest.$ac_ext <<_ACEOF
30837 /* end confdefs.h.  */
30838
30839 #ifdef HAVE_DB_185_H
30840 # include <db_185.h>
30841 #else
30842 # include <db.h>
30843 #endif
30844
30845 #ifndef DB_VERSION_MAJOR
30846 # define DB_VERSION_MAJOR 1
30847 #endif
30848
30849 #ifndef NULL
30850 #define NULL ((void*)0)
30851 #endif
30852
30853 int
30854 main ()
30855 {
30856
30857 #if DB_VERSION_MAJOR > 1
30858         {
30859                 char *version;
30860                 int major, minor, patch;
30861
30862                 version = db_version( &major, &minor, &patch );
30863
30864                 if( major != DB_VERSION_MAJOR ||
30865                         minor < DB_VERSION_MINOR )
30866                 {
30867                         printf("Berkeley DB version mismatch\n"
30868                                 "\theader: %s\n\tlibrary: %s\n",
30869                                 DB_VERSION_STRING, version);
30870                         return 1;
30871                 }
30872         }
30873 #endif
30874
30875 #if DB_VERSION_MAJOR > 2
30876         db_env_create( NULL, 0 );
30877 #elif DB_VERSION_MAJOR > 1
30878         db_appexit( NULL );
30879 #else
30880         (void) dbopen( NULL, 0, 0, 0, NULL);
30881 #endif
30882
30883   ;
30884   return 0;
30885 }
30886 _ACEOF
30887 rm -f conftest.$ac_objext conftest$ac_exeext
30888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30889   (eval $ac_link) 2>conftest.er1
30890   ac_status=$?
30891   grep -v '^ *+' conftest.er1 >conftest.err
30892   rm -f conftest.er1
30893   cat conftest.err >&5
30894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895   (exit $ac_status); } &&
30896          { ac_try='test -z "$ac_c_werror_flag"
30897                          || test ! -s conftest.err'
30898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30899   (eval $ac_try) 2>&5
30900   ac_status=$?
30901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30902   (exit $ac_status); }; } &&
30903          { ac_try='test -s conftest$ac_exeext'
30904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905   (eval $ac_try) 2>&5
30906   ac_status=$?
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); }; }; then
30909   ol_cv_db_db_4_3=yes
30910 else
30911   echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.$ac_ext >&5
30913
30914 ol_cv_db_db_4_3=no
30915 fi
30916 rm -f conftest.err conftest.$ac_objext \
30917       conftest$ac_exeext conftest.$ac_ext
30918
30919         LIBS="$ol_LIBS"
30920
30921 fi
30922 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
30923 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
30924
30925         if test $ol_cv_db_db_4_3 = yes ; then
30926                 ol_cv_lib_db=-ldb-4-3
30927         fi
30928 fi
30929
30930 if test $ol_cv_lib_db = no ; then
30931         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
30932 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
30933 if test "${ol_cv_db_db42+set}" = set; then
30934   echo $ECHO_N "(cached) $ECHO_C" >&6
30935 else
30936
30937         ol_DB_LIB=-ldb42
30938         ol_LIBS=$LIBS
30939         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
30940
30941         cat >conftest.$ac_ext <<_ACEOF
30942 /* confdefs.h.  */
30943 _ACEOF
30944 cat confdefs.h >>conftest.$ac_ext
30945 cat >>conftest.$ac_ext <<_ACEOF
30946 /* end confdefs.h.  */
30947
30948 #ifdef HAVE_DB_185_H
30949 # include <db_185.h>
30950 #else
30951 # include <db.h>
30952 #endif
30953
30954 #ifndef DB_VERSION_MAJOR
30955 # define DB_VERSION_MAJOR 1
30956 #endif
30957
30958 #ifndef NULL
30959 #define NULL ((void*)0)
30960 #endif
30961
30962 int
30963 main ()
30964 {
30965
30966 #if DB_VERSION_MAJOR > 1
30967         {
30968                 char *version;
30969                 int major, minor, patch;
30970
30971                 version = db_version( &major, &minor, &patch );
30972
30973                 if( major != DB_VERSION_MAJOR ||
30974                         minor < DB_VERSION_MINOR )
30975                 {
30976                         printf("Berkeley DB version mismatch\n"
30977                                 "\theader: %s\n\tlibrary: %s\n",
30978                                 DB_VERSION_STRING, version);
30979                         return 1;
30980                 }
30981         }
30982 #endif
30983
30984 #if DB_VERSION_MAJOR > 2
30985         db_env_create( NULL, 0 );
30986 #elif DB_VERSION_MAJOR > 1
30987         db_appexit( NULL );
30988 #else
30989         (void) dbopen( NULL, 0, 0, 0, NULL);
30990 #endif
30991
30992   ;
30993   return 0;
30994 }
30995 _ACEOF
30996 rm -f conftest.$ac_objext conftest$ac_exeext
30997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30998   (eval $ac_link) 2>conftest.er1
30999   ac_status=$?
31000   grep -v '^ *+' conftest.er1 >conftest.err
31001   rm -f conftest.er1
31002   cat conftest.err >&5
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } &&
31005          { ac_try='test -z "$ac_c_werror_flag"
31006                          || test ! -s conftest.err'
31007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008   (eval $ac_try) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; } &&
31012          { ac_try='test -s conftest$ac_exeext'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; }; then
31018   ol_cv_db_db42=yes
31019 else
31020   echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31022
31023 ol_cv_db_db42=no
31024 fi
31025 rm -f conftest.err conftest.$ac_objext \
31026       conftest$ac_exeext conftest.$ac_ext
31027
31028         LIBS="$ol_LIBS"
31029
31030 fi
31031 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
31032 echo "${ECHO_T}$ol_cv_db_db42" >&6
31033
31034         if test $ol_cv_db_db42 = yes ; then
31035                 ol_cv_lib_db=-ldb42
31036         fi
31037 fi
31038
31039 if test $ol_cv_lib_db = no ; then
31040         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
31041 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
31042 if test "${ol_cv_db_db_42+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045
31046         ol_DB_LIB=-ldb-42
31047         ol_LIBS=$LIBS
31048         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31049
31050         cat >conftest.$ac_ext <<_ACEOF
31051 /* confdefs.h.  */
31052 _ACEOF
31053 cat confdefs.h >>conftest.$ac_ext
31054 cat >>conftest.$ac_ext <<_ACEOF
31055 /* end confdefs.h.  */
31056
31057 #ifdef HAVE_DB_185_H
31058 # include <db_185.h>
31059 #else
31060 # include <db.h>
31061 #endif
31062
31063 #ifndef DB_VERSION_MAJOR
31064 # define DB_VERSION_MAJOR 1
31065 #endif
31066
31067 #ifndef NULL
31068 #define NULL ((void*)0)
31069 #endif
31070
31071 int
31072 main ()
31073 {
31074
31075 #if DB_VERSION_MAJOR > 1
31076         {
31077                 char *version;
31078                 int major, minor, patch;
31079
31080                 version = db_version( &major, &minor, &patch );
31081
31082                 if( major != DB_VERSION_MAJOR ||
31083                         minor < DB_VERSION_MINOR )
31084                 {
31085                         printf("Berkeley DB version mismatch\n"
31086                                 "\theader: %s\n\tlibrary: %s\n",
31087                                 DB_VERSION_STRING, version);
31088                         return 1;
31089                 }
31090         }
31091 #endif
31092
31093 #if DB_VERSION_MAJOR > 2
31094         db_env_create( NULL, 0 );
31095 #elif DB_VERSION_MAJOR > 1
31096         db_appexit( NULL );
31097 #else
31098         (void) dbopen( NULL, 0, 0, 0, NULL);
31099 #endif
31100
31101   ;
31102   return 0;
31103 }
31104 _ACEOF
31105 rm -f conftest.$ac_objext conftest$ac_exeext
31106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31107   (eval $ac_link) 2>conftest.er1
31108   ac_status=$?
31109   grep -v '^ *+' conftest.er1 >conftest.err
31110   rm -f conftest.er1
31111   cat conftest.err >&5
31112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113   (exit $ac_status); } &&
31114          { ac_try='test -z "$ac_c_werror_flag"
31115                          || test ! -s conftest.err'
31116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117   (eval $ac_try) 2>&5
31118   ac_status=$?
31119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120   (exit $ac_status); }; } &&
31121          { ac_try='test -s conftest$ac_exeext'
31122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123   (eval $ac_try) 2>&5
31124   ac_status=$?
31125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126   (exit $ac_status); }; }; then
31127   ol_cv_db_db_42=yes
31128 else
31129   echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31131
31132 ol_cv_db_db_42=no
31133 fi
31134 rm -f conftest.err conftest.$ac_objext \
31135       conftest$ac_exeext conftest.$ac_ext
31136
31137         LIBS="$ol_LIBS"
31138
31139 fi
31140 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
31141 echo "${ECHO_T}$ol_cv_db_db_42" >&6
31142
31143         if test $ol_cv_db_db_42 = yes ; then
31144                 ol_cv_lib_db=-ldb-42
31145         fi
31146 fi
31147
31148 if test $ol_cv_lib_db = no ; then
31149         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
31150 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
31151 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154
31155         ol_DB_LIB=-ldb-4.2
31156         ol_LIBS=$LIBS
31157         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31158
31159         cat >conftest.$ac_ext <<_ACEOF
31160 /* confdefs.h.  */
31161 _ACEOF
31162 cat confdefs.h >>conftest.$ac_ext
31163 cat >>conftest.$ac_ext <<_ACEOF
31164 /* end confdefs.h.  */
31165
31166 #ifdef HAVE_DB_185_H
31167 # include <db_185.h>
31168 #else
31169 # include <db.h>
31170 #endif
31171
31172 #ifndef DB_VERSION_MAJOR
31173 # define DB_VERSION_MAJOR 1
31174 #endif
31175
31176 #ifndef NULL
31177 #define NULL ((void*)0)
31178 #endif
31179
31180 int
31181 main ()
31182 {
31183
31184 #if DB_VERSION_MAJOR > 1
31185         {
31186                 char *version;
31187                 int major, minor, patch;
31188
31189                 version = db_version( &major, &minor, &patch );
31190
31191                 if( major != DB_VERSION_MAJOR ||
31192                         minor < DB_VERSION_MINOR )
31193                 {
31194                         printf("Berkeley DB version mismatch\n"
31195                                 "\theader: %s\n\tlibrary: %s\n",
31196                                 DB_VERSION_STRING, version);
31197                         return 1;
31198                 }
31199         }
31200 #endif
31201
31202 #if DB_VERSION_MAJOR > 2
31203         db_env_create( NULL, 0 );
31204 #elif DB_VERSION_MAJOR > 1
31205         db_appexit( NULL );
31206 #else
31207         (void) dbopen( NULL, 0, 0, 0, NULL);
31208 #endif
31209
31210   ;
31211   return 0;
31212 }
31213 _ACEOF
31214 rm -f conftest.$ac_objext conftest$ac_exeext
31215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31216   (eval $ac_link) 2>conftest.er1
31217   ac_status=$?
31218   grep -v '^ *+' conftest.er1 >conftest.err
31219   rm -f conftest.er1
31220   cat conftest.err >&5
31221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222   (exit $ac_status); } &&
31223          { ac_try='test -z "$ac_c_werror_flag"
31224                          || test ! -s conftest.err'
31225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31226   (eval $ac_try) 2>&5
31227   ac_status=$?
31228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229   (exit $ac_status); }; } &&
31230          { ac_try='test -s conftest$ac_exeext'
31231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31232   (eval $ac_try) 2>&5
31233   ac_status=$?
31234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235   (exit $ac_status); }; }; then
31236   ol_cv_db_db_4_dot_2=yes
31237 else
31238   echo "$as_me: failed program was:" >&5
31239 sed 's/^/| /' conftest.$ac_ext >&5
31240
31241 ol_cv_db_db_4_dot_2=no
31242 fi
31243 rm -f conftest.err conftest.$ac_objext \
31244       conftest$ac_exeext conftest.$ac_ext
31245
31246         LIBS="$ol_LIBS"
31247
31248 fi
31249 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
31250 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
31251
31252         if test $ol_cv_db_db_4_dot_2 = yes ; then
31253                 ol_cv_lib_db=-ldb-4.2
31254         fi
31255 fi
31256
31257 if test $ol_cv_lib_db = no ; then
31258         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
31259 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
31260 if test "${ol_cv_db_db_4_2+set}" = set; then
31261   echo $ECHO_N "(cached) $ECHO_C" >&6
31262 else
31263
31264         ol_DB_LIB=-ldb-4-2
31265         ol_LIBS=$LIBS
31266         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31267
31268         cat >conftest.$ac_ext <<_ACEOF
31269 /* confdefs.h.  */
31270 _ACEOF
31271 cat confdefs.h >>conftest.$ac_ext
31272 cat >>conftest.$ac_ext <<_ACEOF
31273 /* end confdefs.h.  */
31274
31275 #ifdef HAVE_DB_185_H
31276 # include <db_185.h>
31277 #else
31278 # include <db.h>
31279 #endif
31280
31281 #ifndef DB_VERSION_MAJOR
31282 # define DB_VERSION_MAJOR 1
31283 #endif
31284
31285 #ifndef NULL
31286 #define NULL ((void*)0)
31287 #endif
31288
31289 int
31290 main ()
31291 {
31292
31293 #if DB_VERSION_MAJOR > 1
31294         {
31295                 char *version;
31296                 int major, minor, patch;
31297
31298                 version = db_version( &major, &minor, &patch );
31299
31300                 if( major != DB_VERSION_MAJOR ||
31301                         minor < DB_VERSION_MINOR )
31302                 {
31303                         printf("Berkeley DB version mismatch\n"
31304                                 "\theader: %s\n\tlibrary: %s\n",
31305                                 DB_VERSION_STRING, version);
31306                         return 1;
31307                 }
31308         }
31309 #endif
31310
31311 #if DB_VERSION_MAJOR > 2
31312         db_env_create( NULL, 0 );
31313 #elif DB_VERSION_MAJOR > 1
31314         db_appexit( NULL );
31315 #else
31316         (void) dbopen( NULL, 0, 0, 0, NULL);
31317 #endif
31318
31319   ;
31320   return 0;
31321 }
31322 _ACEOF
31323 rm -f conftest.$ac_objext conftest$ac_exeext
31324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31325   (eval $ac_link) 2>conftest.er1
31326   ac_status=$?
31327   grep -v '^ *+' conftest.er1 >conftest.err
31328   rm -f conftest.er1
31329   cat conftest.err >&5
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); } &&
31332          { ac_try='test -z "$ac_c_werror_flag"
31333                          || test ! -s conftest.err'
31334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31335   (eval $ac_try) 2>&5
31336   ac_status=$?
31337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31338   (exit $ac_status); }; } &&
31339          { ac_try='test -s conftest$ac_exeext'
31340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31341   (eval $ac_try) 2>&5
31342   ac_status=$?
31343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344   (exit $ac_status); }; }; then
31345   ol_cv_db_db_4_2=yes
31346 else
31347   echo "$as_me: failed program was:" >&5
31348 sed 's/^/| /' conftest.$ac_ext >&5
31349
31350 ol_cv_db_db_4_2=no
31351 fi
31352 rm -f conftest.err conftest.$ac_objext \
31353       conftest$ac_exeext conftest.$ac_ext
31354
31355         LIBS="$ol_LIBS"
31356
31357 fi
31358 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
31359 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
31360
31361         if test $ol_cv_db_db_4_2 = yes ; then
31362                 ol_cv_lib_db=-ldb-4-2
31363         fi
31364 fi
31365
31366 if test $ol_cv_lib_db = no ; then
31367         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
31368 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
31369 if test "${ol_cv_db_db_4+set}" = set; then
31370   echo $ECHO_N "(cached) $ECHO_C" >&6
31371 else
31372
31373         ol_DB_LIB=-ldb-4
31374         ol_LIBS=$LIBS
31375         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31376
31377         cat >conftest.$ac_ext <<_ACEOF
31378 /* confdefs.h.  */
31379 _ACEOF
31380 cat confdefs.h >>conftest.$ac_ext
31381 cat >>conftest.$ac_ext <<_ACEOF
31382 /* end confdefs.h.  */
31383
31384 #ifdef HAVE_DB_185_H
31385 # include <db_185.h>
31386 #else
31387 # include <db.h>
31388 #endif
31389
31390 #ifndef DB_VERSION_MAJOR
31391 # define DB_VERSION_MAJOR 1
31392 #endif
31393
31394 #ifndef NULL
31395 #define NULL ((void*)0)
31396 #endif
31397
31398 int
31399 main ()
31400 {
31401
31402 #if DB_VERSION_MAJOR > 1
31403         {
31404                 char *version;
31405                 int major, minor, patch;
31406
31407                 version = db_version( &major, &minor, &patch );
31408
31409                 if( major != DB_VERSION_MAJOR ||
31410                         minor < DB_VERSION_MINOR )
31411                 {
31412                         printf("Berkeley DB version mismatch\n"
31413                                 "\theader: %s\n\tlibrary: %s\n",
31414                                 DB_VERSION_STRING, version);
31415                         return 1;
31416                 }
31417         }
31418 #endif
31419
31420 #if DB_VERSION_MAJOR > 2
31421         db_env_create( NULL, 0 );
31422 #elif DB_VERSION_MAJOR > 1
31423         db_appexit( NULL );
31424 #else
31425         (void) dbopen( NULL, 0, 0, 0, NULL);
31426 #endif
31427
31428   ;
31429   return 0;
31430 }
31431 _ACEOF
31432 rm -f conftest.$ac_objext conftest$ac_exeext
31433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31434   (eval $ac_link) 2>conftest.er1
31435   ac_status=$?
31436   grep -v '^ *+' conftest.er1 >conftest.err
31437   rm -f conftest.er1
31438   cat conftest.err >&5
31439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440   (exit $ac_status); } &&
31441          { ac_try='test -z "$ac_c_werror_flag"
31442                          || test ! -s conftest.err'
31443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31444   (eval $ac_try) 2>&5
31445   ac_status=$?
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); }; } &&
31448          { ac_try='test -s conftest$ac_exeext'
31449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31450   (eval $ac_try) 2>&5
31451   ac_status=$?
31452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453   (exit $ac_status); }; }; then
31454   ol_cv_db_db_4=yes
31455 else
31456   echo "$as_me: failed program was:" >&5
31457 sed 's/^/| /' conftest.$ac_ext >&5
31458
31459 ol_cv_db_db_4=no
31460 fi
31461 rm -f conftest.err conftest.$ac_objext \
31462       conftest$ac_exeext conftest.$ac_ext
31463
31464         LIBS="$ol_LIBS"
31465
31466 fi
31467 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
31468 echo "${ECHO_T}$ol_cv_db_db_4" >&6
31469
31470         if test $ol_cv_db_db_4 = yes ; then
31471                 ol_cv_lib_db=-ldb-4
31472         fi
31473 fi
31474
31475 if test $ol_cv_lib_db = no ; then
31476         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
31477 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
31478 if test "${ol_cv_db_db4+set}" = set; then
31479   echo $ECHO_N "(cached) $ECHO_C" >&6
31480 else
31481
31482         ol_DB_LIB=-ldb4
31483         ol_LIBS=$LIBS
31484         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31485
31486         cat >conftest.$ac_ext <<_ACEOF
31487 /* confdefs.h.  */
31488 _ACEOF
31489 cat confdefs.h >>conftest.$ac_ext
31490 cat >>conftest.$ac_ext <<_ACEOF
31491 /* end confdefs.h.  */
31492
31493 #ifdef HAVE_DB_185_H
31494 # include <db_185.h>
31495 #else
31496 # include <db.h>
31497 #endif
31498
31499 #ifndef DB_VERSION_MAJOR
31500 # define DB_VERSION_MAJOR 1
31501 #endif
31502
31503 #ifndef NULL
31504 #define NULL ((void*)0)
31505 #endif
31506
31507 int
31508 main ()
31509 {
31510
31511 #if DB_VERSION_MAJOR > 1
31512         {
31513                 char *version;
31514                 int major, minor, patch;
31515
31516                 version = db_version( &major, &minor, &patch );
31517
31518                 if( major != DB_VERSION_MAJOR ||
31519                         minor < DB_VERSION_MINOR )
31520                 {
31521                         printf("Berkeley DB version mismatch\n"
31522                                 "\theader: %s\n\tlibrary: %s\n",
31523                                 DB_VERSION_STRING, version);
31524                         return 1;
31525                 }
31526         }
31527 #endif
31528
31529 #if DB_VERSION_MAJOR > 2
31530         db_env_create( NULL, 0 );
31531 #elif DB_VERSION_MAJOR > 1
31532         db_appexit( NULL );
31533 #else
31534         (void) dbopen( NULL, 0, 0, 0, NULL);
31535 #endif
31536
31537   ;
31538   return 0;
31539 }
31540 _ACEOF
31541 rm -f conftest.$ac_objext conftest$ac_exeext
31542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31543   (eval $ac_link) 2>conftest.er1
31544   ac_status=$?
31545   grep -v '^ *+' conftest.er1 >conftest.err
31546   rm -f conftest.er1
31547   cat conftest.err >&5
31548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); } &&
31550          { ac_try='test -z "$ac_c_werror_flag"
31551                          || test ! -s conftest.err'
31552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31553   (eval $ac_try) 2>&5
31554   ac_status=$?
31555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31556   (exit $ac_status); }; } &&
31557          { ac_try='test -s conftest$ac_exeext'
31558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31559   (eval $ac_try) 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); }; }; then
31563   ol_cv_db_db4=yes
31564 else
31565   echo "$as_me: failed program was:" >&5
31566 sed 's/^/| /' conftest.$ac_ext >&5
31567
31568 ol_cv_db_db4=no
31569 fi
31570 rm -f conftest.err conftest.$ac_objext \
31571       conftest$ac_exeext conftest.$ac_ext
31572
31573         LIBS="$ol_LIBS"
31574
31575 fi
31576 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
31577 echo "${ECHO_T}$ol_cv_db_db4" >&6
31578
31579         if test $ol_cv_db_db4 = yes ; then
31580                 ol_cv_lib_db=-ldb4
31581         fi
31582 fi
31583
31584 if test $ol_cv_lib_db = no ; then
31585         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
31586 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
31587 if test "${ol_cv_db_db+set}" = set; then
31588   echo $ECHO_N "(cached) $ECHO_C" >&6
31589 else
31590
31591         ol_DB_LIB=-ldb
31592         ol_LIBS=$LIBS
31593         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31594
31595         cat >conftest.$ac_ext <<_ACEOF
31596 /* confdefs.h.  */
31597 _ACEOF
31598 cat confdefs.h >>conftest.$ac_ext
31599 cat >>conftest.$ac_ext <<_ACEOF
31600 /* end confdefs.h.  */
31601
31602 #ifdef HAVE_DB_185_H
31603 # include <db_185.h>
31604 #else
31605 # include <db.h>
31606 #endif
31607
31608 #ifndef DB_VERSION_MAJOR
31609 # define DB_VERSION_MAJOR 1
31610 #endif
31611
31612 #ifndef NULL
31613 #define NULL ((void*)0)
31614 #endif
31615
31616 int
31617 main ()
31618 {
31619
31620 #if DB_VERSION_MAJOR > 1
31621         {
31622                 char *version;
31623                 int major, minor, patch;
31624
31625                 version = db_version( &major, &minor, &patch );
31626
31627                 if( major != DB_VERSION_MAJOR ||
31628                         minor < DB_VERSION_MINOR )
31629                 {
31630                         printf("Berkeley DB version mismatch\n"
31631                                 "\theader: %s\n\tlibrary: %s\n",
31632                                 DB_VERSION_STRING, version);
31633                         return 1;
31634                 }
31635         }
31636 #endif
31637
31638 #if DB_VERSION_MAJOR > 2
31639         db_env_create( NULL, 0 );
31640 #elif DB_VERSION_MAJOR > 1
31641         db_appexit( NULL );
31642 #else
31643         (void) dbopen( NULL, 0, 0, 0, NULL);
31644 #endif
31645
31646   ;
31647   return 0;
31648 }
31649 _ACEOF
31650 rm -f conftest.$ac_objext conftest$ac_exeext
31651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31652   (eval $ac_link) 2>conftest.er1
31653   ac_status=$?
31654   grep -v '^ *+' conftest.er1 >conftest.err
31655   rm -f conftest.er1
31656   cat conftest.err >&5
31657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658   (exit $ac_status); } &&
31659          { ac_try='test -z "$ac_c_werror_flag"
31660                          || test ! -s conftest.err'
31661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31662   (eval $ac_try) 2>&5
31663   ac_status=$?
31664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665   (exit $ac_status); }; } &&
31666          { ac_try='test -s conftest$ac_exeext'
31667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31668   (eval $ac_try) 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); }; }; then
31672   ol_cv_db_db=yes
31673 else
31674   echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677 ol_cv_db_db=no
31678 fi
31679 rm -f conftest.err conftest.$ac_objext \
31680       conftest$ac_exeext conftest.$ac_ext
31681
31682         LIBS="$ol_LIBS"
31683
31684 fi
31685 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
31686 echo "${ECHO_T}$ol_cv_db_db" >&6
31687
31688         if test $ol_cv_db_db = yes ; then
31689                 ol_cv_lib_db=-ldb
31690         fi
31691 fi
31692
31693 if test $ol_cv_lib_db = no ; then
31694         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
31695 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
31696 if test "${ol_cv_db_db41+set}" = set; then
31697   echo $ECHO_N "(cached) $ECHO_C" >&6
31698 else
31699
31700         ol_DB_LIB=-ldb41
31701         ol_LIBS=$LIBS
31702         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31703
31704         cat >conftest.$ac_ext <<_ACEOF
31705 /* confdefs.h.  */
31706 _ACEOF
31707 cat confdefs.h >>conftest.$ac_ext
31708 cat >>conftest.$ac_ext <<_ACEOF
31709 /* end confdefs.h.  */
31710
31711 #ifdef HAVE_DB_185_H
31712 # include <db_185.h>
31713 #else
31714 # include <db.h>
31715 #endif
31716
31717 #ifndef DB_VERSION_MAJOR
31718 # define DB_VERSION_MAJOR 1
31719 #endif
31720
31721 #ifndef NULL
31722 #define NULL ((void*)0)
31723 #endif
31724
31725 int
31726 main ()
31727 {
31728
31729 #if DB_VERSION_MAJOR > 1
31730         {
31731                 char *version;
31732                 int major, minor, patch;
31733
31734                 version = db_version( &major, &minor, &patch );
31735
31736                 if( major != DB_VERSION_MAJOR ||
31737                         minor < DB_VERSION_MINOR )
31738                 {
31739                         printf("Berkeley DB version mismatch\n"
31740                                 "\theader: %s\n\tlibrary: %s\n",
31741                                 DB_VERSION_STRING, version);
31742                         return 1;
31743                 }
31744         }
31745 #endif
31746
31747 #if DB_VERSION_MAJOR > 2
31748         db_env_create( NULL, 0 );
31749 #elif DB_VERSION_MAJOR > 1
31750         db_appexit( NULL );
31751 #else
31752         (void) dbopen( NULL, 0, 0, 0, NULL);
31753 #endif
31754
31755   ;
31756   return 0;
31757 }
31758 _ACEOF
31759 rm -f conftest.$ac_objext conftest$ac_exeext
31760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31761   (eval $ac_link) 2>conftest.er1
31762   ac_status=$?
31763   grep -v '^ *+' conftest.er1 >conftest.err
31764   rm -f conftest.er1
31765   cat conftest.err >&5
31766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31767   (exit $ac_status); } &&
31768          { ac_try='test -z "$ac_c_werror_flag"
31769                          || test ! -s conftest.err'
31770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31771   (eval $ac_try) 2>&5
31772   ac_status=$?
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; } &&
31775          { ac_try='test -s conftest$ac_exeext'
31776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777   (eval $ac_try) 2>&5
31778   ac_status=$?
31779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780   (exit $ac_status); }; }; then
31781   ol_cv_db_db41=yes
31782 else
31783   echo "$as_me: failed program was:" >&5
31784 sed 's/^/| /' conftest.$ac_ext >&5
31785
31786 ol_cv_db_db41=no
31787 fi
31788 rm -f conftest.err conftest.$ac_objext \
31789       conftest$ac_exeext conftest.$ac_ext
31790
31791         LIBS="$ol_LIBS"
31792
31793 fi
31794 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
31795 echo "${ECHO_T}$ol_cv_db_db41" >&6
31796
31797         if test $ol_cv_db_db41 = yes ; then
31798                 ol_cv_lib_db=-ldb41
31799         fi
31800 fi
31801
31802 if test $ol_cv_lib_db = no ; then
31803         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
31804 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
31805 if test "${ol_cv_db_db_41+set}" = set; then
31806   echo $ECHO_N "(cached) $ECHO_C" >&6
31807 else
31808
31809         ol_DB_LIB=-ldb-41
31810         ol_LIBS=$LIBS
31811         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31812
31813         cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820 #ifdef HAVE_DB_185_H
31821 # include <db_185.h>
31822 #else
31823 # include <db.h>
31824 #endif
31825
31826 #ifndef DB_VERSION_MAJOR
31827 # define DB_VERSION_MAJOR 1
31828 #endif
31829
31830 #ifndef NULL
31831 #define NULL ((void*)0)
31832 #endif
31833
31834 int
31835 main ()
31836 {
31837
31838 #if DB_VERSION_MAJOR > 1
31839         {
31840                 char *version;
31841                 int major, minor, patch;
31842
31843                 version = db_version( &major, &minor, &patch );
31844
31845                 if( major != DB_VERSION_MAJOR ||
31846                         minor < DB_VERSION_MINOR )
31847                 {
31848                         printf("Berkeley DB version mismatch\n"
31849                                 "\theader: %s\n\tlibrary: %s\n",
31850                                 DB_VERSION_STRING, version);
31851                         return 1;
31852                 }
31853         }
31854 #endif
31855
31856 #if DB_VERSION_MAJOR > 2
31857         db_env_create( NULL, 0 );
31858 #elif DB_VERSION_MAJOR > 1
31859         db_appexit( NULL );
31860 #else
31861         (void) dbopen( NULL, 0, 0, 0, NULL);
31862 #endif
31863
31864   ;
31865   return 0;
31866 }
31867 _ACEOF
31868 rm -f conftest.$ac_objext conftest$ac_exeext
31869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31870   (eval $ac_link) 2>conftest.er1
31871   ac_status=$?
31872   grep -v '^ *+' conftest.er1 >conftest.err
31873   rm -f conftest.er1
31874   cat conftest.err >&5
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); } &&
31877          { ac_try='test -z "$ac_c_werror_flag"
31878                          || test ! -s conftest.err'
31879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31880   (eval $ac_try) 2>&5
31881   ac_status=$?
31882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883   (exit $ac_status); }; } &&
31884          { ac_try='test -s conftest$ac_exeext'
31885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31886   (eval $ac_try) 2>&5
31887   ac_status=$?
31888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889   (exit $ac_status); }; }; then
31890   ol_cv_db_db_41=yes
31891 else
31892   echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31894
31895 ol_cv_db_db_41=no
31896 fi
31897 rm -f conftest.err conftest.$ac_objext \
31898       conftest$ac_exeext conftest.$ac_ext
31899
31900         LIBS="$ol_LIBS"
31901
31902 fi
31903 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
31904 echo "${ECHO_T}$ol_cv_db_db_41" >&6
31905
31906         if test $ol_cv_db_db_41 = yes ; then
31907                 ol_cv_lib_db=-ldb-41
31908         fi
31909 fi
31910
31911 if test $ol_cv_lib_db = no ; then
31912         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
31913 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
31914 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
31915   echo $ECHO_N "(cached) $ECHO_C" >&6
31916 else
31917
31918         ol_DB_LIB=-ldb-4.1
31919         ol_LIBS=$LIBS
31920         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
31921
31922         cat >conftest.$ac_ext <<_ACEOF
31923 /* confdefs.h.  */
31924 _ACEOF
31925 cat confdefs.h >>conftest.$ac_ext
31926 cat >>conftest.$ac_ext <<_ACEOF
31927 /* end confdefs.h.  */
31928
31929 #ifdef HAVE_DB_185_H
31930 # include <db_185.h>
31931 #else
31932 # include <db.h>
31933 #endif
31934
31935 #ifndef DB_VERSION_MAJOR
31936 # define DB_VERSION_MAJOR 1
31937 #endif
31938
31939 #ifndef NULL
31940 #define NULL ((void*)0)
31941 #endif
31942
31943 int
31944 main ()
31945 {
31946
31947 #if DB_VERSION_MAJOR > 1
31948         {
31949                 char *version;
31950                 int major, minor, patch;
31951
31952                 version = db_version( &major, &minor, &patch );
31953
31954                 if( major != DB_VERSION_MAJOR ||
31955                         minor < DB_VERSION_MINOR )
31956                 {
31957                         printf("Berkeley DB version mismatch\n"
31958                                 "\theader: %s\n\tlibrary: %s\n",
31959                                 DB_VERSION_STRING, version);
31960                         return 1;
31961                 }
31962         }
31963 #endif
31964
31965 #if DB_VERSION_MAJOR > 2
31966         db_env_create( NULL, 0 );
31967 #elif DB_VERSION_MAJOR > 1
31968         db_appexit( NULL );
31969 #else
31970         (void) dbopen( NULL, 0, 0, 0, NULL);
31971 #endif
31972
31973   ;
31974   return 0;
31975 }
31976 _ACEOF
31977 rm -f conftest.$ac_objext conftest$ac_exeext
31978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31979   (eval $ac_link) 2>conftest.er1
31980   ac_status=$?
31981   grep -v '^ *+' conftest.er1 >conftest.err
31982   rm -f conftest.er1
31983   cat conftest.err >&5
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); } &&
31986          { ac_try='test -z "$ac_c_werror_flag"
31987                          || test ! -s conftest.err'
31988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31989   (eval $ac_try) 2>&5
31990   ac_status=$?
31991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992   (exit $ac_status); }; } &&
31993          { ac_try='test -s conftest$ac_exeext'
31994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995   (eval $ac_try) 2>&5
31996   ac_status=$?
31997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998   (exit $ac_status); }; }; then
31999   ol_cv_db_db_4_dot_1=yes
32000 else
32001   echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32003
32004 ol_cv_db_db_4_dot_1=no
32005 fi
32006 rm -f conftest.err conftest.$ac_objext \
32007       conftest$ac_exeext conftest.$ac_ext
32008
32009         LIBS="$ol_LIBS"
32010
32011 fi
32012 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
32013 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
32014
32015         if test $ol_cv_db_db_4_dot_1 = yes ; then
32016                 ol_cv_lib_db=-ldb-4.1
32017         fi
32018 fi
32019
32020 if test $ol_cv_lib_db = no ; then
32021         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
32022 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
32023 if test "${ol_cv_db_db_4_1+set}" = set; then
32024   echo $ECHO_N "(cached) $ECHO_C" >&6
32025 else
32026
32027         ol_DB_LIB=-ldb-4-1
32028         ol_LIBS=$LIBS
32029         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32030
32031         cat >conftest.$ac_ext <<_ACEOF
32032 /* confdefs.h.  */
32033 _ACEOF
32034 cat confdefs.h >>conftest.$ac_ext
32035 cat >>conftest.$ac_ext <<_ACEOF
32036 /* end confdefs.h.  */
32037
32038 #ifdef HAVE_DB_185_H
32039 # include <db_185.h>
32040 #else
32041 # include <db.h>
32042 #endif
32043
32044 #ifndef DB_VERSION_MAJOR
32045 # define DB_VERSION_MAJOR 1
32046 #endif
32047
32048 #ifndef NULL
32049 #define NULL ((void*)0)
32050 #endif
32051
32052 int
32053 main ()
32054 {
32055
32056 #if DB_VERSION_MAJOR > 1
32057         {
32058                 char *version;
32059                 int major, minor, patch;
32060
32061                 version = db_version( &major, &minor, &patch );
32062
32063                 if( major != DB_VERSION_MAJOR ||
32064                         minor < DB_VERSION_MINOR )
32065                 {
32066                         printf("Berkeley DB version mismatch\n"
32067                                 "\theader: %s\n\tlibrary: %s\n",
32068                                 DB_VERSION_STRING, version);
32069                         return 1;
32070                 }
32071         }
32072 #endif
32073
32074 #if DB_VERSION_MAJOR > 2
32075         db_env_create( NULL, 0 );
32076 #elif DB_VERSION_MAJOR > 1
32077         db_appexit( NULL );
32078 #else
32079         (void) dbopen( NULL, 0, 0, 0, NULL);
32080 #endif
32081
32082   ;
32083   return 0;
32084 }
32085 _ACEOF
32086 rm -f conftest.$ac_objext conftest$ac_exeext
32087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32088   (eval $ac_link) 2>conftest.er1
32089   ac_status=$?
32090   grep -v '^ *+' conftest.er1 >conftest.err
32091   rm -f conftest.er1
32092   cat conftest.err >&5
32093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094   (exit $ac_status); } &&
32095          { ac_try='test -z "$ac_c_werror_flag"
32096                          || test ! -s conftest.err'
32097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32098   (eval $ac_try) 2>&5
32099   ac_status=$?
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); }; } &&
32102          { ac_try='test -s conftest$ac_exeext'
32103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32104   (eval $ac_try) 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); }; }; then
32108   ol_cv_db_db_4_1=yes
32109 else
32110   echo "$as_me: failed program was:" >&5
32111 sed 's/^/| /' conftest.$ac_ext >&5
32112
32113 ol_cv_db_db_4_1=no
32114 fi
32115 rm -f conftest.err conftest.$ac_objext \
32116       conftest$ac_exeext conftest.$ac_ext
32117
32118         LIBS="$ol_LIBS"
32119
32120 fi
32121 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
32122 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
32123
32124         if test $ol_cv_db_db_4_1 = yes ; then
32125                 ol_cv_lib_db=-ldb-4-1
32126         fi
32127 fi
32128
32129 if test $ol_cv_lib_db = no ; then
32130         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
32131 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
32132 if test "${ol_cv_db_db3+set}" = set; then
32133   echo $ECHO_N "(cached) $ECHO_C" >&6
32134 else
32135
32136         ol_DB_LIB=-ldb3
32137         ol_LIBS=$LIBS
32138         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32139
32140         cat >conftest.$ac_ext <<_ACEOF
32141 /* confdefs.h.  */
32142 _ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h.  */
32146
32147 #ifdef HAVE_DB_185_H
32148 # include <db_185.h>
32149 #else
32150 # include <db.h>
32151 #endif
32152
32153 #ifndef DB_VERSION_MAJOR
32154 # define DB_VERSION_MAJOR 1
32155 #endif
32156
32157 #ifndef NULL
32158 #define NULL ((void*)0)
32159 #endif
32160
32161 int
32162 main ()
32163 {
32164
32165 #if DB_VERSION_MAJOR > 1
32166         {
32167                 char *version;
32168                 int major, minor, patch;
32169
32170                 version = db_version( &major, &minor, &patch );
32171
32172                 if( major != DB_VERSION_MAJOR ||
32173                         minor < DB_VERSION_MINOR )
32174                 {
32175                         printf("Berkeley DB version mismatch\n"
32176                                 "\theader: %s\n\tlibrary: %s\n",
32177                                 DB_VERSION_STRING, version);
32178                         return 1;
32179                 }
32180         }
32181 #endif
32182
32183 #if DB_VERSION_MAJOR > 2
32184         db_env_create( NULL, 0 );
32185 #elif DB_VERSION_MAJOR > 1
32186         db_appexit( NULL );
32187 #else
32188         (void) dbopen( NULL, 0, 0, 0, NULL);
32189 #endif
32190
32191   ;
32192   return 0;
32193 }
32194 _ACEOF
32195 rm -f conftest.$ac_objext conftest$ac_exeext
32196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32197   (eval $ac_link) 2>conftest.er1
32198   ac_status=$?
32199   grep -v '^ *+' conftest.er1 >conftest.err
32200   rm -f conftest.er1
32201   cat conftest.err >&5
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); } &&
32204          { ac_try='test -z "$ac_c_werror_flag"
32205                          || test ! -s conftest.err'
32206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207   (eval $ac_try) 2>&5
32208   ac_status=$?
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); }; } &&
32211          { ac_try='test -s conftest$ac_exeext'
32212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213   (eval $ac_try) 2>&5
32214   ac_status=$?
32215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216   (exit $ac_status); }; }; then
32217   ol_cv_db_db3=yes
32218 else
32219   echo "$as_me: failed program was:" >&5
32220 sed 's/^/| /' conftest.$ac_ext >&5
32221
32222 ol_cv_db_db3=no
32223 fi
32224 rm -f conftest.err conftest.$ac_objext \
32225       conftest$ac_exeext conftest.$ac_ext
32226
32227         LIBS="$ol_LIBS"
32228
32229 fi
32230 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
32231 echo "${ECHO_T}$ol_cv_db_db3" >&6
32232
32233         if test $ol_cv_db_db3 = yes ; then
32234                 ol_cv_lib_db=-ldb3
32235         fi
32236 fi
32237
32238 if test $ol_cv_lib_db = no ; then
32239         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
32240 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
32241 if test "${ol_cv_db_db_3+set}" = set; then
32242   echo $ECHO_N "(cached) $ECHO_C" >&6
32243 else
32244
32245         ol_DB_LIB=-ldb-3
32246         ol_LIBS=$LIBS
32247         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32248
32249         cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255
32256 #ifdef HAVE_DB_185_H
32257 # include <db_185.h>
32258 #else
32259 # include <db.h>
32260 #endif
32261
32262 #ifndef DB_VERSION_MAJOR
32263 # define DB_VERSION_MAJOR 1
32264 #endif
32265
32266 #ifndef NULL
32267 #define NULL ((void*)0)
32268 #endif
32269
32270 int
32271 main ()
32272 {
32273
32274 #if DB_VERSION_MAJOR > 1
32275         {
32276                 char *version;
32277                 int major, minor, patch;
32278
32279                 version = db_version( &major, &minor, &patch );
32280
32281                 if( major != DB_VERSION_MAJOR ||
32282                         minor < DB_VERSION_MINOR )
32283                 {
32284                         printf("Berkeley DB version mismatch\n"
32285                                 "\theader: %s\n\tlibrary: %s\n",
32286                                 DB_VERSION_STRING, version);
32287                         return 1;
32288                 }
32289         }
32290 #endif
32291
32292 #if DB_VERSION_MAJOR > 2
32293         db_env_create( NULL, 0 );
32294 #elif DB_VERSION_MAJOR > 1
32295         db_appexit( NULL );
32296 #else
32297         (void) dbopen( NULL, 0, 0, 0, NULL);
32298 #endif
32299
32300   ;
32301   return 0;
32302 }
32303 _ACEOF
32304 rm -f conftest.$ac_objext conftest$ac_exeext
32305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32306   (eval $ac_link) 2>conftest.er1
32307   ac_status=$?
32308   grep -v '^ *+' conftest.er1 >conftest.err
32309   rm -f conftest.er1
32310   cat conftest.err >&5
32311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312   (exit $ac_status); } &&
32313          { ac_try='test -z "$ac_c_werror_flag"
32314                          || test ! -s conftest.err'
32315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32316   (eval $ac_try) 2>&5
32317   ac_status=$?
32318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32319   (exit $ac_status); }; } &&
32320          { ac_try='test -s conftest$ac_exeext'
32321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322   (eval $ac_try) 2>&5
32323   ac_status=$?
32324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325   (exit $ac_status); }; }; then
32326   ol_cv_db_db_3=yes
32327 else
32328   echo "$as_me: failed program was:" >&5
32329 sed 's/^/| /' conftest.$ac_ext >&5
32330
32331 ol_cv_db_db_3=no
32332 fi
32333 rm -f conftest.err conftest.$ac_objext \
32334       conftest$ac_exeext conftest.$ac_ext
32335
32336         LIBS="$ol_LIBS"
32337
32338 fi
32339 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
32340 echo "${ECHO_T}$ol_cv_db_db_3" >&6
32341
32342         if test $ol_cv_db_db_3 = yes ; then
32343                 ol_cv_lib_db=-ldb-3
32344         fi
32345 fi
32346
32347 if test $ol_cv_lib_db = no ; then
32348         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
32349 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
32350 if test "${ol_cv_db_db2+set}" = set; then
32351   echo $ECHO_N "(cached) $ECHO_C" >&6
32352 else
32353
32354         ol_DB_LIB=-ldb2
32355         ol_LIBS=$LIBS
32356         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32357
32358         cat >conftest.$ac_ext <<_ACEOF
32359 /* confdefs.h.  */
32360 _ACEOF
32361 cat confdefs.h >>conftest.$ac_ext
32362 cat >>conftest.$ac_ext <<_ACEOF
32363 /* end confdefs.h.  */
32364
32365 #ifdef HAVE_DB_185_H
32366 # include <db_185.h>
32367 #else
32368 # include <db.h>
32369 #endif
32370
32371 #ifndef DB_VERSION_MAJOR
32372 # define DB_VERSION_MAJOR 1
32373 #endif
32374
32375 #ifndef NULL
32376 #define NULL ((void*)0)
32377 #endif
32378
32379 int
32380 main ()
32381 {
32382
32383 #if DB_VERSION_MAJOR > 1
32384         {
32385                 char *version;
32386                 int major, minor, patch;
32387
32388                 version = db_version( &major, &minor, &patch );
32389
32390                 if( major != DB_VERSION_MAJOR ||
32391                         minor < DB_VERSION_MINOR )
32392                 {
32393                         printf("Berkeley DB version mismatch\n"
32394                                 "\theader: %s\n\tlibrary: %s\n",
32395                                 DB_VERSION_STRING, version);
32396                         return 1;
32397                 }
32398         }
32399 #endif
32400
32401 #if DB_VERSION_MAJOR > 2
32402         db_env_create( NULL, 0 );
32403 #elif DB_VERSION_MAJOR > 1
32404         db_appexit( NULL );
32405 #else
32406         (void) dbopen( NULL, 0, 0, 0, NULL);
32407 #endif
32408
32409   ;
32410   return 0;
32411 }
32412 _ACEOF
32413 rm -f conftest.$ac_objext conftest$ac_exeext
32414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32415   (eval $ac_link) 2>conftest.er1
32416   ac_status=$?
32417   grep -v '^ *+' conftest.er1 >conftest.err
32418   rm -f conftest.er1
32419   cat conftest.err >&5
32420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32421   (exit $ac_status); } &&
32422          { ac_try='test -z "$ac_c_werror_flag"
32423                          || test ! -s conftest.err'
32424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425   (eval $ac_try) 2>&5
32426   ac_status=$?
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); }; } &&
32429          { ac_try='test -s conftest$ac_exeext'
32430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431   (eval $ac_try) 2>&5
32432   ac_status=$?
32433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434   (exit $ac_status); }; }; then
32435   ol_cv_db_db2=yes
32436 else
32437   echo "$as_me: failed program was:" >&5
32438 sed 's/^/| /' conftest.$ac_ext >&5
32439
32440 ol_cv_db_db2=no
32441 fi
32442 rm -f conftest.err conftest.$ac_objext \
32443       conftest$ac_exeext conftest.$ac_ext
32444
32445         LIBS="$ol_LIBS"
32446
32447 fi
32448 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
32449 echo "${ECHO_T}$ol_cv_db_db2" >&6
32450
32451         if test $ol_cv_db_db2 = yes ; then
32452                 ol_cv_lib_db=-ldb2
32453         fi
32454 fi
32455
32456 if test $ol_cv_lib_db = no ; then
32457         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
32458 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
32459 if test "${ol_cv_db_db_2+set}" = set; then
32460   echo $ECHO_N "(cached) $ECHO_C" >&6
32461 else
32462
32463         ol_DB_LIB=-ldb-2
32464         ol_LIBS=$LIBS
32465         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32466
32467         cat >conftest.$ac_ext <<_ACEOF
32468 /* confdefs.h.  */
32469 _ACEOF
32470 cat confdefs.h >>conftest.$ac_ext
32471 cat >>conftest.$ac_ext <<_ACEOF
32472 /* end confdefs.h.  */
32473
32474 #ifdef HAVE_DB_185_H
32475 # include <db_185.h>
32476 #else
32477 # include <db.h>
32478 #endif
32479
32480 #ifndef DB_VERSION_MAJOR
32481 # define DB_VERSION_MAJOR 1
32482 #endif
32483
32484 #ifndef NULL
32485 #define NULL ((void*)0)
32486 #endif
32487
32488 int
32489 main ()
32490 {
32491
32492 #if DB_VERSION_MAJOR > 1
32493         {
32494                 char *version;
32495                 int major, minor, patch;
32496
32497                 version = db_version( &major, &minor, &patch );
32498
32499                 if( major != DB_VERSION_MAJOR ||
32500                         minor < DB_VERSION_MINOR )
32501                 {
32502                         printf("Berkeley DB version mismatch\n"
32503                                 "\theader: %s\n\tlibrary: %s\n",
32504                                 DB_VERSION_STRING, version);
32505                         return 1;
32506                 }
32507         }
32508 #endif
32509
32510 #if DB_VERSION_MAJOR > 2
32511         db_env_create( NULL, 0 );
32512 #elif DB_VERSION_MAJOR > 1
32513         db_appexit( NULL );
32514 #else
32515         (void) dbopen( NULL, 0, 0, 0, NULL);
32516 #endif
32517
32518   ;
32519   return 0;
32520 }
32521 _ACEOF
32522 rm -f conftest.$ac_objext conftest$ac_exeext
32523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32524   (eval $ac_link) 2>conftest.er1
32525   ac_status=$?
32526   grep -v '^ *+' conftest.er1 >conftest.err
32527   rm -f conftest.er1
32528   cat conftest.err >&5
32529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530   (exit $ac_status); } &&
32531          { ac_try='test -z "$ac_c_werror_flag"
32532                          || test ! -s conftest.err'
32533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32534   (eval $ac_try) 2>&5
32535   ac_status=$?
32536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537   (exit $ac_status); }; } &&
32538          { ac_try='test -s conftest$ac_exeext'
32539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540   (eval $ac_try) 2>&5
32541   ac_status=$?
32542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543   (exit $ac_status); }; }; then
32544   ol_cv_db_db_2=yes
32545 else
32546   echo "$as_me: failed program was:" >&5
32547 sed 's/^/| /' conftest.$ac_ext >&5
32548
32549 ol_cv_db_db_2=no
32550 fi
32551 rm -f conftest.err conftest.$ac_objext \
32552       conftest$ac_exeext conftest.$ac_ext
32553
32554         LIBS="$ol_LIBS"
32555
32556 fi
32557 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
32558 echo "${ECHO_T}$ol_cv_db_db_2" >&6
32559
32560         if test $ol_cv_db_db_2 = yes ; then
32561                 ol_cv_lib_db=-ldb-2
32562         fi
32563 fi
32564
32565 if test $ol_cv_lib_db = no ; then
32566         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
32567 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
32568 if test "${ol_cv_db_db1+set}" = set; then
32569   echo $ECHO_N "(cached) $ECHO_C" >&6
32570 else
32571
32572         ol_DB_LIB=-ldb1
32573         ol_LIBS=$LIBS
32574         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32575
32576         cat >conftest.$ac_ext <<_ACEOF
32577 /* confdefs.h.  */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h.  */
32582
32583 #ifdef HAVE_DB_185_H
32584 # include <db_185.h>
32585 #else
32586 # include <db.h>
32587 #endif
32588
32589 #ifndef DB_VERSION_MAJOR
32590 # define DB_VERSION_MAJOR 1
32591 #endif
32592
32593 #ifndef NULL
32594 #define NULL ((void*)0)
32595 #endif
32596
32597 int
32598 main ()
32599 {
32600
32601 #if DB_VERSION_MAJOR > 1
32602         {
32603                 char *version;
32604                 int major, minor, patch;
32605
32606                 version = db_version( &major, &minor, &patch );
32607
32608                 if( major != DB_VERSION_MAJOR ||
32609                         minor < DB_VERSION_MINOR )
32610                 {
32611                         printf("Berkeley DB version mismatch\n"
32612                                 "\theader: %s\n\tlibrary: %s\n",
32613                                 DB_VERSION_STRING, version);
32614                         return 1;
32615                 }
32616         }
32617 #endif
32618
32619 #if DB_VERSION_MAJOR > 2
32620         db_env_create( NULL, 0 );
32621 #elif DB_VERSION_MAJOR > 1
32622         db_appexit( NULL );
32623 #else
32624         (void) dbopen( NULL, 0, 0, 0, NULL);
32625 #endif
32626
32627   ;
32628   return 0;
32629 }
32630 _ACEOF
32631 rm -f conftest.$ac_objext conftest$ac_exeext
32632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32633   (eval $ac_link) 2>conftest.er1
32634   ac_status=$?
32635   grep -v '^ *+' conftest.er1 >conftest.err
32636   rm -f conftest.er1
32637   cat conftest.err >&5
32638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639   (exit $ac_status); } &&
32640          { ac_try='test -z "$ac_c_werror_flag"
32641                          || test ! -s conftest.err'
32642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32643   (eval $ac_try) 2>&5
32644   ac_status=$?
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); }; } &&
32647          { ac_try='test -s conftest$ac_exeext'
32648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32649   (eval $ac_try) 2>&5
32650   ac_status=$?
32651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652   (exit $ac_status); }; }; then
32653   ol_cv_db_db1=yes
32654 else
32655   echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32657
32658 ol_cv_db_db1=no
32659 fi
32660 rm -f conftest.err conftest.$ac_objext \
32661       conftest$ac_exeext conftest.$ac_ext
32662
32663         LIBS="$ol_LIBS"
32664
32665 fi
32666 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
32667 echo "${ECHO_T}$ol_cv_db_db1" >&6
32668
32669         if test $ol_cv_db_db1 = yes ; then
32670                 ol_cv_lib_db=-ldb1
32671         fi
32672 fi
32673
32674 if test $ol_cv_lib_db = no ; then
32675         echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
32676 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
32677 if test "${ol_cv_db_db_1+set}" = set; then
32678   echo $ECHO_N "(cached) $ECHO_C" >&6
32679 else
32680
32681         ol_DB_LIB=-ldb-1
32682         ol_LIBS=$LIBS
32683         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
32684
32685         cat >conftest.$ac_ext <<_ACEOF
32686 /* confdefs.h.  */
32687 _ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h.  */
32691
32692 #ifdef HAVE_DB_185_H
32693 # include <db_185.h>
32694 #else
32695 # include <db.h>
32696 #endif
32697
32698 #ifndef DB_VERSION_MAJOR
32699 # define DB_VERSION_MAJOR 1
32700 #endif
32701
32702 #ifndef NULL
32703 #define NULL ((void*)0)
32704 #endif
32705
32706 int
32707 main ()
32708 {
32709
32710 #if DB_VERSION_MAJOR > 1
32711         {
32712                 char *version;
32713                 int major, minor, patch;
32714
32715                 version = db_version( &major, &minor, &patch );
32716
32717                 if( major != DB_VERSION_MAJOR ||
32718                         minor < DB_VERSION_MINOR )
32719                 {
32720                         printf("Berkeley DB version mismatch\n"
32721                                 "\theader: %s\n\tlibrary: %s\n",
32722                                 DB_VERSION_STRING, version);
32723                         return 1;
32724                 }
32725         }
32726 #endif
32727
32728 #if DB_VERSION_MAJOR > 2
32729         db_env_create( NULL, 0 );
32730 #elif DB_VERSION_MAJOR > 1
32731         db_appexit( NULL );
32732 #else
32733         (void) dbopen( NULL, 0, 0, 0, NULL);
32734 #endif
32735
32736   ;
32737   return 0;
32738 }
32739 _ACEOF
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742   (eval $ac_link) 2>conftest.er1
32743   ac_status=$?
32744   grep -v '^ *+' conftest.er1 >conftest.err
32745   rm -f conftest.er1
32746   cat conftest.err >&5
32747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748   (exit $ac_status); } &&
32749          { ac_try='test -z "$ac_c_werror_flag"
32750                          || test ! -s conftest.err'
32751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752   (eval $ac_try) 2>&5
32753   ac_status=$?
32754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); }; } &&
32756          { ac_try='test -s conftest$ac_exeext'
32757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758   (eval $ac_try) 2>&5
32759   ac_status=$?
32760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761   (exit $ac_status); }; }; then
32762   ol_cv_db_db_1=yes
32763 else
32764   echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32766
32767 ol_cv_db_db_1=no
32768 fi
32769 rm -f conftest.err conftest.$ac_objext \
32770       conftest$ac_exeext conftest.$ac_ext
32771
32772         LIBS="$ol_LIBS"
32773
32774 fi
32775 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
32776 echo "${ECHO_T}$ol_cv_db_db_1" >&6
32777
32778         if test $ol_cv_db_db_1 = yes ; then
32779                 ol_cv_lib_db=-ldb-1
32780         fi
32781 fi
32782
32783
32784         if test "$ol_cv_lib_db" != no ; then
32785                 ol_cv_berkeley_db=yes
32786                 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
32787 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
32788 if test "${ol_cv_berkeley_db_version+set}" = set; then
32789   echo $ECHO_N "(cached) $ECHO_C" >&6
32790 else
32791
32792         ol_LIBS="$LIBS"
32793         LIBS="$LTHREAD_LIBS $LIBS"
32794         if test $ol_cv_lib_db != yes ; then
32795                 LIBS="$ol_cv_lib_db $LIBS"
32796         fi
32797
32798         if test "$cross_compiling" = yes; then
32799   ol_cv_berkeley_db_version=cross
32800 else
32801   cat >conftest.$ac_ext <<_ACEOF
32802 /* confdefs.h.  */
32803 _ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h.  */
32807
32808 #ifdef HAVE_DB_185_H
32809         choke me;
32810 #else
32811 #include <db.h>
32812 #endif
32813 #ifndef DB_VERSION_MAJOR
32814 # define DB_VERSION_MAJOR 1
32815 #endif
32816 #ifndef NULL
32817 #define NULL ((void *)0)
32818 #endif
32819 main()
32820 {
32821 #if DB_VERSION_MAJOR > 1
32822         char *version;
32823         int major, minor, patch;
32824
32825         version = db_version( &major, &minor, &patch );
32826
32827         if( major != DB_VERSION_MAJOR ||
32828                 minor != DB_VERSION_MINOR ||
32829                 patch != DB_VERSION_PATCH )
32830         {
32831                 printf("Berkeley DB version mismatch\n"
32832                         "\theader: %s\n\tlibrary: %s\n",
32833                         DB_VERSION_STRING, version);
32834                 return 1;
32835         }
32836 #endif
32837
32838         return 0;
32839 }
32840 _ACEOF
32841 rm -f conftest$ac_exeext
32842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32843   (eval $ac_link) 2>&5
32844   ac_status=$?
32845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848   (eval $ac_try) 2>&5
32849   ac_status=$?
32850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851   (exit $ac_status); }; }; then
32852   ol_cv_berkeley_db_version=yes
32853 else
32854   echo "$as_me: program exited with status $ac_status" >&5
32855 echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32857
32858 ( exit $ac_status )
32859 ol_cv_berkeley_db_version=no
32860 fi
32861 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32862 fi
32863
32864         LIBS="$ol_LIBS"
32865
32866 fi
32867 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
32868 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
32869
32870         if test $ol_cv_berkeley_db_version = no ; then
32871                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
32872 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
32873    { (exit 1); exit 1; }; }
32874         fi
32875
32876                 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
32877 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
32878 if test "${ol_cv_berkeley_db_thread+set}" = set; then
32879   echo $ECHO_N "(cached) $ECHO_C" >&6
32880 else
32881
32882         ol_LIBS="$LIBS"
32883         LIBS="$LTHREAD_LIBS $LIBS"
32884         if test $ol_cv_lib_db != yes ; then
32885                 LIBS="$ol_cv_lib_db $LIBS"
32886         fi
32887
32888         if test "$cross_compiling" = yes; then
32889   ol_cv_berkeley_db_thread=cross
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
32898 #ifdef HAVE_DB_185_H
32899         choke me;
32900 #else
32901 #include <db.h>
32902 #endif
32903 #ifndef NULL
32904 #define NULL ((void *)0)
32905 #endif
32906 main()
32907 {
32908         int rc;
32909         u_int32_t flags = DB_CREATE |
32910 #ifdef DB_PRIVATE
32911                 DB_PRIVATE |
32912 #endif
32913                 DB_THREAD;
32914
32915 #if DB_VERSION_MAJOR > 2
32916         DB_ENV *env = NULL;
32917
32918         rc = db_env_create( &env, 0 );
32919
32920         flags |= DB_INIT_MPOOL;
32921 #ifdef DB_MPOOL_PRIVATE
32922         flags |= DB_MPOOL_PRIVATE;
32923 #endif
32924
32925         if( rc ) {
32926                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32927                 return rc;
32928         }
32929
32930 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
32931         rc = env->open( env, NULL, flags, 0 );
32932 #else
32933         rc = env->open( env, NULL, NULL, flags, 0 );
32934 #endif
32935
32936         if ( rc == 0 ) {
32937                 rc = env->close( env, 0 );
32938         }
32939
32940         if( rc ) {
32941                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
32942                 return rc;
32943         }
32944
32945 #else
32946         DB_ENV env;
32947         memset( &env, '\0', sizeof(env) );
32948
32949         rc = db_appinit( NULL, NULL, &env, flags );
32950
32951         if( rc == 0 ) {
32952                 db_appexit( &env );
32953         }
32954
32955         unlink("__db_mpool.share");
32956         unlink("__db_lock.share");
32957 #endif
32958
32959         return rc;
32960 }
32961 _ACEOF
32962 rm -f conftest$ac_exeext
32963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32964   (eval $ac_link) 2>&5
32965   ac_status=$?
32966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969   (eval $ac_try) 2>&5
32970   ac_status=$?
32971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972   (exit $ac_status); }; }; then
32973   ol_cv_berkeley_db_thread=yes
32974 else
32975   echo "$as_me: program exited with status $ac_status" >&5
32976 echo "$as_me: failed program was:" >&5
32977 sed 's/^/| /' conftest.$ac_ext >&5
32978
32979 ( exit $ac_status )
32980 ol_cv_berkeley_db_thread=no
32981 fi
32982 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32983 fi
32984
32985         LIBS="$ol_LIBS"
32986
32987 fi
32988 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
32989 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
32990
32991         if test $ol_cv_berkeley_db_thread != no ; then
32992
32993 cat >>confdefs.h <<\_ACEOF
32994 #define HAVE_BERKELEY_DB_THREAD 1
32995 _ACEOF
32996
32997         fi
32998
32999         fi
33000 fi
33001
33002         fi
33003
33004         if test $ol_cv_berkeley_db != no ; then
33005
33006 cat >>confdefs.h <<\_ACEOF
33007 #define HAVE_BERKELEY_DB 1
33008 _ACEOF
33009
33010
33011                 ol_link_ldbm=berkeley
33012                 ol_enable_ldbm_api=berkeley
33013
33014                 if test $ol_enable_ldbm_type = hash ; then
33015
33016 cat >>confdefs.h <<\_ACEOF
33017 #define LDBM_USE_DBHASH 1
33018 _ACEOF
33019
33020                 else
33021
33022 cat >>confdefs.h <<\_ACEOF
33023 #define LDBM_USE_DBBTREE 1
33024 _ACEOF
33025
33026                 fi
33027
33028                                                 if test $ol_cv_lib_db != yes ; then
33029                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
33030                 fi
33031         fi
33032         ;;
33033 esac
33034
33035 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
33036         if test $ol_link_ldbm != berkeley ; then
33037                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
33038 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
33039    { (exit 1); exit 1; }; }
33040         else
33041                 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
33042 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
33043 if test "${ol_cv_bdb_compat+set}" = set; then
33044   echo $ECHO_N "(cached) $ECHO_C" >&6
33045 else
33046
33047         cat >conftest.$ac_ext <<_ACEOF
33048 /* confdefs.h.  */
33049 _ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h.  */
33053
33054 #include <db.h>
33055
33056  /* this check could be improved */
33057 #ifndef DB_VERSION_MAJOR
33058 #       define DB_VERSION_MAJOR 1
33059 #endif
33060 #ifndef DB_VERSION_MINOR
33061 #       define DB_VERSION_MINOR 0
33062 #endif
33063
33064 /* require 4.2 or later */
33065 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
33066         __db_version_compat
33067 #endif
33068
33069 _ACEOF
33070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33071   $EGREP "__db_version_compat" >/dev/null 2>&1; then
33072   ol_cv_bdb_compat=yes
33073 else
33074   ol_cv_bdb_compat=no
33075 fi
33076 rm -f conftest*
33077
33078 fi
33079 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
33080 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
33081
33082
33083                 if test $ol_cv_bdb_compat != yes ; then
33084                         { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
33085 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
33086    { (exit 1); exit 1; }; }
33087                 fi
33088         fi
33089 fi
33090
33091 if test $ol_link_ldbm = no && test $ol_enable_ldbm_type = btree ; then
33092         { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
33093 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
33094         ol_enable_ldbm_api=none
33095 fi
33096
33097 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = mdbm ; then
33098         echo "$as_me:$LINENO: checking for MDBM library" >&5
33099 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
33100 if test "${ol_cv_lib_mdbm+set}" = set; then
33101   echo $ECHO_N "(cached) $ECHO_C" >&6
33102 else
33103         ol_LIBS="$LIBS"
33104         echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
33105 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
33106 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
33107   echo $ECHO_N "(cached) $ECHO_C" >&6
33108 else
33109   cat >conftest.$ac_ext <<_ACEOF
33110 /* confdefs.h.  */
33111 _ACEOF
33112 cat confdefs.h >>conftest.$ac_ext
33113 cat >>conftest.$ac_ext <<_ACEOF
33114 /* end confdefs.h.  */
33115 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
33116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33117 #define mdbm_set_chain innocuous_mdbm_set_chain
33118
33119 /* System header to define __stub macros and hopefully few prototypes,
33120     which can conflict with char mdbm_set_chain (); below.
33121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33122     <limits.h> exists even on freestanding compilers.  */
33123
33124 #ifdef __STDC__
33125 # include <limits.h>
33126 #else
33127 # include <assert.h>
33128 #endif
33129
33130 #undef mdbm_set_chain
33131
33132 /* Override any gcc2 internal prototype to avoid an error.  */
33133 #ifdef __cplusplus
33134 extern "C"
33135 {
33136 #endif
33137 /* We use char because int might match the return type of a gcc2
33138    builtin and then its argument prototype would still apply.  */
33139 char mdbm_set_chain ();
33140 /* The GNU C library defines this for functions which it implements
33141     to always fail with ENOSYS.  Some functions are actually named
33142     something starting with __ and the normal name is an alias.  */
33143 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
33144 choke me
33145 #else
33146 char (*f) () = mdbm_set_chain;
33147 #endif
33148 #ifdef __cplusplus
33149 }
33150 #endif
33151
33152 int
33153 main ()
33154 {
33155 return f != mdbm_set_chain;
33156   ;
33157   return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext conftest$ac_exeext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33162   (eval $ac_link) 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } &&
33169          { ac_try='test -z "$ac_c_werror_flag"
33170                          || test ! -s conftest.err'
33171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172   (eval $ac_try) 2>&5
33173   ac_status=$?
33174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175   (exit $ac_status); }; } &&
33176          { ac_try='test -s conftest$ac_exeext'
33177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178   (eval $ac_try) 2>&5
33179   ac_status=$?
33180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181   (exit $ac_status); }; }; then
33182   ac_cv_func_mdbm_set_chain=yes
33183 else
33184   echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33186
33187 ac_cv_func_mdbm_set_chain=no
33188 fi
33189 rm -f conftest.err conftest.$ac_objext \
33190       conftest$ac_exeext conftest.$ac_ext
33191 fi
33192 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
33193 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
33194 if test $ac_cv_func_mdbm_set_chain = yes; then
33195   ol_cv_lib_mdbm=yes
33196 else
33197
33198                 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
33199 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
33200 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
33201   echo $ECHO_N "(cached) $ECHO_C" >&6
33202 else
33203   ac_check_lib_save_LIBS=$LIBS
33204 LIBS="-lmdbm  $LIBS"
33205 cat >conftest.$ac_ext <<_ACEOF
33206 /* confdefs.h.  */
33207 _ACEOF
33208 cat confdefs.h >>conftest.$ac_ext
33209 cat >>conftest.$ac_ext <<_ACEOF
33210 /* end confdefs.h.  */
33211
33212 /* Override any gcc2 internal prototype to avoid an error.  */
33213 #ifdef __cplusplus
33214 extern "C"
33215 #endif
33216 /* We use char because int might match the return type of a gcc2
33217    builtin and then its argument prototype would still apply.  */
33218 char mdbm_set_chain ();
33219 int
33220 main ()
33221 {
33222 mdbm_set_chain ();
33223   ;
33224   return 0;
33225 }
33226 _ACEOF
33227 rm -f conftest.$ac_objext conftest$ac_exeext
33228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33229   (eval $ac_link) 2>conftest.er1
33230   ac_status=$?
33231   grep -v '^ *+' conftest.er1 >conftest.err
33232   rm -f conftest.er1
33233   cat conftest.err >&5
33234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235   (exit $ac_status); } &&
33236          { ac_try='test -z "$ac_c_werror_flag"
33237                          || test ! -s conftest.err'
33238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33239   (eval $ac_try) 2>&5
33240   ac_status=$?
33241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242   (exit $ac_status); }; } &&
33243          { ac_try='test -s conftest$ac_exeext'
33244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33245   (eval $ac_try) 2>&5
33246   ac_status=$?
33247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33248   (exit $ac_status); }; }; then
33249   ac_cv_lib_mdbm_mdbm_set_chain=yes
33250 else
33251   echo "$as_me: failed program was:" >&5
33252 sed 's/^/| /' conftest.$ac_ext >&5
33253
33254 ac_cv_lib_mdbm_mdbm_set_chain=no
33255 fi
33256 rm -f conftest.err conftest.$ac_objext \
33257       conftest$ac_exeext conftest.$ac_ext
33258 LIBS=$ac_check_lib_save_LIBS
33259 fi
33260 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
33261 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
33262 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
33263   ol_cv_lib_mdbm=-lmdbm
33264 else
33265   ol_cv_lib_mdbm=no
33266 fi
33267
33268
33269 fi
33270
33271         LIBS="$ol_LIBS"
33272
33273 fi
33274 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
33275 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
33276
33277
33278
33279 for ac_header in mdbm.h
33280 do
33281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33283   echo "$as_me:$LINENO: checking for $ac_header" >&5
33284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33286   echo $ECHO_N "(cached) $ECHO_C" >&6
33287 fi
33288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33290 else
33291   # Is the header compilable?
33292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33294 cat >conftest.$ac_ext <<_ACEOF
33295 /* confdefs.h.  */
33296 _ACEOF
33297 cat confdefs.h >>conftest.$ac_ext
33298 cat >>conftest.$ac_ext <<_ACEOF
33299 /* end confdefs.h.  */
33300 $ac_includes_default
33301 #include <$ac_header>
33302 _ACEOF
33303 rm -f conftest.$ac_objext
33304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33305   (eval $ac_compile) 2>conftest.er1
33306   ac_status=$?
33307   grep -v '^ *+' conftest.er1 >conftest.err
33308   rm -f conftest.er1
33309   cat conftest.err >&5
33310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311   (exit $ac_status); } &&
33312          { ac_try='test -z "$ac_c_werror_flag"
33313                          || test ! -s conftest.err'
33314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315   (eval $ac_try) 2>&5
33316   ac_status=$?
33317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318   (exit $ac_status); }; } &&
33319          { ac_try='test -s conftest.$ac_objext'
33320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321   (eval $ac_try) 2>&5
33322   ac_status=$?
33323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324   (exit $ac_status); }; }; then
33325   ac_header_compiler=yes
33326 else
33327   echo "$as_me: failed program was:" >&5
33328 sed 's/^/| /' conftest.$ac_ext >&5
33329
33330 ac_header_compiler=no
33331 fi
33332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33334 echo "${ECHO_T}$ac_header_compiler" >&6
33335
33336 # Is the header present?
33337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33339 cat >conftest.$ac_ext <<_ACEOF
33340 /* confdefs.h.  */
33341 _ACEOF
33342 cat confdefs.h >>conftest.$ac_ext
33343 cat >>conftest.$ac_ext <<_ACEOF
33344 /* end confdefs.h.  */
33345 #include <$ac_header>
33346 _ACEOF
33347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33348   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33349   ac_status=$?
33350   grep -v '^ *+' conftest.er1 >conftest.err
33351   rm -f conftest.er1
33352   cat conftest.err >&5
33353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354   (exit $ac_status); } >/dev/null; then
33355   if test -s conftest.err; then
33356     ac_cpp_err=$ac_c_preproc_warn_flag
33357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33358   else
33359     ac_cpp_err=
33360   fi
33361 else
33362   ac_cpp_err=yes
33363 fi
33364 if test -z "$ac_cpp_err"; then
33365   ac_header_preproc=yes
33366 else
33367   echo "$as_me: failed program was:" >&5
33368 sed 's/^/| /' conftest.$ac_ext >&5
33369
33370   ac_header_preproc=no
33371 fi
33372 rm -f conftest.err conftest.$ac_ext
33373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33374 echo "${ECHO_T}$ac_header_preproc" >&6
33375
33376 # So?  What about this header?
33377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33378   yes:no: )
33379     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33383     ac_header_preproc=yes
33384     ;;
33385   no:yes:* )
33386     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33388     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33389 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33390     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33392     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33393 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33396     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33398     (
33399       cat <<\_ASBOX
33400 ## ------------------------------------------ ##
33401 ## Report this to the AC_PACKAGE_NAME lists.  ##
33402 ## ------------------------------------------ ##
33403 _ASBOX
33404     ) |
33405       sed "s/^/$as_me: WARNING:     /" >&2
33406     ;;
33407 esac
33408 echo "$as_me:$LINENO: checking for $ac_header" >&5
33409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33411   echo $ECHO_N "(cached) $ECHO_C" >&6
33412 else
33413   eval "$as_ac_Header=\$ac_header_preproc"
33414 fi
33415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33417
33418 fi
33419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33420   cat >>confdefs.h <<_ACEOF
33421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33422 _ACEOF
33423
33424 fi
33425
33426 done
33427
33428  echo "$as_me:$LINENO: checking for db" >&5
33429 echo $ECHO_N "checking for db... $ECHO_C" >&6
33430 if test "${ol_cv_mdbm+set}" = set; then
33431   echo $ECHO_N "(cached) $ECHO_C" >&6
33432 else
33433
33434         if test $ol_cv_lib_mdbm = no || test $ac_cv_header_mdbm_h = no ; then
33435                 ol_cv_mdbm=no
33436         else
33437                 ol_cv_mdbm=yes
33438         fi
33439
33440 fi
33441 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
33442 echo "${ECHO_T}$ol_cv_mdbm" >&6
33443  if test $ol_cv_mdbm = yes ; then
33444
33445 cat >>confdefs.h <<\_ACEOF
33446 #define HAVE_MDBM 1
33447 _ACEOF
33448
33449  fi
33450
33451
33452         if test $ol_cv_mdbm = yes ; then
33453                 ol_link_ldbm=mdbm
33454                 ol_enable_ldbm_api=mdbm
33455                 if test $ol_cv_lib_mdbm != yes ; then
33456                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
33457                 fi
33458         fi
33459 fi
33460
33461 if test $ol_enable_ldbm_api = auto || test $ol_enable_ldbm_api = gdbm ; then
33462         echo "$as_me:$LINENO: checking for GDBM library" >&5
33463 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
33464 if test "${ol_cv_lib_gdbm+set}" = set; then
33465   echo $ECHO_N "(cached) $ECHO_C" >&6
33466 else
33467         ol_LIBS="$LIBS"
33468         echo "$as_me:$LINENO: checking for gdbm_open" >&5
33469 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
33470 if test "${ac_cv_func_gdbm_open+set}" = set; then
33471   echo $ECHO_N "(cached) $ECHO_C" >&6
33472 else
33473   cat >conftest.$ac_ext <<_ACEOF
33474 /* confdefs.h.  */
33475 _ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h.  */
33479 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
33480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33481 #define gdbm_open innocuous_gdbm_open
33482
33483 /* System header to define __stub macros and hopefully few prototypes,
33484     which can conflict with char gdbm_open (); below.
33485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486     <limits.h> exists even on freestanding compilers.  */
33487
33488 #ifdef __STDC__
33489 # include <limits.h>
33490 #else
33491 # include <assert.h>
33492 #endif
33493
33494 #undef gdbm_open
33495
33496 /* Override any gcc2 internal prototype to avoid an error.  */
33497 #ifdef __cplusplus
33498 extern "C"
33499 {
33500 #endif
33501 /* We use char because int might match the return type of a gcc2
33502    builtin and then its argument prototype would still apply.  */
33503 char gdbm_open ();
33504 /* The GNU C library defines this for functions which it implements
33505     to always fail with ENOSYS.  Some functions are actually named
33506     something starting with __ and the normal name is an alias.  */
33507 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
33508 choke me
33509 #else
33510 char (*f) () = gdbm_open;
33511 #endif
33512 #ifdef __cplusplus
33513 }
33514 #endif
33515
33516 int
33517 main ()
33518 {
33519 return f != gdbm_open;
33520   ;
33521   return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33526   (eval $ac_link) 2>conftest.er1
33527   ac_status=$?
33528   grep -v '^ *+' conftest.er1 >conftest.err
33529   rm -f conftest.er1
33530   cat conftest.err >&5
33531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532   (exit $ac_status); } &&
33533          { ac_try='test -z "$ac_c_werror_flag"
33534                          || test ! -s conftest.err'
33535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536   (eval $ac_try) 2>&5
33537   ac_status=$?
33538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539   (exit $ac_status); }; } &&
33540          { ac_try='test -s conftest$ac_exeext'
33541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542   (eval $ac_try) 2>&5
33543   ac_status=$?
33544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545   (exit $ac_status); }; }; then
33546   ac_cv_func_gdbm_open=yes
33547 else
33548   echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 ac_cv_func_gdbm_open=no
33552 fi
33553 rm -f conftest.err conftest.$ac_objext \
33554       conftest$ac_exeext conftest.$ac_ext
33555 fi
33556 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
33557 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
33558 if test $ac_cv_func_gdbm_open = yes; then
33559   ol_cv_lib_gdbm=yes
33560 else
33561
33562                 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
33563 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
33564 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
33565   echo $ECHO_N "(cached) $ECHO_C" >&6
33566 else
33567   ac_check_lib_save_LIBS=$LIBS
33568 LIBS="-lgdbm  $LIBS"
33569 cat >conftest.$ac_ext <<_ACEOF
33570 /* confdefs.h.  */
33571 _ACEOF
33572 cat confdefs.h >>conftest.$ac_ext
33573 cat >>conftest.$ac_ext <<_ACEOF
33574 /* end confdefs.h.  */
33575
33576 /* Override any gcc2 internal prototype to avoid an error.  */
33577 #ifdef __cplusplus
33578 extern "C"
33579 #endif
33580 /* We use char because int might match the return type of a gcc2
33581    builtin and then its argument prototype would still apply.  */
33582 char gdbm_open ();
33583 int
33584 main ()
33585 {
33586 gdbm_open ();
33587   ;
33588   return 0;
33589 }
33590 _ACEOF
33591 rm -f conftest.$ac_objext conftest$ac_exeext
33592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33593   (eval $ac_link) 2>conftest.er1
33594   ac_status=$?
33595   grep -v '^ *+' conftest.er1 >conftest.err
33596   rm -f conftest.er1
33597   cat conftest.err >&5
33598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599   (exit $ac_status); } &&
33600          { ac_try='test -z "$ac_c_werror_flag"
33601                          || test ! -s conftest.err'
33602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603   (eval $ac_try) 2>&5
33604   ac_status=$?
33605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606   (exit $ac_status); }; } &&
33607          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
33613   ac_cv_lib_gdbm_gdbm_open=yes
33614 else
33615   echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.$ac_ext >&5
33617
33618 ac_cv_lib_gdbm_gdbm_open=no
33619 fi
33620 rm -f conftest.err conftest.$ac_objext \
33621       conftest$ac_exeext conftest.$ac_ext
33622 LIBS=$ac_check_lib_save_LIBS
33623 fi
33624 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
33625 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
33626 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
33627   ol_cv_lib_gdbm=-lgdbm
33628 else
33629   ol_cv_lib_gdbm=no
33630 fi
33631
33632
33633 fi
33634
33635         LIBS="$ol_LIBS"
33636
33637 fi
33638 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
33639 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
33640
33641
33642
33643 for ac_header in gdbm.h
33644 do
33645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33647   echo "$as_me:$LINENO: checking for $ac_header" >&5
33648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33650   echo $ECHO_N "(cached) $ECHO_C" >&6
33651 fi
33652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33654 else
33655   # Is the header compilable?
33656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33658 cat >conftest.$ac_ext <<_ACEOF
33659 /* confdefs.h.  */
33660 _ACEOF
33661 cat confdefs.h >>conftest.$ac_ext
33662 cat >>conftest.$ac_ext <<_ACEOF
33663 /* end confdefs.h.  */
33664 $ac_includes_default
33665 #include <$ac_header>
33666 _ACEOF
33667 rm -f conftest.$ac_objext
33668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33669   (eval $ac_compile) 2>conftest.er1
33670   ac_status=$?
33671   grep -v '^ *+' conftest.er1 >conftest.err
33672   rm -f conftest.er1
33673   cat conftest.err >&5
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); } &&
33676          { ac_try='test -z "$ac_c_werror_flag"
33677                          || test ! -s conftest.err'
33678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679   (eval $ac_try) 2>&5
33680   ac_status=$?
33681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682   (exit $ac_status); }; } &&
33683          { ac_try='test -s conftest.$ac_objext'
33684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33685   (eval $ac_try) 2>&5
33686   ac_status=$?
33687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688   (exit $ac_status); }; }; then
33689   ac_header_compiler=yes
33690 else
33691   echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33693
33694 ac_header_compiler=no
33695 fi
33696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33698 echo "${ECHO_T}$ac_header_compiler" >&6
33699
33700 # Is the header present?
33701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33703 cat >conftest.$ac_ext <<_ACEOF
33704 /* confdefs.h.  */
33705 _ACEOF
33706 cat confdefs.h >>conftest.$ac_ext
33707 cat >>conftest.$ac_ext <<_ACEOF
33708 /* end confdefs.h.  */
33709 #include <$ac_header>
33710 _ACEOF
33711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33712   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33713   ac_status=$?
33714   grep -v '^ *+' conftest.er1 >conftest.err
33715   rm -f conftest.er1
33716   cat conftest.err >&5
33717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33718   (exit $ac_status); } >/dev/null; then
33719   if test -s conftest.err; then
33720     ac_cpp_err=$ac_c_preproc_warn_flag
33721     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33722   else
33723     ac_cpp_err=
33724   fi
33725 else
33726   ac_cpp_err=yes
33727 fi
33728 if test -z "$ac_cpp_err"; then
33729   ac_header_preproc=yes
33730 else
33731   echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33733
33734   ac_header_preproc=no
33735 fi
33736 rm -f conftest.err conftest.$ac_ext
33737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33738 echo "${ECHO_T}$ac_header_preproc" >&6
33739
33740 # So?  What about this header?
33741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33742   yes:no: )
33743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33747     ac_header_preproc=yes
33748     ;;
33749   no:yes:* )
33750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33762     (
33763       cat <<\_ASBOX
33764 ## ------------------------------------------ ##
33765 ## Report this to the AC_PACKAGE_NAME lists.  ##
33766 ## ------------------------------------------ ##
33767 _ASBOX
33768     ) |
33769       sed "s/^/$as_me: WARNING:     /" >&2
33770     ;;
33771 esac
33772 echo "$as_me:$LINENO: checking for $ac_header" >&5
33773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33775   echo $ECHO_N "(cached) $ECHO_C" >&6
33776 else
33777   eval "$as_ac_Header=\$ac_header_preproc"
33778 fi
33779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33781
33782 fi
33783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33784   cat >>confdefs.h <<_ACEOF
33785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33786 _ACEOF
33787
33788 fi
33789
33790 done
33791
33792  echo "$as_me:$LINENO: checking for db" >&5
33793 echo $ECHO_N "checking for db... $ECHO_C" >&6
33794 if test "${ol_cv_gdbm+set}" = set; then
33795   echo $ECHO_N "(cached) $ECHO_C" >&6
33796 else
33797
33798         if test $ol_cv_lib_gdbm = no || test $ac_cv_header_gdbm_h = no ; then
33799                 ol_cv_gdbm=no
33800         else
33801                 ol_cv_gdbm=yes
33802         fi
33803
33804 fi
33805 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
33806 echo "${ECHO_T}$ol_cv_gdbm" >&6
33807  if test $ol_cv_gdbm = yes ; then
33808
33809 cat >>confdefs.h <<\_ACEOF
33810 #define HAVE_GDBM 1
33811 _ACEOF
33812
33813  fi
33814
33815
33816         if test $ol_cv_gdbm = yes ; then
33817                 ol_link_ldbm=gdbm
33818                 ol_enable_ldbm_api=gdbm
33819
33820                 if test $ol_cv_lib_gdbm != yes ; then
33821                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
33822                 fi
33823         fi
33824 fi
33825
33826 if test $ol_enable_ldbm_api = ndbm ; then
33827         echo "$as_me:$LINENO: checking for NDBM library" >&5
33828 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
33829 if test "${ol_cv_lib_ndbm+set}" = set; then
33830   echo $ECHO_N "(cached) $ECHO_C" >&6
33831 else
33832         ol_LIBS="$LIBS"
33833         echo "$as_me:$LINENO: checking for dbm_open" >&5
33834 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
33835 if test "${ac_cv_func_dbm_open+set}" = set; then
33836   echo $ECHO_N "(cached) $ECHO_C" >&6
33837 else
33838   cat >conftest.$ac_ext <<_ACEOF
33839 /* confdefs.h.  */
33840 _ACEOF
33841 cat confdefs.h >>conftest.$ac_ext
33842 cat >>conftest.$ac_ext <<_ACEOF
33843 /* end confdefs.h.  */
33844 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
33845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33846 #define dbm_open innocuous_dbm_open
33847
33848 /* System header to define __stub macros and hopefully few prototypes,
33849     which can conflict with char dbm_open (); below.
33850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33851     <limits.h> exists even on freestanding compilers.  */
33852
33853 #ifdef __STDC__
33854 # include <limits.h>
33855 #else
33856 # include <assert.h>
33857 #endif
33858
33859 #undef dbm_open
33860
33861 /* Override any gcc2 internal prototype to avoid an error.  */
33862 #ifdef __cplusplus
33863 extern "C"
33864 {
33865 #endif
33866 /* We use char because int might match the return type of a gcc2
33867    builtin and then its argument prototype would still apply.  */
33868 char dbm_open ();
33869 /* The GNU C library defines this for functions which it implements
33870     to always fail with ENOSYS.  Some functions are actually named
33871     something starting with __ and the normal name is an alias.  */
33872 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
33873 choke me
33874 #else
33875 char (*f) () = dbm_open;
33876 #endif
33877 #ifdef __cplusplus
33878 }
33879 #endif
33880
33881 int
33882 main ()
33883 {
33884 return f != dbm_open;
33885   ;
33886   return 0;
33887 }
33888 _ACEOF
33889 rm -f conftest.$ac_objext conftest$ac_exeext
33890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33891   (eval $ac_link) 2>conftest.er1
33892   ac_status=$?
33893   grep -v '^ *+' conftest.er1 >conftest.err
33894   rm -f conftest.er1
33895   cat conftest.err >&5
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); } &&
33898          { ac_try='test -z "$ac_c_werror_flag"
33899                          || test ! -s conftest.err'
33900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33901   (eval $ac_try) 2>&5
33902   ac_status=$?
33903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33904   (exit $ac_status); }; } &&
33905          { ac_try='test -s conftest$ac_exeext'
33906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33907   (eval $ac_try) 2>&5
33908   ac_status=$?
33909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910   (exit $ac_status); }; }; then
33911   ac_cv_func_dbm_open=yes
33912 else
33913   echo "$as_me: failed program was:" >&5
33914 sed 's/^/| /' conftest.$ac_ext >&5
33915
33916 ac_cv_func_dbm_open=no
33917 fi
33918 rm -f conftest.err conftest.$ac_objext \
33919       conftest$ac_exeext conftest.$ac_ext
33920 fi
33921 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
33922 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
33923 if test $ac_cv_func_dbm_open = yes; then
33924   ol_cv_lib_ndbm=yes
33925 else
33926
33927                 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33928 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33929 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33930   echo $ECHO_N "(cached) $ECHO_C" >&6
33931 else
33932   ac_check_lib_save_LIBS=$LIBS
33933 LIBS="-lndbm  $LIBS"
33934 cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h.  */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h.  */
33940
33941 /* Override any gcc2 internal prototype to avoid an error.  */
33942 #ifdef __cplusplus
33943 extern "C"
33944 #endif
33945 /* We use char because int might match the return type of a gcc2
33946    builtin and then its argument prototype would still apply.  */
33947 char dbm_open ();
33948 int
33949 main ()
33950 {
33951 dbm_open ();
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext conftest$ac_exeext
33957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33958   (eval $ac_link) 2>conftest.er1
33959   ac_status=$?
33960   grep -v '^ *+' conftest.er1 >conftest.err
33961   rm -f conftest.er1
33962   cat conftest.err >&5
33963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964   (exit $ac_status); } &&
33965          { ac_try='test -z "$ac_c_werror_flag"
33966                          || test ! -s conftest.err'
33967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33968   (eval $ac_try) 2>&5
33969   ac_status=$?
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); }; } &&
33972          { ac_try='test -s conftest$ac_exeext'
33973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33974   (eval $ac_try) 2>&5
33975   ac_status=$?
33976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); }; }; then
33978   ac_cv_lib_ndbm_dbm_open=yes
33979 else
33980   echo "$as_me: failed program was:" >&5
33981 sed 's/^/| /' conftest.$ac_ext >&5
33982
33983 ac_cv_lib_ndbm_dbm_open=no
33984 fi
33985 rm -f conftest.err conftest.$ac_objext \
33986       conftest$ac_exeext conftest.$ac_ext
33987 LIBS=$ac_check_lib_save_LIBS
33988 fi
33989 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33990 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33991 if test $ac_cv_lib_ndbm_dbm_open = yes; then
33992   ol_cv_lib_ndbm=-lndbm
33993 else
33994
33995                         echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
33996 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
33997 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
33998   echo $ECHO_N "(cached) $ECHO_C" >&6
33999 else
34000   ac_check_lib_save_LIBS=$LIBS
34001 LIBS="-ldbm  $LIBS"
34002 cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008
34009 /* Override any gcc2 internal prototype to avoid an error.  */
34010 #ifdef __cplusplus
34011 extern "C"
34012 #endif
34013 /* We use char because int might match the return type of a gcc2
34014    builtin and then its argument prototype would still apply.  */
34015 char dbm_open ();
34016 int
34017 main ()
34018 {
34019 dbm_open ();
34020   ;
34021   return 0;
34022 }
34023 _ACEOF
34024 rm -f conftest.$ac_objext conftest$ac_exeext
34025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34026   (eval $ac_link) 2>conftest.er1
34027   ac_status=$?
34028   grep -v '^ *+' conftest.er1 >conftest.err
34029   rm -f conftest.er1
34030   cat conftest.err >&5
34031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032   (exit $ac_status); } &&
34033          { ac_try='test -z "$ac_c_werror_flag"
34034                          || test ! -s conftest.err'
34035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036   (eval $ac_try) 2>&5
34037   ac_status=$?
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); }; } &&
34040          { ac_try='test -s conftest$ac_exeext'
34041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042   (eval $ac_try) 2>&5
34043   ac_status=$?
34044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045   (exit $ac_status); }; }; then
34046   ac_cv_lib_dbm_dbm_open=yes
34047 else
34048   echo "$as_me: failed program was:" >&5
34049 sed 's/^/| /' conftest.$ac_ext >&5
34050
34051 ac_cv_lib_dbm_dbm_open=no
34052 fi
34053 rm -f conftest.err conftest.$ac_objext \
34054       conftest$ac_exeext conftest.$ac_ext
34055 LIBS=$ac_check_lib_save_LIBS
34056 fi
34057 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
34058 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
34059 if test $ac_cv_lib_dbm_dbm_open = yes; then
34060   ol_cv_lib_ndbm=-ldbm
34061 else
34062   ol_cv_lib_ndbm=no
34063 fi
34064
34065 fi
34066
34067
34068 fi
34069
34070         LIBS="$ol_LIBS"
34071
34072 fi
34073 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
34074 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
34075
34076
34077
34078 for ac_header in ndbm.h
34079 do
34080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34082   echo "$as_me:$LINENO: checking for $ac_header" >&5
34083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34085   echo $ECHO_N "(cached) $ECHO_C" >&6
34086 fi
34087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34089 else
34090   # Is the header compilable?
34091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34093 cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h.  */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h.  */
34099 $ac_includes_default
34100 #include <$ac_header>
34101 _ACEOF
34102 rm -f conftest.$ac_objext
34103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34104   (eval $ac_compile) 2>conftest.er1
34105   ac_status=$?
34106   grep -v '^ *+' conftest.er1 >conftest.err
34107   rm -f conftest.er1
34108   cat conftest.err >&5
34109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110   (exit $ac_status); } &&
34111          { ac_try='test -z "$ac_c_werror_flag"
34112                          || test ! -s conftest.err'
34113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34114   (eval $ac_try) 2>&5
34115   ac_status=$?
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); }; } &&
34118          { ac_try='test -s conftest.$ac_objext'
34119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34120   (eval $ac_try) 2>&5
34121   ac_status=$?
34122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123   (exit $ac_status); }; }; then
34124   ac_header_compiler=yes
34125 else
34126   echo "$as_me: failed program was:" >&5
34127 sed 's/^/| /' conftest.$ac_ext >&5
34128
34129 ac_header_compiler=no
34130 fi
34131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34133 echo "${ECHO_T}$ac_header_compiler" >&6
34134
34135 # Is the header present?
34136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34138 cat >conftest.$ac_ext <<_ACEOF
34139 /* confdefs.h.  */
34140 _ACEOF
34141 cat confdefs.h >>conftest.$ac_ext
34142 cat >>conftest.$ac_ext <<_ACEOF
34143 /* end confdefs.h.  */
34144 #include <$ac_header>
34145 _ACEOF
34146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34147   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34148   ac_status=$?
34149   grep -v '^ *+' conftest.er1 >conftest.err
34150   rm -f conftest.er1
34151   cat conftest.err >&5
34152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); } >/dev/null; then
34154   if test -s conftest.err; then
34155     ac_cpp_err=$ac_c_preproc_warn_flag
34156     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34157   else
34158     ac_cpp_err=
34159   fi
34160 else
34161   ac_cpp_err=yes
34162 fi
34163 if test -z "$ac_cpp_err"; then
34164   ac_header_preproc=yes
34165 else
34166   echo "$as_me: failed program was:" >&5
34167 sed 's/^/| /' conftest.$ac_ext >&5
34168
34169   ac_header_preproc=no
34170 fi
34171 rm -f conftest.err conftest.$ac_ext
34172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34173 echo "${ECHO_T}$ac_header_preproc" >&6
34174
34175 # So?  What about this header?
34176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34177   yes:no: )
34178     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34182     ac_header_preproc=yes
34183     ;;
34184   no:yes:* )
34185     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34187     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34188 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34189     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34191     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34192 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34195     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34197     (
34198       cat <<\_ASBOX
34199 ## ------------------------------------------ ##
34200 ## Report this to the AC_PACKAGE_NAME lists.  ##
34201 ## ------------------------------------------ ##
34202 _ASBOX
34203     ) |
34204       sed "s/^/$as_me: WARNING:     /" >&2
34205     ;;
34206 esac
34207 echo "$as_me:$LINENO: checking for $ac_header" >&5
34208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34210   echo $ECHO_N "(cached) $ECHO_C" >&6
34211 else
34212   eval "$as_ac_Header=\$ac_header_preproc"
34213 fi
34214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34216
34217 fi
34218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34219   cat >>confdefs.h <<_ACEOF
34220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34221 _ACEOF
34222
34223 fi
34224
34225 done
34226
34227  echo "$as_me:$LINENO: checking for db" >&5
34228 echo $ECHO_N "checking for db... $ECHO_C" >&6
34229 if test "${ol_cv_ndbm+set}" = set; then
34230   echo $ECHO_N "(cached) $ECHO_C" >&6
34231 else
34232
34233         if test $ol_cv_lib_ndbm = no || test $ac_cv_header_ndbm_h = no ; then
34234                 ol_cv_ndbm=no
34235         else
34236                 ol_cv_ndbm=yes
34237         fi
34238
34239 fi
34240 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
34241 echo "${ECHO_T}$ol_cv_ndbm" >&6
34242  if test $ol_cv_ndbm = yes ; then
34243
34244 cat >>confdefs.h <<\_ACEOF
34245 #define HAVE_NDBM 1
34246 _ACEOF
34247
34248  fi
34249
34250
34251         if test $ol_cv_ndbm = yes ; then
34252                 ol_link_ldbm=ndbm
34253                 ol_enable_ldbm_api=ndbm
34254
34255                 if test $ol_cv_lib_ndbm != yes ; then
34256                         LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
34257                 fi
34258         fi
34259 fi
34260
34261 if test $ol_link_ldbm = no && test $ol_enable_ldbm != no ; then
34262         { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
34263 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
34264    { (exit 1); exit 1; }; }
34265 fi
34266
34267 if test $ol_enable_bdb = yes ||
34268    test $ol_enable_hdb = yes ||
34269    test $ol_enable_ldbm = yes ; then
34270         SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
34271 fi
34272
34273
34274 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
34275         BUILD_LIBS_DYNAMIC=shared
34276
34277 cat >>confdefs.h <<\_ACEOF
34278 #define LDAP_LIBS_DYNAMIC 1
34279 _ACEOF
34280
34281         LTSTATIC=""
34282 else
34283         BUILD_LIBS_DYNAMIC=static
34284         LTSTATIC="-static"
34285 fi
34286
34287 if test $ol_enable_wrappers != no ; then
34288
34289 for ac_header in tcpd.h
34290 do
34291 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34293   echo "$as_me:$LINENO: checking for $ac_header" >&5
34294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34296   echo $ECHO_N "(cached) $ECHO_C" >&6
34297 fi
34298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34299 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34300 else
34301   # Is the header compilable?
34302 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34304 cat >conftest.$ac_ext <<_ACEOF
34305 /* confdefs.h.  */
34306 _ACEOF
34307 cat confdefs.h >>conftest.$ac_ext
34308 cat >>conftest.$ac_ext <<_ACEOF
34309 /* end confdefs.h.  */
34310 $ac_includes_default
34311 #include <$ac_header>
34312 _ACEOF
34313 rm -f conftest.$ac_objext
34314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34315   (eval $ac_compile) 2>conftest.er1
34316   ac_status=$?
34317   grep -v '^ *+' conftest.er1 >conftest.err
34318   rm -f conftest.er1
34319   cat conftest.err >&5
34320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321   (exit $ac_status); } &&
34322          { ac_try='test -z "$ac_c_werror_flag"
34323                          || test ! -s conftest.err'
34324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325   (eval $ac_try) 2>&5
34326   ac_status=$?
34327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328   (exit $ac_status); }; } &&
34329          { ac_try='test -s conftest.$ac_objext'
34330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331   (eval $ac_try) 2>&5
34332   ac_status=$?
34333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334   (exit $ac_status); }; }; then
34335   ac_header_compiler=yes
34336 else
34337   echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34339
34340 ac_header_compiler=no
34341 fi
34342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34343 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34344 echo "${ECHO_T}$ac_header_compiler" >&6
34345
34346 # Is the header present?
34347 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34349 cat >conftest.$ac_ext <<_ACEOF
34350 /* confdefs.h.  */
34351 _ACEOF
34352 cat confdefs.h >>conftest.$ac_ext
34353 cat >>conftest.$ac_ext <<_ACEOF
34354 /* end confdefs.h.  */
34355 #include <$ac_header>
34356 _ACEOF
34357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34358   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34359   ac_status=$?
34360   grep -v '^ *+' conftest.er1 >conftest.err
34361   rm -f conftest.er1
34362   cat conftest.err >&5
34363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364   (exit $ac_status); } >/dev/null; then
34365   if test -s conftest.err; then
34366     ac_cpp_err=$ac_c_preproc_warn_flag
34367     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34368   else
34369     ac_cpp_err=
34370   fi
34371 else
34372   ac_cpp_err=yes
34373 fi
34374 if test -z "$ac_cpp_err"; then
34375   ac_header_preproc=yes
34376 else
34377   echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34379
34380   ac_header_preproc=no
34381 fi
34382 rm -f conftest.err conftest.$ac_ext
34383 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34384 echo "${ECHO_T}$ac_header_preproc" >&6
34385
34386 # So?  What about this header?
34387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34388   yes:no: )
34389     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34393     ac_header_preproc=yes
34394     ;;
34395   no:yes:* )
34396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34398     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34399 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34400     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34402     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34403 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34404     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34406     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34408     (
34409       cat <<\_ASBOX
34410 ## ------------------------------------------ ##
34411 ## Report this to the AC_PACKAGE_NAME lists.  ##
34412 ## ------------------------------------------ ##
34413 _ASBOX
34414     ) |
34415       sed "s/^/$as_me: WARNING:     /" >&2
34416     ;;
34417 esac
34418 echo "$as_me:$LINENO: checking for $ac_header" >&5
34419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34421   echo $ECHO_N "(cached) $ECHO_C" >&6
34422 else
34423   eval "$as_ac_Header=\$ac_header_preproc"
34424 fi
34425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34427
34428 fi
34429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34430   cat >>confdefs.h <<_ACEOF
34431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34432 _ACEOF
34433
34434                 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
34435 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
34436                 save_LIBS="$LIBS"
34437                 LIBS="$LIBS -lwrap"
34438                 cat >conftest.$ac_ext <<_ACEOF
34439 /* confdefs.h.  */
34440 _ACEOF
34441 cat confdefs.h >>conftest.$ac_ext
34442 cat >>conftest.$ac_ext <<_ACEOF
34443 /* end confdefs.h.  */
34444
34445 #include <tcpd.h>
34446 int allow_severity = 0;
34447 int deny_severity  = 0;
34448
34449 struct request_info *req;
34450
34451 int
34452 main ()
34453 {
34454
34455 hosts_access(req)
34456
34457   ;
34458   return 0;
34459 }
34460 _ACEOF
34461 rm -f conftest.$ac_objext conftest$ac_exeext
34462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34463   (eval $ac_link) 2>conftest.er1
34464   ac_status=$?
34465   grep -v '^ *+' conftest.er1 >conftest.err
34466   rm -f conftest.er1
34467   cat conftest.err >&5
34468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469   (exit $ac_status); } &&
34470          { ac_try='test -z "$ac_c_werror_flag"
34471                          || test ! -s conftest.err'
34472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34473   (eval $ac_try) 2>&5
34474   ac_status=$?
34475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476   (exit $ac_status); }; } &&
34477          { ac_try='test -s conftest$ac_exeext'
34478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479   (eval $ac_try) 2>&5
34480   ac_status=$?
34481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482   (exit $ac_status); }; }; then
34483   echo "$as_me:$LINENO: result: -lwrap" >&5
34484 echo "${ECHO_T}-lwrap" >&6
34485                 have_wrappers=yes
34486                 LIBS="$save_LIBS"
34487 else
34488   echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34490
34491
34492                                 LIBS="$LIBS -lnsl"
34493                 cat >conftest.$ac_ext <<_ACEOF
34494 /* confdefs.h.  */
34495 _ACEOF
34496 cat confdefs.h >>conftest.$ac_ext
34497 cat >>conftest.$ac_ext <<_ACEOF
34498 /* end confdefs.h.  */
34499
34500 #include <tcpd.h>
34501 int allow_severity = 0;
34502 int deny_severity  = 0;
34503
34504 struct request_info *req;
34505
34506 int
34507 main ()
34508 {
34509
34510 hosts_access(req)
34511
34512   ;
34513   return 0;
34514 }
34515 _ACEOF
34516 rm -f conftest.$ac_objext conftest$ac_exeext
34517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34518   (eval $ac_link) 2>conftest.er1
34519   ac_status=$?
34520   grep -v '^ *+' conftest.er1 >conftest.err
34521   rm -f conftest.er1
34522   cat conftest.err >&5
34523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524   (exit $ac_status); } &&
34525          { ac_try='test -z "$ac_c_werror_flag"
34526                          || test ! -s conftest.err'
34527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34528   (eval $ac_try) 2>&5
34529   ac_status=$?
34530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34531   (exit $ac_status); }; } &&
34532          { ac_try='test -s conftest$ac_exeext'
34533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534   (eval $ac_try) 2>&5
34535   ac_status=$?
34536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537   (exit $ac_status); }; }; then
34538   echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
34539 echo "${ECHO_T}-lwrap -lnsl" >&6
34540                 have_wrappers=yes
34541                 LIBS="$save_LIBS -lnsl"
34542 else
34543   echo "$as_me: failed program was:" >&5
34544 sed 's/^/| /' conftest.$ac_ext >&5
34545
34546
34547                 echo "$as_me:$LINENO: result: no" >&5
34548 echo "${ECHO_T}no" >&6
34549                 have_wrappers=no
34550                 LIBS=$save_LIBS
34551 fi
34552 rm -f conftest.err conftest.$ac_objext \
34553       conftest$ac_exeext conftest.$ac_ext
34554 fi
34555 rm -f conftest.err conftest.$ac_objext \
34556       conftest$ac_exeext conftest.$ac_ext
34557 else
34558   have_wrappers=no
34559 fi
34560
34561 done
34562
34563
34564         if test $have_wrappers = yes ; then
34565
34566 cat >>confdefs.h <<\_ACEOF
34567 #define HAVE_TCPD 1
34568 _ACEOF
34569
34570                 WRAP_LIBS="-lwrap"
34571         elif test $ol_enable_wrappers = yes ; then
34572                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
34573 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
34574    { (exit 1); exit 1; }; }
34575         else
34576                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
34577 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
34578                 WRAP_LIBS=""
34579         fi
34580 fi
34581
34582 if test $ol_enable_syslog != no ; then
34583         echo "$as_me:$LINENO: checking for openlog" >&5
34584 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
34585 if test "${ac_cv_func_openlog+set}" = set; then
34586   echo $ECHO_N "(cached) $ECHO_C" >&6
34587 else
34588   cat >conftest.$ac_ext <<_ACEOF
34589 /* confdefs.h.  */
34590 _ACEOF
34591 cat confdefs.h >>conftest.$ac_ext
34592 cat >>conftest.$ac_ext <<_ACEOF
34593 /* end confdefs.h.  */
34594 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
34595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34596 #define openlog innocuous_openlog
34597
34598 /* System header to define __stub macros and hopefully few prototypes,
34599     which can conflict with char openlog (); below.
34600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34601     <limits.h> exists even on freestanding compilers.  */
34602
34603 #ifdef __STDC__
34604 # include <limits.h>
34605 #else
34606 # include <assert.h>
34607 #endif
34608
34609 #undef openlog
34610
34611 /* Override any gcc2 internal prototype to avoid an error.  */
34612 #ifdef __cplusplus
34613 extern "C"
34614 {
34615 #endif
34616 /* We use char because int might match the return type of a gcc2
34617    builtin and then its argument prototype would still apply.  */
34618 char openlog ();
34619 /* The GNU C library defines this for functions which it implements
34620     to always fail with ENOSYS.  Some functions are actually named
34621     something starting with __ and the normal name is an alias.  */
34622 #if defined (__stub_openlog) || defined (__stub___openlog)
34623 choke me
34624 #else
34625 char (*f) () = openlog;
34626 #endif
34627 #ifdef __cplusplus
34628 }
34629 #endif
34630
34631 int
34632 main ()
34633 {
34634 return f != openlog;
34635   ;
34636   return 0;
34637 }
34638 _ACEOF
34639 rm -f conftest.$ac_objext conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641   (eval $ac_link) 2>conftest.er1
34642   ac_status=$?
34643   grep -v '^ *+' conftest.er1 >conftest.err
34644   rm -f conftest.er1
34645   cat conftest.err >&5
34646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34647   (exit $ac_status); } &&
34648          { ac_try='test -z "$ac_c_werror_flag"
34649                          || test ! -s conftest.err'
34650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651   (eval $ac_try) 2>&5
34652   ac_status=$?
34653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654   (exit $ac_status); }; } &&
34655          { ac_try='test -s conftest$ac_exeext'
34656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657   (eval $ac_try) 2>&5
34658   ac_status=$?
34659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660   (exit $ac_status); }; }; then
34661   ac_cv_func_openlog=yes
34662 else
34663   echo "$as_me: failed program was:" >&5
34664 sed 's/^/| /' conftest.$ac_ext >&5
34665
34666 ac_cv_func_openlog=no
34667 fi
34668 rm -f conftest.err conftest.$ac_objext \
34669       conftest$ac_exeext conftest.$ac_ext
34670 fi
34671 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
34672 echo "${ECHO_T}$ac_cv_func_openlog" >&6
34673
34674         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
34675                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
34676 echo "$as_me: error: could not find syslog" >&2;}
34677    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
34678         fi
34679         ol_enable_syslog=$ac_cv_func_openlog
34680 fi
34681
34682 ol_link_sql=no
34683 if test $ol_enable_sql != no ; then
34684
34685
34686 for ac_header in sql.h sqlext.h
34687 do
34688 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34690   echo "$as_me:$LINENO: checking for $ac_header" >&5
34691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34693   echo $ECHO_N "(cached) $ECHO_C" >&6
34694 fi
34695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34697 else
34698   # Is the header compilable?
34699 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34701 cat >conftest.$ac_ext <<_ACEOF
34702 /* confdefs.h.  */
34703 _ACEOF
34704 cat confdefs.h >>conftest.$ac_ext
34705 cat >>conftest.$ac_ext <<_ACEOF
34706 /* end confdefs.h.  */
34707 $ac_includes_default
34708 #include <$ac_header>
34709 _ACEOF
34710 rm -f conftest.$ac_objext
34711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34712   (eval $ac_compile) 2>conftest.er1
34713   ac_status=$?
34714   grep -v '^ *+' conftest.er1 >conftest.err
34715   rm -f conftest.er1
34716   cat conftest.err >&5
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); } &&
34719          { ac_try='test -z "$ac_c_werror_flag"
34720                          || test ! -s conftest.err'
34721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722   (eval $ac_try) 2>&5
34723   ac_status=$?
34724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725   (exit $ac_status); }; } &&
34726          { ac_try='test -s conftest.$ac_objext'
34727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34728   (eval $ac_try) 2>&5
34729   ac_status=$?
34730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731   (exit $ac_status); }; }; then
34732   ac_header_compiler=yes
34733 else
34734   echo "$as_me: failed program was:" >&5
34735 sed 's/^/| /' conftest.$ac_ext >&5
34736
34737 ac_header_compiler=no
34738 fi
34739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34740 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34741 echo "${ECHO_T}$ac_header_compiler" >&6
34742
34743 # Is the header present?
34744 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34746 cat >conftest.$ac_ext <<_ACEOF
34747 /* confdefs.h.  */
34748 _ACEOF
34749 cat confdefs.h >>conftest.$ac_ext
34750 cat >>conftest.$ac_ext <<_ACEOF
34751 /* end confdefs.h.  */
34752 #include <$ac_header>
34753 _ACEOF
34754 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34755   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34756   ac_status=$?
34757   grep -v '^ *+' conftest.er1 >conftest.err
34758   rm -f conftest.er1
34759   cat conftest.err >&5
34760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34761   (exit $ac_status); } >/dev/null; then
34762   if test -s conftest.err; then
34763     ac_cpp_err=$ac_c_preproc_warn_flag
34764     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34765   else
34766     ac_cpp_err=
34767   fi
34768 else
34769   ac_cpp_err=yes
34770 fi
34771 if test -z "$ac_cpp_err"; then
34772   ac_header_preproc=yes
34773 else
34774   echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34776
34777   ac_header_preproc=no
34778 fi
34779 rm -f conftest.err conftest.$ac_ext
34780 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34781 echo "${ECHO_T}$ac_header_preproc" >&6
34782
34783 # So?  What about this header?
34784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34785   yes:no: )
34786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34790     ac_header_preproc=yes
34791     ;;
34792   no:yes:* )
34793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34805     (
34806       cat <<\_ASBOX
34807 ## ------------------------------------------ ##
34808 ## Report this to the AC_PACKAGE_NAME lists.  ##
34809 ## ------------------------------------------ ##
34810 _ASBOX
34811     ) |
34812       sed "s/^/$as_me: WARNING:     /" >&2
34813     ;;
34814 esac
34815 echo "$as_me:$LINENO: checking for $ac_header" >&5
34816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34818   echo $ECHO_N "(cached) $ECHO_C" >&6
34819 else
34820   eval "$as_ac_Header=\$ac_header_preproc"
34821 fi
34822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34823 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34824
34825 fi
34826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34827   cat >>confdefs.h <<_ACEOF
34828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34829 _ACEOF
34830
34831 else
34832
34833                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
34834 echo "$as_me: error: could not locate SQL headers" >&2;}
34835    { (exit 1); exit 1; }; }
34836
34837 fi
34838
34839 done
34840
34841
34842         sql_LIBS="$LIBS"
34843         LIBS="$LTHREAD_LIBS"
34844
34845         echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
34846 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
34847 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
34848   echo $ECHO_N "(cached) $ECHO_C" >&6
34849 else
34850   ac_check_lib_save_LIBS=$LIBS
34851 LIBS="-liodbc  $LIBS"
34852 cat >conftest.$ac_ext <<_ACEOF
34853 /* confdefs.h.  */
34854 _ACEOF
34855 cat confdefs.h >>conftest.$ac_ext
34856 cat >>conftest.$ac_ext <<_ACEOF
34857 /* end confdefs.h.  */
34858
34859 /* Override any gcc2 internal prototype to avoid an error.  */
34860 #ifdef __cplusplus
34861 extern "C"
34862 #endif
34863 /* We use char because int might match the return type of a gcc2
34864    builtin and then its argument prototype would still apply.  */
34865 char SQLDriverConnect ();
34866 int
34867 main ()
34868 {
34869 SQLDriverConnect ();
34870   ;
34871   return 0;
34872 }
34873 _ACEOF
34874 rm -f conftest.$ac_objext conftest$ac_exeext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34876   (eval $ac_link) 2>conftest.er1
34877   ac_status=$?
34878   grep -v '^ *+' conftest.er1 >conftest.err
34879   rm -f conftest.er1
34880   cat conftest.err >&5
34881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882   (exit $ac_status); } &&
34883          { ac_try='test -z "$ac_c_werror_flag"
34884                          || test ! -s conftest.err'
34885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886   (eval $ac_try) 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); }; } &&
34890          { ac_try='test -s conftest$ac_exeext'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; }; then
34896   ac_cv_lib_iodbc_SQLDriverConnect=yes
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901 ac_cv_lib_iodbc_SQLDriverConnect=no
34902 fi
34903 rm -f conftest.err conftest.$ac_objext \
34904       conftest$ac_exeext conftest.$ac_ext
34905 LIBS=$ac_check_lib_save_LIBS
34906 fi
34907 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
34908 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
34909 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
34910   have_iodbc=yes
34911 else
34912   have_iodbc=no
34913 fi
34914
34915         if test $have_iodbc = yes ; then
34916                 ol_link_sql="-liodbc"
34917         else
34918                 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
34919 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
34920 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
34921   echo $ECHO_N "(cached) $ECHO_C" >&6
34922 else
34923   ac_check_lib_save_LIBS=$LIBS
34924 LIBS="-lodbc  $LIBS"
34925 cat >conftest.$ac_ext <<_ACEOF
34926 /* confdefs.h.  */
34927 _ACEOF
34928 cat confdefs.h >>conftest.$ac_ext
34929 cat >>conftest.$ac_ext <<_ACEOF
34930 /* end confdefs.h.  */
34931
34932 /* Override any gcc2 internal prototype to avoid an error.  */
34933 #ifdef __cplusplus
34934 extern "C"
34935 #endif
34936 /* We use char because int might match the return type of a gcc2
34937    builtin and then its argument prototype would still apply.  */
34938 char SQLDriverConnect ();
34939 int
34940 main ()
34941 {
34942 SQLDriverConnect ();
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext conftest$ac_exeext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34949   (eval $ac_link) 2>conftest.er1
34950   ac_status=$?
34951   grep -v '^ *+' conftest.er1 >conftest.err
34952   rm -f conftest.er1
34953   cat conftest.err >&5
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); } &&
34956          { ac_try='test -z "$ac_c_werror_flag"
34957                          || test ! -s conftest.err'
34958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959   (eval $ac_try) 2>&5
34960   ac_status=$?
34961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962   (exit $ac_status); }; } &&
34963          { ac_try='test -s conftest$ac_exeext'
34964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965   (eval $ac_try) 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969   ac_cv_lib_odbc_SQLDriverConnect=yes
34970 else
34971   echo "$as_me: failed program was:" >&5
34972 sed 's/^/| /' conftest.$ac_ext >&5
34973
34974 ac_cv_lib_odbc_SQLDriverConnect=no
34975 fi
34976 rm -f conftest.err conftest.$ac_objext \
34977       conftest$ac_exeext conftest.$ac_ext
34978 LIBS=$ac_check_lib_save_LIBS
34979 fi
34980 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
34981 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
34982 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
34983   have_odbc=yes
34984 else
34985   have_odbc=no
34986 fi
34987
34988                 if test $have_odbc = yes ; then
34989                         ol_link_sql="-lodbc"
34990                 fi
34991         fi
34992
34993         LIBS="$sql_LIBS"
34994
34995         if test $ol_link_sql != no ; then
34996                 SLAPD_SQL_LIBS="$ol_link_sql"
34997
34998         elif test $ol_enable_sql != auto ; then
34999                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
35000 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
35001    { (exit 1); exit 1; }; }
35002         fi
35003 fi
35004
35005 WITH_SASL=no
35006 ol_link_sasl=no
35007 ol_link_spasswd=no
35008 if test $ol_with_cyrus_sasl != no ; then
35009
35010
35011 for ac_header in sasl/sasl.h sasl.h
35012 do
35013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35015   echo "$as_me:$LINENO: checking for $ac_header" >&5
35016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35018   echo $ECHO_N "(cached) $ECHO_C" >&6
35019 fi
35020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35022 else
35023   # Is the header compilable?
35024 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35025 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35026 cat >conftest.$ac_ext <<_ACEOF
35027 /* confdefs.h.  */
35028 _ACEOF
35029 cat confdefs.h >>conftest.$ac_ext
35030 cat >>conftest.$ac_ext <<_ACEOF
35031 /* end confdefs.h.  */
35032 $ac_includes_default
35033 #include <$ac_header>
35034 _ACEOF
35035 rm -f conftest.$ac_objext
35036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35037   (eval $ac_compile) 2>conftest.er1
35038   ac_status=$?
35039   grep -v '^ *+' conftest.er1 >conftest.err
35040   rm -f conftest.er1
35041   cat conftest.err >&5
35042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043   (exit $ac_status); } &&
35044          { ac_try='test -z "$ac_c_werror_flag"
35045                          || test ! -s conftest.err'
35046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047   (eval $ac_try) 2>&5
35048   ac_status=$?
35049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050   (exit $ac_status); }; } &&
35051          { ac_try='test -s conftest.$ac_objext'
35052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053   (eval $ac_try) 2>&5
35054   ac_status=$?
35055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056   (exit $ac_status); }; }; then
35057   ac_header_compiler=yes
35058 else
35059   echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35061
35062 ac_header_compiler=no
35063 fi
35064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35066 echo "${ECHO_T}$ac_header_compiler" >&6
35067
35068 # Is the header present?
35069 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35071 cat >conftest.$ac_ext <<_ACEOF
35072 /* confdefs.h.  */
35073 _ACEOF
35074 cat confdefs.h >>conftest.$ac_ext
35075 cat >>conftest.$ac_ext <<_ACEOF
35076 /* end confdefs.h.  */
35077 #include <$ac_header>
35078 _ACEOF
35079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35081   ac_status=$?
35082   grep -v '^ *+' conftest.er1 >conftest.err
35083   rm -f conftest.er1
35084   cat conftest.err >&5
35085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086   (exit $ac_status); } >/dev/null; then
35087   if test -s conftest.err; then
35088     ac_cpp_err=$ac_c_preproc_warn_flag
35089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35090   else
35091     ac_cpp_err=
35092   fi
35093 else
35094   ac_cpp_err=yes
35095 fi
35096 if test -z "$ac_cpp_err"; then
35097   ac_header_preproc=yes
35098 else
35099   echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35101
35102   ac_header_preproc=no
35103 fi
35104 rm -f conftest.err conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35106 echo "${ECHO_T}$ac_header_preproc" >&6
35107
35108 # So?  What about this header?
35109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35110   yes:no: )
35111     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35112 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35113     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35114 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35115     ac_header_preproc=yes
35116     ;;
35117   no:yes:* )
35118     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35119 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35120     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35121 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35122     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35123 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35124     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35125 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35128     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35129 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35130     (
35131       cat <<\_ASBOX
35132 ## ------------------------------------------ ##
35133 ## Report this to the AC_PACKAGE_NAME lists.  ##
35134 ## ------------------------------------------ ##
35135 _ASBOX
35136     ) |
35137       sed "s/^/$as_me: WARNING:     /" >&2
35138     ;;
35139 esac
35140 echo "$as_me:$LINENO: checking for $ac_header" >&5
35141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35143   echo $ECHO_N "(cached) $ECHO_C" >&6
35144 else
35145   eval "$as_ac_Header=\$ac_header_preproc"
35146 fi
35147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35149
35150 fi
35151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35152   cat >>confdefs.h <<_ACEOF
35153 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35154 _ACEOF
35155
35156 fi
35157
35158 done
35159
35160
35161         if test $ac_cv_header_sasl_sasl_h = yes ||
35162            test $ac_cv_header_sasl_h = yes; then
35163                 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
35164 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
35165 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
35166   echo $ECHO_N "(cached) $ECHO_C" >&6
35167 else
35168   ac_check_lib_save_LIBS=$LIBS
35169 LIBS="-lsasl2  $LIBS"
35170 cat >conftest.$ac_ext <<_ACEOF
35171 /* confdefs.h.  */
35172 _ACEOF
35173 cat confdefs.h >>conftest.$ac_ext
35174 cat >>conftest.$ac_ext <<_ACEOF
35175 /* end confdefs.h.  */
35176
35177 /* Override any gcc2 internal prototype to avoid an error.  */
35178 #ifdef __cplusplus
35179 extern "C"
35180 #endif
35181 /* We use char because int might match the return type of a gcc2
35182    builtin and then its argument prototype would still apply.  */
35183 char sasl_client_init ();
35184 int
35185 main ()
35186 {
35187 sasl_client_init ();
35188   ;
35189   return 0;
35190 }
35191 _ACEOF
35192 rm -f conftest.$ac_objext conftest$ac_exeext
35193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35194   (eval $ac_link) 2>conftest.er1
35195   ac_status=$?
35196   grep -v '^ *+' conftest.er1 >conftest.err
35197   rm -f conftest.er1
35198   cat conftest.err >&5
35199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200   (exit $ac_status); } &&
35201          { ac_try='test -z "$ac_c_werror_flag"
35202                          || test ! -s conftest.err'
35203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204   (eval $ac_try) 2>&5
35205   ac_status=$?
35206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207   (exit $ac_status); }; } &&
35208          { ac_try='test -s conftest$ac_exeext'
35209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210   (eval $ac_try) 2>&5
35211   ac_status=$?
35212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213   (exit $ac_status); }; }; then
35214   ac_cv_lib_sasl2_sasl_client_init=yes
35215 else
35216   echo "$as_me: failed program was:" >&5
35217 sed 's/^/| /' conftest.$ac_ext >&5
35218
35219 ac_cv_lib_sasl2_sasl_client_init=no
35220 fi
35221 rm -f conftest.err conftest.$ac_objext \
35222       conftest$ac_exeext conftest.$ac_ext
35223 LIBS=$ac_check_lib_save_LIBS
35224 fi
35225 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
35226 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
35227 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
35228   ol_link_sasl="-lsasl2"
35229 else
35230   echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
35231 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
35232 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
35233   echo $ECHO_N "(cached) $ECHO_C" >&6
35234 else
35235   ac_check_lib_save_LIBS=$LIBS
35236 LIBS="-lsasl  $LIBS"
35237 cat >conftest.$ac_ext <<_ACEOF
35238 /* confdefs.h.  */
35239 _ACEOF
35240 cat confdefs.h >>conftest.$ac_ext
35241 cat >>conftest.$ac_ext <<_ACEOF
35242 /* end confdefs.h.  */
35243
35244 /* Override any gcc2 internal prototype to avoid an error.  */
35245 #ifdef __cplusplus
35246 extern "C"
35247 #endif
35248 /* We use char because int might match the return type of a gcc2
35249    builtin and then its argument prototype would still apply.  */
35250 char sasl_client_init ();
35251 int
35252 main ()
35253 {
35254 sasl_client_init ();
35255   ;
35256   return 0;
35257 }
35258 _ACEOF
35259 rm -f conftest.$ac_objext conftest$ac_exeext
35260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35261   (eval $ac_link) 2>conftest.er1
35262   ac_status=$?
35263   grep -v '^ *+' conftest.er1 >conftest.err
35264   rm -f conftest.er1
35265   cat conftest.err >&5
35266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267   (exit $ac_status); } &&
35268          { ac_try='test -z "$ac_c_werror_flag"
35269                          || test ! -s conftest.err'
35270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271   (eval $ac_try) 2>&5
35272   ac_status=$?
35273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274   (exit $ac_status); }; } &&
35275          { ac_try='test -s conftest$ac_exeext'
35276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277   (eval $ac_try) 2>&5
35278   ac_status=$?
35279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280   (exit $ac_status); }; }; then
35281   ac_cv_lib_sasl_sasl_client_init=yes
35282 else
35283   echo "$as_me: failed program was:" >&5
35284 sed 's/^/| /' conftest.$ac_ext >&5
35285
35286 ac_cv_lib_sasl_sasl_client_init=no
35287 fi
35288 rm -f conftest.err conftest.$ac_objext \
35289       conftest$ac_exeext conftest.$ac_ext
35290 LIBS=$ac_check_lib_save_LIBS
35291 fi
35292 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
35293 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
35294 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
35295   ol_link_sasl="-lsasl"
35296 fi
35297
35298 fi
35299
35300         fi
35301
35302         if test $ol_link_sasl = no ; then
35303                 if test $ol_with_cyrus_sasl != auto ; then
35304                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
35305 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
35306    { (exit 1); exit 1; }; }
35307                 else
35308                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
35309 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
35310                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35311 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35312                         if test $ol_link_tls = no ; then
35313                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35314 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35315                         fi
35316                 fi
35317         else
35318                 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
35319 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
35320 if test "${ol_cv_sasl_compat+set}" = set; then
35321   echo $ECHO_N "(cached) $ECHO_C" >&6
35322 else
35323
35324         cat >conftest.$ac_ext <<_ACEOF
35325 /* confdefs.h.  */
35326 _ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h.  */
35330
35331 #ifdef HAVE_SASL_SASL_H
35332 #include <sasl/sasl.h>
35333 #else
35334 #include <sasl.h>
35335 #endif
35336
35337 /* Require 2.1.15+ */
35338 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
35339         char *__sasl_compat = "2.2+ or better okay (we guess)";
35340 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
35341         && SASL_VERSION_STEP >=15
35342         char *__sasl_compat = "2.1.15+ or better okay";
35343 #endif
35344
35345 _ACEOF
35346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35347   $EGREP "__sasl_compat" >/dev/null 2>&1; then
35348   ol_cv_sasl_compat=yes
35349 else
35350   ol_cv_sasl_compat=no
35351 fi
35352 rm -f conftest*
35353
35354 fi
35355 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
35356 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
35357
35358                 if test $ol_cv_sasl_compat = no ; then
35359                         ol_link_sasl=no
35360                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
35361 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
35362    { (exit 1); exit 1; }; }
35363                 fi
35364
35365
35366 cat >>confdefs.h <<\_ACEOF
35367 #define HAVE_CYRUS_SASL 1
35368 _ACEOF
35369
35370                 SASL_LIBS="$ol_link_sasl"
35371                 if test $ol_enable_spasswd != no ; then
35372                         ol_link_spasswd=yes
35373                 fi
35374
35375                 ac_save_LIBS="$LIBS"
35376                 LIBS="$LIBS $ol_link_sasl"
35377                 echo "$as_me:$LINENO: checking for sasl_version" >&5
35378 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
35379 if test "${ac_cv_func_sasl_version+set}" = set; then
35380   echo $ECHO_N "(cached) $ECHO_C" >&6
35381 else
35382   cat >conftest.$ac_ext <<_ACEOF
35383 /* confdefs.h.  */
35384 _ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h.  */
35388 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
35389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35390 #define sasl_version innocuous_sasl_version
35391
35392 /* System header to define __stub macros and hopefully few prototypes,
35393     which can conflict with char sasl_version (); below.
35394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35395     <limits.h> exists even on freestanding compilers.  */
35396
35397 #ifdef __STDC__
35398 # include <limits.h>
35399 #else
35400 # include <assert.h>
35401 #endif
35402
35403 #undef sasl_version
35404
35405 /* Override any gcc2 internal prototype to avoid an error.  */
35406 #ifdef __cplusplus
35407 extern "C"
35408 {
35409 #endif
35410 /* We use char because int might match the return type of a gcc2
35411    builtin and then its argument prototype would still apply.  */
35412 char sasl_version ();
35413 /* The GNU C library defines this for functions which it implements
35414     to always fail with ENOSYS.  Some functions are actually named
35415     something starting with __ and the normal name is an alias.  */
35416 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
35417 choke me
35418 #else
35419 char (*f) () = sasl_version;
35420 #endif
35421 #ifdef __cplusplus
35422 }
35423 #endif
35424
35425 int
35426 main ()
35427 {
35428 return f != sasl_version;
35429   ;
35430   return 0;
35431 }
35432 _ACEOF
35433 rm -f conftest.$ac_objext conftest$ac_exeext
35434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35435   (eval $ac_link) 2>conftest.er1
35436   ac_status=$?
35437   grep -v '^ *+' conftest.er1 >conftest.err
35438   rm -f conftest.er1
35439   cat conftest.err >&5
35440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441   (exit $ac_status); } &&
35442          { ac_try='test -z "$ac_c_werror_flag"
35443                          || test ! -s conftest.err'
35444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445   (eval $ac_try) 2>&5
35446   ac_status=$?
35447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448   (exit $ac_status); }; } &&
35449          { ac_try='test -s conftest$ac_exeext'
35450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451   (eval $ac_try) 2>&5
35452   ac_status=$?
35453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454   (exit $ac_status); }; }; then
35455   ac_cv_func_sasl_version=yes
35456 else
35457   echo "$as_me: failed program was:" >&5
35458 sed 's/^/| /' conftest.$ac_ext >&5
35459
35460 ac_cv_func_sasl_version=no
35461 fi
35462 rm -f conftest.err conftest.$ac_objext \
35463       conftest$ac_exeext conftest.$ac_ext
35464 fi
35465 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
35466 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
35467 if test $ac_cv_func_sasl_version = yes; then
35468
35469 cat >>confdefs.h <<\_ACEOF
35470 #define HAVE_SASL_VERSION 1
35471 _ACEOF
35472
35473 fi
35474
35475                 LIBS="$ac_save_LIBS"
35476
35477                 WITH_SASL=yes
35478         fi
35479
35480 else
35481         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
35482 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
35483         if test $ol_link_tls = no ; then
35484                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
35485 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
35486         fi
35487 fi
35488
35489 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
35490         dev=no
35491         if test -r /dev/urandom ; then
35492                 dev="/dev/urandom";
35493         elif test -r /idev/urandom ; then
35494                 dev="/idev/urandom";
35495         elif test -r /dev/srandom ; then
35496                 dev="/dev/srandom";
35497         elif test -r /dev/random ; then
35498                 dev="/dev/random";
35499         elif test -r /idev/random ; then
35500                 dev="/idev/random";
35501         fi
35502
35503         if test $dev != no ; then
35504
35505 cat >>confdefs.h <<_ACEOF
35506 #define URANDOM_DEVICE "$dev"
35507 _ACEOF
35508
35509         fi
35510 fi
35511
35512 ol_link_fetch=no
35513 if test $ol_with_fetch != no ; then
35514         ol_LIBS=$LIBS
35515 LIBS="-lfetch -lcom_err $LIBS"
35516 echo "$as_me:$LINENO: checking fetch(3) library" >&5
35517 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
35518 if test "${ol_cv_lib_fetch+set}" = set; then
35519   echo $ECHO_N "(cached) $ECHO_C" >&6
35520 else
35521
35522         cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h.  */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h.  */
35528
35529 #include <sys/param.h>
35530 #include <stdio.h>
35531 #include <fetch.h>
35532 int
35533 main ()
35534 {
35535 struct url *u = fetchParseURL("file:///");
35536   ;
35537   return 0;
35538 }
35539 _ACEOF
35540 rm -f conftest.$ac_objext conftest$ac_exeext
35541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35542   (eval $ac_link) 2>conftest.er1
35543   ac_status=$?
35544   grep -v '^ *+' conftest.er1 >conftest.err
35545   rm -f conftest.er1
35546   cat conftest.err >&5
35547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548   (exit $ac_status); } &&
35549          { ac_try='test -z "$ac_c_werror_flag"
35550                          || test ! -s conftest.err'
35551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552   (eval $ac_try) 2>&5
35553   ac_status=$?
35554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555   (exit $ac_status); }; } &&
35556          { ac_try='test -s conftest$ac_exeext'
35557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35558   (eval $ac_try) 2>&5
35559   ac_status=$?
35560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561   (exit $ac_status); }; }; then
35562   ol_cv_lib_fetch=yes
35563 else
35564   echo "$as_me: failed program was:" >&5
35565 sed 's/^/| /' conftest.$ac_ext >&5
35566
35567 ol_cv_lib_fetch=no
35568 fi
35569 rm -f conftest.err conftest.$ac_objext \
35570       conftest$ac_exeext conftest.$ac_ext
35571 fi
35572 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
35573 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
35574 LIBS=$ol_LIBS
35575 if test $ol_cv_lib_fetch != no ; then
35576         ol_link_fetch="-lfetch -lcom_err"
35577
35578 cat >>confdefs.h <<\_ACEOF
35579 #define HAVE_FETCH 1
35580 _ACEOF
35581
35582 fi
35583
35584
35585         if test $ol_cv_lib_fetch != no ; then
35586                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
35587                 ol_link_fetch=freebsd
35588
35589         elif test $ol_with_fetch != auto ; then
35590                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
35591 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
35592    { (exit 1); exit 1; }; }
35593         fi
35594 fi
35595
35596 if test $ol_enable_crypt != no ; then
35597         save_LIBS="$LIBS"
35598         LIBS="$TLS_LIBS $LIBS"
35599
35600         echo "$as_me:$LINENO: checking for crypt" >&5
35601 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
35602 if test "${ac_cv_func_crypt+set}" = set; then
35603   echo $ECHO_N "(cached) $ECHO_C" >&6
35604 else
35605   cat >conftest.$ac_ext <<_ACEOF
35606 /* confdefs.h.  */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h.  */
35611 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
35612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35613 #define crypt innocuous_crypt
35614
35615 /* System header to define __stub macros and hopefully few prototypes,
35616     which can conflict with char crypt (); below.
35617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35618     <limits.h> exists even on freestanding compilers.  */
35619
35620 #ifdef __STDC__
35621 # include <limits.h>
35622 #else
35623 # include <assert.h>
35624 #endif
35625
35626 #undef crypt
35627
35628 /* Override any gcc2 internal prototype to avoid an error.  */
35629 #ifdef __cplusplus
35630 extern "C"
35631 {
35632 #endif
35633 /* We use char because int might match the return type of a gcc2
35634    builtin and then its argument prototype would still apply.  */
35635 char crypt ();
35636 /* The GNU C library defines this for functions which it implements
35637     to always fail with ENOSYS.  Some functions are actually named
35638     something starting with __ and the normal name is an alias.  */
35639 #if defined (__stub_crypt) || defined (__stub___crypt)
35640 choke me
35641 #else
35642 char (*f) () = crypt;
35643 #endif
35644 #ifdef __cplusplus
35645 }
35646 #endif
35647
35648 int
35649 main ()
35650 {
35651 return f != crypt;
35652   ;
35653   return 0;
35654 }
35655 _ACEOF
35656 rm -f conftest.$ac_objext conftest$ac_exeext
35657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35658   (eval $ac_link) 2>conftest.er1
35659   ac_status=$?
35660   grep -v '^ *+' conftest.er1 >conftest.err
35661   rm -f conftest.er1
35662   cat conftest.err >&5
35663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664   (exit $ac_status); } &&
35665          { ac_try='test -z "$ac_c_werror_flag"
35666                          || test ! -s conftest.err'
35667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35668   (eval $ac_try) 2>&5
35669   ac_status=$?
35670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35671   (exit $ac_status); }; } &&
35672          { ac_try='test -s conftest$ac_exeext'
35673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35674   (eval $ac_try) 2>&5
35675   ac_status=$?
35676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35677   (exit $ac_status); }; }; then
35678   ac_cv_func_crypt=yes
35679 else
35680   echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35682
35683 ac_cv_func_crypt=no
35684 fi
35685 rm -f conftest.err conftest.$ac_objext \
35686       conftest$ac_exeext conftest.$ac_ext
35687 fi
35688 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
35689 echo "${ECHO_T}$ac_cv_func_crypt" >&6
35690 if test $ac_cv_func_crypt = yes; then
35691   have_crypt=yes
35692 else
35693
35694                 LIBS="$save_LIBS"
35695                 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
35696 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
35697 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
35698   echo $ECHO_N "(cached) $ECHO_C" >&6
35699 else
35700   ac_check_lib_save_LIBS=$LIBS
35701 LIBS="-lcrypt  $LIBS"
35702 cat >conftest.$ac_ext <<_ACEOF
35703 /* confdefs.h.  */
35704 _ACEOF
35705 cat confdefs.h >>conftest.$ac_ext
35706 cat >>conftest.$ac_ext <<_ACEOF
35707 /* end confdefs.h.  */
35708
35709 /* Override any gcc2 internal prototype to avoid an error.  */
35710 #ifdef __cplusplus
35711 extern "C"
35712 #endif
35713 /* We use char because int might match the return type of a gcc2
35714    builtin and then its argument prototype would still apply.  */
35715 char crypt ();
35716 int
35717 main ()
35718 {
35719 crypt ();
35720   ;
35721   return 0;
35722 }
35723 _ACEOF
35724 rm -f conftest.$ac_objext conftest$ac_exeext
35725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35726   (eval $ac_link) 2>conftest.er1
35727   ac_status=$?
35728   grep -v '^ *+' conftest.er1 >conftest.err
35729   rm -f conftest.er1
35730   cat conftest.err >&5
35731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35732   (exit $ac_status); } &&
35733          { ac_try='test -z "$ac_c_werror_flag"
35734                          || test ! -s conftest.err'
35735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35736   (eval $ac_try) 2>&5
35737   ac_status=$?
35738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35739   (exit $ac_status); }; } &&
35740          { ac_try='test -s conftest$ac_exeext'
35741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35742   (eval $ac_try) 2>&5
35743   ac_status=$?
35744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745   (exit $ac_status); }; }; then
35746   ac_cv_lib_crypt_crypt=yes
35747 else
35748   echo "$as_me: failed program was:" >&5
35749 sed 's/^/| /' conftest.$ac_ext >&5
35750
35751 ac_cv_lib_crypt_crypt=no
35752 fi
35753 rm -f conftest.err conftest.$ac_objext \
35754       conftest$ac_exeext conftest.$ac_ext
35755 LIBS=$ac_check_lib_save_LIBS
35756 fi
35757 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
35758 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
35759 if test $ac_cv_lib_crypt_crypt = yes; then
35760   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
35761                         have_crypt=yes
35762 else
35763   have_crypt=no
35764 fi
35765
35766 fi
35767
35768
35769         LIBS="$save_LIBS"
35770
35771         if test $have_crypt = yes ; then
35772
35773 cat >>confdefs.h <<\_ACEOF
35774 #define HAVE_CRYPT 1
35775 _ACEOF
35776
35777         else
35778                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
35779 echo "$as_me: WARNING: could not find crypt" >&2;}
35780                 if test $ol_enable_crypt = yes ; then
35781                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
35782 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
35783    { (exit 1); exit 1; }; }
35784                 fi
35785
35786                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
35787 echo "$as_me: WARNING: disabling crypt support" >&2;}
35788                 ol_enable_crypt=no
35789         fi
35790 fi
35791
35792 if test $ol_enable_proctitle != no ; then
35793         echo "$as_me:$LINENO: checking for setproctitle" >&5
35794 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
35795 if test "${ac_cv_func_setproctitle+set}" = set; then
35796   echo $ECHO_N "(cached) $ECHO_C" >&6
35797 else
35798   cat >conftest.$ac_ext <<_ACEOF
35799 /* confdefs.h.  */
35800 _ACEOF
35801 cat confdefs.h >>conftest.$ac_ext
35802 cat >>conftest.$ac_ext <<_ACEOF
35803 /* end confdefs.h.  */
35804 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
35805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35806 #define setproctitle innocuous_setproctitle
35807
35808 /* System header to define __stub macros and hopefully few prototypes,
35809     which can conflict with char setproctitle (); below.
35810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35811     <limits.h> exists even on freestanding compilers.  */
35812
35813 #ifdef __STDC__
35814 # include <limits.h>
35815 #else
35816 # include <assert.h>
35817 #endif
35818
35819 #undef setproctitle
35820
35821 /* Override any gcc2 internal prototype to avoid an error.  */
35822 #ifdef __cplusplus
35823 extern "C"
35824 {
35825 #endif
35826 /* We use char because int might match the return type of a gcc2
35827    builtin and then its argument prototype would still apply.  */
35828 char setproctitle ();
35829 /* The GNU C library defines this for functions which it implements
35830     to always fail with ENOSYS.  Some functions are actually named
35831     something starting with __ and the normal name is an alias.  */
35832 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
35833 choke me
35834 #else
35835 char (*f) () = setproctitle;
35836 #endif
35837 #ifdef __cplusplus
35838 }
35839 #endif
35840
35841 int
35842 main ()
35843 {
35844 return f != setproctitle;
35845   ;
35846   return 0;
35847 }
35848 _ACEOF
35849 rm -f conftest.$ac_objext conftest$ac_exeext
35850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35851   (eval $ac_link) 2>conftest.er1
35852   ac_status=$?
35853   grep -v '^ *+' conftest.er1 >conftest.err
35854   rm -f conftest.er1
35855   cat conftest.err >&5
35856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857   (exit $ac_status); } &&
35858          { ac_try='test -z "$ac_c_werror_flag"
35859                          || test ! -s conftest.err'
35860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861   (eval $ac_try) 2>&5
35862   ac_status=$?
35863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864   (exit $ac_status); }; } &&
35865          { ac_try='test -s conftest$ac_exeext'
35866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867   (eval $ac_try) 2>&5
35868   ac_status=$?
35869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870   (exit $ac_status); }; }; then
35871   ac_cv_func_setproctitle=yes
35872 else
35873   echo "$as_me: failed program was:" >&5
35874 sed 's/^/| /' conftest.$ac_ext >&5
35875
35876 ac_cv_func_setproctitle=no
35877 fi
35878 rm -f conftest.err conftest.$ac_objext \
35879       conftest$ac_exeext conftest.$ac_ext
35880 fi
35881 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
35882 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
35883 if test $ac_cv_func_setproctitle = yes; then
35884   have_setproctitle=yes
35885 else
35886
35887                 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
35888 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
35889 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
35890   echo $ECHO_N "(cached) $ECHO_C" >&6
35891 else
35892   ac_check_lib_save_LIBS=$LIBS
35893 LIBS="-lutil  $LIBS"
35894 cat >conftest.$ac_ext <<_ACEOF
35895 /* confdefs.h.  */
35896 _ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h.  */
35900
35901 /* Override any gcc2 internal prototype to avoid an error.  */
35902 #ifdef __cplusplus
35903 extern "C"
35904 #endif
35905 /* We use char because int might match the return type of a gcc2
35906    builtin and then its argument prototype would still apply.  */
35907 char setproctitle ();
35908 int
35909 main ()
35910 {
35911 setproctitle ();
35912   ;
35913   return 0;
35914 }
35915 _ACEOF
35916 rm -f conftest.$ac_objext conftest$ac_exeext
35917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35918   (eval $ac_link) 2>conftest.er1
35919   ac_status=$?
35920   grep -v '^ *+' conftest.er1 >conftest.err
35921   rm -f conftest.er1
35922   cat conftest.err >&5
35923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35924   (exit $ac_status); } &&
35925          { ac_try='test -z "$ac_c_werror_flag"
35926                          || test ! -s conftest.err'
35927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35928   (eval $ac_try) 2>&5
35929   ac_status=$?
35930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35931   (exit $ac_status); }; } &&
35932          { ac_try='test -s conftest$ac_exeext'
35933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35934   (eval $ac_try) 2>&5
35935   ac_status=$?
35936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937   (exit $ac_status); }; }; then
35938   ac_cv_lib_util_setproctitle=yes
35939 else
35940   echo "$as_me: failed program was:" >&5
35941 sed 's/^/| /' conftest.$ac_ext >&5
35942
35943 ac_cv_lib_util_setproctitle=no
35944 fi
35945 rm -f conftest.err conftest.$ac_objext \
35946       conftest$ac_exeext conftest.$ac_ext
35947 LIBS=$ac_check_lib_save_LIBS
35948 fi
35949 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
35950 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
35951 if test $ac_cv_lib_util_setproctitle = yes; then
35952   have_setproctitle=yes
35953                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
35954 else
35955   have_setproctitle=no
35956                         case $LIBOBJS in
35957     "setproctitle.$ac_objext"   | \
35958   *" setproctitle.$ac_objext"   | \
35959     "setproctitle.$ac_objext "* | \
35960   *" setproctitle.$ac_objext "* ) ;;
35961   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
35962 esac
35963
35964                         LIBSRCS="$LIBSRCS setproctitle.c"
35965 fi
35966
35967 fi
35968
35969
35970         if test $have_setproctitle = yes ; then
35971
35972 cat >>confdefs.h <<\_ACEOF
35973 #define HAVE_SETPROCTITLE 1
35974 _ACEOF
35975
35976         fi
35977 fi
35978
35979 if test $ol_enable_slp != no ; then
35980
35981 for ac_header in slp.h
35982 do
35983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35985   echo "$as_me:$LINENO: checking for $ac_header" >&5
35986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35987 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35988   echo $ECHO_N "(cached) $ECHO_C" >&6
35989 fi
35990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35991 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35992 else
35993   # Is the header compilable?
35994 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35996 cat >conftest.$ac_ext <<_ACEOF
35997 /* confdefs.h.  */
35998 _ACEOF
35999 cat confdefs.h >>conftest.$ac_ext
36000 cat >>conftest.$ac_ext <<_ACEOF
36001 /* end confdefs.h.  */
36002 $ac_includes_default
36003 #include <$ac_header>
36004 _ACEOF
36005 rm -f conftest.$ac_objext
36006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36007   (eval $ac_compile) 2>conftest.er1
36008   ac_status=$?
36009   grep -v '^ *+' conftest.er1 >conftest.err
36010   rm -f conftest.er1
36011   cat conftest.err >&5
36012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013   (exit $ac_status); } &&
36014          { ac_try='test -z "$ac_c_werror_flag"
36015                          || test ! -s conftest.err'
36016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36017   (eval $ac_try) 2>&5
36018   ac_status=$?
36019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36020   (exit $ac_status); }; } &&
36021          { ac_try='test -s conftest.$ac_objext'
36022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36023   (eval $ac_try) 2>&5
36024   ac_status=$?
36025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026   (exit $ac_status); }; }; then
36027   ac_header_compiler=yes
36028 else
36029   echo "$as_me: failed program was:" >&5
36030 sed 's/^/| /' conftest.$ac_ext >&5
36031
36032 ac_header_compiler=no
36033 fi
36034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36035 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36036 echo "${ECHO_T}$ac_header_compiler" >&6
36037
36038 # Is the header present?
36039 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36040 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36041 cat >conftest.$ac_ext <<_ACEOF
36042 /* confdefs.h.  */
36043 _ACEOF
36044 cat confdefs.h >>conftest.$ac_ext
36045 cat >>conftest.$ac_ext <<_ACEOF
36046 /* end confdefs.h.  */
36047 #include <$ac_header>
36048 _ACEOF
36049 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36050   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36051   ac_status=$?
36052   grep -v '^ *+' conftest.er1 >conftest.err
36053   rm -f conftest.er1
36054   cat conftest.err >&5
36055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056   (exit $ac_status); } >/dev/null; then
36057   if test -s conftest.err; then
36058     ac_cpp_err=$ac_c_preproc_warn_flag
36059     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36060   else
36061     ac_cpp_err=
36062   fi
36063 else
36064   ac_cpp_err=yes
36065 fi
36066 if test -z "$ac_cpp_err"; then
36067   ac_header_preproc=yes
36068 else
36069   echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36071
36072   ac_header_preproc=no
36073 fi
36074 rm -f conftest.err conftest.$ac_ext
36075 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36076 echo "${ECHO_T}$ac_header_preproc" >&6
36077
36078 # So?  What about this header?
36079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36080   yes:no: )
36081     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36082 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36084 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36085     ac_header_preproc=yes
36086     ;;
36087   no:yes:* )
36088     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36089 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36090     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36091 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36092     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36093 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36094     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36095 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36097 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36098     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36099 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36100     (
36101       cat <<\_ASBOX
36102 ## ------------------------------------------ ##
36103 ## Report this to the AC_PACKAGE_NAME lists.  ##
36104 ## ------------------------------------------ ##
36105 _ASBOX
36106     ) |
36107       sed "s/^/$as_me: WARNING:     /" >&2
36108     ;;
36109 esac
36110 echo "$as_me:$LINENO: checking for $ac_header" >&5
36111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36113   echo $ECHO_N "(cached) $ECHO_C" >&6
36114 else
36115   eval "$as_ac_Header=\$ac_header_preproc"
36116 fi
36117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36118 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36119
36120 fi
36121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36122   cat >>confdefs.h <<_ACEOF
36123 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36124 _ACEOF
36125
36126 fi
36127
36128 done
36129
36130
36131         if test $ac_cv_header_slp_h = yes ; then
36132                 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
36133 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
36134 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
36135   echo $ECHO_N "(cached) $ECHO_C" >&6
36136 else
36137   ac_check_lib_save_LIBS=$LIBS
36138 LIBS="-lslp  $LIBS"
36139 cat >conftest.$ac_ext <<_ACEOF
36140 /* confdefs.h.  */
36141 _ACEOF
36142 cat confdefs.h >>conftest.$ac_ext
36143 cat >>conftest.$ac_ext <<_ACEOF
36144 /* end confdefs.h.  */
36145
36146 /* Override any gcc2 internal prototype to avoid an error.  */
36147 #ifdef __cplusplus
36148 extern "C"
36149 #endif
36150 /* We use char because int might match the return type of a gcc2
36151    builtin and then its argument prototype would still apply.  */
36152 char SLPOpen ();
36153 int
36154 main ()
36155 {
36156 SLPOpen ();
36157   ;
36158   return 0;
36159 }
36160 _ACEOF
36161 rm -f conftest.$ac_objext conftest$ac_exeext
36162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36163   (eval $ac_link) 2>conftest.er1
36164   ac_status=$?
36165   grep -v '^ *+' conftest.er1 >conftest.err
36166   rm -f conftest.er1
36167   cat conftest.err >&5
36168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36169   (exit $ac_status); } &&
36170          { ac_try='test -z "$ac_c_werror_flag"
36171                          || test ! -s conftest.err'
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); }; } &&
36177          { ac_try='test -s conftest$ac_exeext'
36178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36179   (eval $ac_try) 2>&5
36180   ac_status=$?
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); }; }; then
36183   ac_cv_lib_slp_SLPOpen=yes
36184 else
36185   echo "$as_me: failed program was:" >&5
36186 sed 's/^/| /' conftest.$ac_ext >&5
36187
36188 ac_cv_lib_slp_SLPOpen=no
36189 fi
36190 rm -f conftest.err conftest.$ac_objext \
36191       conftest$ac_exeext conftest.$ac_ext
36192 LIBS=$ac_check_lib_save_LIBS
36193 fi
36194 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
36195 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
36196 if test $ac_cv_lib_slp_SLPOpen = yes; then
36197   have_slp=yes
36198 else
36199   have_slp=no
36200 fi
36201
36202                 if test $have_slp = yes ; then
36203
36204 cat >>confdefs.h <<\_ACEOF
36205 #define HAVE_SLP 1
36206 _ACEOF
36207
36208                         SLAPD_SLP_LIBS=-lslp
36209                 fi
36210
36211         elif test $ol_enable_slp = yes ; then
36212                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
36213 echo "$as_me: error: SLP not found" >&2;}
36214    { (exit 1); exit 1; }; }
36215         fi
36216 fi
36217
36218 if test "$ol_with_multiple_precision" != "no" ; then
36219         ol_have_bignum=no
36220         ol_have_gmp=no
36221
36222
36223
36224 for ac_header in openssl/bn.h bn.h
36225 do
36226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36228   echo "$as_me:$LINENO: checking for $ac_header" >&5
36229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36231   echo $ECHO_N "(cached) $ECHO_C" >&6
36232 fi
36233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36235 else
36236   # Is the header compilable?
36237 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36238 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36239 cat >conftest.$ac_ext <<_ACEOF
36240 /* confdefs.h.  */
36241 _ACEOF
36242 cat confdefs.h >>conftest.$ac_ext
36243 cat >>conftest.$ac_ext <<_ACEOF
36244 /* end confdefs.h.  */
36245 $ac_includes_default
36246 #include <$ac_header>
36247 _ACEOF
36248 rm -f conftest.$ac_objext
36249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36250   (eval $ac_compile) 2>conftest.er1
36251   ac_status=$?
36252   grep -v '^ *+' conftest.er1 >conftest.err
36253   rm -f conftest.er1
36254   cat conftest.err >&5
36255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); } &&
36257          { ac_try='test -z "$ac_c_werror_flag"
36258                          || test ! -s conftest.err'
36259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36260   (eval $ac_try) 2>&5
36261   ac_status=$?
36262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263   (exit $ac_status); }; } &&
36264          { ac_try='test -s conftest.$ac_objext'
36265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36266   (eval $ac_try) 2>&5
36267   ac_status=$?
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); }; }; then
36270   ac_header_compiler=yes
36271 else
36272   echo "$as_me: failed program was:" >&5
36273 sed 's/^/| /' conftest.$ac_ext >&5
36274
36275 ac_header_compiler=no
36276 fi
36277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36279 echo "${ECHO_T}$ac_header_compiler" >&6
36280
36281 # Is the header present?
36282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36284 cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h.  */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h.  */
36290 #include <$ac_header>
36291 _ACEOF
36292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36294   ac_status=$?
36295   grep -v '^ *+' conftest.er1 >conftest.err
36296   rm -f conftest.er1
36297   cat conftest.err >&5
36298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299   (exit $ac_status); } >/dev/null; then
36300   if test -s conftest.err; then
36301     ac_cpp_err=$ac_c_preproc_warn_flag
36302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36303   else
36304     ac_cpp_err=
36305   fi
36306 else
36307   ac_cpp_err=yes
36308 fi
36309 if test -z "$ac_cpp_err"; then
36310   ac_header_preproc=yes
36311 else
36312   echo "$as_me: failed program was:" >&5
36313 sed 's/^/| /' conftest.$ac_ext >&5
36314
36315   ac_header_preproc=no
36316 fi
36317 rm -f conftest.err conftest.$ac_ext
36318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36319 echo "${ECHO_T}$ac_header_preproc" >&6
36320
36321 # So?  What about this header?
36322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36323   yes:no: )
36324     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36328     ac_header_preproc=yes
36329     ;;
36330   no:yes:* )
36331     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36333     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36334 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36335     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36337     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36338 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36339     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36341     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36343     (
36344       cat <<\_ASBOX
36345 ## ------------------------------------------ ##
36346 ## Report this to the AC_PACKAGE_NAME lists.  ##
36347 ## ------------------------------------------ ##
36348 _ASBOX
36349     ) |
36350       sed "s/^/$as_me: WARNING:     /" >&2
36351     ;;
36352 esac
36353 echo "$as_me:$LINENO: checking for $ac_header" >&5
36354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36356   echo $ECHO_N "(cached) $ECHO_C" >&6
36357 else
36358   eval "$as_ac_Header=\$ac_header_preproc"
36359 fi
36360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36362
36363 fi
36364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36365   cat >>confdefs.h <<_ACEOF
36366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36367 _ACEOF
36368
36369 fi
36370
36371 done
36372
36373
36374
36375 for ac_header in openssl/crypto.h crypto.h
36376 do
36377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36379   echo "$as_me:$LINENO: checking for $ac_header" >&5
36380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36382   echo $ECHO_N "(cached) $ECHO_C" >&6
36383 fi
36384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36386 else
36387   # Is the header compilable?
36388 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36390 cat >conftest.$ac_ext <<_ACEOF
36391 /* confdefs.h.  */
36392 _ACEOF
36393 cat confdefs.h >>conftest.$ac_ext
36394 cat >>conftest.$ac_ext <<_ACEOF
36395 /* end confdefs.h.  */
36396 $ac_includes_default
36397 #include <$ac_header>
36398 _ACEOF
36399 rm -f conftest.$ac_objext
36400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36401   (eval $ac_compile) 2>conftest.er1
36402   ac_status=$?
36403   grep -v '^ *+' conftest.er1 >conftest.err
36404   rm -f conftest.er1
36405   cat conftest.err >&5
36406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407   (exit $ac_status); } &&
36408          { ac_try='test -z "$ac_c_werror_flag"
36409                          || test ! -s conftest.err'
36410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36411   (eval $ac_try) 2>&5
36412   ac_status=$?
36413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36414   (exit $ac_status); }; } &&
36415          { ac_try='test -s conftest.$ac_objext'
36416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417   (eval $ac_try) 2>&5
36418   ac_status=$?
36419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420   (exit $ac_status); }; }; then
36421   ac_header_compiler=yes
36422 else
36423   echo "$as_me: failed program was:" >&5
36424 sed 's/^/| /' conftest.$ac_ext >&5
36425
36426 ac_header_compiler=no
36427 fi
36428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36430 echo "${ECHO_T}$ac_header_compiler" >&6
36431
36432 # Is the header present?
36433 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36435 cat >conftest.$ac_ext <<_ACEOF
36436 /* confdefs.h.  */
36437 _ACEOF
36438 cat confdefs.h >>conftest.$ac_ext
36439 cat >>conftest.$ac_ext <<_ACEOF
36440 /* end confdefs.h.  */
36441 #include <$ac_header>
36442 _ACEOF
36443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36444   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36445   ac_status=$?
36446   grep -v '^ *+' conftest.er1 >conftest.err
36447   rm -f conftest.er1
36448   cat conftest.err >&5
36449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450   (exit $ac_status); } >/dev/null; then
36451   if test -s conftest.err; then
36452     ac_cpp_err=$ac_c_preproc_warn_flag
36453     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36454   else
36455     ac_cpp_err=
36456   fi
36457 else
36458   ac_cpp_err=yes
36459 fi
36460 if test -z "$ac_cpp_err"; then
36461   ac_header_preproc=yes
36462 else
36463   echo "$as_me: failed program was:" >&5
36464 sed 's/^/| /' conftest.$ac_ext >&5
36465
36466   ac_header_preproc=no
36467 fi
36468 rm -f conftest.err conftest.$ac_ext
36469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36470 echo "${ECHO_T}$ac_header_preproc" >&6
36471
36472 # So?  What about this header?
36473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36474   yes:no: )
36475     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36479     ac_header_preproc=yes
36480     ;;
36481   no:yes:* )
36482     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36484     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36485 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36486     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36488     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36489 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36490     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36492     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36494     (
36495       cat <<\_ASBOX
36496 ## ------------------------------------------ ##
36497 ## Report this to the AC_PACKAGE_NAME lists.  ##
36498 ## ------------------------------------------ ##
36499 _ASBOX
36500     ) |
36501       sed "s/^/$as_me: WARNING:     /" >&2
36502     ;;
36503 esac
36504 echo "$as_me:$LINENO: checking for $ac_header" >&5
36505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36507   echo $ECHO_N "(cached) $ECHO_C" >&6
36508 else
36509   eval "$as_ac_Header=\$ac_header_preproc"
36510 fi
36511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36513
36514 fi
36515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36516   cat >>confdefs.h <<_ACEOF
36517 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36518 _ACEOF
36519
36520 fi
36521
36522 done
36523
36524
36525 for ac_header in gmp.h
36526 do
36527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36529   echo "$as_me:$LINENO: checking for $ac_header" >&5
36530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36532   echo $ECHO_N "(cached) $ECHO_C" >&6
36533 fi
36534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36536 else
36537   # Is the header compilable?
36538 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36540 cat >conftest.$ac_ext <<_ACEOF
36541 /* confdefs.h.  */
36542 _ACEOF
36543 cat confdefs.h >>conftest.$ac_ext
36544 cat >>conftest.$ac_ext <<_ACEOF
36545 /* end confdefs.h.  */
36546 $ac_includes_default
36547 #include <$ac_header>
36548 _ACEOF
36549 rm -f conftest.$ac_objext
36550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36551   (eval $ac_compile) 2>conftest.er1
36552   ac_status=$?
36553   grep -v '^ *+' conftest.er1 >conftest.err
36554   rm -f conftest.er1
36555   cat conftest.err >&5
36556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36557   (exit $ac_status); } &&
36558          { ac_try='test -z "$ac_c_werror_flag"
36559                          || test ! -s conftest.err'
36560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36561   (eval $ac_try) 2>&5
36562   ac_status=$?
36563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36564   (exit $ac_status); }; } &&
36565          { ac_try='test -s conftest.$ac_objext'
36566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567   (eval $ac_try) 2>&5
36568   ac_status=$?
36569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570   (exit $ac_status); }; }; then
36571   ac_header_compiler=yes
36572 else
36573   echo "$as_me: failed program was:" >&5
36574 sed 's/^/| /' conftest.$ac_ext >&5
36575
36576 ac_header_compiler=no
36577 fi
36578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36579 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36580 echo "${ECHO_T}$ac_header_compiler" >&6
36581
36582 # Is the header present?
36583 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36585 cat >conftest.$ac_ext <<_ACEOF
36586 /* confdefs.h.  */
36587 _ACEOF
36588 cat confdefs.h >>conftest.$ac_ext
36589 cat >>conftest.$ac_ext <<_ACEOF
36590 /* end confdefs.h.  */
36591 #include <$ac_header>
36592 _ACEOF
36593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36594   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36595   ac_status=$?
36596   grep -v '^ *+' conftest.er1 >conftest.err
36597   rm -f conftest.er1
36598   cat conftest.err >&5
36599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600   (exit $ac_status); } >/dev/null; then
36601   if test -s conftest.err; then
36602     ac_cpp_err=$ac_c_preproc_warn_flag
36603     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36604   else
36605     ac_cpp_err=
36606   fi
36607 else
36608   ac_cpp_err=yes
36609 fi
36610 if test -z "$ac_cpp_err"; then
36611   ac_header_preproc=yes
36612 else
36613   echo "$as_me: failed program was:" >&5
36614 sed 's/^/| /' conftest.$ac_ext >&5
36615
36616   ac_header_preproc=no
36617 fi
36618 rm -f conftest.err conftest.$ac_ext
36619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36620 echo "${ECHO_T}$ac_header_preproc" >&6
36621
36622 # So?  What about this header?
36623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36624   yes:no: )
36625     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36627     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36629     ac_header_preproc=yes
36630     ;;
36631   no:yes:* )
36632     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36634     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36635 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36636     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36638     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36639 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36642     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36644     (
36645       cat <<\_ASBOX
36646 ## ------------------------------------------ ##
36647 ## Report this to the AC_PACKAGE_NAME lists.  ##
36648 ## ------------------------------------------ ##
36649 _ASBOX
36650     ) |
36651       sed "s/^/$as_me: WARNING:     /" >&2
36652     ;;
36653 esac
36654 echo "$as_me:$LINENO: checking for $ac_header" >&5
36655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36657   echo $ECHO_N "(cached) $ECHO_C" >&6
36658 else
36659   eval "$as_ac_Header=\$ac_header_preproc"
36660 fi
36661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36662 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36663
36664 fi
36665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36666   cat >>confdefs.h <<_ACEOF
36667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36668 _ACEOF
36669
36670 fi
36671
36672 done
36673
36674
36675         if test "$ol_with_tls" = "found" ; then
36676                 ol_have_bn_h=no
36677                 ol_have_crypto_h=no
36678
36679                 if test "$ac_cv_header_openssl_bn_h" = "yes" ||
36680                    test "$ac_cv_header_bn_h" = "yes" ; then
36681                         ol_have_bn_h=yes
36682                 fi
36683
36684                 if test "$ac_cv_header_openssl_crypto_h" = "yes" ||
36685                    test "$ac_cv_header_crypto_h" = "yes" ; then
36686                         ol_have_crypto_h=yes
36687                 fi
36688
36689                 if test "$ol_have_bn_h" = "yes" &&
36690                    test "$ol_have_crypto_h" = "yes" ; then
36691                         ol_have_bignum=yes
36692                 fi
36693         fi
36694
36695         if test $ac_cv_header_gmp_h = yes ; then
36696                 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36697 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36698 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36699   echo $ECHO_N "(cached) $ECHO_C" >&6
36700 else
36701   ac_check_lib_save_LIBS=$LIBS
36702 LIBS="-lgmp  $LIBS"
36703 cat >conftest.$ac_ext <<_ACEOF
36704 /* confdefs.h.  */
36705 _ACEOF
36706 cat confdefs.h >>conftest.$ac_ext
36707 cat >>conftest.$ac_ext <<_ACEOF
36708 /* end confdefs.h.  */
36709
36710 /* Override any gcc2 internal prototype to avoid an error.  */
36711 #ifdef __cplusplus
36712 extern "C"
36713 #endif
36714 /* We use char because int might match the return type of a gcc2
36715    builtin and then its argument prototype would still apply.  */
36716 char __gmpz_add_ui ();
36717 int
36718 main ()
36719 {
36720 __gmpz_add_ui ();
36721   ;
36722   return 0;
36723 }
36724 _ACEOF
36725 rm -f conftest.$ac_objext conftest$ac_exeext
36726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36727   (eval $ac_link) 2>conftest.er1
36728   ac_status=$?
36729   grep -v '^ *+' conftest.er1 >conftest.err
36730   rm -f conftest.er1
36731   cat conftest.err >&5
36732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733   (exit $ac_status); } &&
36734          { ac_try='test -z "$ac_c_werror_flag"
36735                          || test ! -s conftest.err'
36736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737   (eval $ac_try) 2>&5
36738   ac_status=$?
36739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740   (exit $ac_status); }; } &&
36741          { ac_try='test -s conftest$ac_exeext'
36742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743   (eval $ac_try) 2>&5
36744   ac_status=$?
36745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746   (exit $ac_status); }; }; then
36747   ac_cv_lib_gmp___gmpz_add_ui=yes
36748 else
36749   echo "$as_me: failed program was:" >&5
36750 sed 's/^/| /' conftest.$ac_ext >&5
36751
36752 ac_cv_lib_gmp___gmpz_add_ui=no
36753 fi
36754 rm -f conftest.err conftest.$ac_objext \
36755       conftest$ac_exeext conftest.$ac_ext
36756 LIBS=$ac_check_lib_save_LIBS
36757 fi
36758 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36759 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36760 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36761   have_gmp=yes
36762 else
36763   have_gmp=no
36764 fi
36765
36766                 if test $have_gmp = yes ; then
36767                         ol_have_gmp=yes
36768                 fi
36769         fi
36770
36771         echo "$as_me:$LINENO: checking for multiple precision support" >&5
36772 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
36773
36774         ol_mp_support="none"
36775         case "$ol_with_multiple_precision" in
36776         auto)
36777                                                                                 if test "$ol_have_bignum" = "yes" ; then
36778                         ol_mp_support="bignum"
36779                 else
36780                         if test "$ol_have_gmp" = "yes" ; then
36781                                 ol_mp_support="gmp"
36782                         fi
36783                 fi
36784                 ;;
36785         bignum)
36786                 if test "$ol_have_bignum" != "yes" ; then
36787                         { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
36788 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
36789    { (exit 1); exit 1; }; }
36790                 fi
36791                 ol_mp_support="bignum"
36792                 ;;
36793         gmp)
36794                 if test "$ol_have_gmp" != "yes" ; then
36795                         { { echo "$as_me:$LINENO: error: GMP not available" >&5
36796 echo "$as_me: error: GMP not available" >&2;}
36797    { (exit 1); exit 1; }; }
36798                 fi
36799                 ol_mp_support="gmp"
36800                 ;;
36801         yes)
36802                 if test "$ol_have_bignum" = "yes" ; then
36803                         ol_mp_support="bignum"
36804                 elif test "$ol_have_gmp" = "yes" ; then
36805                         ol_mp_support="gmp"
36806                 else
36807                         { { echo "$as_me:$LINENO: error: not available" >&5
36808 echo "$as_me: error: not available" >&2;}
36809    { (exit 1); exit 1; }; }
36810                 fi
36811                 ;;
36812         esac
36813
36814         case "$ol_mp_support" in
36815         bignum)
36816
36817 cat >>confdefs.h <<\_ACEOF
36818 #define HAVE_BIGNUM 1
36819 _ACEOF
36820
36821                 ;;
36822         gmp)
36823
36824 cat >>confdefs.h <<\_ACEOF
36825 #define HAVE_GMP 1
36826 _ACEOF
36827
36828                 SLAPD_GMP_LIBS=-lgmp
36829                 ;;
36830         none)
36831                 ;;
36832         esac
36833
36834         echo "$as_me:$LINENO: result: $ol_mp_support" >&5
36835 echo "${ECHO_T}$ol_mp_support" >&6
36836 fi
36837
36838
36839 echo "$as_me:$LINENO: checking for mode_t" >&5
36840 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
36841 if test "${ac_cv_type_mode_t+set}" = set; then
36842   echo $ECHO_N "(cached) $ECHO_C" >&6
36843 else
36844   cat >conftest.$ac_ext <<_ACEOF
36845 /* confdefs.h.  */
36846 _ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h.  */
36850 $ac_includes_default
36851 int
36852 main ()
36853 {
36854 if ((mode_t *) 0)
36855   return 0;
36856 if (sizeof (mode_t))
36857   return 0;
36858   ;
36859   return 0;
36860 }
36861 _ACEOF
36862 rm -f conftest.$ac_objext
36863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36864   (eval $ac_compile) 2>conftest.er1
36865   ac_status=$?
36866   grep -v '^ *+' conftest.er1 >conftest.err
36867   rm -f conftest.er1
36868   cat conftest.err >&5
36869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870   (exit $ac_status); } &&
36871          { ac_try='test -z "$ac_c_werror_flag"
36872                          || test ! -s conftest.err'
36873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874   (eval $ac_try) 2>&5
36875   ac_status=$?
36876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877   (exit $ac_status); }; } &&
36878          { ac_try='test -s conftest.$ac_objext'
36879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36880   (eval $ac_try) 2>&5
36881   ac_status=$?
36882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36883   (exit $ac_status); }; }; then
36884   ac_cv_type_mode_t=yes
36885 else
36886   echo "$as_me: failed program was:" >&5
36887 sed 's/^/| /' conftest.$ac_ext >&5
36888
36889 ac_cv_type_mode_t=no
36890 fi
36891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36892 fi
36893 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36894 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
36895 if test $ac_cv_type_mode_t = yes; then
36896   :
36897 else
36898
36899 cat >>confdefs.h <<_ACEOF
36900 #define mode_t int
36901 _ACEOF
36902
36903 fi
36904
36905 echo "$as_me:$LINENO: checking for off_t" >&5
36906 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
36907 if test "${ac_cv_type_off_t+set}" = set; then
36908   echo $ECHO_N "(cached) $ECHO_C" >&6
36909 else
36910   cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916 $ac_includes_default
36917 int
36918 main ()
36919 {
36920 if ((off_t *) 0)
36921   return 0;
36922 if (sizeof (off_t))
36923   return 0;
36924   ;
36925   return 0;
36926 }
36927 _ACEOF
36928 rm -f conftest.$ac_objext
36929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36930   (eval $ac_compile) 2>conftest.er1
36931   ac_status=$?
36932   grep -v '^ *+' conftest.er1 >conftest.err
36933   rm -f conftest.er1
36934   cat conftest.err >&5
36935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936   (exit $ac_status); } &&
36937          { ac_try='test -z "$ac_c_werror_flag"
36938                          || test ! -s conftest.err'
36939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940   (eval $ac_try) 2>&5
36941   ac_status=$?
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); }; } &&
36944          { ac_try='test -s conftest.$ac_objext'
36945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946   (eval $ac_try) 2>&5
36947   ac_status=$?
36948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949   (exit $ac_status); }; }; then
36950   ac_cv_type_off_t=yes
36951 else
36952   echo "$as_me: failed program was:" >&5
36953 sed 's/^/| /' conftest.$ac_ext >&5
36954
36955 ac_cv_type_off_t=no
36956 fi
36957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36958 fi
36959 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36960 echo "${ECHO_T}$ac_cv_type_off_t" >&6
36961 if test $ac_cv_type_off_t = yes; then
36962   :
36963 else
36964
36965 cat >>confdefs.h <<_ACEOF
36966 #define off_t long
36967 _ACEOF
36968
36969 fi
36970
36971 echo "$as_me:$LINENO: checking for pid_t" >&5
36972 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
36973 if test "${ac_cv_type_pid_t+set}" = set; then
36974   echo $ECHO_N "(cached) $ECHO_C" >&6
36975 else
36976   cat >conftest.$ac_ext <<_ACEOF
36977 /* confdefs.h.  */
36978 _ACEOF
36979 cat confdefs.h >>conftest.$ac_ext
36980 cat >>conftest.$ac_ext <<_ACEOF
36981 /* end confdefs.h.  */
36982 $ac_includes_default
36983 int
36984 main ()
36985 {
36986 if ((pid_t *) 0)
36987   return 0;
36988 if (sizeof (pid_t))
36989   return 0;
36990   ;
36991   return 0;
36992 }
36993 _ACEOF
36994 rm -f conftest.$ac_objext
36995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36996   (eval $ac_compile) 2>conftest.er1
36997   ac_status=$?
36998   grep -v '^ *+' conftest.er1 >conftest.err
36999   rm -f conftest.er1
37000   cat conftest.err >&5
37001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37002   (exit $ac_status); } &&
37003          { ac_try='test -z "$ac_c_werror_flag"
37004                          || test ! -s conftest.err'
37005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37006   (eval $ac_try) 2>&5
37007   ac_status=$?
37008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009   (exit $ac_status); }; } &&
37010          { ac_try='test -s conftest.$ac_objext'
37011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37012   (eval $ac_try) 2>&5
37013   ac_status=$?
37014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015   (exit $ac_status); }; }; then
37016   ac_cv_type_pid_t=yes
37017 else
37018   echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37020
37021 ac_cv_type_pid_t=no
37022 fi
37023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37024 fi
37025 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
37027 if test $ac_cv_type_pid_t = yes; then
37028   :
37029 else
37030
37031 cat >>confdefs.h <<_ACEOF
37032 #define pid_t int
37033 _ACEOF
37034
37035 fi
37036
37037 echo "$as_me:$LINENO: checking for ssize_t" >&5
37038 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
37039 if test "${ac_cv_type_ssize_t+set}" = set; then
37040   echo $ECHO_N "(cached) $ECHO_C" >&6
37041 else
37042   cat >conftest.$ac_ext <<_ACEOF
37043 /* confdefs.h.  */
37044 _ACEOF
37045 cat confdefs.h >>conftest.$ac_ext
37046 cat >>conftest.$ac_ext <<_ACEOF
37047 /* end confdefs.h.  */
37048 $ac_includes_default
37049 int
37050 main ()
37051 {
37052 if ((ssize_t *) 0)
37053   return 0;
37054 if (sizeof (ssize_t))
37055   return 0;
37056   ;
37057   return 0;
37058 }
37059 _ACEOF
37060 rm -f conftest.$ac_objext
37061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37062   (eval $ac_compile) 2>conftest.er1
37063   ac_status=$?
37064   grep -v '^ *+' conftest.er1 >conftest.err
37065   rm -f conftest.er1
37066   cat conftest.err >&5
37067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068   (exit $ac_status); } &&
37069          { ac_try='test -z "$ac_c_werror_flag"
37070                          || test ! -s conftest.err'
37071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37072   (eval $ac_try) 2>&5
37073   ac_status=$?
37074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37075   (exit $ac_status); }; } &&
37076          { ac_try='test -s conftest.$ac_objext'
37077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37078   (eval $ac_try) 2>&5
37079   ac_status=$?
37080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37081   (exit $ac_status); }; }; then
37082   ac_cv_type_ssize_t=yes
37083 else
37084   echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37086
37087 ac_cv_type_ssize_t=no
37088 fi
37089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37090 fi
37091 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37092 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
37093 if test $ac_cv_type_ssize_t = yes; then
37094   :
37095 else
37096
37097 cat >>confdefs.h <<_ACEOF
37098 #define ssize_t signed int
37099 _ACEOF
37100
37101 fi
37102
37103 echo "$as_me:$LINENO: checking for caddr_t" >&5
37104 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
37105 if test "${ac_cv_type_caddr_t+set}" = set; then
37106   echo $ECHO_N "(cached) $ECHO_C" >&6
37107 else
37108   cat >conftest.$ac_ext <<_ACEOF
37109 /* confdefs.h.  */
37110 _ACEOF
37111 cat confdefs.h >>conftest.$ac_ext
37112 cat >>conftest.$ac_ext <<_ACEOF
37113 /* end confdefs.h.  */
37114 $ac_includes_default
37115 int
37116 main ()
37117 {
37118 if ((caddr_t *) 0)
37119   return 0;
37120 if (sizeof (caddr_t))
37121   return 0;
37122   ;
37123   return 0;
37124 }
37125 _ACEOF
37126 rm -f conftest.$ac_objext
37127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37128   (eval $ac_compile) 2>conftest.er1
37129   ac_status=$?
37130   grep -v '^ *+' conftest.er1 >conftest.err
37131   rm -f conftest.er1
37132   cat conftest.err >&5
37133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134   (exit $ac_status); } &&
37135          { ac_try='test -z "$ac_c_werror_flag"
37136                          || test ! -s conftest.err'
37137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138   (eval $ac_try) 2>&5
37139   ac_status=$?
37140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141   (exit $ac_status); }; } &&
37142          { ac_try='test -s conftest.$ac_objext'
37143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144   (eval $ac_try) 2>&5
37145   ac_status=$?
37146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147   (exit $ac_status); }; }; then
37148   ac_cv_type_caddr_t=yes
37149 else
37150   echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37152
37153 ac_cv_type_caddr_t=no
37154 fi
37155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37156 fi
37157 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
37158 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
37159 if test $ac_cv_type_caddr_t = yes; then
37160   :
37161 else
37162
37163 cat >>confdefs.h <<_ACEOF
37164 #define caddr_t char *
37165 _ACEOF
37166
37167 fi
37168
37169 echo "$as_me:$LINENO: checking for size_t" >&5
37170 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
37171 if test "${ac_cv_type_size_t+set}" = set; then
37172   echo $ECHO_N "(cached) $ECHO_C" >&6
37173 else
37174   cat >conftest.$ac_ext <<_ACEOF
37175 /* confdefs.h.  */
37176 _ACEOF
37177 cat confdefs.h >>conftest.$ac_ext
37178 cat >>conftest.$ac_ext <<_ACEOF
37179 /* end confdefs.h.  */
37180 $ac_includes_default
37181 int
37182 main ()
37183 {
37184 if ((size_t *) 0)
37185   return 0;
37186 if (sizeof (size_t))
37187   return 0;
37188   ;
37189   return 0;
37190 }
37191 _ACEOF
37192 rm -f conftest.$ac_objext
37193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37194   (eval $ac_compile) 2>conftest.er1
37195   ac_status=$?
37196   grep -v '^ *+' conftest.er1 >conftest.err
37197   rm -f conftest.er1
37198   cat conftest.err >&5
37199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200   (exit $ac_status); } &&
37201          { ac_try='test -z "$ac_c_werror_flag"
37202                          || test ! -s conftest.err'
37203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37204   (eval $ac_try) 2>&5
37205   ac_status=$?
37206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37207   (exit $ac_status); }; } &&
37208          { ac_try='test -s conftest.$ac_objext'
37209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37210   (eval $ac_try) 2>&5
37211   ac_status=$?
37212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37213   (exit $ac_status); }; }; then
37214   ac_cv_type_size_t=yes
37215 else
37216   echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37218
37219 ac_cv_type_size_t=no
37220 fi
37221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37222 fi
37223 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37224 echo "${ECHO_T}$ac_cv_type_size_t" >&6
37225 if test $ac_cv_type_size_t = yes; then
37226   :
37227 else
37228
37229 cat >>confdefs.h <<_ACEOF
37230 #define size_t unsigned
37231 _ACEOF
37232
37233 fi
37234
37235
37236 echo "$as_me:$LINENO: checking for long long" >&5
37237 echo $ECHO_N "checking for long long... $ECHO_C" >&6
37238 if test "${ac_cv_type_long_long+set}" = set; then
37239   echo $ECHO_N "(cached) $ECHO_C" >&6
37240 else
37241   cat >conftest.$ac_ext <<_ACEOF
37242 /* confdefs.h.  */
37243 _ACEOF
37244 cat confdefs.h >>conftest.$ac_ext
37245 cat >>conftest.$ac_ext <<_ACEOF
37246 /* end confdefs.h.  */
37247 $ac_includes_default
37248 int
37249 main ()
37250 {
37251 if ((long long *) 0)
37252   return 0;
37253 if (sizeof (long long))
37254   return 0;
37255   ;
37256   return 0;
37257 }
37258 _ACEOF
37259 rm -f conftest.$ac_objext
37260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37261   (eval $ac_compile) 2>conftest.er1
37262   ac_status=$?
37263   grep -v '^ *+' conftest.er1 >conftest.err
37264   rm -f conftest.er1
37265   cat conftest.err >&5
37266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267   (exit $ac_status); } &&
37268          { ac_try='test -z "$ac_c_werror_flag"
37269                          || test ! -s conftest.err'
37270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37271   (eval $ac_try) 2>&5
37272   ac_status=$?
37273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37274   (exit $ac_status); }; } &&
37275          { ac_try='test -s conftest.$ac_objext'
37276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37277   (eval $ac_try) 2>&5
37278   ac_status=$?
37279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); }; }; then
37281   ac_cv_type_long_long=yes
37282 else
37283   echo "$as_me: failed program was:" >&5
37284 sed 's/^/| /' conftest.$ac_ext >&5
37285
37286 ac_cv_type_long_long=no
37287 fi
37288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37289 fi
37290 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
37291 echo "${ECHO_T}$ac_cv_type_long_long" >&6
37292 if test $ac_cv_type_long_long = yes; then
37293
37294 cat >>confdefs.h <<_ACEOF
37295 #define HAVE_LONG_LONG 1
37296 _ACEOF
37297
37298
37299 fi
37300
37301 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
37302 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
37303 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
37304   echo $ECHO_N "(cached) $ECHO_C" >&6
37305 else
37306   cat >conftest.$ac_ext <<_ACEOF
37307 /* confdefs.h.  */
37308 _ACEOF
37309 cat confdefs.h >>conftest.$ac_ext
37310 cat >>conftest.$ac_ext <<_ACEOF
37311 /* end confdefs.h.  */
37312 $ac_includes_default
37313 int
37314 main ()
37315 {
37316 if ((ptrdiff_t *) 0)
37317   return 0;
37318 if (sizeof (ptrdiff_t))
37319   return 0;
37320   ;
37321   return 0;
37322 }
37323 _ACEOF
37324 rm -f conftest.$ac_objext
37325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37326   (eval $ac_compile) 2>conftest.er1
37327   ac_status=$?
37328   grep -v '^ *+' conftest.er1 >conftest.err
37329   rm -f conftest.er1
37330   cat conftest.err >&5
37331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332   (exit $ac_status); } &&
37333          { ac_try='test -z "$ac_c_werror_flag"
37334                          || test ! -s conftest.err'
37335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336   (eval $ac_try) 2>&5
37337   ac_status=$?
37338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339   (exit $ac_status); }; } &&
37340          { ac_try='test -s conftest.$ac_objext'
37341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37342   (eval $ac_try) 2>&5
37343   ac_status=$?
37344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37345   (exit $ac_status); }; }; then
37346   ac_cv_type_ptrdiff_t=yes
37347 else
37348   echo "$as_me: failed program was:" >&5
37349 sed 's/^/| /' conftest.$ac_ext >&5
37350
37351 ac_cv_type_ptrdiff_t=no
37352 fi
37353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37354 fi
37355 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
37356 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
37357 if test $ac_cv_type_ptrdiff_t = yes; then
37358
37359 cat >>confdefs.h <<_ACEOF
37360 #define HAVE_PTRDIFF_T 1
37361 _ACEOF
37362
37363
37364 fi
37365
37366
37367 echo "$as_me:$LINENO: checking for socklen_t" >&5
37368 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
37369 if test "${ac_cv_type_socklen_t+set}" = set; then
37370   echo $ECHO_N "(cached) $ECHO_C" >&6
37371 else
37372   cat >conftest.$ac_ext <<_ACEOF
37373 /* confdefs.h.  */
37374 _ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h.  */
37378 $ac_includes_default
37379 #ifdef HAVE_SYS_SOCKET_H
37380 #include <sys/socket.h>
37381 #endif
37382
37383
37384 int
37385 main ()
37386 {
37387 if ((socklen_t *) 0)
37388   return 0;
37389 if (sizeof (socklen_t))
37390   return 0;
37391   ;
37392   return 0;
37393 }
37394 _ACEOF
37395 rm -f conftest.$ac_objext
37396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37397   (eval $ac_compile) 2>conftest.er1
37398   ac_status=$?
37399   grep -v '^ *+' conftest.er1 >conftest.err
37400   rm -f conftest.er1
37401   cat conftest.err >&5
37402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403   (exit $ac_status); } &&
37404          { ac_try='test -z "$ac_c_werror_flag"
37405                          || test ! -s conftest.err'
37406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407   (eval $ac_try) 2>&5
37408   ac_status=$?
37409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410   (exit $ac_status); }; } &&
37411          { ac_try='test -s conftest.$ac_objext'
37412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37413   (eval $ac_try) 2>&5
37414   ac_status=$?
37415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); }; }; then
37417   ac_cv_type_socklen_t=yes
37418 else
37419   echo "$as_me: failed program was:" >&5
37420 sed 's/^/| /' conftest.$ac_ext >&5
37421
37422 ac_cv_type_socklen_t=no
37423 fi
37424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37425 fi
37426 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
37427 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
37428 if test $ac_cv_type_socklen_t = yes; then
37429   :
37430 else
37431
37432 cat >>confdefs.h <<_ACEOF
37433 #define socklen_t int
37434 _ACEOF
37435
37436 fi
37437
37438
37439 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
37440 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
37441 if test "${ac_cv_type_signal+set}" = set; then
37442   echo $ECHO_N "(cached) $ECHO_C" >&6
37443 else
37444   cat >conftest.$ac_ext <<_ACEOF
37445 /* confdefs.h.  */
37446 _ACEOF
37447 cat confdefs.h >>conftest.$ac_ext
37448 cat >>conftest.$ac_ext <<_ACEOF
37449 /* end confdefs.h.  */
37450 #include <sys/types.h>
37451 #include <signal.h>
37452 #ifdef signal
37453 # undef signal
37454 #endif
37455 #ifdef __cplusplus
37456 extern "C" void (*signal (int, void (*)(int)))(int);
37457 #else
37458 void (*signal ()) ();
37459 #endif
37460
37461 int
37462 main ()
37463 {
37464 int i;
37465   ;
37466   return 0;
37467 }
37468 _ACEOF
37469 rm -f conftest.$ac_objext
37470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37471   (eval $ac_compile) 2>conftest.er1
37472   ac_status=$?
37473   grep -v '^ *+' conftest.er1 >conftest.err
37474   rm -f conftest.er1
37475   cat conftest.err >&5
37476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477   (exit $ac_status); } &&
37478          { ac_try='test -z "$ac_c_werror_flag"
37479                          || test ! -s conftest.err'
37480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481   (eval $ac_try) 2>&5
37482   ac_status=$?
37483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484   (exit $ac_status); }; } &&
37485          { ac_try='test -s conftest.$ac_objext'
37486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37487   (eval $ac_try) 2>&5
37488   ac_status=$?
37489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37490   (exit $ac_status); }; }; then
37491   ac_cv_type_signal=void
37492 else
37493   echo "$as_me: failed program was:" >&5
37494 sed 's/^/| /' conftest.$ac_ext >&5
37495
37496 ac_cv_type_signal=int
37497 fi
37498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37499 fi
37500 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
37501 echo "${ECHO_T}$ac_cv_type_signal" >&6
37502
37503 cat >>confdefs.h <<_ACEOF
37504 #define RETSIGTYPE $ac_cv_type_signal
37505 _ACEOF
37506
37507
37508
37509 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
37510 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
37511 if test "${ac_cv_type_sig_atomic_t+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 $ac_includes_default
37521 #include <signal.h>
37522
37523
37524 int
37525 main ()
37526 {
37527 if ((sig_atomic_t *) 0)
37528   return 0;
37529 if (sizeof (sig_atomic_t))
37530   return 0;
37531   ;
37532   return 0;
37533 }
37534 _ACEOF
37535 rm -f conftest.$ac_objext
37536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37537   (eval $ac_compile) 2>conftest.er1
37538   ac_status=$?
37539   grep -v '^ *+' conftest.er1 >conftest.err
37540   rm -f conftest.er1
37541   cat conftest.err >&5
37542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543   (exit $ac_status); } &&
37544          { ac_try='test -z "$ac_c_werror_flag"
37545                          || test ! -s conftest.err'
37546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37547   (eval $ac_try) 2>&5
37548   ac_status=$?
37549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37550   (exit $ac_status); }; } &&
37551          { ac_try='test -s conftest.$ac_objext'
37552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37553   (eval $ac_try) 2>&5
37554   ac_status=$?
37555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556   (exit $ac_status); }; }; then
37557   ac_cv_type_sig_atomic_t=yes
37558 else
37559   echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37561
37562 ac_cv_type_sig_atomic_t=no
37563 fi
37564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37565 fi
37566 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
37567 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
37568 if test $ac_cv_type_sig_atomic_t = yes; then
37569   :
37570 else
37571
37572 cat >>confdefs.h <<_ACEOF
37573 #define sig_atomic_t int
37574 _ACEOF
37575
37576 fi
37577
37578
37579 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37580 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
37581 if test "${ac_cv_type_uid_t+set}" = set; then
37582   echo $ECHO_N "(cached) $ECHO_C" >&6
37583 else
37584   cat >conftest.$ac_ext <<_ACEOF
37585 /* confdefs.h.  */
37586 _ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h.  */
37590 #include <sys/types.h>
37591
37592 _ACEOF
37593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37594   $EGREP "uid_t" >/dev/null 2>&1; then
37595   ac_cv_type_uid_t=yes
37596 else
37597   ac_cv_type_uid_t=no
37598 fi
37599 rm -f conftest*
37600
37601 fi
37602 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37603 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
37604 if test $ac_cv_type_uid_t = no; then
37605
37606 cat >>confdefs.h <<\_ACEOF
37607 #define uid_t int
37608 _ACEOF
37609
37610
37611 cat >>confdefs.h <<\_ACEOF
37612 #define gid_t int
37613 _ACEOF
37614
37615 fi
37616
37617
37618 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
37619 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
37620 if test "${ac_cv_header_time+set}" = set; then
37621   echo $ECHO_N "(cached) $ECHO_C" >&6
37622 else
37623   cat >conftest.$ac_ext <<_ACEOF
37624 /* confdefs.h.  */
37625 _ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h.  */
37629 #include <sys/types.h>
37630 #include <sys/time.h>
37631 #include <time.h>
37632
37633 int
37634 main ()
37635 {
37636 if ((struct tm *) 0)
37637 return 0;
37638   ;
37639   return 0;
37640 }
37641 _ACEOF
37642 rm -f conftest.$ac_objext
37643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37644   (eval $ac_compile) 2>conftest.er1
37645   ac_status=$?
37646   grep -v '^ *+' conftest.er1 >conftest.err
37647   rm -f conftest.er1
37648   cat conftest.err >&5
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); } &&
37651          { ac_try='test -z "$ac_c_werror_flag"
37652                          || test ! -s conftest.err'
37653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37654   (eval $ac_try) 2>&5
37655   ac_status=$?
37656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37657   (exit $ac_status); }; } &&
37658          { ac_try='test -s conftest.$ac_objext'
37659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660   (eval $ac_try) 2>&5
37661   ac_status=$?
37662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663   (exit $ac_status); }; }; then
37664   ac_cv_header_time=yes
37665 else
37666   echo "$as_me: failed program was:" >&5
37667 sed 's/^/| /' conftest.$ac_ext >&5
37668
37669 ac_cv_header_time=no
37670 fi
37671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37672 fi
37673 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
37674 echo "${ECHO_T}$ac_cv_header_time" >&6
37675 if test $ac_cv_header_time = yes; then
37676
37677 cat >>confdefs.h <<\_ACEOF
37678 #define TIME_WITH_SYS_TIME 1
37679 _ACEOF
37680
37681 fi
37682
37683 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
37684 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
37685 if test "${ac_cv_struct_tm+set}" = set; then
37686   echo $ECHO_N "(cached) $ECHO_C" >&6
37687 else
37688   cat >conftest.$ac_ext <<_ACEOF
37689 /* confdefs.h.  */
37690 _ACEOF
37691 cat confdefs.h >>conftest.$ac_ext
37692 cat >>conftest.$ac_ext <<_ACEOF
37693 /* end confdefs.h.  */
37694 #include <sys/types.h>
37695 #include <time.h>
37696
37697 int
37698 main ()
37699 {
37700 struct tm *tp; tp->tm_sec;
37701   ;
37702   return 0;
37703 }
37704 _ACEOF
37705 rm -f conftest.$ac_objext
37706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37707   (eval $ac_compile) 2>conftest.er1
37708   ac_status=$?
37709   grep -v '^ *+' conftest.er1 >conftest.err
37710   rm -f conftest.er1
37711   cat conftest.err >&5
37712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37713   (exit $ac_status); } &&
37714          { ac_try='test -z "$ac_c_werror_flag"
37715                          || test ! -s conftest.err'
37716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37717   (eval $ac_try) 2>&5
37718   ac_status=$?
37719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720   (exit $ac_status); }; } &&
37721          { ac_try='test -s conftest.$ac_objext'
37722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37723   (eval $ac_try) 2>&5
37724   ac_status=$?
37725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726   (exit $ac_status); }; }; then
37727   ac_cv_struct_tm=time.h
37728 else
37729   echo "$as_me: failed program was:" >&5
37730 sed 's/^/| /' conftest.$ac_ext >&5
37731
37732 ac_cv_struct_tm=sys/time.h
37733 fi
37734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37735 fi
37736 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
37737 echo "${ECHO_T}$ac_cv_struct_tm" >&6
37738 if test $ac_cv_struct_tm = sys/time.h; then
37739
37740 cat >>confdefs.h <<\_ACEOF
37741 #define TM_IN_SYS_TIME 1
37742 _ACEOF
37743
37744 fi
37745
37746 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
37747 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
37748 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
37749   echo $ECHO_N "(cached) $ECHO_C" >&6
37750 else
37751   cat >conftest.$ac_ext <<_ACEOF
37752 /* confdefs.h.  */
37753 _ACEOF
37754 cat confdefs.h >>conftest.$ac_ext
37755 cat >>conftest.$ac_ext <<_ACEOF
37756 /* end confdefs.h.  */
37757 $ac_includes_default
37758 int
37759 main ()
37760 {
37761 static struct stat ac_aggr;
37762 if (ac_aggr.st_blksize)
37763 return 0;
37764   ;
37765   return 0;
37766 }
37767 _ACEOF
37768 rm -f conftest.$ac_objext
37769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37770   (eval $ac_compile) 2>conftest.er1
37771   ac_status=$?
37772   grep -v '^ *+' conftest.er1 >conftest.err
37773   rm -f conftest.er1
37774   cat conftest.err >&5
37775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37776   (exit $ac_status); } &&
37777          { ac_try='test -z "$ac_c_werror_flag"
37778                          || test ! -s conftest.err'
37779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37780   (eval $ac_try) 2>&5
37781   ac_status=$?
37782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37783   (exit $ac_status); }; } &&
37784          { ac_try='test -s conftest.$ac_objext'
37785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37786   (eval $ac_try) 2>&5
37787   ac_status=$?
37788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789   (exit $ac_status); }; }; then
37790   ac_cv_member_struct_stat_st_blksize=yes
37791 else
37792   echo "$as_me: failed program was:" >&5
37793 sed 's/^/| /' conftest.$ac_ext >&5
37794
37795 cat >conftest.$ac_ext <<_ACEOF
37796 /* confdefs.h.  */
37797 _ACEOF
37798 cat confdefs.h >>conftest.$ac_ext
37799 cat >>conftest.$ac_ext <<_ACEOF
37800 /* end confdefs.h.  */
37801 $ac_includes_default
37802 int
37803 main ()
37804 {
37805 static struct stat ac_aggr;
37806 if (sizeof ac_aggr.st_blksize)
37807 return 0;
37808   ;
37809   return 0;
37810 }
37811 _ACEOF
37812 rm -f conftest.$ac_objext
37813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37814   (eval $ac_compile) 2>conftest.er1
37815   ac_status=$?
37816   grep -v '^ *+' conftest.er1 >conftest.err
37817   rm -f conftest.er1
37818   cat conftest.err >&5
37819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820   (exit $ac_status); } &&
37821          { ac_try='test -z "$ac_c_werror_flag"
37822                          || test ! -s conftest.err'
37823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824   (eval $ac_try) 2>&5
37825   ac_status=$?
37826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827   (exit $ac_status); }; } &&
37828          { ac_try='test -s conftest.$ac_objext'
37829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37830   (eval $ac_try) 2>&5
37831   ac_status=$?
37832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833   (exit $ac_status); }; }; then
37834   ac_cv_member_struct_stat_st_blksize=yes
37835 else
37836   echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37838
37839 ac_cv_member_struct_stat_st_blksize=no
37840 fi
37841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37842 fi
37843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37844 fi
37845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
37846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
37847 if test $ac_cv_member_struct_stat_st_blksize = yes; then
37848
37849 cat >>confdefs.h <<_ACEOF
37850 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
37851 _ACEOF
37852
37853
37854 fi
37855
37856 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
37857 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
37858 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
37859   echo $ECHO_N "(cached) $ECHO_C" >&6
37860 else
37861   cat >conftest.$ac_ext <<_ACEOF
37862 /* confdefs.h.  */
37863 _ACEOF
37864 cat confdefs.h >>conftest.$ac_ext
37865 cat >>conftest.$ac_ext <<_ACEOF
37866 /* end confdefs.h.  */
37867 $ac_includes_default
37868 #include <pwd.h>
37869
37870 int
37871 main ()
37872 {
37873 static struct passwd ac_aggr;
37874 if (ac_aggr.pw_gecos)
37875 return 0;
37876   ;
37877   return 0;
37878 }
37879 _ACEOF
37880 rm -f conftest.$ac_objext
37881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37882   (eval $ac_compile) 2>conftest.er1
37883   ac_status=$?
37884   grep -v '^ *+' conftest.er1 >conftest.err
37885   rm -f conftest.er1
37886   cat conftest.err >&5
37887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888   (exit $ac_status); } &&
37889          { ac_try='test -z "$ac_c_werror_flag"
37890                          || test ! -s conftest.err'
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); }; } &&
37896          { ac_try='test -s conftest.$ac_objext'
37897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37898   (eval $ac_try) 2>&5
37899   ac_status=$?
37900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37901   (exit $ac_status); }; }; then
37902   ac_cv_member_struct_passwd_pw_gecos=yes
37903 else
37904   echo "$as_me: failed program was:" >&5
37905 sed 's/^/| /' conftest.$ac_ext >&5
37906
37907 cat >conftest.$ac_ext <<_ACEOF
37908 /* confdefs.h.  */
37909 _ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h.  */
37913 $ac_includes_default
37914 #include <pwd.h>
37915
37916 int
37917 main ()
37918 {
37919 static struct passwd ac_aggr;
37920 if (sizeof ac_aggr.pw_gecos)
37921 return 0;
37922   ;
37923   return 0;
37924 }
37925 _ACEOF
37926 rm -f conftest.$ac_objext
37927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37928   (eval $ac_compile) 2>conftest.er1
37929   ac_status=$?
37930   grep -v '^ *+' conftest.er1 >conftest.err
37931   rm -f conftest.er1
37932   cat conftest.err >&5
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); } &&
37935          { ac_try='test -z "$ac_c_werror_flag"
37936                          || test ! -s conftest.err'
37937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37938   (eval $ac_try) 2>&5
37939   ac_status=$?
37940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941   (exit $ac_status); }; } &&
37942          { ac_try='test -s conftest.$ac_objext'
37943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37944   (eval $ac_try) 2>&5
37945   ac_status=$?
37946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947   (exit $ac_status); }; }; then
37948   ac_cv_member_struct_passwd_pw_gecos=yes
37949 else
37950   echo "$as_me: failed program was:" >&5
37951 sed 's/^/| /' conftest.$ac_ext >&5
37952
37953 ac_cv_member_struct_passwd_pw_gecos=no
37954 fi
37955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37956 fi
37957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37958 fi
37959 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
37960 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
37961 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
37962
37963 cat >>confdefs.h <<_ACEOF
37964 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
37965 _ACEOF
37966
37967
37968 fi
37969
37970 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
37971 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
37972 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
37973   echo $ECHO_N "(cached) $ECHO_C" >&6
37974 else
37975   cat >conftest.$ac_ext <<_ACEOF
37976 /* confdefs.h.  */
37977 _ACEOF
37978 cat confdefs.h >>conftest.$ac_ext
37979 cat >>conftest.$ac_ext <<_ACEOF
37980 /* end confdefs.h.  */
37981 $ac_includes_default
37982 #include <pwd.h>
37983
37984 int
37985 main ()
37986 {
37987 static struct passwd ac_aggr;
37988 if (ac_aggr.pw_passwd)
37989 return 0;
37990   ;
37991   return 0;
37992 }
37993 _ACEOF
37994 rm -f conftest.$ac_objext
37995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37996   (eval $ac_compile) 2>conftest.er1
37997   ac_status=$?
37998   grep -v '^ *+' conftest.er1 >conftest.err
37999   rm -f conftest.er1
38000   cat conftest.err >&5
38001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002   (exit $ac_status); } &&
38003          { ac_try='test -z "$ac_c_werror_flag"
38004                          || test ! -s conftest.err'
38005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38006   (eval $ac_try) 2>&5
38007   ac_status=$?
38008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38009   (exit $ac_status); }; } &&
38010          { ac_try='test -s conftest.$ac_objext'
38011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38012   (eval $ac_try) 2>&5
38013   ac_status=$?
38014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38015   (exit $ac_status); }; }; then
38016   ac_cv_member_struct_passwd_pw_passwd=yes
38017 else
38018   echo "$as_me: failed program was:" >&5
38019 sed 's/^/| /' conftest.$ac_ext >&5
38020
38021 cat >conftest.$ac_ext <<_ACEOF
38022 /* confdefs.h.  */
38023 _ACEOF
38024 cat confdefs.h >>conftest.$ac_ext
38025 cat >>conftest.$ac_ext <<_ACEOF
38026 /* end confdefs.h.  */
38027 $ac_includes_default
38028 #include <pwd.h>
38029
38030 int
38031 main ()
38032 {
38033 static struct passwd ac_aggr;
38034 if (sizeof ac_aggr.pw_passwd)
38035 return 0;
38036   ;
38037   return 0;
38038 }
38039 _ACEOF
38040 rm -f conftest.$ac_objext
38041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38042   (eval $ac_compile) 2>conftest.er1
38043   ac_status=$?
38044   grep -v '^ *+' conftest.er1 >conftest.err
38045   rm -f conftest.er1
38046   cat conftest.err >&5
38047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048   (exit $ac_status); } &&
38049          { ac_try='test -z "$ac_c_werror_flag"
38050                          || test ! -s conftest.err'
38051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052   (eval $ac_try) 2>&5
38053   ac_status=$?
38054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055   (exit $ac_status); }; } &&
38056          { ac_try='test -s conftest.$ac_objext'
38057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38058   (eval $ac_try) 2>&5
38059   ac_status=$?
38060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061   (exit $ac_status); }; }; then
38062   ac_cv_member_struct_passwd_pw_passwd=yes
38063 else
38064   echo "$as_me: failed program was:" >&5
38065 sed 's/^/| /' conftest.$ac_ext >&5
38066
38067 ac_cv_member_struct_passwd_pw_passwd=no
38068 fi
38069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38070 fi
38071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38072 fi
38073 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
38074 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
38075 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
38076
38077 cat >>confdefs.h <<_ACEOF
38078 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
38079 _ACEOF
38080
38081
38082 fi
38083
38084
38085 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
38086 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
38087 if test "${ol_cv_c_upper_lower+set}" = set; then
38088   echo $ECHO_N "(cached) $ECHO_C" >&6
38089 else
38090
38091         if test "$cross_compiling" = yes; then
38092   ol_cv_c_upper_lower=safe
38093 else
38094   cat >conftest.$ac_ext <<_ACEOF
38095 /* confdefs.h.  */
38096 _ACEOF
38097 cat confdefs.h >>conftest.$ac_ext
38098 cat >>conftest.$ac_ext <<_ACEOF
38099 /* end confdefs.h.  */
38100
38101 #include <ctype.h>
38102 main()
38103 {
38104         if ('C' == toupper('C'))
38105                 exit(0);
38106         else
38107                 exit(1);
38108 }
38109 _ACEOF
38110 rm -f conftest$ac_exeext
38111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38112   (eval $ac_link) 2>&5
38113   ac_status=$?
38114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38117   (eval $ac_try) 2>&5
38118   ac_status=$?
38119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120   (exit $ac_status); }; }; then
38121   ol_cv_c_upper_lower=no
38122 else
38123   echo "$as_me: program exited with status $ac_status" >&5
38124 echo "$as_me: failed program was:" >&5
38125 sed 's/^/| /' conftest.$ac_ext >&5
38126
38127 ( exit $ac_status )
38128 ol_cv_c_upper_lower=yes
38129 fi
38130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38131 fi
38132 fi
38133 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
38134 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
38135 if test $ol_cv_c_upper_lower != no ; then
38136
38137 cat >>confdefs.h <<\_ACEOF
38138 #define C_UPPER_LOWER 1
38139 _ACEOF
38140
38141 fi
38142
38143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
38144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
38145 if test "${ac_cv_c_const+set}" = set; then
38146   echo $ECHO_N "(cached) $ECHO_C" >&6
38147 else
38148   cat >conftest.$ac_ext <<_ACEOF
38149 /* confdefs.h.  */
38150 _ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h.  */
38154
38155 int
38156 main ()
38157 {
38158 /* FIXME: Include the comments suggested by Paul. */
38159 #ifndef __cplusplus
38160   /* Ultrix mips cc rejects this.  */
38161   typedef int charset[2];
38162   const charset x;
38163   /* SunOS 4.1.1 cc rejects this.  */
38164   char const *const *ccp;
38165   char **p;
38166   /* NEC SVR4.0.2 mips cc rejects this.  */
38167   struct point {int x, y;};
38168   static struct point const zero = {0,0};
38169   /* AIX XL C 1.02.0.0 rejects this.
38170      It does not let you subtract one const X* pointer from another in
38171      an arm of an if-expression whose if-part is not a constant
38172      expression */
38173   const char *g = "string";
38174   ccp = &g + (g ? g-g : 0);
38175   /* HPUX 7.0 cc rejects these. */
38176   ++ccp;
38177   p = (char**) ccp;
38178   ccp = (char const *const *) p;
38179   { /* SCO 3.2v4 cc rejects this.  */
38180     char *t;
38181     char const *s = 0 ? (char *) 0 : (char const *) 0;
38182
38183     *t++ = 0;
38184   }
38185   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
38186     int x[] = {25, 17};
38187     const int *foo = &x[0];
38188     ++foo;
38189   }
38190   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
38191     typedef const int *iptr;
38192     iptr p = 0;
38193     ++p;
38194   }
38195   { /* AIX XL C 1.02.0.0 rejects this saying
38196        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
38197     struct s { int j; const int *ap[3]; };
38198     struct s *b; b->j = 5;
38199   }
38200   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
38201     const int foo = 10;
38202   }
38203 #endif
38204
38205   ;
38206   return 0;
38207 }
38208 _ACEOF
38209 rm -f conftest.$ac_objext
38210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38211   (eval $ac_compile) 2>conftest.er1
38212   ac_status=$?
38213   grep -v '^ *+' conftest.er1 >conftest.err
38214   rm -f conftest.er1
38215   cat conftest.err >&5
38216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217   (exit $ac_status); } &&
38218          { ac_try='test -z "$ac_c_werror_flag"
38219                          || test ! -s conftest.err'
38220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38221   (eval $ac_try) 2>&5
38222   ac_status=$?
38223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38224   (exit $ac_status); }; } &&
38225          { ac_try='test -s conftest.$ac_objext'
38226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38227   (eval $ac_try) 2>&5
38228   ac_status=$?
38229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38230   (exit $ac_status); }; }; then
38231   ac_cv_c_const=yes
38232 else
38233   echo "$as_me: failed program was:" >&5
38234 sed 's/^/| /' conftest.$ac_ext >&5
38235
38236 ac_cv_c_const=no
38237 fi
38238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38239 fi
38240 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
38241 echo "${ECHO_T}$ac_cv_c_const" >&6
38242 if test $ac_cv_c_const = no; then
38243
38244 cat >>confdefs.h <<\_ACEOF
38245 #define const
38246 _ACEOF
38247
38248 fi
38249
38250 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
38251 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
38252 if test "${ol_cv_c_volatile+set}" = set; then
38253   echo $ECHO_N "(cached) $ECHO_C" >&6
38254 else
38255   cat >conftest.$ac_ext <<_ACEOF
38256 /* confdefs.h.  */
38257 _ACEOF
38258 cat confdefs.h >>conftest.$ac_ext
38259 cat >>conftest.$ac_ext <<_ACEOF
38260 /* end confdefs.h.  */
38261 int x, y, z;
38262 int
38263 main ()
38264 {
38265 volatile int a; int * volatile b = x ? &y : &z;
38266       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
38267       *b = 0;
38268   ;
38269   return 0;
38270 }
38271 _ACEOF
38272 rm -f conftest.$ac_objext
38273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38274   (eval $ac_compile) 2>conftest.er1
38275   ac_status=$?
38276   grep -v '^ *+' conftest.er1 >conftest.err
38277   rm -f conftest.er1
38278   cat conftest.err >&5
38279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38280   (exit $ac_status); } &&
38281          { ac_try='test -z "$ac_c_werror_flag"
38282                          || test ! -s conftest.err'
38283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38284   (eval $ac_try) 2>&5
38285   ac_status=$?
38286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38287   (exit $ac_status); }; } &&
38288          { ac_try='test -s conftest.$ac_objext'
38289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38290   (eval $ac_try) 2>&5
38291   ac_status=$?
38292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293   (exit $ac_status); }; }; then
38294   ol_cv_c_volatile=yes
38295 else
38296   echo "$as_me: failed program was:" >&5
38297 sed 's/^/| /' conftest.$ac_ext >&5
38298
38299 ol_cv_c_volatile=no
38300 fi
38301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38302 fi
38303 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
38304 echo "${ECHO_T}$ol_cv_c_volatile" >&6
38305   if test $ol_cv_c_volatile = yes; then
38306     :
38307   else
38308
38309 cat >>confdefs.h <<\_ACEOF
38310 #define volatile
38311 _ACEOF
38312
38313   fi
38314
38315
38316 if test $cross_compiling = yes ; then
38317         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
38318 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
38319
38320 cat >>confdefs.h <<\_ACEOF
38321 #define CROSS_COMPILING 1
38322 _ACEOF
38323
38324 else
38325         echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
38326 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
38327 if test "${ac_cv_c_bigendian+set}" = set; then
38328   echo $ECHO_N "(cached) $ECHO_C" >&6
38329 else
38330   # See if sys/param.h defines the BYTE_ORDER macro.
38331 cat >conftest.$ac_ext <<_ACEOF
38332 /* confdefs.h.  */
38333 _ACEOF
38334 cat confdefs.h >>conftest.$ac_ext
38335 cat >>conftest.$ac_ext <<_ACEOF
38336 /* end confdefs.h.  */
38337 #include <sys/types.h>
38338 #include <sys/param.h>
38339
38340 int
38341 main ()
38342 {
38343 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
38344  bogus endian macros
38345 #endif
38346
38347   ;
38348   return 0;
38349 }
38350 _ACEOF
38351 rm -f conftest.$ac_objext
38352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38353   (eval $ac_compile) 2>conftest.er1
38354   ac_status=$?
38355   grep -v '^ *+' conftest.er1 >conftest.err
38356   rm -f conftest.er1
38357   cat conftest.err >&5
38358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38359   (exit $ac_status); } &&
38360          { ac_try='test -z "$ac_c_werror_flag"
38361                          || test ! -s conftest.err'
38362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38363   (eval $ac_try) 2>&5
38364   ac_status=$?
38365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38366   (exit $ac_status); }; } &&
38367          { ac_try='test -s conftest.$ac_objext'
38368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38369   (eval $ac_try) 2>&5
38370   ac_status=$?
38371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38372   (exit $ac_status); }; }; then
38373   # It does; now see whether it defined to BIG_ENDIAN or not.
38374 cat >conftest.$ac_ext <<_ACEOF
38375 /* confdefs.h.  */
38376 _ACEOF
38377 cat confdefs.h >>conftest.$ac_ext
38378 cat >>conftest.$ac_ext <<_ACEOF
38379 /* end confdefs.h.  */
38380 #include <sys/types.h>
38381 #include <sys/param.h>
38382
38383 int
38384 main ()
38385 {
38386 #if BYTE_ORDER != BIG_ENDIAN
38387  not big endian
38388 #endif
38389
38390   ;
38391   return 0;
38392 }
38393 _ACEOF
38394 rm -f conftest.$ac_objext
38395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38396   (eval $ac_compile) 2>conftest.er1
38397   ac_status=$?
38398   grep -v '^ *+' conftest.er1 >conftest.err
38399   rm -f conftest.er1
38400   cat conftest.err >&5
38401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38402   (exit $ac_status); } &&
38403          { ac_try='test -z "$ac_c_werror_flag"
38404                          || test ! -s conftest.err'
38405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38406   (eval $ac_try) 2>&5
38407   ac_status=$?
38408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409   (exit $ac_status); }; } &&
38410          { ac_try='test -s conftest.$ac_objext'
38411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38412   (eval $ac_try) 2>&5
38413   ac_status=$?
38414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38415   (exit $ac_status); }; }; then
38416   ac_cv_c_bigendian=yes
38417 else
38418   echo "$as_me: failed program was:" >&5
38419 sed 's/^/| /' conftest.$ac_ext >&5
38420
38421 ac_cv_c_bigendian=no
38422 fi
38423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38424 else
38425   echo "$as_me: failed program was:" >&5
38426 sed 's/^/| /' conftest.$ac_ext >&5
38427
38428 # It does not; compile a test program.
38429 if test "$cross_compiling" = yes; then
38430   # try to guess the endianness by grepping values into an object file
38431   ac_cv_c_bigendian=unknown
38432   cat >conftest.$ac_ext <<_ACEOF
38433 /* confdefs.h.  */
38434 _ACEOF
38435 cat confdefs.h >>conftest.$ac_ext
38436 cat >>conftest.$ac_ext <<_ACEOF
38437 /* end confdefs.h.  */
38438 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
38439 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
38440 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
38441 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
38442 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
38443 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
38444 int
38445 main ()
38446 {
38447  _ascii (); _ebcdic ();
38448   ;
38449   return 0;
38450 }
38451 _ACEOF
38452 rm -f conftest.$ac_objext
38453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38454   (eval $ac_compile) 2>conftest.er1
38455   ac_status=$?
38456   grep -v '^ *+' conftest.er1 >conftest.err
38457   rm -f conftest.er1
38458   cat conftest.err >&5
38459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460   (exit $ac_status); } &&
38461          { ac_try='test -z "$ac_c_werror_flag"
38462                          || test ! -s conftest.err'
38463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38464   (eval $ac_try) 2>&5
38465   ac_status=$?
38466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38467   (exit $ac_status); }; } &&
38468          { ac_try='test -s conftest.$ac_objext'
38469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38470   (eval $ac_try) 2>&5
38471   ac_status=$?
38472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38473   (exit $ac_status); }; }; then
38474   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
38475   ac_cv_c_bigendian=yes
38476 fi
38477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
38478   if test "$ac_cv_c_bigendian" = unknown; then
38479     ac_cv_c_bigendian=no
38480   else
38481     # finding both strings is unlikely to happen, but who knows?
38482     ac_cv_c_bigendian=unknown
38483   fi
38484 fi
38485 else
38486   echo "$as_me: failed program was:" >&5
38487 sed 's/^/| /' conftest.$ac_ext >&5
38488
38489 fi
38490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38491 else
38492   cat >conftest.$ac_ext <<_ACEOF
38493 /* confdefs.h.  */
38494 _ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h.  */
38498 int
38499 main ()
38500 {
38501   /* Are we little or big endian?  From Harbison&Steele.  */
38502   union
38503   {
38504     long l;
38505     char c[sizeof (long)];
38506   } u;
38507   u.l = 1;
38508   exit (u.c[sizeof (long) - 1] == 1);
38509 }
38510 _ACEOF
38511 rm -f conftest$ac_exeext
38512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38513   (eval $ac_link) 2>&5
38514   ac_status=$?
38515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518   (eval $ac_try) 2>&5
38519   ac_status=$?
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); }; }; then
38522   ac_cv_c_bigendian=no
38523 else
38524   echo "$as_me: program exited with status $ac_status" >&5
38525 echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38527
38528 ( exit $ac_status )
38529 ac_cv_c_bigendian=yes
38530 fi
38531 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38532 fi
38533 fi
38534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38535 fi
38536 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
38537 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
38538 case $ac_cv_c_bigendian in
38539   yes)
38540
38541 cat >>confdefs.h <<\_ACEOF
38542 #define WORDS_BIGENDIAN 1
38543 _ACEOF
38544  ;;
38545   no)
38546      ;;
38547   *)
38548     { { echo "$as_me:$LINENO: error: unknown endianness
38549 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
38550 echo "$as_me: error: unknown endianness
38551 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
38552    { (exit 1); exit 1; }; } ;;
38553 esac
38554
38555 fi
38556
38557 echo "$as_me:$LINENO: checking for short" >&5
38558 echo $ECHO_N "checking for short... $ECHO_C" >&6
38559 if test "${ac_cv_type_short+set}" = set; then
38560   echo $ECHO_N "(cached) $ECHO_C" >&6
38561 else
38562   cat >conftest.$ac_ext <<_ACEOF
38563 /* confdefs.h.  */
38564 _ACEOF
38565 cat confdefs.h >>conftest.$ac_ext
38566 cat >>conftest.$ac_ext <<_ACEOF
38567 /* end confdefs.h.  */
38568 $ac_includes_default
38569 int
38570 main ()
38571 {
38572 if ((short *) 0)
38573   return 0;
38574 if (sizeof (short))
38575   return 0;
38576   ;
38577   return 0;
38578 }
38579 _ACEOF
38580 rm -f conftest.$ac_objext
38581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38582   (eval $ac_compile) 2>conftest.er1
38583   ac_status=$?
38584   grep -v '^ *+' conftest.er1 >conftest.err
38585   rm -f conftest.er1
38586   cat conftest.err >&5
38587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588   (exit $ac_status); } &&
38589          { ac_try='test -z "$ac_c_werror_flag"
38590                          || test ! -s conftest.err'
38591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38592   (eval $ac_try) 2>&5
38593   ac_status=$?
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); }; } &&
38596          { ac_try='test -s conftest.$ac_objext'
38597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598   (eval $ac_try) 2>&5
38599   ac_status=$?
38600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601   (exit $ac_status); }; }; then
38602   ac_cv_type_short=yes
38603 else
38604   echo "$as_me: failed program was:" >&5
38605 sed 's/^/| /' conftest.$ac_ext >&5
38606
38607 ac_cv_type_short=no
38608 fi
38609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38610 fi
38611 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
38612 echo "${ECHO_T}$ac_cv_type_short" >&6
38613
38614 echo "$as_me:$LINENO: checking size of short" >&5
38615 echo $ECHO_N "checking size of short... $ECHO_C" >&6
38616 if test "${ac_cv_sizeof_short+set}" = set; then
38617   echo $ECHO_N "(cached) $ECHO_C" >&6
38618 else
38619   if test "$ac_cv_type_short" = yes; then
38620   # The cast to unsigned long works around a bug in the HP C Compiler
38621   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38622   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38623   # This bug is HP SR number 8606223364.
38624   if test "$cross_compiling" = yes; then
38625   # Depending upon the size, compute the lo and hi bounds.
38626 cat >conftest.$ac_ext <<_ACEOF
38627 /* confdefs.h.  */
38628 _ACEOF
38629 cat confdefs.h >>conftest.$ac_ext
38630 cat >>conftest.$ac_ext <<_ACEOF
38631 /* end confdefs.h.  */
38632 $ac_includes_default
38633 int
38634 main ()
38635 {
38636 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
38637 test_array [0] = 0
38638
38639   ;
38640   return 0;
38641 }
38642 _ACEOF
38643 rm -f conftest.$ac_objext
38644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38645   (eval $ac_compile) 2>conftest.er1
38646   ac_status=$?
38647   grep -v '^ *+' conftest.er1 >conftest.err
38648   rm -f conftest.er1
38649   cat conftest.err >&5
38650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651   (exit $ac_status); } &&
38652          { ac_try='test -z "$ac_c_werror_flag"
38653                          || test ! -s conftest.err'
38654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38655   (eval $ac_try) 2>&5
38656   ac_status=$?
38657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38658   (exit $ac_status); }; } &&
38659          { ac_try='test -s conftest.$ac_objext'
38660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661   (eval $ac_try) 2>&5
38662   ac_status=$?
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); }; }; then
38665   ac_lo=0 ac_mid=0
38666   while :; do
38667     cat >conftest.$ac_ext <<_ACEOF
38668 /* confdefs.h.  */
38669 _ACEOF
38670 cat confdefs.h >>conftest.$ac_ext
38671 cat >>conftest.$ac_ext <<_ACEOF
38672 /* end confdefs.h.  */
38673 $ac_includes_default
38674 int
38675 main ()
38676 {
38677 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38678 test_array [0] = 0
38679
38680   ;
38681   return 0;
38682 }
38683 _ACEOF
38684 rm -f conftest.$ac_objext
38685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38686   (eval $ac_compile) 2>conftest.er1
38687   ac_status=$?
38688   grep -v '^ *+' conftest.er1 >conftest.err
38689   rm -f conftest.er1
38690   cat conftest.err >&5
38691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38692   (exit $ac_status); } &&
38693          { ac_try='test -z "$ac_c_werror_flag"
38694                          || test ! -s conftest.err'
38695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38696   (eval $ac_try) 2>&5
38697   ac_status=$?
38698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38699   (exit $ac_status); }; } &&
38700          { ac_try='test -s conftest.$ac_objext'
38701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38702   (eval $ac_try) 2>&5
38703   ac_status=$?
38704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38705   (exit $ac_status); }; }; then
38706   ac_hi=$ac_mid; break
38707 else
38708   echo "$as_me: failed program was:" >&5
38709 sed 's/^/| /' conftest.$ac_ext >&5
38710
38711 ac_lo=`expr $ac_mid + 1`
38712                     if test $ac_lo -le $ac_mid; then
38713                       ac_lo= ac_hi=
38714                       break
38715                     fi
38716                     ac_mid=`expr 2 '*' $ac_mid + 1`
38717 fi
38718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38719   done
38720 else
38721   echo "$as_me: failed program was:" >&5
38722 sed 's/^/| /' conftest.$ac_ext >&5
38723
38724 cat >conftest.$ac_ext <<_ACEOF
38725 /* confdefs.h.  */
38726 _ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h.  */
38730 $ac_includes_default
38731 int
38732 main ()
38733 {
38734 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
38735 test_array [0] = 0
38736
38737   ;
38738   return 0;
38739 }
38740 _ACEOF
38741 rm -f conftest.$ac_objext
38742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38743   (eval $ac_compile) 2>conftest.er1
38744   ac_status=$?
38745   grep -v '^ *+' conftest.er1 >conftest.err
38746   rm -f conftest.er1
38747   cat conftest.err >&5
38748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749   (exit $ac_status); } &&
38750          { ac_try='test -z "$ac_c_werror_flag"
38751                          || test ! -s conftest.err'
38752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38753   (eval $ac_try) 2>&5
38754   ac_status=$?
38755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38756   (exit $ac_status); }; } &&
38757          { ac_try='test -s conftest.$ac_objext'
38758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38759   (eval $ac_try) 2>&5
38760   ac_status=$?
38761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762   (exit $ac_status); }; }; then
38763   ac_hi=-1 ac_mid=-1
38764   while :; do
38765     cat >conftest.$ac_ext <<_ACEOF
38766 /* confdefs.h.  */
38767 _ACEOF
38768 cat confdefs.h >>conftest.$ac_ext
38769 cat >>conftest.$ac_ext <<_ACEOF
38770 /* end confdefs.h.  */
38771 $ac_includes_default
38772 int
38773 main ()
38774 {
38775 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
38776 test_array [0] = 0
38777
38778   ;
38779   return 0;
38780 }
38781 _ACEOF
38782 rm -f conftest.$ac_objext
38783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38784   (eval $ac_compile) 2>conftest.er1
38785   ac_status=$?
38786   grep -v '^ *+' conftest.er1 >conftest.err
38787   rm -f conftest.er1
38788   cat conftest.err >&5
38789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38790   (exit $ac_status); } &&
38791          { ac_try='test -z "$ac_c_werror_flag"
38792                          || test ! -s conftest.err'
38793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38794   (eval $ac_try) 2>&5
38795   ac_status=$?
38796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38797   (exit $ac_status); }; } &&
38798          { ac_try='test -s conftest.$ac_objext'
38799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38800   (eval $ac_try) 2>&5
38801   ac_status=$?
38802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38803   (exit $ac_status); }; }; then
38804   ac_lo=$ac_mid; break
38805 else
38806   echo "$as_me: failed program was:" >&5
38807 sed 's/^/| /' conftest.$ac_ext >&5
38808
38809 ac_hi=`expr '(' $ac_mid ')' - 1`
38810                        if test $ac_mid -le $ac_hi; then
38811                          ac_lo= ac_hi=
38812                          break
38813                        fi
38814                        ac_mid=`expr 2 '*' $ac_mid`
38815 fi
38816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38817   done
38818 else
38819   echo "$as_me: failed program was:" >&5
38820 sed 's/^/| /' conftest.$ac_ext >&5
38821
38822 ac_lo= ac_hi=
38823 fi
38824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38825 fi
38826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38827 # Binary search between lo and hi bounds.
38828 while test "x$ac_lo" != "x$ac_hi"; do
38829   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38830   cat >conftest.$ac_ext <<_ACEOF
38831 /* confdefs.h.  */
38832 _ACEOF
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h.  */
38836 $ac_includes_default
38837 int
38838 main ()
38839 {
38840 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
38841 test_array [0] = 0
38842
38843   ;
38844   return 0;
38845 }
38846 _ACEOF
38847 rm -f conftest.$ac_objext
38848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38849   (eval $ac_compile) 2>conftest.er1
38850   ac_status=$?
38851   grep -v '^ *+' conftest.er1 >conftest.err
38852   rm -f conftest.er1
38853   cat conftest.err >&5
38854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855   (exit $ac_status); } &&
38856          { ac_try='test -z "$ac_c_werror_flag"
38857                          || test ! -s conftest.err'
38858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38859   (eval $ac_try) 2>&5
38860   ac_status=$?
38861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862   (exit $ac_status); }; } &&
38863          { ac_try='test -s conftest.$ac_objext'
38864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38865   (eval $ac_try) 2>&5
38866   ac_status=$?
38867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38868   (exit $ac_status); }; }; then
38869   ac_hi=$ac_mid
38870 else
38871   echo "$as_me: failed program was:" >&5
38872 sed 's/^/| /' conftest.$ac_ext >&5
38873
38874 ac_lo=`expr '(' $ac_mid ')' + 1`
38875 fi
38876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38877 done
38878 case $ac_lo in
38879 ?*) ac_cv_sizeof_short=$ac_lo;;
38880 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38881 See \`config.log' for more details." >&5
38882 echo "$as_me: error: cannot compute sizeof (short), 77
38883 See \`config.log' for more details." >&2;}
38884    { (exit 1); exit 1; }; } ;;
38885 esac
38886 else
38887   if test "$cross_compiling" = yes; then
38888   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38889 See \`config.log' for more details." >&5
38890 echo "$as_me: error: cannot run test program while cross compiling
38891 See \`config.log' for more details." >&2;}
38892    { (exit 1); exit 1; }; }
38893 else
38894   cat >conftest.$ac_ext <<_ACEOF
38895 /* confdefs.h.  */
38896 _ACEOF
38897 cat confdefs.h >>conftest.$ac_ext
38898 cat >>conftest.$ac_ext <<_ACEOF
38899 /* end confdefs.h.  */
38900 $ac_includes_default
38901 long longval () { return (long) (sizeof (short)); }
38902 unsigned long ulongval () { return (long) (sizeof (short)); }
38903 #include <stdio.h>
38904 #include <stdlib.h>
38905 int
38906 main ()
38907 {
38908
38909   FILE *f = fopen ("conftest.val", "w");
38910   if (! f)
38911     exit (1);
38912   if (((long) (sizeof (short))) < 0)
38913     {
38914       long i = longval ();
38915       if (i != ((long) (sizeof (short))))
38916         exit (1);
38917       fprintf (f, "%ld\n", i);
38918     }
38919   else
38920     {
38921       unsigned long i = ulongval ();
38922       if (i != ((long) (sizeof (short))))
38923         exit (1);
38924       fprintf (f, "%lu\n", i);
38925     }
38926   exit (ferror (f) || fclose (f) != 0);
38927
38928   ;
38929   return 0;
38930 }
38931 _ACEOF
38932 rm -f conftest$ac_exeext
38933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38934   (eval $ac_link) 2>&5
38935   ac_status=$?
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38939   (eval $ac_try) 2>&5
38940   ac_status=$?
38941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38942   (exit $ac_status); }; }; then
38943   ac_cv_sizeof_short=`cat conftest.val`
38944 else
38945   echo "$as_me: program exited with status $ac_status" >&5
38946 echo "$as_me: failed program was:" >&5
38947 sed 's/^/| /' conftest.$ac_ext >&5
38948
38949 ( exit $ac_status )
38950 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
38951 See \`config.log' for more details." >&5
38952 echo "$as_me: error: cannot compute sizeof (short), 77
38953 See \`config.log' for more details." >&2;}
38954    { (exit 1); exit 1; }; }
38955 fi
38956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38957 fi
38958 fi
38959 rm -f conftest.val
38960 else
38961   ac_cv_sizeof_short=0
38962 fi
38963 fi
38964 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
38965 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
38966 cat >>confdefs.h <<_ACEOF
38967 #define SIZEOF_SHORT $ac_cv_sizeof_short
38968 _ACEOF
38969
38970
38971 echo "$as_me:$LINENO: checking for int" >&5
38972 echo $ECHO_N "checking for int... $ECHO_C" >&6
38973 if test "${ac_cv_type_int+set}" = set; then
38974   echo $ECHO_N "(cached) $ECHO_C" >&6
38975 else
38976   cat >conftest.$ac_ext <<_ACEOF
38977 /* confdefs.h.  */
38978 _ACEOF
38979 cat confdefs.h >>conftest.$ac_ext
38980 cat >>conftest.$ac_ext <<_ACEOF
38981 /* end confdefs.h.  */
38982 $ac_includes_default
38983 int
38984 main ()
38985 {
38986 if ((int *) 0)
38987   return 0;
38988 if (sizeof (int))
38989   return 0;
38990   ;
38991   return 0;
38992 }
38993 _ACEOF
38994 rm -f conftest.$ac_objext
38995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38996   (eval $ac_compile) 2>conftest.er1
38997   ac_status=$?
38998   grep -v '^ *+' conftest.er1 >conftest.err
38999   rm -f conftest.er1
39000   cat conftest.err >&5
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); } &&
39003          { ac_try='test -z "$ac_c_werror_flag"
39004                          || test ! -s conftest.err'
39005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39006   (eval $ac_try) 2>&5
39007   ac_status=$?
39008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009   (exit $ac_status); }; } &&
39010          { ac_try='test -s conftest.$ac_objext'
39011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39012   (eval $ac_try) 2>&5
39013   ac_status=$?
39014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015   (exit $ac_status); }; }; then
39016   ac_cv_type_int=yes
39017 else
39018   echo "$as_me: failed program was:" >&5
39019 sed 's/^/| /' conftest.$ac_ext >&5
39020
39021 ac_cv_type_int=no
39022 fi
39023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39024 fi
39025 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
39026 echo "${ECHO_T}$ac_cv_type_int" >&6
39027
39028 echo "$as_me:$LINENO: checking size of int" >&5
39029 echo $ECHO_N "checking size of int... $ECHO_C" >&6
39030 if test "${ac_cv_sizeof_int+set}" = set; then
39031   echo $ECHO_N "(cached) $ECHO_C" >&6
39032 else
39033   if test "$ac_cv_type_int" = yes; then
39034   # The cast to unsigned long works around a bug in the HP C Compiler
39035   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39036   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39037   # This bug is HP SR number 8606223364.
39038   if test "$cross_compiling" = yes; then
39039   # Depending upon the size, compute the lo and hi bounds.
39040 cat >conftest.$ac_ext <<_ACEOF
39041 /* confdefs.h.  */
39042 _ACEOF
39043 cat confdefs.h >>conftest.$ac_ext
39044 cat >>conftest.$ac_ext <<_ACEOF
39045 /* end confdefs.h.  */
39046 $ac_includes_default
39047 int
39048 main ()
39049 {
39050 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
39051 test_array [0] = 0
39052
39053   ;
39054   return 0;
39055 }
39056 _ACEOF
39057 rm -f conftest.$ac_objext
39058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39059   (eval $ac_compile) 2>conftest.er1
39060   ac_status=$?
39061   grep -v '^ *+' conftest.er1 >conftest.err
39062   rm -f conftest.er1
39063   cat conftest.err >&5
39064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065   (exit $ac_status); } &&
39066          { ac_try='test -z "$ac_c_werror_flag"
39067                          || test ! -s conftest.err'
39068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39069   (eval $ac_try) 2>&5
39070   ac_status=$?
39071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39072   (exit $ac_status); }; } &&
39073          { ac_try='test -s conftest.$ac_objext'
39074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39075   (eval $ac_try) 2>&5
39076   ac_status=$?
39077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39078   (exit $ac_status); }; }; then
39079   ac_lo=0 ac_mid=0
39080   while :; do
39081     cat >conftest.$ac_ext <<_ACEOF
39082 /* confdefs.h.  */
39083 _ACEOF
39084 cat confdefs.h >>conftest.$ac_ext
39085 cat >>conftest.$ac_ext <<_ACEOF
39086 /* end confdefs.h.  */
39087 $ac_includes_default
39088 int
39089 main ()
39090 {
39091 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39092 test_array [0] = 0
39093
39094   ;
39095   return 0;
39096 }
39097 _ACEOF
39098 rm -f conftest.$ac_objext
39099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39100   (eval $ac_compile) 2>conftest.er1
39101   ac_status=$?
39102   grep -v '^ *+' conftest.er1 >conftest.err
39103   rm -f conftest.er1
39104   cat conftest.err >&5
39105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106   (exit $ac_status); } &&
39107          { ac_try='test -z "$ac_c_werror_flag"
39108                          || test ! -s conftest.err'
39109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39110   (eval $ac_try) 2>&5
39111   ac_status=$?
39112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39113   (exit $ac_status); }; } &&
39114          { ac_try='test -s conftest.$ac_objext'
39115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39116   (eval $ac_try) 2>&5
39117   ac_status=$?
39118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119   (exit $ac_status); }; }; then
39120   ac_hi=$ac_mid; break
39121 else
39122   echo "$as_me: failed program was:" >&5
39123 sed 's/^/| /' conftest.$ac_ext >&5
39124
39125 ac_lo=`expr $ac_mid + 1`
39126                     if test $ac_lo -le $ac_mid; then
39127                       ac_lo= ac_hi=
39128                       break
39129                     fi
39130                     ac_mid=`expr 2 '*' $ac_mid + 1`
39131 fi
39132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39133   done
39134 else
39135   echo "$as_me: failed program was:" >&5
39136 sed 's/^/| /' conftest.$ac_ext >&5
39137
39138 cat >conftest.$ac_ext <<_ACEOF
39139 /* confdefs.h.  */
39140 _ACEOF
39141 cat confdefs.h >>conftest.$ac_ext
39142 cat >>conftest.$ac_ext <<_ACEOF
39143 /* end confdefs.h.  */
39144 $ac_includes_default
39145 int
39146 main ()
39147 {
39148 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
39149 test_array [0] = 0
39150
39151   ;
39152   return 0;
39153 }
39154 _ACEOF
39155 rm -f conftest.$ac_objext
39156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39157   (eval $ac_compile) 2>conftest.er1
39158   ac_status=$?
39159   grep -v '^ *+' conftest.er1 >conftest.err
39160   rm -f conftest.er1
39161   cat conftest.err >&5
39162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163   (exit $ac_status); } &&
39164          { ac_try='test -z "$ac_c_werror_flag"
39165                          || test ! -s conftest.err'
39166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39167   (eval $ac_try) 2>&5
39168   ac_status=$?
39169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170   (exit $ac_status); }; } &&
39171          { ac_try='test -s conftest.$ac_objext'
39172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173   (eval $ac_try) 2>&5
39174   ac_status=$?
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); }; }; then
39177   ac_hi=-1 ac_mid=-1
39178   while :; do
39179     cat >conftest.$ac_ext <<_ACEOF
39180 /* confdefs.h.  */
39181 _ACEOF
39182 cat confdefs.h >>conftest.$ac_ext
39183 cat >>conftest.$ac_ext <<_ACEOF
39184 /* end confdefs.h.  */
39185 $ac_includes_default
39186 int
39187 main ()
39188 {
39189 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
39190 test_array [0] = 0
39191
39192   ;
39193   return 0;
39194 }
39195 _ACEOF
39196 rm -f conftest.$ac_objext
39197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39198   (eval $ac_compile) 2>conftest.er1
39199   ac_status=$?
39200   grep -v '^ *+' conftest.er1 >conftest.err
39201   rm -f conftest.er1
39202   cat conftest.err >&5
39203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204   (exit $ac_status); } &&
39205          { ac_try='test -z "$ac_c_werror_flag"
39206                          || test ! -s conftest.err'
39207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39208   (eval $ac_try) 2>&5
39209   ac_status=$?
39210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211   (exit $ac_status); }; } &&
39212          { ac_try='test -s conftest.$ac_objext'
39213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39214   (eval $ac_try) 2>&5
39215   ac_status=$?
39216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39217   (exit $ac_status); }; }; then
39218   ac_lo=$ac_mid; break
39219 else
39220   echo "$as_me: failed program was:" >&5
39221 sed 's/^/| /' conftest.$ac_ext >&5
39222
39223 ac_hi=`expr '(' $ac_mid ')' - 1`
39224                        if test $ac_mid -le $ac_hi; then
39225                          ac_lo= ac_hi=
39226                          break
39227                        fi
39228                        ac_mid=`expr 2 '*' $ac_mid`
39229 fi
39230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39231   done
39232 else
39233   echo "$as_me: failed program was:" >&5
39234 sed 's/^/| /' conftest.$ac_ext >&5
39235
39236 ac_lo= ac_hi=
39237 fi
39238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39239 fi
39240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39241 # Binary search between lo and hi bounds.
39242 while test "x$ac_lo" != "x$ac_hi"; do
39243   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39244   cat >conftest.$ac_ext <<_ACEOF
39245 /* confdefs.h.  */
39246 _ACEOF
39247 cat confdefs.h >>conftest.$ac_ext
39248 cat >>conftest.$ac_ext <<_ACEOF
39249 /* end confdefs.h.  */
39250 $ac_includes_default
39251 int
39252 main ()
39253 {
39254 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
39255 test_array [0] = 0
39256
39257   ;
39258   return 0;
39259 }
39260 _ACEOF
39261 rm -f conftest.$ac_objext
39262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39263   (eval $ac_compile) 2>conftest.er1
39264   ac_status=$?
39265   grep -v '^ *+' conftest.er1 >conftest.err
39266   rm -f conftest.er1
39267   cat conftest.err >&5
39268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269   (exit $ac_status); } &&
39270          { ac_try='test -z "$ac_c_werror_flag"
39271                          || test ! -s conftest.err'
39272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39273   (eval $ac_try) 2>&5
39274   ac_status=$?
39275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39276   (exit $ac_status); }; } &&
39277          { ac_try='test -s conftest.$ac_objext'
39278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39279   (eval $ac_try) 2>&5
39280   ac_status=$?
39281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39282   (exit $ac_status); }; }; then
39283   ac_hi=$ac_mid
39284 else
39285   echo "$as_me: failed program was:" >&5
39286 sed 's/^/| /' conftest.$ac_ext >&5
39287
39288 ac_lo=`expr '(' $ac_mid ')' + 1`
39289 fi
39290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39291 done
39292 case $ac_lo in
39293 ?*) ac_cv_sizeof_int=$ac_lo;;
39294 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39295 See \`config.log' for more details." >&5
39296 echo "$as_me: error: cannot compute sizeof (int), 77
39297 See \`config.log' for more details." >&2;}
39298    { (exit 1); exit 1; }; } ;;
39299 esac
39300 else
39301   if test "$cross_compiling" = yes; then
39302   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39303 See \`config.log' for more details." >&5
39304 echo "$as_me: error: cannot run test program while cross compiling
39305 See \`config.log' for more details." >&2;}
39306    { (exit 1); exit 1; }; }
39307 else
39308   cat >conftest.$ac_ext <<_ACEOF
39309 /* confdefs.h.  */
39310 _ACEOF
39311 cat confdefs.h >>conftest.$ac_ext
39312 cat >>conftest.$ac_ext <<_ACEOF
39313 /* end confdefs.h.  */
39314 $ac_includes_default
39315 long longval () { return (long) (sizeof (int)); }
39316 unsigned long ulongval () { return (long) (sizeof (int)); }
39317 #include <stdio.h>
39318 #include <stdlib.h>
39319 int
39320 main ()
39321 {
39322
39323   FILE *f = fopen ("conftest.val", "w");
39324   if (! f)
39325     exit (1);
39326   if (((long) (sizeof (int))) < 0)
39327     {
39328       long i = longval ();
39329       if (i != ((long) (sizeof (int))))
39330         exit (1);
39331       fprintf (f, "%ld\n", i);
39332     }
39333   else
39334     {
39335       unsigned long i = ulongval ();
39336       if (i != ((long) (sizeof (int))))
39337         exit (1);
39338       fprintf (f, "%lu\n", i);
39339     }
39340   exit (ferror (f) || fclose (f) != 0);
39341
39342   ;
39343   return 0;
39344 }
39345 _ACEOF
39346 rm -f conftest$ac_exeext
39347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39348   (eval $ac_link) 2>&5
39349   ac_status=$?
39350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39353   (eval $ac_try) 2>&5
39354   ac_status=$?
39355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39356   (exit $ac_status); }; }; then
39357   ac_cv_sizeof_int=`cat conftest.val`
39358 else
39359   echo "$as_me: program exited with status $ac_status" >&5
39360 echo "$as_me: failed program was:" >&5
39361 sed 's/^/| /' conftest.$ac_ext >&5
39362
39363 ( exit $ac_status )
39364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
39365 See \`config.log' for more details." >&5
39366 echo "$as_me: error: cannot compute sizeof (int), 77
39367 See \`config.log' for more details." >&2;}
39368    { (exit 1); exit 1; }; }
39369 fi
39370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39371 fi
39372 fi
39373 rm -f conftest.val
39374 else
39375   ac_cv_sizeof_int=0
39376 fi
39377 fi
39378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
39379 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
39380 cat >>confdefs.h <<_ACEOF
39381 #define SIZEOF_INT $ac_cv_sizeof_int
39382 _ACEOF
39383
39384
39385 echo "$as_me:$LINENO: checking for long" >&5
39386 echo $ECHO_N "checking for long... $ECHO_C" >&6
39387 if test "${ac_cv_type_long+set}" = set; then
39388   echo $ECHO_N "(cached) $ECHO_C" >&6
39389 else
39390   cat >conftest.$ac_ext <<_ACEOF
39391 /* confdefs.h.  */
39392 _ACEOF
39393 cat confdefs.h >>conftest.$ac_ext
39394 cat >>conftest.$ac_ext <<_ACEOF
39395 /* end confdefs.h.  */
39396 $ac_includes_default
39397 int
39398 main ()
39399 {
39400 if ((long *) 0)
39401   return 0;
39402 if (sizeof (long))
39403   return 0;
39404   ;
39405   return 0;
39406 }
39407 _ACEOF
39408 rm -f conftest.$ac_objext
39409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39410   (eval $ac_compile) 2>conftest.er1
39411   ac_status=$?
39412   grep -v '^ *+' conftest.er1 >conftest.err
39413   rm -f conftest.er1
39414   cat conftest.err >&5
39415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39416   (exit $ac_status); } &&
39417          { ac_try='test -z "$ac_c_werror_flag"
39418                          || test ! -s conftest.err'
39419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39420   (eval $ac_try) 2>&5
39421   ac_status=$?
39422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39423   (exit $ac_status); }; } &&
39424          { ac_try='test -s conftest.$ac_objext'
39425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39426   (eval $ac_try) 2>&5
39427   ac_status=$?
39428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429   (exit $ac_status); }; }; then
39430   ac_cv_type_long=yes
39431 else
39432   echo "$as_me: failed program was:" >&5
39433 sed 's/^/| /' conftest.$ac_ext >&5
39434
39435 ac_cv_type_long=no
39436 fi
39437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39438 fi
39439 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
39440 echo "${ECHO_T}$ac_cv_type_long" >&6
39441
39442 echo "$as_me:$LINENO: checking size of long" >&5
39443 echo $ECHO_N "checking size of long... $ECHO_C" >&6
39444 if test "${ac_cv_sizeof_long+set}" = set; then
39445   echo $ECHO_N "(cached) $ECHO_C" >&6
39446 else
39447   if test "$ac_cv_type_long" = yes; then
39448   # The cast to unsigned long works around a bug in the HP C Compiler
39449   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39450   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39451   # This bug is HP SR number 8606223364.
39452   if test "$cross_compiling" = yes; then
39453   # Depending upon the size, compute the lo and hi bounds.
39454 cat >conftest.$ac_ext <<_ACEOF
39455 /* confdefs.h.  */
39456 _ACEOF
39457 cat confdefs.h >>conftest.$ac_ext
39458 cat >>conftest.$ac_ext <<_ACEOF
39459 /* end confdefs.h.  */
39460 $ac_includes_default
39461 int
39462 main ()
39463 {
39464 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
39465 test_array [0] = 0
39466
39467   ;
39468   return 0;
39469 }
39470 _ACEOF
39471 rm -f conftest.$ac_objext
39472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39473   (eval $ac_compile) 2>conftest.er1
39474   ac_status=$?
39475   grep -v '^ *+' conftest.er1 >conftest.err
39476   rm -f conftest.er1
39477   cat conftest.err >&5
39478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39479   (exit $ac_status); } &&
39480          { ac_try='test -z "$ac_c_werror_flag"
39481                          || test ! -s conftest.err'
39482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483   (eval $ac_try) 2>&5
39484   ac_status=$?
39485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486   (exit $ac_status); }; } &&
39487          { ac_try='test -s conftest.$ac_objext'
39488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489   (eval $ac_try) 2>&5
39490   ac_status=$?
39491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492   (exit $ac_status); }; }; then
39493   ac_lo=0 ac_mid=0
39494   while :; do
39495     cat >conftest.$ac_ext <<_ACEOF
39496 /* confdefs.h.  */
39497 _ACEOF
39498 cat confdefs.h >>conftest.$ac_ext
39499 cat >>conftest.$ac_ext <<_ACEOF
39500 /* end confdefs.h.  */
39501 $ac_includes_default
39502 int
39503 main ()
39504 {
39505 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39506 test_array [0] = 0
39507
39508   ;
39509   return 0;
39510 }
39511 _ACEOF
39512 rm -f conftest.$ac_objext
39513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39514   (eval $ac_compile) 2>conftest.er1
39515   ac_status=$?
39516   grep -v '^ *+' conftest.er1 >conftest.err
39517   rm -f conftest.er1
39518   cat conftest.err >&5
39519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39520   (exit $ac_status); } &&
39521          { ac_try='test -z "$ac_c_werror_flag"
39522                          || test ! -s conftest.err'
39523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39524   (eval $ac_try) 2>&5
39525   ac_status=$?
39526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39527   (exit $ac_status); }; } &&
39528          { ac_try='test -s conftest.$ac_objext'
39529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39530   (eval $ac_try) 2>&5
39531   ac_status=$?
39532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39533   (exit $ac_status); }; }; then
39534   ac_hi=$ac_mid; break
39535 else
39536   echo "$as_me: failed program was:" >&5
39537 sed 's/^/| /' conftest.$ac_ext >&5
39538
39539 ac_lo=`expr $ac_mid + 1`
39540                     if test $ac_lo -le $ac_mid; then
39541                       ac_lo= ac_hi=
39542                       break
39543                     fi
39544                     ac_mid=`expr 2 '*' $ac_mid + 1`
39545 fi
39546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39547   done
39548 else
39549   echo "$as_me: failed program was:" >&5
39550 sed 's/^/| /' conftest.$ac_ext >&5
39551
39552 cat >conftest.$ac_ext <<_ACEOF
39553 /* confdefs.h.  */
39554 _ACEOF
39555 cat confdefs.h >>conftest.$ac_ext
39556 cat >>conftest.$ac_ext <<_ACEOF
39557 /* end confdefs.h.  */
39558 $ac_includes_default
39559 int
39560 main ()
39561 {
39562 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
39563 test_array [0] = 0
39564
39565   ;
39566   return 0;
39567 }
39568 _ACEOF
39569 rm -f conftest.$ac_objext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39571   (eval $ac_compile) 2>conftest.er1
39572   ac_status=$?
39573   grep -v '^ *+' conftest.er1 >conftest.err
39574   rm -f conftest.er1
39575   cat conftest.err >&5
39576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577   (exit $ac_status); } &&
39578          { ac_try='test -z "$ac_c_werror_flag"
39579                          || test ! -s conftest.err'
39580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581   (eval $ac_try) 2>&5
39582   ac_status=$?
39583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584   (exit $ac_status); }; } &&
39585          { ac_try='test -s conftest.$ac_objext'
39586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587   (eval $ac_try) 2>&5
39588   ac_status=$?
39589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); }; }; then
39591   ac_hi=-1 ac_mid=-1
39592   while :; do
39593     cat >conftest.$ac_ext <<_ACEOF
39594 /* confdefs.h.  */
39595 _ACEOF
39596 cat confdefs.h >>conftest.$ac_ext
39597 cat >>conftest.$ac_ext <<_ACEOF
39598 /* end confdefs.h.  */
39599 $ac_includes_default
39600 int
39601 main ()
39602 {
39603 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
39604 test_array [0] = 0
39605
39606   ;
39607   return 0;
39608 }
39609 _ACEOF
39610 rm -f conftest.$ac_objext
39611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39612   (eval $ac_compile) 2>conftest.er1
39613   ac_status=$?
39614   grep -v '^ *+' conftest.er1 >conftest.err
39615   rm -f conftest.er1
39616   cat conftest.err >&5
39617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39618   (exit $ac_status); } &&
39619          { ac_try='test -z "$ac_c_werror_flag"
39620                          || test ! -s conftest.err'
39621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39622   (eval $ac_try) 2>&5
39623   ac_status=$?
39624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625   (exit $ac_status); }; } &&
39626          { ac_try='test -s conftest.$ac_objext'
39627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39628   (eval $ac_try) 2>&5
39629   ac_status=$?
39630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39631   (exit $ac_status); }; }; then
39632   ac_lo=$ac_mid; break
39633 else
39634   echo "$as_me: failed program was:" >&5
39635 sed 's/^/| /' conftest.$ac_ext >&5
39636
39637 ac_hi=`expr '(' $ac_mid ')' - 1`
39638                        if test $ac_mid -le $ac_hi; then
39639                          ac_lo= ac_hi=
39640                          break
39641                        fi
39642                        ac_mid=`expr 2 '*' $ac_mid`
39643 fi
39644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39645   done
39646 else
39647   echo "$as_me: failed program was:" >&5
39648 sed 's/^/| /' conftest.$ac_ext >&5
39649
39650 ac_lo= ac_hi=
39651 fi
39652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39653 fi
39654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39655 # Binary search between lo and hi bounds.
39656 while test "x$ac_lo" != "x$ac_hi"; do
39657   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39658   cat >conftest.$ac_ext <<_ACEOF
39659 /* confdefs.h.  */
39660 _ACEOF
39661 cat confdefs.h >>conftest.$ac_ext
39662 cat >>conftest.$ac_ext <<_ACEOF
39663 /* end confdefs.h.  */
39664 $ac_includes_default
39665 int
39666 main ()
39667 {
39668 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
39669 test_array [0] = 0
39670
39671   ;
39672   return 0;
39673 }
39674 _ACEOF
39675 rm -f conftest.$ac_objext
39676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39677   (eval $ac_compile) 2>conftest.er1
39678   ac_status=$?
39679   grep -v '^ *+' conftest.er1 >conftest.err
39680   rm -f conftest.er1
39681   cat conftest.err >&5
39682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39683   (exit $ac_status); } &&
39684          { ac_try='test -z "$ac_c_werror_flag"
39685                          || test ! -s conftest.err'
39686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39687   (eval $ac_try) 2>&5
39688   ac_status=$?
39689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39690   (exit $ac_status); }; } &&
39691          { ac_try='test -s conftest.$ac_objext'
39692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39693   (eval $ac_try) 2>&5
39694   ac_status=$?
39695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696   (exit $ac_status); }; }; then
39697   ac_hi=$ac_mid
39698 else
39699   echo "$as_me: failed program was:" >&5
39700 sed 's/^/| /' conftest.$ac_ext >&5
39701
39702 ac_lo=`expr '(' $ac_mid ')' + 1`
39703 fi
39704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39705 done
39706 case $ac_lo in
39707 ?*) ac_cv_sizeof_long=$ac_lo;;
39708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39709 See \`config.log' for more details." >&5
39710 echo "$as_me: error: cannot compute sizeof (long), 77
39711 See \`config.log' for more details." >&2;}
39712    { (exit 1); exit 1; }; } ;;
39713 esac
39714 else
39715   if test "$cross_compiling" = yes; then
39716   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39717 See \`config.log' for more details." >&5
39718 echo "$as_me: error: cannot run test program while cross compiling
39719 See \`config.log' for more details." >&2;}
39720    { (exit 1); exit 1; }; }
39721 else
39722   cat >conftest.$ac_ext <<_ACEOF
39723 /* confdefs.h.  */
39724 _ACEOF
39725 cat confdefs.h >>conftest.$ac_ext
39726 cat >>conftest.$ac_ext <<_ACEOF
39727 /* end confdefs.h.  */
39728 $ac_includes_default
39729 long longval () { return (long) (sizeof (long)); }
39730 unsigned long ulongval () { return (long) (sizeof (long)); }
39731 #include <stdio.h>
39732 #include <stdlib.h>
39733 int
39734 main ()
39735 {
39736
39737   FILE *f = fopen ("conftest.val", "w");
39738   if (! f)
39739     exit (1);
39740   if (((long) (sizeof (long))) < 0)
39741     {
39742       long i = longval ();
39743       if (i != ((long) (sizeof (long))))
39744         exit (1);
39745       fprintf (f, "%ld\n", i);
39746     }
39747   else
39748     {
39749       unsigned long i = ulongval ();
39750       if (i != ((long) (sizeof (long))))
39751         exit (1);
39752       fprintf (f, "%lu\n", i);
39753     }
39754   exit (ferror (f) || fclose (f) != 0);
39755
39756   ;
39757   return 0;
39758 }
39759 _ACEOF
39760 rm -f conftest$ac_exeext
39761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39762   (eval $ac_link) 2>&5
39763   ac_status=$?
39764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39765   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767   (eval $ac_try) 2>&5
39768   ac_status=$?
39769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770   (exit $ac_status); }; }; then
39771   ac_cv_sizeof_long=`cat conftest.val`
39772 else
39773   echo "$as_me: program exited with status $ac_status" >&5
39774 echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.$ac_ext >&5
39776
39777 ( exit $ac_status )
39778 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
39779 See \`config.log' for more details." >&5
39780 echo "$as_me: error: cannot compute sizeof (long), 77
39781 See \`config.log' for more details." >&2;}
39782    { (exit 1); exit 1; }; }
39783 fi
39784 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39785 fi
39786 fi
39787 rm -f conftest.val
39788 else
39789   ac_cv_sizeof_long=0
39790 fi
39791 fi
39792 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
39793 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
39794 cat >>confdefs.h <<_ACEOF
39795 #define SIZEOF_LONG $ac_cv_sizeof_long
39796 _ACEOF
39797
39798
39799 echo "$as_me:$LINENO: checking for wchar_t" >&5
39800 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
39801 if test "${ac_cv_type_wchar_t+set}" = set; then
39802   echo $ECHO_N "(cached) $ECHO_C" >&6
39803 else
39804   cat >conftest.$ac_ext <<_ACEOF
39805 /* confdefs.h.  */
39806 _ACEOF
39807 cat confdefs.h >>conftest.$ac_ext
39808 cat >>conftest.$ac_ext <<_ACEOF
39809 /* end confdefs.h.  */
39810 $ac_includes_default
39811 int
39812 main ()
39813 {
39814 if ((wchar_t *) 0)
39815   return 0;
39816 if (sizeof (wchar_t))
39817   return 0;
39818   ;
39819   return 0;
39820 }
39821 _ACEOF
39822 rm -f conftest.$ac_objext
39823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39824   (eval $ac_compile) 2>conftest.er1
39825   ac_status=$?
39826   grep -v '^ *+' conftest.er1 >conftest.err
39827   rm -f conftest.er1
39828   cat conftest.err >&5
39829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830   (exit $ac_status); } &&
39831          { ac_try='test -z "$ac_c_werror_flag"
39832                          || test ! -s conftest.err'
39833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39834   (eval $ac_try) 2>&5
39835   ac_status=$?
39836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39837   (exit $ac_status); }; } &&
39838          { ac_try='test -s conftest.$ac_objext'
39839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39840   (eval $ac_try) 2>&5
39841   ac_status=$?
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); }; }; then
39844   ac_cv_type_wchar_t=yes
39845 else
39846   echo "$as_me: failed program was:" >&5
39847 sed 's/^/| /' conftest.$ac_ext >&5
39848
39849 ac_cv_type_wchar_t=no
39850 fi
39851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39852 fi
39853 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
39854 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
39855
39856 echo "$as_me:$LINENO: checking size of wchar_t" >&5
39857 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
39858 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
39859   echo $ECHO_N "(cached) $ECHO_C" >&6
39860 else
39861   if test "$ac_cv_type_wchar_t" = yes; then
39862   # The cast to unsigned long works around a bug in the HP C Compiler
39863   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39864   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39865   # This bug is HP SR number 8606223364.
39866   if test "$cross_compiling" = yes; then
39867   # Depending upon the size, compute the lo and hi bounds.
39868 cat >conftest.$ac_ext <<_ACEOF
39869 /* confdefs.h.  */
39870 _ACEOF
39871 cat confdefs.h >>conftest.$ac_ext
39872 cat >>conftest.$ac_ext <<_ACEOF
39873 /* end confdefs.h.  */
39874 $ac_includes_default
39875 int
39876 main ()
39877 {
39878 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
39879 test_array [0] = 0
39880
39881   ;
39882   return 0;
39883 }
39884 _ACEOF
39885 rm -f conftest.$ac_objext
39886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39887   (eval $ac_compile) 2>conftest.er1
39888   ac_status=$?
39889   grep -v '^ *+' conftest.er1 >conftest.err
39890   rm -f conftest.er1
39891   cat conftest.err >&5
39892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39893   (exit $ac_status); } &&
39894          { ac_try='test -z "$ac_c_werror_flag"
39895                          || test ! -s conftest.err'
39896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897   (eval $ac_try) 2>&5
39898   ac_status=$?
39899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900   (exit $ac_status); }; } &&
39901          { ac_try='test -s conftest.$ac_objext'
39902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39903   (eval $ac_try) 2>&5
39904   ac_status=$?
39905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906   (exit $ac_status); }; }; then
39907   ac_lo=0 ac_mid=0
39908   while :; do
39909     cat >conftest.$ac_ext <<_ACEOF
39910 /* confdefs.h.  */
39911 _ACEOF
39912 cat confdefs.h >>conftest.$ac_ext
39913 cat >>conftest.$ac_ext <<_ACEOF
39914 /* end confdefs.h.  */
39915 $ac_includes_default
39916 int
39917 main ()
39918 {
39919 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
39920 test_array [0] = 0
39921
39922   ;
39923   return 0;
39924 }
39925 _ACEOF
39926 rm -f conftest.$ac_objext
39927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39928   (eval $ac_compile) 2>conftest.er1
39929   ac_status=$?
39930   grep -v '^ *+' conftest.er1 >conftest.err
39931   rm -f conftest.er1
39932   cat conftest.err >&5
39933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39934   (exit $ac_status); } &&
39935          { ac_try='test -z "$ac_c_werror_flag"
39936                          || test ! -s conftest.err'
39937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39938   (eval $ac_try) 2>&5
39939   ac_status=$?
39940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39941   (exit $ac_status); }; } &&
39942          { ac_try='test -s conftest.$ac_objext'
39943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39944   (eval $ac_try) 2>&5
39945   ac_status=$?
39946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39947   (exit $ac_status); }; }; then
39948   ac_hi=$ac_mid; break
39949 else
39950   echo "$as_me: failed program was:" >&5
39951 sed 's/^/| /' conftest.$ac_ext >&5
39952
39953 ac_lo=`expr $ac_mid + 1`
39954                     if test $ac_lo -le $ac_mid; then
39955                       ac_lo= ac_hi=
39956                       break
39957                     fi
39958                     ac_mid=`expr 2 '*' $ac_mid + 1`
39959 fi
39960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39961   done
39962 else
39963   echo "$as_me: failed program was:" >&5
39964 sed 's/^/| /' conftest.$ac_ext >&5
39965
39966 cat >conftest.$ac_ext <<_ACEOF
39967 /* confdefs.h.  */
39968 _ACEOF
39969 cat confdefs.h >>conftest.$ac_ext
39970 cat >>conftest.$ac_ext <<_ACEOF
39971 /* end confdefs.h.  */
39972 $ac_includes_default
39973 int
39974 main ()
39975 {
39976 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
39977 test_array [0] = 0
39978
39979   ;
39980   return 0;
39981 }
39982 _ACEOF
39983 rm -f conftest.$ac_objext
39984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39985   (eval $ac_compile) 2>conftest.er1
39986   ac_status=$?
39987   grep -v '^ *+' conftest.er1 >conftest.err
39988   rm -f conftest.er1
39989   cat conftest.err >&5
39990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991   (exit $ac_status); } &&
39992          { ac_try='test -z "$ac_c_werror_flag"
39993                          || test ! -s conftest.err'
39994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39995   (eval $ac_try) 2>&5
39996   ac_status=$?
39997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39998   (exit $ac_status); }; } &&
39999          { ac_try='test -s conftest.$ac_objext'
40000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40001   (eval $ac_try) 2>&5
40002   ac_status=$?
40003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40004   (exit $ac_status); }; }; then
40005   ac_hi=-1 ac_mid=-1
40006   while :; do
40007     cat >conftest.$ac_ext <<_ACEOF
40008 /* confdefs.h.  */
40009 _ACEOF
40010 cat confdefs.h >>conftest.$ac_ext
40011 cat >>conftest.$ac_ext <<_ACEOF
40012 /* end confdefs.h.  */
40013 $ac_includes_default
40014 int
40015 main ()
40016 {
40017 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
40018 test_array [0] = 0
40019
40020   ;
40021   return 0;
40022 }
40023 _ACEOF
40024 rm -f conftest.$ac_objext
40025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40026   (eval $ac_compile) 2>conftest.er1
40027   ac_status=$?
40028   grep -v '^ *+' conftest.er1 >conftest.err
40029   rm -f conftest.er1
40030   cat conftest.err >&5
40031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40032   (exit $ac_status); } &&
40033          { ac_try='test -z "$ac_c_werror_flag"
40034                          || test ! -s conftest.err'
40035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40036   (eval $ac_try) 2>&5
40037   ac_status=$?
40038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40039   (exit $ac_status); }; } &&
40040          { ac_try='test -s conftest.$ac_objext'
40041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40042   (eval $ac_try) 2>&5
40043   ac_status=$?
40044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40045   (exit $ac_status); }; }; then
40046   ac_lo=$ac_mid; break
40047 else
40048   echo "$as_me: failed program was:" >&5
40049 sed 's/^/| /' conftest.$ac_ext >&5
40050
40051 ac_hi=`expr '(' $ac_mid ')' - 1`
40052                        if test $ac_mid -le $ac_hi; then
40053                          ac_lo= ac_hi=
40054                          break
40055                        fi
40056                        ac_mid=`expr 2 '*' $ac_mid`
40057 fi
40058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40059   done
40060 else
40061   echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40063
40064 ac_lo= ac_hi=
40065 fi
40066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40067 fi
40068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40069 # Binary search between lo and hi bounds.
40070 while test "x$ac_lo" != "x$ac_hi"; do
40071   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40072   cat >conftest.$ac_ext <<_ACEOF
40073 /* confdefs.h.  */
40074 _ACEOF
40075 cat confdefs.h >>conftest.$ac_ext
40076 cat >>conftest.$ac_ext <<_ACEOF
40077 /* end confdefs.h.  */
40078 $ac_includes_default
40079 int
40080 main ()
40081 {
40082 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
40083 test_array [0] = 0
40084
40085   ;
40086   return 0;
40087 }
40088 _ACEOF
40089 rm -f conftest.$ac_objext
40090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40091   (eval $ac_compile) 2>conftest.er1
40092   ac_status=$?
40093   grep -v '^ *+' conftest.er1 >conftest.err
40094   rm -f conftest.er1
40095   cat conftest.err >&5
40096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40097   (exit $ac_status); } &&
40098          { ac_try='test -z "$ac_c_werror_flag"
40099                          || test ! -s conftest.err'
40100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40101   (eval $ac_try) 2>&5
40102   ac_status=$?
40103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40104   (exit $ac_status); }; } &&
40105          { ac_try='test -s conftest.$ac_objext'
40106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40107   (eval $ac_try) 2>&5
40108   ac_status=$?
40109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40110   (exit $ac_status); }; }; then
40111   ac_hi=$ac_mid
40112 else
40113   echo "$as_me: failed program was:" >&5
40114 sed 's/^/| /' conftest.$ac_ext >&5
40115
40116 ac_lo=`expr '(' $ac_mid ')' + 1`
40117 fi
40118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40119 done
40120 case $ac_lo in
40121 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
40122 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40123 See \`config.log' for more details." >&5
40124 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40125 See \`config.log' for more details." >&2;}
40126    { (exit 1); exit 1; }; } ;;
40127 esac
40128 else
40129   if test "$cross_compiling" = yes; then
40130   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
40131 See \`config.log' for more details." >&5
40132 echo "$as_me: error: cannot run test program while cross compiling
40133 See \`config.log' for more details." >&2;}
40134    { (exit 1); exit 1; }; }
40135 else
40136   cat >conftest.$ac_ext <<_ACEOF
40137 /* confdefs.h.  */
40138 _ACEOF
40139 cat confdefs.h >>conftest.$ac_ext
40140 cat >>conftest.$ac_ext <<_ACEOF
40141 /* end confdefs.h.  */
40142 $ac_includes_default
40143 long longval () { return (long) (sizeof (wchar_t)); }
40144 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
40145 #include <stdio.h>
40146 #include <stdlib.h>
40147 int
40148 main ()
40149 {
40150
40151   FILE *f = fopen ("conftest.val", "w");
40152   if (! f)
40153     exit (1);
40154   if (((long) (sizeof (wchar_t))) < 0)
40155     {
40156       long i = longval ();
40157       if (i != ((long) (sizeof (wchar_t))))
40158         exit (1);
40159       fprintf (f, "%ld\n", i);
40160     }
40161   else
40162     {
40163       unsigned long i = ulongval ();
40164       if (i != ((long) (sizeof (wchar_t))))
40165         exit (1);
40166       fprintf (f, "%lu\n", i);
40167     }
40168   exit (ferror (f) || fclose (f) != 0);
40169
40170   ;
40171   return 0;
40172 }
40173 _ACEOF
40174 rm -f conftest$ac_exeext
40175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40176   (eval $ac_link) 2>&5
40177   ac_status=$?
40178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181   (eval $ac_try) 2>&5
40182   ac_status=$?
40183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184   (exit $ac_status); }; }; then
40185   ac_cv_sizeof_wchar_t=`cat conftest.val`
40186 else
40187   echo "$as_me: program exited with status $ac_status" >&5
40188 echo "$as_me: failed program was:" >&5
40189 sed 's/^/| /' conftest.$ac_ext >&5
40190
40191 ( exit $ac_status )
40192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
40193 See \`config.log' for more details." >&5
40194 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
40195 See \`config.log' for more details." >&2;}
40196    { (exit 1); exit 1; }; }
40197 fi
40198 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40199 fi
40200 fi
40201 rm -f conftest.val
40202 else
40203   ac_cv_sizeof_wchar_t=0
40204 fi
40205 fi
40206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
40207 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
40208 cat >>confdefs.h <<_ACEOF
40209 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
40210 _ACEOF
40211
40212
40213
40214 if test "$ac_cv_sizeof_int" -lt 4 ; then
40215         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
40216 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
40217
40218
40219 cat >>confdefs.h <<\_ACEOF
40220 #define LBER_INT_T long
40221 _ACEOF
40222
40223 else
40224
40225 cat >>confdefs.h <<\_ACEOF
40226 #define LBER_INT_T int
40227 _ACEOF
40228
40229 fi
40230
40231
40232 cat >>confdefs.h <<\_ACEOF
40233 #define LBER_LEN_T long
40234 _ACEOF
40235
40236
40237 cat >>confdefs.h <<\_ACEOF
40238 #define LBER_SOCKET_T int
40239 _ACEOF
40240
40241
40242 cat >>confdefs.h <<\_ACEOF
40243 #define LBER_TAG_T long
40244 _ACEOF
40245
40246
40247 echo "$as_me:$LINENO: checking for working memcmp" >&5
40248 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
40249 if test "${ac_cv_func_memcmp_working+set}" = set; then
40250   echo $ECHO_N "(cached) $ECHO_C" >&6
40251 else
40252   if test "$cross_compiling" = yes; then
40253   ac_cv_func_memcmp_working=no
40254 else
40255   cat >conftest.$ac_ext <<_ACEOF
40256 /* confdefs.h.  */
40257 _ACEOF
40258 cat confdefs.h >>conftest.$ac_ext
40259 cat >>conftest.$ac_ext <<_ACEOF
40260 /* end confdefs.h.  */
40261 $ac_includes_default
40262 int
40263 main ()
40264 {
40265
40266   /* Some versions of memcmp are not 8-bit clean.  */
40267   char c0 = 0x40, c1 = 0x80, c2 = 0x81;
40268   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
40269     exit (1);
40270
40271   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
40272      or more and with at least one buffer not starting on a 4-byte boundary.
40273      William Lewis provided this test program.   */
40274   {
40275     char foo[21];
40276     char bar[21];
40277     int i;
40278     for (i = 0; i < 4; i++)
40279       {
40280         char *a = foo + i;
40281         char *b = bar + i;
40282         strcpy (a, "--------01111111");
40283         strcpy (b, "--------10000000");
40284         if (memcmp (a, b, 16) >= 0)
40285           exit (1);
40286       }
40287     exit (0);
40288   }
40289
40290   ;
40291   return 0;
40292 }
40293 _ACEOF
40294 rm -f conftest$ac_exeext
40295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40296   (eval $ac_link) 2>&5
40297   ac_status=$?
40298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40301   (eval $ac_try) 2>&5
40302   ac_status=$?
40303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40304   (exit $ac_status); }; }; then
40305   ac_cv_func_memcmp_working=yes
40306 else
40307   echo "$as_me: program exited with status $ac_status" >&5
40308 echo "$as_me: failed program was:" >&5
40309 sed 's/^/| /' conftest.$ac_ext >&5
40310
40311 ( exit $ac_status )
40312 ac_cv_func_memcmp_working=no
40313 fi
40314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40315 fi
40316 fi
40317 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
40318 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
40319 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
40320     "memcmp.$ac_objext"   | \
40321   *" memcmp.$ac_objext"   | \
40322     "memcmp.$ac_objext "* | \
40323   *" memcmp.$ac_objext "* ) ;;
40324   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
40325 esac
40326
40327
40328
40329 if test $ac_cv_func_memcmp_working = no ; then
40330
40331 cat >>confdefs.h <<\_ACEOF
40332 #define NEED_MEMCMP_REPLACEMENT 1
40333 _ACEOF
40334
40335 fi
40336
40337
40338 for ac_func in strftime
40339 do
40340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40341 echo "$as_me:$LINENO: checking for $ac_func" >&5
40342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40343 if eval "test \"\${$as_ac_var+set}\" = set"; then
40344   echo $ECHO_N "(cached) $ECHO_C" >&6
40345 else
40346   cat >conftest.$ac_ext <<_ACEOF
40347 /* confdefs.h.  */
40348 _ACEOF
40349 cat confdefs.h >>conftest.$ac_ext
40350 cat >>conftest.$ac_ext <<_ACEOF
40351 /* end confdefs.h.  */
40352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40354 #define $ac_func innocuous_$ac_func
40355
40356 /* System header to define __stub macros and hopefully few prototypes,
40357     which can conflict with char $ac_func (); below.
40358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40359     <limits.h> exists even on freestanding compilers.  */
40360
40361 #ifdef __STDC__
40362 # include <limits.h>
40363 #else
40364 # include <assert.h>
40365 #endif
40366
40367 #undef $ac_func
40368
40369 /* Override any gcc2 internal prototype to avoid an error.  */
40370 #ifdef __cplusplus
40371 extern "C"
40372 {
40373 #endif
40374 /* We use char because int might match the return type of a gcc2
40375    builtin and then its argument prototype would still apply.  */
40376 char $ac_func ();
40377 /* The GNU C library defines this for functions which it implements
40378     to always fail with ENOSYS.  Some functions are actually named
40379     something starting with __ and the normal name is an alias.  */
40380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40381 choke me
40382 #else
40383 char (*f) () = $ac_func;
40384 #endif
40385 #ifdef __cplusplus
40386 }
40387 #endif
40388
40389 int
40390 main ()
40391 {
40392 return f != $ac_func;
40393   ;
40394   return 0;
40395 }
40396 _ACEOF
40397 rm -f conftest.$ac_objext conftest$ac_exeext
40398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40399   (eval $ac_link) 2>conftest.er1
40400   ac_status=$?
40401   grep -v '^ *+' conftest.er1 >conftest.err
40402   rm -f conftest.er1
40403   cat conftest.err >&5
40404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405   (exit $ac_status); } &&
40406          { ac_try='test -z "$ac_c_werror_flag"
40407                          || test ! -s conftest.err'
40408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409   (eval $ac_try) 2>&5
40410   ac_status=$?
40411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412   (exit $ac_status); }; } &&
40413          { ac_try='test -s conftest$ac_exeext'
40414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415   (eval $ac_try) 2>&5
40416   ac_status=$?
40417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418   (exit $ac_status); }; }; then
40419   eval "$as_ac_var=yes"
40420 else
40421   echo "$as_me: failed program was:" >&5
40422 sed 's/^/| /' conftest.$ac_ext >&5
40423
40424 eval "$as_ac_var=no"
40425 fi
40426 rm -f conftest.err conftest.$ac_objext \
40427       conftest$ac_exeext conftest.$ac_ext
40428 fi
40429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40431 if test `eval echo '${'$as_ac_var'}'` = yes; then
40432   cat >>confdefs.h <<_ACEOF
40433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40434 _ACEOF
40435
40436 else
40437   # strftime is in -lintl on SCO UNIX.
40438 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
40439 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
40440 if test "${ac_cv_lib_intl_strftime+set}" = set; then
40441   echo $ECHO_N "(cached) $ECHO_C" >&6
40442 else
40443   ac_check_lib_save_LIBS=$LIBS
40444 LIBS="-lintl  $LIBS"
40445 cat >conftest.$ac_ext <<_ACEOF
40446 /* confdefs.h.  */
40447 _ACEOF
40448 cat confdefs.h >>conftest.$ac_ext
40449 cat >>conftest.$ac_ext <<_ACEOF
40450 /* end confdefs.h.  */
40451
40452 /* Override any gcc2 internal prototype to avoid an error.  */
40453 #ifdef __cplusplus
40454 extern "C"
40455 #endif
40456 /* We use char because int might match the return type of a gcc2
40457    builtin and then its argument prototype would still apply.  */
40458 char strftime ();
40459 int
40460 main ()
40461 {
40462 strftime ();
40463   ;
40464   return 0;
40465 }
40466 _ACEOF
40467 rm -f conftest.$ac_objext conftest$ac_exeext
40468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40469   (eval $ac_link) 2>conftest.er1
40470   ac_status=$?
40471   grep -v '^ *+' conftest.er1 >conftest.err
40472   rm -f conftest.er1
40473   cat conftest.err >&5
40474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40475   (exit $ac_status); } &&
40476          { ac_try='test -z "$ac_c_werror_flag"
40477                          || test ! -s conftest.err'
40478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40479   (eval $ac_try) 2>&5
40480   ac_status=$?
40481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482   (exit $ac_status); }; } &&
40483          { ac_try='test -s conftest$ac_exeext'
40484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40485   (eval $ac_try) 2>&5
40486   ac_status=$?
40487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488   (exit $ac_status); }; }; then
40489   ac_cv_lib_intl_strftime=yes
40490 else
40491   echo "$as_me: failed program was:" >&5
40492 sed 's/^/| /' conftest.$ac_ext >&5
40493
40494 ac_cv_lib_intl_strftime=no
40495 fi
40496 rm -f conftest.err conftest.$ac_objext \
40497       conftest$ac_exeext conftest.$ac_ext
40498 LIBS=$ac_check_lib_save_LIBS
40499 fi
40500 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
40501 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
40502 if test $ac_cv_lib_intl_strftime = yes; then
40503   cat >>confdefs.h <<\_ACEOF
40504 #define HAVE_STRFTIME 1
40505 _ACEOF
40506
40507 LIBS="-lintl $LIBS"
40508 fi
40509
40510 fi
40511 done
40512
40513
40514 echo "$as_me:$LINENO: checking for inet_aton()" >&5
40515 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
40516 if test "${ol_cv_func_inet_aton+set}" = set; then
40517   echo $ECHO_N "(cached) $ECHO_C" >&6
40518 else
40519   cat >conftest.$ac_ext <<_ACEOF
40520 /* confdefs.h.  */
40521 _ACEOF
40522 cat confdefs.h >>conftest.$ac_ext
40523 cat >>conftest.$ac_ext <<_ACEOF
40524 /* end confdefs.h.  */
40525
40526 #ifdef HAVE_SYS_TYPES_H
40527 #       include <sys/types.h>
40528 #endif
40529 #ifdef HAVE_SYS_SOCKET_H
40530 #       include <sys/socket.h>
40531 #       ifdef HAVE_SYS_SELECT_H
40532 #               include <sys/select.h>
40533 #       endif
40534 #       include <netinet/in.h>
40535 #       ifdef HAVE_ARPA_INET_H
40536 #               include <arpa/inet.h>
40537 #       endif
40538 #endif
40539
40540 int
40541 main ()
40542 {
40543 struct in_addr in;
40544 int rc = inet_aton( "255.255.255.255", &in );
40545   ;
40546   return 0;
40547 }
40548 _ACEOF
40549 rm -f conftest.$ac_objext conftest$ac_exeext
40550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40551   (eval $ac_link) 2>conftest.er1
40552   ac_status=$?
40553   grep -v '^ *+' conftest.er1 >conftest.err
40554   rm -f conftest.er1
40555   cat conftest.err >&5
40556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40557   (exit $ac_status); } &&
40558          { ac_try='test -z "$ac_c_werror_flag"
40559                          || test ! -s conftest.err'
40560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40561   (eval $ac_try) 2>&5
40562   ac_status=$?
40563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40564   (exit $ac_status); }; } &&
40565          { ac_try='test -s conftest$ac_exeext'
40566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40567   (eval $ac_try) 2>&5
40568   ac_status=$?
40569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570   (exit $ac_status); }; }; then
40571   ol_cv_func_inet_aton=yes
40572 else
40573   echo "$as_me: failed program was:" >&5
40574 sed 's/^/| /' conftest.$ac_ext >&5
40575
40576 ol_cv_func_inet_aton=no
40577 fi
40578 rm -f conftest.err conftest.$ac_objext \
40579       conftest$ac_exeext conftest.$ac_ext
40580 fi
40581 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
40582 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
40583   if test $ol_cv_func_inet_aton != no; then
40584
40585 cat >>confdefs.h <<\_ACEOF
40586 #define HAVE_INET_ATON 1
40587 _ACEOF
40588
40589   fi
40590
40591
40592 echo "$as_me:$LINENO: checking for _spawnlp" >&5
40593 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
40594 if test "${ac_cv_func__spawnlp+set}" = set; then
40595   echo $ECHO_N "(cached) $ECHO_C" >&6
40596 else
40597   cat >conftest.$ac_ext <<_ACEOF
40598 /* confdefs.h.  */
40599 _ACEOF
40600 cat confdefs.h >>conftest.$ac_ext
40601 cat >>conftest.$ac_ext <<_ACEOF
40602 /* end confdefs.h.  */
40603 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
40604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40605 #define _spawnlp innocuous__spawnlp
40606
40607 /* System header to define __stub macros and hopefully few prototypes,
40608     which can conflict with char _spawnlp (); below.
40609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40610     <limits.h> exists even on freestanding compilers.  */
40611
40612 #ifdef __STDC__
40613 # include <limits.h>
40614 #else
40615 # include <assert.h>
40616 #endif
40617
40618 #undef _spawnlp
40619
40620 /* Override any gcc2 internal prototype to avoid an error.  */
40621 #ifdef __cplusplus
40622 extern "C"
40623 {
40624 #endif
40625 /* We use char because int might match the return type of a gcc2
40626    builtin and then its argument prototype would still apply.  */
40627 char _spawnlp ();
40628 /* The GNU C library defines this for functions which it implements
40629     to always fail with ENOSYS.  Some functions are actually named
40630     something starting with __ and the normal name is an alias.  */
40631 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
40632 choke me
40633 #else
40634 char (*f) () = _spawnlp;
40635 #endif
40636 #ifdef __cplusplus
40637 }
40638 #endif
40639
40640 int
40641 main ()
40642 {
40643 return f != _spawnlp;
40644   ;
40645   return 0;
40646 }
40647 _ACEOF
40648 rm -f conftest.$ac_objext conftest$ac_exeext
40649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40650   (eval $ac_link) 2>conftest.er1
40651   ac_status=$?
40652   grep -v '^ *+' conftest.er1 >conftest.err
40653   rm -f conftest.er1
40654   cat conftest.err >&5
40655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40656   (exit $ac_status); } &&
40657          { ac_try='test -z "$ac_c_werror_flag"
40658                          || test ! -s conftest.err'
40659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40660   (eval $ac_try) 2>&5
40661   ac_status=$?
40662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40663   (exit $ac_status); }; } &&
40664          { ac_try='test -s conftest$ac_exeext'
40665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40666   (eval $ac_try) 2>&5
40667   ac_status=$?
40668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40669   (exit $ac_status); }; }; then
40670   ac_cv_func__spawnlp=yes
40671 else
40672   echo "$as_me: failed program was:" >&5
40673 sed 's/^/| /' conftest.$ac_ext >&5
40674
40675 ac_cv_func__spawnlp=no
40676 fi
40677 rm -f conftest.err conftest.$ac_objext \
40678       conftest$ac_exeext conftest.$ac_ext
40679 fi
40680 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
40681 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
40682 if test $ac_cv_func__spawnlp = yes; then
40683
40684 cat >>confdefs.h <<\_ACEOF
40685 #define HAVE_SPAWNLP 1
40686 _ACEOF
40687
40688 fi
40689
40690
40691 echo "$as_me:$LINENO: checking for _snprintf" >&5
40692 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
40693 if test "${ac_cv_func__snprintf+set}" = set; then
40694   echo $ECHO_N "(cached) $ECHO_C" >&6
40695 else
40696   cat >conftest.$ac_ext <<_ACEOF
40697 /* confdefs.h.  */
40698 _ACEOF
40699 cat confdefs.h >>conftest.$ac_ext
40700 cat >>conftest.$ac_ext <<_ACEOF
40701 /* end confdefs.h.  */
40702 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
40703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40704 #define _snprintf innocuous__snprintf
40705
40706 /* System header to define __stub macros and hopefully few prototypes,
40707     which can conflict with char _snprintf (); below.
40708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40709     <limits.h> exists even on freestanding compilers.  */
40710
40711 #ifdef __STDC__
40712 # include <limits.h>
40713 #else
40714 # include <assert.h>
40715 #endif
40716
40717 #undef _snprintf
40718
40719 /* Override any gcc2 internal prototype to avoid an error.  */
40720 #ifdef __cplusplus
40721 extern "C"
40722 {
40723 #endif
40724 /* We use char because int might match the return type of a gcc2
40725    builtin and then its argument prototype would still apply.  */
40726 char _snprintf ();
40727 /* The GNU C library defines this for functions which it implements
40728     to always fail with ENOSYS.  Some functions are actually named
40729     something starting with __ and the normal name is an alias.  */
40730 #if defined (__stub__snprintf) || defined (__stub____snprintf)
40731 choke me
40732 #else
40733 char (*f) () = _snprintf;
40734 #endif
40735 #ifdef __cplusplus
40736 }
40737 #endif
40738
40739 int
40740 main ()
40741 {
40742 return f != _snprintf;
40743   ;
40744   return 0;
40745 }
40746 _ACEOF
40747 rm -f conftest.$ac_objext conftest$ac_exeext
40748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40749   (eval $ac_link) 2>conftest.er1
40750   ac_status=$?
40751   grep -v '^ *+' conftest.er1 >conftest.err
40752   rm -f conftest.er1
40753   cat conftest.err >&5
40754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40755   (exit $ac_status); } &&
40756          { ac_try='test -z "$ac_c_werror_flag"
40757                          || test ! -s conftest.err'
40758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40759   (eval $ac_try) 2>&5
40760   ac_status=$?
40761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40762   (exit $ac_status); }; } &&
40763          { ac_try='test -s conftest$ac_exeext'
40764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40765   (eval $ac_try) 2>&5
40766   ac_status=$?
40767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40768   (exit $ac_status); }; }; then
40769   ac_cv_func__snprintf=yes
40770 else
40771   echo "$as_me: failed program was:" >&5
40772 sed 's/^/| /' conftest.$ac_ext >&5
40773
40774 ac_cv_func__snprintf=no
40775 fi
40776 rm -f conftest.err conftest.$ac_objext \
40777       conftest$ac_exeext conftest.$ac_ext
40778 fi
40779 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
40780 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
40781 if test $ac_cv_func__snprintf = yes; then
40782   ac_cv_func_snprintf=yes
40783
40784 cat >>confdefs.h <<\_ACEOF
40785 #define snprintf _snprintf
40786 _ACEOF
40787
40788
40789 fi
40790
40791
40792 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
40793 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
40794 if test "${ac_cv_func__vsnprintf+set}" = set; then
40795   echo $ECHO_N "(cached) $ECHO_C" >&6
40796 else
40797   cat >conftest.$ac_ext <<_ACEOF
40798 /* confdefs.h.  */
40799 _ACEOF
40800 cat confdefs.h >>conftest.$ac_ext
40801 cat >>conftest.$ac_ext <<_ACEOF
40802 /* end confdefs.h.  */
40803 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
40804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40805 #define _vsnprintf innocuous__vsnprintf
40806
40807 /* System header to define __stub macros and hopefully few prototypes,
40808     which can conflict with char _vsnprintf (); below.
40809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40810     <limits.h> exists even on freestanding compilers.  */
40811
40812 #ifdef __STDC__
40813 # include <limits.h>
40814 #else
40815 # include <assert.h>
40816 #endif
40817
40818 #undef _vsnprintf
40819
40820 /* Override any gcc2 internal prototype to avoid an error.  */
40821 #ifdef __cplusplus
40822 extern "C"
40823 {
40824 #endif
40825 /* We use char because int might match the return type of a gcc2
40826    builtin and then its argument prototype would still apply.  */
40827 char _vsnprintf ();
40828 /* The GNU C library defines this for functions which it implements
40829     to always fail with ENOSYS.  Some functions are actually named
40830     something starting with __ and the normal name is an alias.  */
40831 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
40832 choke me
40833 #else
40834 char (*f) () = _vsnprintf;
40835 #endif
40836 #ifdef __cplusplus
40837 }
40838 #endif
40839
40840 int
40841 main ()
40842 {
40843 return f != _vsnprintf;
40844   ;
40845   return 0;
40846 }
40847 _ACEOF
40848 rm -f conftest.$ac_objext conftest$ac_exeext
40849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40850   (eval $ac_link) 2>conftest.er1
40851   ac_status=$?
40852   grep -v '^ *+' conftest.er1 >conftest.err
40853   rm -f conftest.er1
40854   cat conftest.err >&5
40855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856   (exit $ac_status); } &&
40857          { ac_try='test -z "$ac_c_werror_flag"
40858                          || test ! -s conftest.err'
40859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860   (eval $ac_try) 2>&5
40861   ac_status=$?
40862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863   (exit $ac_status); }; } &&
40864          { ac_try='test -s conftest$ac_exeext'
40865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40866   (eval $ac_try) 2>&5
40867   ac_status=$?
40868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40869   (exit $ac_status); }; }; then
40870   ac_cv_func__vsnprintf=yes
40871 else
40872   echo "$as_me: failed program was:" >&5
40873 sed 's/^/| /' conftest.$ac_ext >&5
40874
40875 ac_cv_func__vsnprintf=no
40876 fi
40877 rm -f conftest.err conftest.$ac_objext \
40878       conftest$ac_exeext conftest.$ac_ext
40879 fi
40880 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
40881 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
40882 if test $ac_cv_func__vsnprintf = yes; then
40883   ac_cv_func_vsnprintf=yes
40884
40885 cat >>confdefs.h <<\_ACEOF
40886 #define vsnprintf _vsnprintf
40887 _ACEOF
40888
40889
40890 fi
40891
40892
40893
40894 for ac_func in vprintf
40895 do
40896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40897 echo "$as_me:$LINENO: checking for $ac_func" >&5
40898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40899 if eval "test \"\${$as_ac_var+set}\" = set"; then
40900   echo $ECHO_N "(cached) $ECHO_C" >&6
40901 else
40902   cat >conftest.$ac_ext <<_ACEOF
40903 /* confdefs.h.  */
40904 _ACEOF
40905 cat confdefs.h >>conftest.$ac_ext
40906 cat >>conftest.$ac_ext <<_ACEOF
40907 /* end confdefs.h.  */
40908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40910 #define $ac_func innocuous_$ac_func
40911
40912 /* System header to define __stub macros and hopefully few prototypes,
40913     which can conflict with char $ac_func (); below.
40914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40915     <limits.h> exists even on freestanding compilers.  */
40916
40917 #ifdef __STDC__
40918 # include <limits.h>
40919 #else
40920 # include <assert.h>
40921 #endif
40922
40923 #undef $ac_func
40924
40925 /* Override any gcc2 internal prototype to avoid an error.  */
40926 #ifdef __cplusplus
40927 extern "C"
40928 {
40929 #endif
40930 /* We use char because int might match the return type of a gcc2
40931    builtin and then its argument prototype would still apply.  */
40932 char $ac_func ();
40933 /* The GNU C library defines this for functions which it implements
40934     to always fail with ENOSYS.  Some functions are actually named
40935     something starting with __ and the normal name is an alias.  */
40936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40937 choke me
40938 #else
40939 char (*f) () = $ac_func;
40940 #endif
40941 #ifdef __cplusplus
40942 }
40943 #endif
40944
40945 int
40946 main ()
40947 {
40948 return f != $ac_func;
40949   ;
40950   return 0;
40951 }
40952 _ACEOF
40953 rm -f conftest.$ac_objext conftest$ac_exeext
40954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40955   (eval $ac_link) 2>conftest.er1
40956   ac_status=$?
40957   grep -v '^ *+' conftest.er1 >conftest.err
40958   rm -f conftest.er1
40959   cat conftest.err >&5
40960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40961   (exit $ac_status); } &&
40962          { ac_try='test -z "$ac_c_werror_flag"
40963                          || test ! -s conftest.err'
40964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40965   (eval $ac_try) 2>&5
40966   ac_status=$?
40967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40968   (exit $ac_status); }; } &&
40969          { ac_try='test -s conftest$ac_exeext'
40970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40971   (eval $ac_try) 2>&5
40972   ac_status=$?
40973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974   (exit $ac_status); }; }; then
40975   eval "$as_ac_var=yes"
40976 else
40977   echo "$as_me: failed program was:" >&5
40978 sed 's/^/| /' conftest.$ac_ext >&5
40979
40980 eval "$as_ac_var=no"
40981 fi
40982 rm -f conftest.err conftest.$ac_objext \
40983       conftest$ac_exeext conftest.$ac_ext
40984 fi
40985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40987 if test `eval echo '${'$as_ac_var'}'` = yes; then
40988   cat >>confdefs.h <<_ACEOF
40989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40990 _ACEOF
40991
40992 echo "$as_me:$LINENO: checking for _doprnt" >&5
40993 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
40994 if test "${ac_cv_func__doprnt+set}" = set; then
40995   echo $ECHO_N "(cached) $ECHO_C" >&6
40996 else
40997   cat >conftest.$ac_ext <<_ACEOF
40998 /* confdefs.h.  */
40999 _ACEOF
41000 cat confdefs.h >>conftest.$ac_ext
41001 cat >>conftest.$ac_ext <<_ACEOF
41002 /* end confdefs.h.  */
41003 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
41004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41005 #define _doprnt innocuous__doprnt
41006
41007 /* System header to define __stub macros and hopefully few prototypes,
41008     which can conflict with char _doprnt (); below.
41009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41010     <limits.h> exists even on freestanding compilers.  */
41011
41012 #ifdef __STDC__
41013 # include <limits.h>
41014 #else
41015 # include <assert.h>
41016 #endif
41017
41018 #undef _doprnt
41019
41020 /* Override any gcc2 internal prototype to avoid an error.  */
41021 #ifdef __cplusplus
41022 extern "C"
41023 {
41024 #endif
41025 /* We use char because int might match the return type of a gcc2
41026    builtin and then its argument prototype would still apply.  */
41027 char _doprnt ();
41028 /* The GNU C library defines this for functions which it implements
41029     to always fail with ENOSYS.  Some functions are actually named
41030     something starting with __ and the normal name is an alias.  */
41031 #if defined (__stub__doprnt) || defined (__stub____doprnt)
41032 choke me
41033 #else
41034 char (*f) () = _doprnt;
41035 #endif
41036 #ifdef __cplusplus
41037 }
41038 #endif
41039
41040 int
41041 main ()
41042 {
41043 return f != _doprnt;
41044   ;
41045   return 0;
41046 }
41047 _ACEOF
41048 rm -f conftest.$ac_objext conftest$ac_exeext
41049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41050   (eval $ac_link) 2>conftest.er1
41051   ac_status=$?
41052   grep -v '^ *+' conftest.er1 >conftest.err
41053   rm -f conftest.er1
41054   cat conftest.err >&5
41055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41056   (exit $ac_status); } &&
41057          { ac_try='test -z "$ac_c_werror_flag"
41058                          || test ! -s conftest.err'
41059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41060   (eval $ac_try) 2>&5
41061   ac_status=$?
41062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41063   (exit $ac_status); }; } &&
41064          { ac_try='test -s conftest$ac_exeext'
41065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41066   (eval $ac_try) 2>&5
41067   ac_status=$?
41068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41069   (exit $ac_status); }; }; then
41070   ac_cv_func__doprnt=yes
41071 else
41072   echo "$as_me: failed program was:" >&5
41073 sed 's/^/| /' conftest.$ac_ext >&5
41074
41075 ac_cv_func__doprnt=no
41076 fi
41077 rm -f conftest.err conftest.$ac_objext \
41078       conftest$ac_exeext conftest.$ac_ext
41079 fi
41080 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
41081 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
41082 if test $ac_cv_func__doprnt = yes; then
41083
41084 cat >>confdefs.h <<\_ACEOF
41085 #define HAVE_DOPRNT 1
41086 _ACEOF
41087
41088 fi
41089
41090 fi
41091 done
41092
41093
41094
41095 if test $ac_cv_func_vprintf = yes ; then
41096
41097
41098 for ac_func in snprintf vsnprintf
41099 do
41100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41101 echo "$as_me:$LINENO: checking for $ac_func" >&5
41102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41103 if eval "test \"\${$as_ac_var+set}\" = set"; then
41104   echo $ECHO_N "(cached) $ECHO_C" >&6
41105 else
41106   cat >conftest.$ac_ext <<_ACEOF
41107 /* confdefs.h.  */
41108 _ACEOF
41109 cat confdefs.h >>conftest.$ac_ext
41110 cat >>conftest.$ac_ext <<_ACEOF
41111 /* end confdefs.h.  */
41112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41114 #define $ac_func innocuous_$ac_func
41115
41116 /* System header to define __stub macros and hopefully few prototypes,
41117     which can conflict with char $ac_func (); below.
41118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41119     <limits.h> exists even on freestanding compilers.  */
41120
41121 #ifdef __STDC__
41122 # include <limits.h>
41123 #else
41124 # include <assert.h>
41125 #endif
41126
41127 #undef $ac_func
41128
41129 /* Override any gcc2 internal prototype to avoid an error.  */
41130 #ifdef __cplusplus
41131 extern "C"
41132 {
41133 #endif
41134 /* We use char because int might match the return type of a gcc2
41135    builtin and then its argument prototype would still apply.  */
41136 char $ac_func ();
41137 /* The GNU C library defines this for functions which it implements
41138     to always fail with ENOSYS.  Some functions are actually named
41139     something starting with __ and the normal name is an alias.  */
41140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41141 choke me
41142 #else
41143 char (*f) () = $ac_func;
41144 #endif
41145 #ifdef __cplusplus
41146 }
41147 #endif
41148
41149 int
41150 main ()
41151 {
41152 return f != $ac_func;
41153   ;
41154   return 0;
41155 }
41156 _ACEOF
41157 rm -f conftest.$ac_objext conftest$ac_exeext
41158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41159   (eval $ac_link) 2>conftest.er1
41160   ac_status=$?
41161   grep -v '^ *+' conftest.er1 >conftest.err
41162   rm -f conftest.er1
41163   cat conftest.err >&5
41164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41165   (exit $ac_status); } &&
41166          { ac_try='test -z "$ac_c_werror_flag"
41167                          || test ! -s conftest.err'
41168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41169   (eval $ac_try) 2>&5
41170   ac_status=$?
41171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41172   (exit $ac_status); }; } &&
41173          { ac_try='test -s conftest$ac_exeext'
41174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41175   (eval $ac_try) 2>&5
41176   ac_status=$?
41177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41178   (exit $ac_status); }; }; then
41179   eval "$as_ac_var=yes"
41180 else
41181   echo "$as_me: failed program was:" >&5
41182 sed 's/^/| /' conftest.$ac_ext >&5
41183
41184 eval "$as_ac_var=no"
41185 fi
41186 rm -f conftest.err conftest.$ac_objext \
41187       conftest$ac_exeext conftest.$ac_ext
41188 fi
41189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41191 if test `eval echo '${'$as_ac_var'}'` = yes; then
41192   cat >>confdefs.h <<_ACEOF
41193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41194 _ACEOF
41195
41196 fi
41197 done
41198
41199 fi
41200
41201
41202
41203
41204
41205
41206
41207
41208
41209
41210
41211
41212
41213
41214
41215
41216
41217
41218
41219
41220
41221
41222
41223
41224
41225
41226
41227
41228
41229
41230
41231
41232
41233
41234
41235
41236
41237
41238
41239
41240
41241
41242
41243
41244
41245
41246
41247
41248
41249
41250
41251
41252
41253
41254
41255 for ac_func in \
41256         bcopy                   \
41257         closesocket             \
41258         chroot                  \
41259         endgrent                \
41260         endpwent                \
41261         fcntl                   \
41262         flock                   \
41263         fstat                   \
41264         getdtablesize   \
41265         getgrgid                \
41266         gethostname             \
41267         getpass                 \
41268         getpassphrase   \
41269         getpwuid                \
41270         getpwnam                \
41271         getspnam                \
41272         gettimeofday    \
41273         initgroups              \
41274         inet_ntoa_b             \
41275         lockf                   \
41276         memcpy                  \
41277         memmove                 \
41278         mkstemp                 \
41279         mktemp                  \
41280         pipe                    \
41281         read                    \
41282         recv                    \
41283         recvfrom                \
41284         setpwfile               \
41285         setgid                  \
41286         setegid                 \
41287         setsid                  \
41288         setuid                  \
41289         seteuid                 \
41290         signal                  \
41291         strdup                  \
41292         strpbrk                 \
41293         strrchr                 \
41294         strsep                  \
41295         strstr                  \
41296         strtol                  \
41297         strtoul                 \
41298         strtoq                  \
41299         strtouq                 \
41300         strtoll                 \
41301         strspn                  \
41302         sysconf                 \
41303         usleep                  \
41304         waitpid                 \
41305         wait4                   \
41306         write                   \
41307         send                    \
41308         sendmsg                 \
41309         sendto                  \
41310
41311 do
41312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41313 echo "$as_me:$LINENO: checking for $ac_func" >&5
41314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41315 if eval "test \"\${$as_ac_var+set}\" = set"; then
41316   echo $ECHO_N "(cached) $ECHO_C" >&6
41317 else
41318   cat >conftest.$ac_ext <<_ACEOF
41319 /* confdefs.h.  */
41320 _ACEOF
41321 cat confdefs.h >>conftest.$ac_ext
41322 cat >>conftest.$ac_ext <<_ACEOF
41323 /* end confdefs.h.  */
41324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41326 #define $ac_func innocuous_$ac_func
41327
41328 /* System header to define __stub macros and hopefully few prototypes,
41329     which can conflict with char $ac_func (); below.
41330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41331     <limits.h> exists even on freestanding compilers.  */
41332
41333 #ifdef __STDC__
41334 # include <limits.h>
41335 #else
41336 # include <assert.h>
41337 #endif
41338
41339 #undef $ac_func
41340
41341 /* Override any gcc2 internal prototype to avoid an error.  */
41342 #ifdef __cplusplus
41343 extern "C"
41344 {
41345 #endif
41346 /* We use char because int might match the return type of a gcc2
41347    builtin and then its argument prototype would still apply.  */
41348 char $ac_func ();
41349 /* The GNU C library defines this for functions which it implements
41350     to always fail with ENOSYS.  Some functions are actually named
41351     something starting with __ and the normal name is an alias.  */
41352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41353 choke me
41354 #else
41355 char (*f) () = $ac_func;
41356 #endif
41357 #ifdef __cplusplus
41358 }
41359 #endif
41360
41361 int
41362 main ()
41363 {
41364 return f != $ac_func;
41365   ;
41366   return 0;
41367 }
41368 _ACEOF
41369 rm -f conftest.$ac_objext conftest$ac_exeext
41370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41371   (eval $ac_link) 2>conftest.er1
41372   ac_status=$?
41373   grep -v '^ *+' conftest.er1 >conftest.err
41374   rm -f conftest.er1
41375   cat conftest.err >&5
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); } &&
41378          { ac_try='test -z "$ac_c_werror_flag"
41379                          || test ! -s conftest.err'
41380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41381   (eval $ac_try) 2>&5
41382   ac_status=$?
41383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41384   (exit $ac_status); }; } &&
41385          { ac_try='test -s conftest$ac_exeext'
41386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41387   (eval $ac_try) 2>&5
41388   ac_status=$?
41389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41390   (exit $ac_status); }; }; then
41391   eval "$as_ac_var=yes"
41392 else
41393   echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41395
41396 eval "$as_ac_var=no"
41397 fi
41398 rm -f conftest.err conftest.$ac_objext \
41399       conftest$ac_exeext conftest.$ac_ext
41400 fi
41401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41403 if test `eval echo '${'$as_ac_var'}'` = yes; then
41404   cat >>confdefs.h <<_ACEOF
41405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41406 _ACEOF
41407
41408 fi
41409 done
41410
41411
41412
41413
41414 for ac_func in getopt getpeereid
41415 do
41416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41417 echo "$as_me:$LINENO: checking for $ac_func" >&5
41418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41419 if eval "test \"\${$as_ac_var+set}\" = set"; then
41420   echo $ECHO_N "(cached) $ECHO_C" >&6
41421 else
41422   cat >conftest.$ac_ext <<_ACEOF
41423 /* confdefs.h.  */
41424 _ACEOF
41425 cat confdefs.h >>conftest.$ac_ext
41426 cat >>conftest.$ac_ext <<_ACEOF
41427 /* end confdefs.h.  */
41428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41429    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41430 #define $ac_func innocuous_$ac_func
41431
41432 /* System header to define __stub macros and hopefully few prototypes,
41433     which can conflict with char $ac_func (); below.
41434     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41435     <limits.h> exists even on freestanding compilers.  */
41436
41437 #ifdef __STDC__
41438 # include <limits.h>
41439 #else
41440 # include <assert.h>
41441 #endif
41442
41443 #undef $ac_func
41444
41445 /* Override any gcc2 internal prototype to avoid an error.  */
41446 #ifdef __cplusplus
41447 extern "C"
41448 {
41449 #endif
41450 /* We use char because int might match the return type of a gcc2
41451    builtin and then its argument prototype would still apply.  */
41452 char $ac_func ();
41453 /* The GNU C library defines this for functions which it implements
41454     to always fail with ENOSYS.  Some functions are actually named
41455     something starting with __ and the normal name is an alias.  */
41456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41457 choke me
41458 #else
41459 char (*f) () = $ac_func;
41460 #endif
41461 #ifdef __cplusplus
41462 }
41463 #endif
41464
41465 int
41466 main ()
41467 {
41468 return f != $ac_func;
41469   ;
41470   return 0;
41471 }
41472 _ACEOF
41473 rm -f conftest.$ac_objext conftest$ac_exeext
41474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41475   (eval $ac_link) 2>conftest.er1
41476   ac_status=$?
41477   grep -v '^ *+' conftest.er1 >conftest.err
41478   rm -f conftest.er1
41479   cat conftest.err >&5
41480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41481   (exit $ac_status); } &&
41482          { ac_try='test -z "$ac_c_werror_flag"
41483                          || test ! -s conftest.err'
41484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41485   (eval $ac_try) 2>&5
41486   ac_status=$?
41487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41488   (exit $ac_status); }; } &&
41489          { ac_try='test -s conftest$ac_exeext'
41490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41491   (eval $ac_try) 2>&5
41492   ac_status=$?
41493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41494   (exit $ac_status); }; }; then
41495   eval "$as_ac_var=yes"
41496 else
41497   echo "$as_me: failed program was:" >&5
41498 sed 's/^/| /' conftest.$ac_ext >&5
41499
41500 eval "$as_ac_var=no"
41501 fi
41502 rm -f conftest.err conftest.$ac_objext \
41503       conftest$ac_exeext conftest.$ac_ext
41504 fi
41505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41507 if test `eval echo '${'$as_ac_var'}'` = yes; then
41508   cat >>confdefs.h <<_ACEOF
41509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41510 _ACEOF
41511
41512 else
41513   case $LIBOBJS in
41514     "$ac_func.$ac_objext"   | \
41515   *" $ac_func.$ac_objext"   | \
41516     "$ac_func.$ac_objext "* | \
41517   *" $ac_func.$ac_objext "* ) ;;
41518   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41519 esac
41520
41521 fi
41522 done
41523
41524
41525
41526 if test "$ac_cv_func_getopt" != yes; then
41527         LIBSRCS="$LIBSRCS getopt.c"
41528 fi
41529 if test "$ac_cv_func_getpeereid" != yes; then
41530         echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
41531 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
41532 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
41533   echo $ECHO_N "(cached) $ECHO_C" >&6
41534 else
41535   cat >conftest.$ac_ext <<_ACEOF
41536 /* confdefs.h.  */
41537 _ACEOF
41538 cat confdefs.h >>conftest.$ac_ext
41539 cat >>conftest.$ac_ext <<_ACEOF
41540 /* end confdefs.h.  */
41541 $ac_includes_default
41542 #ifdef HAVE_SYS_SOCKET_H
41543 #include <sys/socket.h>
41544 #endif
41545
41546 int
41547 main ()
41548 {
41549 static struct msghdr ac_aggr;
41550 if (ac_aggr.msg_accrightslen)
41551 return 0;
41552   ;
41553   return 0;
41554 }
41555 _ACEOF
41556 rm -f conftest.$ac_objext
41557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41558   (eval $ac_compile) 2>conftest.er1
41559   ac_status=$?
41560   grep -v '^ *+' conftest.er1 >conftest.err
41561   rm -f conftest.er1
41562   cat conftest.err >&5
41563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564   (exit $ac_status); } &&
41565          { ac_try='test -z "$ac_c_werror_flag"
41566                          || test ! -s conftest.err'
41567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41568   (eval $ac_try) 2>&5
41569   ac_status=$?
41570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41571   (exit $ac_status); }; } &&
41572          { ac_try='test -s conftest.$ac_objext'
41573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41574   (eval $ac_try) 2>&5
41575   ac_status=$?
41576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41577   (exit $ac_status); }; }; then
41578   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41579 else
41580   echo "$as_me: failed program was:" >&5
41581 sed 's/^/| /' conftest.$ac_ext >&5
41582
41583 cat >conftest.$ac_ext <<_ACEOF
41584 /* confdefs.h.  */
41585 _ACEOF
41586 cat confdefs.h >>conftest.$ac_ext
41587 cat >>conftest.$ac_ext <<_ACEOF
41588 /* end confdefs.h.  */
41589 $ac_includes_default
41590 #ifdef HAVE_SYS_SOCKET_H
41591 #include <sys/socket.h>
41592 #endif
41593
41594 int
41595 main ()
41596 {
41597 static struct msghdr ac_aggr;
41598 if (sizeof ac_aggr.msg_accrightslen)
41599 return 0;
41600   ;
41601   return 0;
41602 }
41603 _ACEOF
41604 rm -f conftest.$ac_objext
41605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41606   (eval $ac_compile) 2>conftest.er1
41607   ac_status=$?
41608   grep -v '^ *+' conftest.er1 >conftest.err
41609   rm -f conftest.er1
41610   cat conftest.err >&5
41611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41612   (exit $ac_status); } &&
41613          { ac_try='test -z "$ac_c_werror_flag"
41614                          || test ! -s conftest.err'
41615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41616   (eval $ac_try) 2>&5
41617   ac_status=$?
41618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619   (exit $ac_status); }; } &&
41620          { ac_try='test -s conftest.$ac_objext'
41621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41622   (eval $ac_try) 2>&5
41623   ac_status=$?
41624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41625   (exit $ac_status); }; }; then
41626   ac_cv_member_struct_msghdr_msg_accrightslen=yes
41627 else
41628   echo "$as_me: failed program was:" >&5
41629 sed 's/^/| /' conftest.$ac_ext >&5
41630
41631 ac_cv_member_struct_msghdr_msg_accrightslen=no
41632 fi
41633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41634 fi
41635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41636 fi
41637 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
41638 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
41639 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
41640
41641 cat >>confdefs.h <<_ACEOF
41642 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
41643 _ACEOF
41644
41645
41646 fi
41647
41648         if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
41649                 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
41650 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
41651 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
41652   echo $ECHO_N "(cached) $ECHO_C" >&6
41653 else
41654   cat >conftest.$ac_ext <<_ACEOF
41655 /* confdefs.h.  */
41656 _ACEOF
41657 cat confdefs.h >>conftest.$ac_ext
41658 cat >>conftest.$ac_ext <<_ACEOF
41659 /* end confdefs.h.  */
41660 $ac_includes_default
41661 #ifdef HAVE_SYS_SOCKET_H
41662 #include <sys/socket.h>
41663 #endif
41664
41665 int
41666 main ()
41667 {
41668 static struct msghdr ac_aggr;
41669 if (ac_aggr.msg_control)
41670 return 0;
41671   ;
41672   return 0;
41673 }
41674 _ACEOF
41675 rm -f conftest.$ac_objext
41676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41677   (eval $ac_compile) 2>conftest.er1
41678   ac_status=$?
41679   grep -v '^ *+' conftest.er1 >conftest.err
41680   rm -f conftest.er1
41681   cat conftest.err >&5
41682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41683   (exit $ac_status); } &&
41684          { ac_try='test -z "$ac_c_werror_flag"
41685                          || test ! -s conftest.err'
41686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41687   (eval $ac_try) 2>&5
41688   ac_status=$?
41689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41690   (exit $ac_status); }; } &&
41691          { ac_try='test -s conftest.$ac_objext'
41692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41693   (eval $ac_try) 2>&5
41694   ac_status=$?
41695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41696   (exit $ac_status); }; }; then
41697   ac_cv_member_struct_msghdr_msg_control=yes
41698 else
41699   echo "$as_me: failed program was:" >&5
41700 sed 's/^/| /' conftest.$ac_ext >&5
41701
41702 cat >conftest.$ac_ext <<_ACEOF
41703 /* confdefs.h.  */
41704 _ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h.  */
41708 $ac_includes_default
41709 #ifdef HAVE_SYS_SOCKET_H
41710 #include <sys/socket.h>
41711 #endif
41712
41713 int
41714 main ()
41715 {
41716 static struct msghdr ac_aggr;
41717 if (sizeof ac_aggr.msg_control)
41718 return 0;
41719   ;
41720   return 0;
41721 }
41722 _ACEOF
41723 rm -f conftest.$ac_objext
41724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41725   (eval $ac_compile) 2>conftest.er1
41726   ac_status=$?
41727   grep -v '^ *+' conftest.er1 >conftest.err
41728   rm -f conftest.er1
41729   cat conftest.err >&5
41730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41731   (exit $ac_status); } &&
41732          { ac_try='test -z "$ac_c_werror_flag"
41733                          || test ! -s conftest.err'
41734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41735   (eval $ac_try) 2>&5
41736   ac_status=$?
41737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738   (exit $ac_status); }; } &&
41739          { ac_try='test -s conftest.$ac_objext'
41740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741   (eval $ac_try) 2>&5
41742   ac_status=$?
41743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744   (exit $ac_status); }; }; then
41745   ac_cv_member_struct_msghdr_msg_control=yes
41746 else
41747   echo "$as_me: failed program was:" >&5
41748 sed 's/^/| /' conftest.$ac_ext >&5
41749
41750 ac_cv_member_struct_msghdr_msg_control=no
41751 fi
41752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41753 fi
41754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41755 fi
41756 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
41757 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
41758 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
41759
41760 cat >>confdefs.h <<_ACEOF
41761 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
41762 _ACEOF
41763
41764
41765 fi
41766
41767         fi
41768         LIBSRCS="$LIBSRCS getpeereid.c"
41769 fi
41770 if test "$ac_cv_func_snprintf" != yes ||
41771    test "$ac_cv_func_vsnprintf" != yes; then
41772         if test "$ac_cv_func_snprintf" != yes; then
41773
41774 cat >>confdefs.h <<\_ACEOF
41775 #define snprintf ber_pvt_snprintf
41776 _ACEOF
41777
41778         fi
41779         if test "$ac_cv_func_vsnprintf" != yes; then
41780
41781 cat >>confdefs.h <<\_ACEOF
41782 #define vsnprintf ber_pvt_vsnprintf
41783 _ACEOF
41784
41785         fi
41786 fi
41787
41788
41789 if test "$ol_enable_slapi" != no ; then
41790
41791 for ac_header in ltdl.h
41792 do
41793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41795   echo "$as_me:$LINENO: checking for $ac_header" >&5
41796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41798   echo $ECHO_N "(cached) $ECHO_C" >&6
41799 fi
41800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41802 else
41803   # Is the header compilable?
41804 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41806 cat >conftest.$ac_ext <<_ACEOF
41807 /* confdefs.h.  */
41808 _ACEOF
41809 cat confdefs.h >>conftest.$ac_ext
41810 cat >>conftest.$ac_ext <<_ACEOF
41811 /* end confdefs.h.  */
41812 $ac_includes_default
41813 #include <$ac_header>
41814 _ACEOF
41815 rm -f conftest.$ac_objext
41816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41817   (eval $ac_compile) 2>conftest.er1
41818   ac_status=$?
41819   grep -v '^ *+' conftest.er1 >conftest.err
41820   rm -f conftest.er1
41821   cat conftest.err >&5
41822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41823   (exit $ac_status); } &&
41824          { ac_try='test -z "$ac_c_werror_flag"
41825                          || test ! -s conftest.err'
41826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41827   (eval $ac_try) 2>&5
41828   ac_status=$?
41829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41830   (exit $ac_status); }; } &&
41831          { ac_try='test -s conftest.$ac_objext'
41832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41833   (eval $ac_try) 2>&5
41834   ac_status=$?
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); }; }; then
41837   ac_header_compiler=yes
41838 else
41839   echo "$as_me: failed program was:" >&5
41840 sed 's/^/| /' conftest.$ac_ext >&5
41841
41842 ac_header_compiler=no
41843 fi
41844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41846 echo "${ECHO_T}$ac_header_compiler" >&6
41847
41848 # Is the header present?
41849 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41851 cat >conftest.$ac_ext <<_ACEOF
41852 /* confdefs.h.  */
41853 _ACEOF
41854 cat confdefs.h >>conftest.$ac_ext
41855 cat >>conftest.$ac_ext <<_ACEOF
41856 /* end confdefs.h.  */
41857 #include <$ac_header>
41858 _ACEOF
41859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41861   ac_status=$?
41862   grep -v '^ *+' conftest.er1 >conftest.err
41863   rm -f conftest.er1
41864   cat conftest.err >&5
41865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866   (exit $ac_status); } >/dev/null; then
41867   if test -s conftest.err; then
41868     ac_cpp_err=$ac_c_preproc_warn_flag
41869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41870   else
41871     ac_cpp_err=
41872   fi
41873 else
41874   ac_cpp_err=yes
41875 fi
41876 if test -z "$ac_cpp_err"; then
41877   ac_header_preproc=yes
41878 else
41879   echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41881
41882   ac_header_preproc=no
41883 fi
41884 rm -f conftest.err conftest.$ac_ext
41885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41886 echo "${ECHO_T}$ac_header_preproc" >&6
41887
41888 # So?  What about this header?
41889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41890   yes:no: )
41891     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41892 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41895     ac_header_preproc=yes
41896     ;;
41897   no:yes:* )
41898     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41899 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41900     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41901 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41902     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41903 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41904     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41905 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41906     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41908     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41909 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41910     (
41911       cat <<\_ASBOX
41912 ## ------------------------------------------ ##
41913 ## Report this to the AC_PACKAGE_NAME lists.  ##
41914 ## ------------------------------------------ ##
41915 _ASBOX
41916     ) |
41917       sed "s/^/$as_me: WARNING:     /" >&2
41918     ;;
41919 esac
41920 echo "$as_me:$LINENO: checking for $ac_header" >&5
41921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41923   echo $ECHO_N "(cached) $ECHO_C" >&6
41924 else
41925   eval "$as_ac_Header=\$ac_header_preproc"
41926 fi
41927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41929
41930 fi
41931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41932   cat >>confdefs.h <<_ACEOF
41933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41934 _ACEOF
41935
41936 fi
41937
41938 done
41939
41940
41941         if test $ac_cv_header_ltdl_h != yes ; then
41942                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
41943 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
41944    { (exit 1); exit 1; }; }
41945         fi
41946         echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
41947 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
41948 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
41949   echo $ECHO_N "(cached) $ECHO_C" >&6
41950 else
41951   ac_check_lib_save_LIBS=$LIBS
41952 LIBS="-lltdl  $LIBS"
41953 cat >conftest.$ac_ext <<_ACEOF
41954 /* confdefs.h.  */
41955 _ACEOF
41956 cat confdefs.h >>conftest.$ac_ext
41957 cat >>conftest.$ac_ext <<_ACEOF
41958 /* end confdefs.h.  */
41959
41960 /* Override any gcc2 internal prototype to avoid an error.  */
41961 #ifdef __cplusplus
41962 extern "C"
41963 #endif
41964 /* We use char because int might match the return type of a gcc2
41965    builtin and then its argument prototype would still apply.  */
41966 char lt_dlinit ();
41967 int
41968 main ()
41969 {
41970 lt_dlinit ();
41971   ;
41972   return 0;
41973 }
41974 _ACEOF
41975 rm -f conftest.$ac_objext conftest$ac_exeext
41976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41977   (eval $ac_link) 2>conftest.er1
41978   ac_status=$?
41979   grep -v '^ *+' conftest.er1 >conftest.err
41980   rm -f conftest.er1
41981   cat conftest.err >&5
41982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983   (exit $ac_status); } &&
41984          { ac_try='test -z "$ac_c_werror_flag"
41985                          || test ! -s conftest.err'
41986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41987   (eval $ac_try) 2>&5
41988   ac_status=$?
41989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41990   (exit $ac_status); }; } &&
41991          { ac_try='test -s conftest$ac_exeext'
41992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41993   (eval $ac_try) 2>&5
41994   ac_status=$?
41995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41996   (exit $ac_status); }; }; then
41997   ac_cv_lib_ltdl_lt_dlinit=yes
41998 else
41999   echo "$as_me: failed program was:" >&5
42000 sed 's/^/| /' conftest.$ac_ext >&5
42001
42002 ac_cv_lib_ltdl_lt_dlinit=no
42003 fi
42004 rm -f conftest.err conftest.$ac_objext \
42005       conftest$ac_exeext conftest.$ac_ext
42006 LIBS=$ac_check_lib_save_LIBS
42007 fi
42008 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
42009 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
42010 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
42011
42012                 SLAPI_LIBS=-lltdl
42013                 LIBSLAPI=libslapi.a
42014                 LIBSLAPITOOLS=../libslapi.a
42015
42016 cat >>confdefs.h <<\_ACEOF
42017 #define HAVE_LIBLTDL 1
42018 _ACEOF
42019
42020
42021 else
42022   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
42023 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
42024    { (exit 1); exit 1; }; }
42025 fi
42026
42027
42028
42029 cat >>confdefs.h <<\_ACEOF
42030 #define LDAP_SLAPI 1
42031 _ACEOF
42032
42033 fi
42034
42035 if test "$ol_enable_debug" != no ; then
42036
42037 cat >>confdefs.h <<\_ACEOF
42038 #define LDAP_DEBUG 1
42039 _ACEOF
42040
42041 fi
42042 if test "$ol_enable_syslog" = yes ; then
42043
42044 cat >>confdefs.h <<\_ACEOF
42045 #define LDAP_SYSLOG 1
42046 _ACEOF
42047
42048 fi
42049 if test "$ol_link_kbind" != no ; then
42050
42051 cat >>confdefs.h <<\_ACEOF
42052 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
42053 _ACEOF
42054
42055 fi
42056 if test "$ol_enable_proctitle" != no ; then
42057
42058 cat >>confdefs.h <<\_ACEOF
42059 #define LDAP_PROCTITLE 1
42060 _ACEOF
42061
42062 fi
42063 if test "$ol_enable_referrals" != no ; then
42064
42065 cat >>confdefs.h <<\_ACEOF
42066 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
42067 _ACEOF
42068
42069 fi
42070 if test "$ol_enable_local" != no; then
42071
42072 cat >>confdefs.h <<\_ACEOF
42073 #define LDAP_PF_LOCAL 1
42074 _ACEOF
42075
42076 fi
42077 if test "$ol_link_ipv6" != no; then
42078
42079 cat >>confdefs.h <<\_ACEOF
42080 #define LDAP_PF_INET6 1
42081 _ACEOF
42082
42083 fi
42084 if test "$ol_enable_cleartext" != no ; then
42085
42086 cat >>confdefs.h <<\_ACEOF
42087 #define SLAPD_CLEARTEXT 1
42088 _ACEOF
42089
42090 fi
42091 if test "$ol_enable_crypt" != no ; then
42092
42093 cat >>confdefs.h <<\_ACEOF
42094 #define SLAPD_CRYPT 1
42095 _ACEOF
42096
42097 fi
42098 if test "$ol_link_spasswd" != no ; then
42099
42100 cat >>confdefs.h <<\_ACEOF
42101 #define SLAPD_SPASSWD 1
42102 _ACEOF
42103
42104 fi
42105 if test "$ol_enable_multimaster" != no ; then
42106
42107 cat >>confdefs.h <<\_ACEOF
42108 #define SLAPD_MULTIMASTER 1
42109 _ACEOF
42110
42111 fi
42112 if test "$ol_enable_rlookups" != no ; then
42113
42114 cat >>confdefs.h <<\_ACEOF
42115 #define SLAPD_RLOOKUPS 1
42116 _ACEOF
42117
42118 fi
42119 if test "$ol_enable_aci" != no ; then
42120
42121 cat >>confdefs.h <<\_ACEOF
42122 #define SLAPD_ACI_ENABLED 1
42123 _ACEOF
42124
42125         WITH_ACI_ENABLED=yes
42126 else
42127         WITH_ACI_ENABLED=no
42128 fi
42129
42130 if test "$ol_link_modules" != no ; then
42131
42132 cat >>confdefs.h <<\_ACEOF
42133 #define SLAPD_MODULES 1
42134 _ACEOF
42135
42136         BUILD_SLAPD=yes
42137         SLAPD_MODULES_LDFLAGS="-dlopen self"
42138 fi
42139
42140
42141 cat >>confdefs.h <<\_ACEOF
42142 #define SLAPD_MOD_STATIC 1
42143 _ACEOF
42144
42145
42146 cat >>confdefs.h <<\_ACEOF
42147 #define SLAPD_MOD_DYNAMIC 2
42148 _ACEOF
42149
42150
42151 if test "$ol_enable_bdb" != no ; then
42152         BUILD_SLAPD=yes
42153         BUILD_BDB=$ol_enable_bdb
42154         if test "$ol_enable_bdb" = mod ; then
42155                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
42156                 MFLAG=SLAPD_MOD_DYNAMIC
42157         else
42158                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
42159                 MFLAG=SLAPD_MOD_STATIC
42160         fi
42161
42162 cat >>confdefs.h <<_ACEOF
42163 #define SLAPD_BDB $MFLAG
42164 _ACEOF
42165
42166 fi
42167
42168 if test "$ol_enable_dnssrv" != no ; then
42169         BUILD_SLAPD=yes
42170         BUILD_DNSSRV=$ol_enable_dnssrv
42171         if test "$ol_enable_dnssrv" = mod ; then
42172                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
42173                 MFLAG=SLAPD_MOD_DYNAMIC
42174         else
42175                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
42176                 MFLAG=SLAPD_MOD_STATIC
42177         fi
42178
42179 cat >>confdefs.h <<_ACEOF
42180 #define SLAPD_DNSSRV $MFLAG
42181 _ACEOF
42182
42183 fi
42184
42185 if test "$ol_enable_hdb" != no ; then
42186         BUILD_SLAPD=yes
42187         BUILD_HDB=$ol_enable_hdb
42188         if test "$ol_enable_hdb" = mod ; then
42189                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
42190                 MFLAG=SLAPD_MOD_DYNAMIC
42191         else
42192                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
42193                 MFLAG=SLAPD_MOD_STATIC
42194         fi
42195
42196 cat >>confdefs.h <<_ACEOF
42197 #define SLAPD_HDB $MFLAG
42198 _ACEOF
42199
42200 fi
42201
42202 if test "$ol_enable_ldap" != no ; then
42203         BUILD_SLAPD=yes
42204         BUILD_LDAP=$ol_enable_ldap
42205         if test "$ol_enable_ldap" = mod ; then
42206                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
42207                 MFLAG=SLAPD_MOD_DYNAMIC
42208         else
42209                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
42210                 MFLAG=SLAPD_MOD_STATIC
42211         fi
42212
42213 cat >>confdefs.h <<_ACEOF
42214 #define SLAPD_LDAP $MFLAG
42215 _ACEOF
42216
42217 fi
42218
42219 if test "$ol_link_ldbm" != no && test $ol_enable_ldbm != no; then
42220         BUILD_SLAPD=yes
42221         BUILD_LDBM=$ol_enable_ldbm
42222         if test "$ol_enable_ldbm" = mod ; then
42223                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
42224                 MFLAG=SLAPD_MOD_DYNAMIC
42225         else
42226                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
42227                 MFLAG=SLAPD_MOD_STATIC
42228         fi
42229
42230 cat >>confdefs.h <<_ACEOF
42231 #define SLAPD_LDBM $MFLAG
42232 _ACEOF
42233
42234 fi
42235
42236 if test "$ol_enable_meta" != no ; then
42237         BUILD_SLAPD=yes
42238         BUILD_META=$ol_enable_meta
42239         BUILD_REWRITE=yes
42240         if test "$ol_enable_meta" = mod ; then
42241                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
42242                 MFLAG=SLAPD_MOD_DYNAMIC
42243         else
42244                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
42245                 MFLAG=SLAPD_MOD_STATIC
42246         fi
42247
42248 cat >>confdefs.h <<_ACEOF
42249 #define SLAPD_META $MFLAG
42250 _ACEOF
42251
42252 fi
42253
42254 if test "$ol_enable_monitor" != no ; then
42255         BUILD_SLAPD=yes
42256         BUILD_MONITOR=$ol_enable_monitor
42257         if test "$ol_enable_monitor" = mod ; then
42258                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
42259                 MFLAG=SLAPD_MOD_DYNAMIC
42260         else
42261                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
42262                 MFLAG=SLAPD_MOD_STATIC
42263         fi
42264
42265 cat >>confdefs.h <<_ACEOF
42266 #define SLAPD_MONITOR $MFLAG
42267 _ACEOF
42268
42269 fi
42270
42271 if test "$ol_enable_null" != no ; then
42272         BUILD_SLAPD=yes
42273         BUILD_NULL=$ol_enable_null
42274         if test "$ol_enable_null" = mod ; then
42275                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
42276                 MFLAG=SLAPD_MOD_DYNAMIC
42277         else
42278                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
42279                 MFLAG=SLAPD_MOD_STATIC
42280         fi
42281
42282 cat >>confdefs.h <<_ACEOF
42283 #define SLAPD_NULL $MFLAG
42284 _ACEOF
42285
42286 fi
42287
42288 if test "$ol_enable_passwd" != no ; then
42289         BUILD_SLAPD=yes
42290         BUILD_PASSWD=$ol_enable_passwd
42291         if test "$ol_enable_passwd" = mod ; then
42292                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
42293                 MFLAG=SLAPD_MOD_DYNAMIC
42294         else
42295                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
42296                 MFLAG=SLAPD_MOD_STATIC
42297         fi
42298
42299 cat >>confdefs.h <<_ACEOF
42300 #define SLAPD_PASSWD $MFLAG
42301 _ACEOF
42302
42303 fi
42304
42305 if test "$ol_link_perl" != no ; then
42306         BUILD_SLAPD=yes
42307         BUILD_PERL=$ol_enable_perl
42308         if test "$ol_enable_perl" = mod ; then
42309                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
42310                 MFLAG=SLAPD_MOD_DYNAMIC
42311         else
42312                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
42313                 MFLAG=SLAPD_MOD_STATIC
42314         fi
42315
42316 cat >>confdefs.h <<_ACEOF
42317 #define SLAPD_PERL $MFLAG
42318 _ACEOF
42319
42320 fi
42321
42322 if test "$ol_enable_relay" != no ; then
42323         BUILD_SLAPD=yes
42324         BUILD_RELAY=$ol_enable_relay
42325         if test "$ol_enable_relay" = mod ; then
42326                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
42327                 MFLAG=SLAPD_MOD_DYNAMIC
42328         else
42329                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
42330                 MFLAG=SLAPD_MOD_STATIC
42331         fi
42332
42333 cat >>confdefs.h <<_ACEOF
42334 #define SLAPD_RELAY $MFLAG
42335 _ACEOF
42336
42337 fi
42338
42339 if test "$ol_enable_shell" != no ; then
42340         if test "$ol_link_threads" != no ; then
42341                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
42342 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
42343         fi
42344         BUILD_SLAPD=yes
42345         BUILD_SHELL=$ol_enable_shell
42346         if test "$ol_enable_shell" = mod ; then
42347                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
42348                 MFLAG=SLAPD_MOD_DYNAMIC
42349         else
42350                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
42351                 MFLAG=SLAPD_MOD_STATIC
42352         fi
42353
42354 cat >>confdefs.h <<_ACEOF
42355 #define SLAPD_SHELL $MFLAG
42356 _ACEOF
42357
42358 fi
42359
42360 if test "$ol_link_sql" != no ; then
42361         BUILD_SLAPD=yes
42362         BUILD_SQL=$ol_enable_sql
42363         if test "$ol_enable_sql" = mod; then
42364                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
42365                 MFLAG=SLAPD_MOD_DYNAMIC
42366         else
42367                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
42368                 MFLAG=SLAPD_MOD_STATIC
42369         fi
42370
42371 cat >>confdefs.h <<_ACEOF
42372 #define SLAPD_SQL $MFLAG
42373 _ACEOF
42374
42375 fi
42376
42377 if test "$ol_enable_accesslog" != no ; then
42378         BUILD_ACCESSLOG=$ol_enable_accesslog
42379         if test "$ol_enable_accesslog" = mod ; then
42380                 MFLAG=SLAPD_MOD_DYNAMIC
42381                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
42382         else
42383                 MFLAG=SLAPD_MOD_STATIC
42384                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
42385         fi
42386
42387 cat >>confdefs.h <<_ACEOF
42388 #define SLAPD_OVER_ACCESSLOG $MFLAG
42389 _ACEOF
42390
42391 fi
42392
42393 if test "$ol_enable_denyop" != no ; then
42394         BUILD_DENYOP=$ol_enable_denyop
42395         if test "$ol_enable_denyop" = mod ; then
42396                 MFLAG=SLAPD_MOD_DYNAMIC
42397                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
42398         else
42399                 MFLAG=SLAPD_MOD_STATIC
42400                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
42401         fi
42402
42403 cat >>confdefs.h <<_ACEOF
42404 #define SLAPD_OVER_DENYOP $MFLAG
42405 _ACEOF
42406
42407 fi
42408
42409 if test "$ol_enable_dyngroup" != no ; then
42410         BUILD_DYNGROUP=$ol_enable_dyngroup
42411         if test "$ol_enable_dyngroup" = mod ; then
42412                 MFLAG=SLAPD_MOD_DYNAMIC
42413                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
42414         else
42415                 MFLAG=SLAPD_MOD_STATIC
42416                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
42417         fi
42418
42419 cat >>confdefs.h <<_ACEOF
42420 #define SLAPD_OVER_DYNGROUP $MFLAG
42421 _ACEOF
42422
42423 fi
42424
42425 if test "$ol_enable_dynlist" != no ; then
42426         BUILD_DYNLIST=$ol_enable_dynlist
42427         if test "$ol_enable_dynlist" = mod ; then
42428                 MFLAG=SLAPD_MOD_DYNAMIC
42429                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
42430         else
42431                 MFLAG=SLAPD_MOD_STATIC
42432                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
42433         fi
42434
42435 cat >>confdefs.h <<_ACEOF
42436 #define SLAPD_OVER_DYNLIST $MFLAG
42437 _ACEOF
42438
42439 fi
42440
42441 if test "$ol_enable_lastmod" != no ; then
42442         BUILD_LASTMOD=$ol_enable_lastmod
42443         if test "$ol_enable_lastmod" = mod ; then
42444                 MFLAG=SLAPD_MOD_DYNAMIC
42445                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
42446         else
42447                 MFLAG=SLAPD_MOD_STATIC
42448                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
42449         fi
42450
42451 cat >>confdefs.h <<_ACEOF
42452 #define SLAPD_OVER_LASTMOD $MFLAG
42453 _ACEOF
42454
42455 fi
42456
42457 if test "$ol_enable_ppolicy" != no ; then
42458         BUILD_PPOLICY=$ol_enable_ppolicy
42459         if test "$ol_enable_ppolicy" = mod ; then
42460                 MFLAG=SLAPD_MOD_DYNAMIC
42461                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
42462         else
42463                 MFLAG=SLAPD_MOD_STATIC
42464                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
42465         fi
42466
42467 cat >>confdefs.h <<_ACEOF
42468 #define SLAPD_OVER_PPOLICY $MFLAG
42469 _ACEOF
42470
42471 fi
42472
42473 if test "$ol_enable_proxycache" != no ; then
42474         BUILD_PROXYCACHE=$ol_enable_proxycache
42475         if test "$ol_enable_proxycache" = mod ; then
42476                 MFLAG=SLAPD_MOD_DYNAMIC
42477                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
42478         else
42479                 MFLAG=SLAPD_MOD_STATIC
42480                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
42481         fi
42482
42483 cat >>confdefs.h <<_ACEOF
42484 #define SLAPD_OVER_PROXYCACHE $MFLAG
42485 _ACEOF
42486
42487 fi
42488
42489 if test "$ol_enable_refint" != no ; then
42490         BUILD_REFINT=$ol_enable_refint
42491         if test "$ol_enable_refint" = mod ; then
42492                 MFLAG=SLAPD_MOD_DYNAMIC
42493                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
42494         else
42495                 MFLAG=SLAPD_MOD_STATIC
42496                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
42497         fi
42498
42499 cat >>confdefs.h <<_ACEOF
42500 #define SLAPD_OVER_REFINT $MFLAG
42501 _ACEOF
42502
42503 fi
42504
42505 if test "$ol_enable_retcode" != no ; then
42506         BUILD_RETCODE=$ol_enable_retcode
42507         if test "$ol_enable_retcode" = mod ; then
42508                 MFLAG=SLAPD_MOD_DYNAMIC
42509                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
42510         else
42511                 MFLAG=SLAPD_MOD_STATIC
42512                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
42513         fi
42514
42515 cat >>confdefs.h <<_ACEOF
42516 #define SLAPD_OVER_RETCODE $MFLAG
42517 _ACEOF
42518
42519 fi
42520
42521 if test "$ol_enable_rwm" != no ; then
42522         BUILD_REWRITE=yes
42523         BUILD_RWM=$ol_enable_rwm
42524         if test "$ol_enable_rwm" = mod ; then
42525                 MFLAG=SLAPD_MOD_DYNAMIC
42526                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
42527         else
42528                 MFLAG=SLAPD_MOD_STATIC
42529                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
42530         fi
42531
42532 cat >>confdefs.h <<_ACEOF
42533 #define SLAPD_OVER_RWM $MFLAG
42534 _ACEOF
42535
42536 fi
42537
42538 if test "$ol_enable_syncprov" != no ; then
42539         BUILD_SYNCPROV=$ol_enable_syncprov
42540         if test "$ol_enable_syncprov" = mod ; then
42541                 MFLAG=SLAPD_MOD_DYNAMIC
42542                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
42543         else
42544                 MFLAG=SLAPD_MOD_STATIC
42545                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
42546         fi
42547
42548 cat >>confdefs.h <<_ACEOF
42549 #define SLAPD_OVER_SYNCPROV $MFLAG
42550 _ACEOF
42551
42552 fi
42553
42554 if test "$ol_enable_translucent" != no ; then
42555         BUILD_TRANSLUCENT=$ol_enable_translucent
42556         if test "$ol_enable_translucent" = mod ; then
42557                 MFLAG=SLAPD_MOD_DYNAMIC
42558                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
42559         else
42560                 MFLAG=SLAPD_MOD_STATIC
42561                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
42562         fi
42563
42564 cat >>confdefs.h <<_ACEOF
42565 #define SLAPD_OVER_TRANSLUCENT $MFLAG
42566 _ACEOF
42567
42568 fi
42569
42570 if test "$ol_enable_unique" != no ; then
42571         BUILD_UNIQUE=$ol_enable_unique
42572         if test "$ol_enable_unique" = mod ; then
42573                 MFLAG=SLAPD_MOD_DYNAMIC
42574                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
42575         else
42576                 MFLAG=SLAPD_MOD_STATIC
42577                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
42578         fi
42579
42580 cat >>confdefs.h <<_ACEOF
42581 #define SLAPD_OVER_UNIQUE $MFLAG
42582 _ACEOF
42583
42584 fi
42585
42586 if test "$ol_enable_valsort" != no ; then
42587         BUILD_VALSORT=$ol_enable_valsort
42588         if test "$ol_enable_valsort" = mod ; then
42589                 MFLAG=SLAPD_MOD_DYNAMIC
42590                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
42591         else
42592                 MFLAG=SLAPD_MOD_STATIC
42593                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
42594         fi
42595
42596 cat >>confdefs.h <<_ACEOF
42597 #define SLAPD_OVER_VALSORT $MFLAG
42598 _ACEOF
42599
42600 fi
42601
42602 if test "$ol_enable_slurpd" != no &&
42603    test "$ol_link_threads" != no &&
42604    test $BUILD_SLAPD = yes ; then
42605         BUILD_SLURPD=yes
42606 fi
42607
42608 if test "$ol_enable_rewrite" != no ; then
42609
42610 cat >>confdefs.h <<\_ACEOF
42611 #define ENABLE_REWRITE 1
42612 _ACEOF
42613
42614         BUILD_REWRITE=yes
42615 fi
42616
42617 if test "$ol_enable_slapi" != no ; then
42618
42619 cat >>confdefs.h <<\_ACEOF
42620 #define ENABLE_SLAPI 1
42621 _ACEOF
42622
42623         BUILD_SLAPI=yes
42624         SLAPD_SLAPI_DEPEND=libslapi.a
42625 fi
42626
42627
42628
42629 if test "$ac_cv_mingw32" = yes ; then
42630         PLAT=NT
42631         SLAPD_MODULES_LDFLAGS=
42632 else
42633         PLAT=UNIX
42634 fi
42635
42636
42637
42638
42639
42640
42641
42642
42643
42644
42645
42646
42647
42648
42649
42650
42651
42652
42653
42654
42655
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665
42666
42667
42668
42669
42670
42671
42672
42673
42674
42675
42676
42677
42678
42679
42680
42681
42682
42683
42684
42685
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695
42696
42697
42698
42699
42700
42701
42702
42703
42704
42705
42706
42707
42708
42709
42710
42711
42712
42713
42714
42715 # Check whether --with-xxinstall or --without-xxinstall was given.
42716 if test "${with_xxinstall+set}" = set; then
42717   withval="$with_xxinstall"
42718
42719 fi;
42720
42721
42722                                                                                                                                                                                                                                                                                                                                                                                                                 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-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/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"
42723
42724
42725           ac_config_commands="$ac_config_commands default"
42726
42727
42728
42729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42730 # Let make expand exec_prefix.
42731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42732
42733 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42734 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
42735 # trailing colons and then remove the whole line if VPATH becomes empty
42736 # (actually we leave an empty line to preserve line numbers).
42737 if test "x$srcdir" = x.; then
42738   ac_vpsub='/^[  ]*VPATH[        ]*=/{
42739 s/:*\$(srcdir):*/:/;
42740 s/:*\${srcdir}:*/:/;
42741 s/:*@srcdir@:*/:/;
42742 s/^\([^=]*=[     ]*\):*/\1/;
42743 s/:*$//;
42744 s/^[^=]*=[       ]*$//;
42745 }'
42746 fi
42747
42748 DEFS=-DHAVE_CONFIG_H
42749
42750 ac_libobjs=
42751 ac_ltlibobjs=
42752 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42753   # 1. Remove the extension, and $U if already installed.
42754   ac_i=`echo "$ac_i" |
42755          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
42756   # 2. Add them.
42757   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
42758   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
42759 done
42760 LIBOBJS=$ac_libobjs
42761
42762 LTLIBOBJS=$ac_ltlibobjs
42763
42764
42765 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
42766   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
42767 Usually this means the macro was only invoked conditionally." >&5
42768 echo "$as_me: error: conditional \"AMDEP\" was never defined.
42769 Usually this means the macro was only invoked conditionally." >&2;}
42770    { (exit 1); exit 1; }; }
42771 fi
42772 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42773   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42774 Usually this means the macro was only invoked conditionally." >&5
42775 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42776 Usually this means the macro was only invoked conditionally." >&2;}
42777    { (exit 1); exit 1; }; }
42778 fi
42779 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
42780   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
42781 Usually this means the macro was only invoked conditionally." >&5
42782 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
42783 Usually this means the macro was only invoked conditionally." >&2;}
42784    { (exit 1); exit 1; }; }
42785 fi
42786
42787 : ${CONFIG_STATUS=./config.status}
42788 ac_clean_files_save=$ac_clean_files
42789 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42790 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42791 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42792 cat >$CONFIG_STATUS <<_ACEOF
42793 #! $SHELL
42794 # Generated by $as_me.
42795 # Run this file to recreate the current configuration.
42796 # Compiler output produced by configure, useful for debugging
42797 # configure, is in config.log if it exists.
42798
42799 debug=false
42800 ac_cs_recheck=false
42801 ac_cs_silent=false
42802 SHELL=\${CONFIG_SHELL-$SHELL}
42803 _ACEOF
42804
42805 cat >>$CONFIG_STATUS <<\_ACEOF
42806 ## --------------------- ##
42807 ## M4sh Initialization.  ##
42808 ## --------------------- ##
42809
42810 # Be Bourne compatible
42811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42812   emulate sh
42813   NULLCMD=:
42814   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42815   # is contrary to our usage.  Disable this feature.
42816   alias -g '${1+"$@"}'='"$@"'
42817 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42818   set -o posix
42819 fi
42820 DUALCASE=1; export DUALCASE # for MKS sh
42821
42822 # Support unset when possible.
42823 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
42824   as_unset=unset
42825 else
42826   as_unset=false
42827 fi
42828
42829
42830 # Work around bugs in pre-3.0 UWIN ksh.
42831 $as_unset ENV MAIL MAILPATH
42832 PS1='$ '
42833 PS2='> '
42834 PS4='+ '
42835
42836 # NLS nuisances.
42837 for as_var in \
42838   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42839   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42840   LC_TELEPHONE LC_TIME
42841 do
42842   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
42843     eval $as_var=C; export $as_var
42844   else
42845     $as_unset $as_var
42846   fi
42847 done
42848
42849 # Required to use basename.
42850 if expr a : '\(a\)' >/dev/null 2>&1; then
42851   as_expr=expr
42852 else
42853   as_expr=false
42854 fi
42855
42856 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42857   as_basename=basename
42858 else
42859   as_basename=false
42860 fi
42861
42862
42863 # Name of the executable.
42864 as_me=`$as_basename "$0" ||
42865 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42866          X"$0" : 'X\(//\)$' \| \
42867          X"$0" : 'X\(/\)$' \| \
42868          .     : '\(.\)' 2>/dev/null ||
42869 echo X/"$0" |
42870     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42871           /^X\/\(\/\/\)$/{ s//\1/; q; }
42872           /^X\/\(\/\).*/{ s//\1/; q; }
42873           s/.*/./; q'`
42874
42875
42876 # PATH needs CR, and LINENO needs CR and PATH.
42877 # Avoid depending upon Character Ranges.
42878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42881 as_cr_digits='0123456789'
42882 as_cr_alnum=$as_cr_Letters$as_cr_digits
42883
42884 # The user is always right.
42885 if test "${PATH_SEPARATOR+set}" != set; then
42886   echo "#! /bin/sh" >conf$$.sh
42887   echo  "exit 0"   >>conf$$.sh
42888   chmod +x conf$$.sh
42889   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42890     PATH_SEPARATOR=';'
42891   else
42892     PATH_SEPARATOR=:
42893   fi
42894   rm -f conf$$.sh
42895 fi
42896
42897
42898   as_lineno_1=$LINENO
42899   as_lineno_2=$LINENO
42900   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42901   test "x$as_lineno_1" != "x$as_lineno_2" &&
42902   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
42903   # Find who we are.  Look in the path if we contain no path at all
42904   # relative or not.
42905   case $0 in
42906     *[\\/]* ) as_myself=$0 ;;
42907     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42908 for as_dir in $PATH
42909 do
42910   IFS=$as_save_IFS
42911   test -z "$as_dir" && as_dir=.
42912   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42913 done
42914
42915        ;;
42916   esac
42917   # We did not find ourselves, most probably we were run as `sh COMMAND'
42918   # in which case we are not to be found in the path.
42919   if test "x$as_myself" = x; then
42920     as_myself=$0
42921   fi
42922   if test ! -f "$as_myself"; then
42923     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42924 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42925    { (exit 1); exit 1; }; }
42926   fi
42927   case $CONFIG_SHELL in
42928   '')
42929     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42930 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42931 do
42932   IFS=$as_save_IFS
42933   test -z "$as_dir" && as_dir=.
42934   for as_base in sh bash ksh sh5; do
42935          case $as_dir in
42936          /*)
42937            if ("$as_dir/$as_base" -c '
42938   as_lineno_1=$LINENO
42939   as_lineno_2=$LINENO
42940   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42941   test "x$as_lineno_1" != "x$as_lineno_2" &&
42942   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
42943              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42944              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42945              CONFIG_SHELL=$as_dir/$as_base
42946              export CONFIG_SHELL
42947              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42948            fi;;
42949          esac
42950        done
42951 done
42952 ;;
42953   esac
42954
42955   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42956   # uniformly replaced by the line number.  The first 'sed' inserts a
42957   # line-number line before each line; the second 'sed' does the real
42958   # work.  The second script uses 'N' to pair each line-number line
42959   # with the numbered line, and appends trailing '-' during
42960   # substitution so that $LINENO is not a special case at line end.
42961   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42962   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
42963   sed '=' <$as_myself |
42964     sed '
42965       N
42966       s,$,-,
42967       : loop
42968       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42969       t loop
42970       s,-$,,
42971       s,^['$as_cr_digits']*\n,,
42972     ' >$as_me.lineno &&
42973   chmod +x $as_me.lineno ||
42974     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42975 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42976    { (exit 1); exit 1; }; }
42977
42978   # Don't try to exec as it changes $[0], causing all sort of problems
42979   # (the dirname of $[0] is not the place where we might find the
42980   # original and so on.  Autoconf is especially sensible to this).
42981   . ./$as_me.lineno
42982   # Exit status is that of the last command.
42983   exit
42984 }
42985
42986
42987 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42988   *c*,-n*) ECHO_N= ECHO_C='
42989 ' ECHO_T='      ' ;;
42990   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42991   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
42992 esac
42993
42994 if expr a : '\(a\)' >/dev/null 2>&1; then
42995   as_expr=expr
42996 else
42997   as_expr=false
42998 fi
42999
43000 rm -f conf$$ conf$$.exe conf$$.file
43001 echo >conf$$.file
43002 if ln -s conf$$.file conf$$ 2>/dev/null; then
43003   # We could just check for DJGPP; but this test a) works b) is more generic
43004   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43005   if test -f conf$$.exe; then
43006     # Don't use ln at all; we don't have any links
43007     as_ln_s='cp -p'
43008   else
43009     as_ln_s='ln -s'
43010   fi
43011 elif ln conf$$.file conf$$ 2>/dev/null; then
43012   as_ln_s=ln
43013 else
43014   as_ln_s='cp -p'
43015 fi
43016 rm -f conf$$ conf$$.exe conf$$.file
43017
43018 if mkdir -p . 2>/dev/null; then
43019   as_mkdir_p=:
43020 else
43021   test -d ./-p && rmdir ./-p
43022   as_mkdir_p=false
43023 fi
43024
43025 as_executable_p="test -f"
43026
43027 # Sed expression to map a string onto a valid CPP name.
43028 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43029
43030 # Sed expression to map a string onto a valid variable name.
43031 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43032
43033
43034 # IFS
43035 # We need space, tab and new line, in precisely that order.
43036 as_nl='
43037 '
43038 IFS="   $as_nl"
43039
43040 # CDPATH.
43041 $as_unset CDPATH
43042
43043 exec 6>&1
43044
43045 # Open the log real soon, to keep \$[0] and so on meaningful, and to
43046 # report actual input values of CONFIG_FILES etc. instead of their
43047 # values after options handling.  Logging --version etc. is OK.
43048 exec 5>>config.log
43049 {
43050   echo
43051   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43052 ## Running $as_me. ##
43053 _ASBOX
43054 } >&5
43055 cat >&5 <<_CSEOF
43056
43057 This file was extended by $as_me, which was
43058 generated by GNU Autoconf 2.59.  Invocation command line was
43059
43060   CONFIG_FILES    = $CONFIG_FILES
43061   CONFIG_HEADERS  = $CONFIG_HEADERS
43062   CONFIG_LINKS    = $CONFIG_LINKS
43063   CONFIG_COMMANDS = $CONFIG_COMMANDS
43064   $ $0 $@
43065
43066 _CSEOF
43067 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43068 echo >&5
43069 _ACEOF
43070
43071 # Files that config.status was made for.
43072 if test -n "$ac_config_files"; then
43073   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43074 fi
43075
43076 if test -n "$ac_config_headers"; then
43077   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43078 fi
43079
43080 if test -n "$ac_config_links"; then
43081   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43082 fi
43083
43084 if test -n "$ac_config_commands"; then
43085   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43086 fi
43087
43088 cat >>$CONFIG_STATUS <<\_ACEOF
43089
43090 ac_cs_usage="\
43091 \`$as_me' instantiates files from templates according to the
43092 current configuration.
43093
43094 Usage: $0 [OPTIONS] [FILE]...
43095
43096   -h, --help       print this help, then exit
43097   -V, --version    print version number, then exit
43098   -q, --quiet      do not print progress messages
43099   -d, --debug      don't remove temporary files
43100       --recheck    update $as_me by reconfiguring in the same conditions
43101   --file=FILE[:TEMPLATE]
43102                    instantiate the configuration file FILE
43103   --header=FILE[:TEMPLATE]
43104                    instantiate the configuration header FILE
43105
43106 Configuration files:
43107 $config_files
43108
43109 Configuration headers:
43110 $config_headers
43111
43112 Configuration commands:
43113 $config_commands
43114
43115 Report bugs to <bug-autoconf@gnu.org>."
43116 _ACEOF
43117
43118 cat >>$CONFIG_STATUS <<_ACEOF
43119 ac_cs_version="\\
43120 config.status
43121 configured by $0, generated by GNU Autoconf 2.59,
43122   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43123
43124 Copyright (C) 2003 Free Software Foundation, Inc.
43125 This config.status script is free software; the Free Software Foundation
43126 gives unlimited permission to copy, distribute and modify it."
43127 srcdir=$srcdir
43128 INSTALL="$INSTALL"
43129 _ACEOF
43130
43131 cat >>$CONFIG_STATUS <<\_ACEOF
43132 # If no file are specified by the user, then we need to provide default
43133 # value.  By we need to know if files were specified by the user.
43134 ac_need_defaults=:
43135 while test $# != 0
43136 do
43137   case $1 in
43138   --*=*)
43139     ac_option=`expr "x$1" : 'x\([^=]*\)='`
43140     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43141     ac_shift=:
43142     ;;
43143   -*)
43144     ac_option=$1
43145     ac_optarg=$2
43146     ac_shift=shift
43147     ;;
43148   *) # This is not an option, so the user has probably given explicit
43149      # arguments.
43150      ac_option=$1
43151      ac_need_defaults=false;;
43152   esac
43153
43154   case $ac_option in
43155   # Handling of the options.
43156 _ACEOF
43157 cat >>$CONFIG_STATUS <<\_ACEOF
43158   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43159     ac_cs_recheck=: ;;
43160   --version | --vers* | -V )
43161     echo "$ac_cs_version"; exit 0 ;;
43162   --he | --h)
43163     # Conflict between --help and --header
43164     { { echo "$as_me:$LINENO: error: ambiguous option: $1
43165 Try \`$0 --help' for more information." >&5
43166 echo "$as_me: error: ambiguous option: $1
43167 Try \`$0 --help' for more information." >&2;}
43168    { (exit 1); exit 1; }; };;
43169   --help | --hel | -h )
43170     echo "$ac_cs_usage"; exit 0 ;;
43171   --debug | --d* | -d )
43172     debug=: ;;
43173   --file | --fil | --fi | --f )
43174     $ac_shift
43175     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43176     ac_need_defaults=false;;
43177   --header | --heade | --head | --hea )
43178     $ac_shift
43179     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43180     ac_need_defaults=false;;
43181   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43182   | -silent | --silent | --silen | --sile | --sil | --si | --s)
43183     ac_cs_silent=: ;;
43184
43185   # This is an error.
43186   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
43187 Try \`$0 --help' for more information." >&5
43188 echo "$as_me: error: unrecognized option: $1
43189 Try \`$0 --help' for more information." >&2;}
43190    { (exit 1); exit 1; }; } ;;
43191
43192   *) ac_config_targets="$ac_config_targets $1" ;;
43193
43194   esac
43195   shift
43196 done
43197
43198 ac_configure_extra_args=
43199
43200 if $ac_cs_silent; then
43201   exec 6>/dev/null
43202   ac_configure_extra_args="$ac_configure_extra_args --silent"
43203 fi
43204
43205 _ACEOF
43206 cat >>$CONFIG_STATUS <<_ACEOF
43207 if \$ac_cs_recheck; then
43208   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43209   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43210 fi
43211
43212 _ACEOF
43213
43214 cat >>$CONFIG_STATUS <<_ACEOF
43215 #
43216 # INIT-COMMANDS section.
43217 #
43218
43219 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
43220 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
43221
43222 _ACEOF
43223
43224
43225
43226 cat >>$CONFIG_STATUS <<\_ACEOF
43227 for ac_config_target in $ac_config_targets
43228 do
43229   case "$ac_config_target" in
43230   # Handling of arguments.
43231   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
43232   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
43233   "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
43234   "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
43235   "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
43236   "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
43237   "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
43238   "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
43239   "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
43240   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
43241   "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
43242   "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43243   "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
43244   "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" ;;
43245   "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43246   "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43247   "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
43248   "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
43249   "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
43250   "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" ;;
43251   "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" ;;
43252   "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" ;;
43253   "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" ;;
43254   "servers/slapd/back-ldbm/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk" ;;
43255   "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" ;;
43256   "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" ;;
43257   "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" ;;
43258   "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" ;;
43259   "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" ;;
43260   "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" ;;
43261   "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" ;;
43262   "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" ;;
43263   "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" ;;
43264   "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" ;;
43265   "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" ;;
43266   "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
43267   "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
43268   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
43269   "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
43270   "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
43271   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
43272   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43273   "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
43274   "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
43275   "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
43276   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43278    { (exit 1); exit 1; }; };;
43279   esac
43280 done
43281
43282 # If the user did not use the arguments to specify the items to instantiate,
43283 # then the envvar interface is used.  Set only those that are not.
43284 # We use the long form for the default assignment because of an extremely
43285 # bizarre bug on SunOS 4.1.3.
43286 if $ac_need_defaults; then
43287   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43288   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43289   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43290 fi
43291
43292 # Have a temporary directory for convenience.  Make it in the build tree
43293 # simply because there is no reason to put it here, and in addition,
43294 # creating and moving files from /tmp can sometimes cause problems.
43295 # Create a temporary directory, and hook for its removal unless debugging.
43296 $debug ||
43297 {
43298   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
43299   trap '{ (exit 1); exit 1; }' 1 2 13 15
43300 }
43301
43302 # Create a (secure) tmp directory for tmp files.
43303
43304 {
43305   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
43306   test -n "$tmp" && test -d "$tmp"
43307 }  ||
43308 {
43309   tmp=./confstat$$-$RANDOM
43310   (umask 077 && mkdir $tmp)
43311 } ||
43312 {
43313    echo "$me: cannot create a temporary directory in ." >&2
43314    { (exit 1); exit 1; }
43315 }
43316
43317 _ACEOF
43318
43319 cat >>$CONFIG_STATUS <<_ACEOF
43320
43321 #
43322 # CONFIG_FILES section.
43323 #
43324
43325 # No need to generate the scripts if there are no CONFIG_FILES.
43326 # This happens for instance when ./config.status config.h
43327 if test -n "\$CONFIG_FILES"; then
43328   # Protect against being on the right side of a sed subst in config.status.
43329   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
43330    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
43331 s,@SHELL@,$SHELL,;t t
43332 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
43333 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
43334 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
43335 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
43336 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
43337 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
43338 s,@exec_prefix@,$exec_prefix,;t t
43339 s,@prefix@,$prefix,;t t
43340 s,@program_transform_name@,$program_transform_name,;t t
43341 s,@bindir@,$bindir,;t t
43342 s,@sbindir@,$sbindir,;t t
43343 s,@libexecdir@,$libexecdir,;t t
43344 s,@datadir@,$datadir,;t t
43345 s,@sysconfdir@,$sysconfdir,;t t
43346 s,@sharedstatedir@,$sharedstatedir,;t t
43347 s,@localstatedir@,$localstatedir,;t t
43348 s,@libdir@,$libdir,;t t
43349 s,@includedir@,$includedir,;t t
43350 s,@oldincludedir@,$oldincludedir,;t t
43351 s,@infodir@,$infodir,;t t
43352 s,@mandir@,$mandir,;t t
43353 s,@build_alias@,$build_alias,;t t
43354 s,@host_alias@,$host_alias,;t t
43355 s,@target_alias@,$target_alias,;t t
43356 s,@DEFS@,$DEFS,;t t
43357 s,@ECHO_C@,$ECHO_C,;t t
43358 s,@ECHO_N@,$ECHO_N,;t t
43359 s,@ECHO_T@,$ECHO_T,;t t
43360 s,@LIBS@,$LIBS,;t t
43361 s,@build@,$build,;t t
43362 s,@build_cpu@,$build_cpu,;t t
43363 s,@build_vendor@,$build_vendor,;t t
43364 s,@build_os@,$build_os,;t t
43365 s,@host@,$host,;t t
43366 s,@host_cpu@,$host_cpu,;t t
43367 s,@host_vendor@,$host_vendor,;t t
43368 s,@host_os@,$host_os,;t t
43369 s,@target@,$target,;t t
43370 s,@target_cpu@,$target_cpu,;t t
43371 s,@target_vendor@,$target_vendor,;t t
43372 s,@target_os@,$target_os,;t t
43373 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
43374 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
43375 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
43376 s,@CYGPATH_W@,$CYGPATH_W,;t t
43377 s,@PACKAGE@,$PACKAGE,;t t
43378 s,@VERSION@,$VERSION,;t t
43379 s,@ACLOCAL@,$ACLOCAL,;t t
43380 s,@AUTOCONF@,$AUTOCONF,;t t
43381 s,@AUTOMAKE@,$AUTOMAKE,;t t
43382 s,@AUTOHEADER@,$AUTOHEADER,;t t
43383 s,@MAKEINFO@,$MAKEINFO,;t t
43384 s,@install_sh@,$install_sh,;t t
43385 s,@STRIP@,$STRIP,;t t
43386 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
43387 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
43388 s,@mkdir_p@,$mkdir_p,;t t
43389 s,@AWK@,$AWK,;t t
43390 s,@SET_MAKE@,$SET_MAKE,;t t
43391 s,@am__leading_dot@,$am__leading_dot,;t t
43392 s,@AMTAR@,$AMTAR,;t t
43393 s,@am__tar@,$am__tar,;t t
43394 s,@am__untar@,$am__untar,;t t
43395 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
43396 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
43397 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
43398 s,@top_builddir@,$top_builddir,;t t
43399 s,@ldap_subdir@,$ldap_subdir,;t t
43400 s,@CC@,$CC,;t t
43401 s,@AR@,$AR,;t t
43402 s,@CFLAGS@,$CFLAGS,;t t
43403 s,@LDFLAGS@,$LDFLAGS,;t t
43404 s,@CPPFLAGS@,$CPPFLAGS,;t t
43405 s,@ac_ct_CC@,$ac_ct_CC,;t t
43406 s,@EXEEXT@,$EXEEXT,;t t
43407 s,@OBJEXT@,$OBJEXT,;t t
43408 s,@DEPDIR@,$DEPDIR,;t t
43409 s,@am__include@,$am__include,;t t
43410 s,@am__quote@,$am__quote,;t t
43411 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
43412 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
43413 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
43414 s,@CCDEPMODE@,$CCDEPMODE,;t t
43415 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
43416 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
43417 s,@EGREP@,$EGREP,;t t
43418 s,@LN_S@,$LN_S,;t t
43419 s,@ECHO@,$ECHO,;t t
43420 s,@ac_ct_AR@,$ac_ct_AR,;t t
43421 s,@RANLIB@,$RANLIB,;t t
43422 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
43423 s,@DLLTOOL@,$DLLTOOL,;t t
43424 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
43425 s,@AS@,$AS,;t t
43426 s,@ac_ct_AS@,$ac_ct_AS,;t t
43427 s,@OBJDUMP@,$OBJDUMP,;t t
43428 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
43429 s,@CPP@,$CPP,;t t
43430 s,@LIBTOOL@,$LIBTOOL,;t t
43431 s,@PERLBIN@,$PERLBIN,;t t
43432 s,@OL_MKDEP@,$OL_MKDEP,;t t
43433 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
43434 s,@LTSTATIC@,$LTSTATIC,;t t
43435 s,@LIBOBJS@,$LIBOBJS,;t t
43436 s,@LIBSRCS@,$LIBSRCS,;t t
43437 s,@PLAT@,$PLAT,;t t
43438 s,@WITH_SASL@,$WITH_SASL,;t t
43439 s,@WITH_TLS@,$WITH_TLS,;t t
43440 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
43441 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
43442 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
43443 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
43444 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
43445 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
43446 s,@BUILD_BDB@,$BUILD_BDB,;t t
43447 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
43448 s,@BUILD_HDB@,$BUILD_HDB,;t t
43449 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
43450 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
43451 s,@BUILD_META@,$BUILD_META,;t t
43452 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
43453 s,@BUILD_NULL@,$BUILD_NULL,;t t
43454 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
43455 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
43456 s,@BUILD_PERL@,$BUILD_PERL,;t t
43457 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
43458 s,@BUILD_SQL@,$BUILD_SQL,;t t
43459 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
43460 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
43461 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
43462 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
43463 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
43464 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
43465 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
43466 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
43467 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
43468 s,@BUILD_RWM@,$BUILD_RWM,;t t
43469 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
43470 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
43471 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
43472 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
43473 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
43474 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
43475 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
43476 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
43477 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
43478 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
43479 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
43480 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
43481 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
43482 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
43483 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
43484 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
43485 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
43486 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
43487 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
43488 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
43489 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
43490 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
43491 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
43492 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
43493 s,@SASL_LIBS@,$SASL_LIBS,;t t
43494 s,@TLS_LIBS@,$TLS_LIBS,;t t
43495 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
43496 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
43497 s,@LIBSLAPI@,$LIBSLAPI,;t t
43498 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
43499 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
43500 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
43501 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
43502 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
43503 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
43504 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
43505 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
43506 CEOF
43507
43508 _ACEOF
43509
43510   cat >>$CONFIG_STATUS <<\_ACEOF
43511   # Split the substitutions into bite-sized pieces for seds with
43512   # small command number limits, like on Digital OSF/1 and HP-UX.
43513   ac_max_sed_lines=48
43514   ac_sed_frag=1 # Number of current file.
43515   ac_beg=1 # First line for current file.
43516   ac_end=$ac_max_sed_lines # Line after last line for current file.
43517   ac_more_lines=:
43518   ac_sed_cmds=
43519   while $ac_more_lines; do
43520     if test $ac_beg -gt 1; then
43521       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43522     else
43523       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
43524     fi
43525     if test ! -s $tmp/subs.frag; then
43526       ac_more_lines=false
43527     else
43528       # The purpose of the label and of the branching condition is to
43529       # speed up the sed processing (if there are no `@' at all, there
43530       # is no need to browse any of the substitutions).
43531       # These are the two extra sed commands mentioned above.
43532       (echo ':t
43533   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
43534       if test -z "$ac_sed_cmds"; then
43535         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
43536       else
43537         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
43538       fi
43539       ac_sed_frag=`expr $ac_sed_frag + 1`
43540       ac_beg=$ac_end
43541       ac_end=`expr $ac_end + $ac_max_sed_lines`
43542     fi
43543   done
43544   if test -z "$ac_sed_cmds"; then
43545     ac_sed_cmds=cat
43546   fi
43547 fi # test -n "$CONFIG_FILES"
43548
43549 _ACEOF
43550 cat >>$CONFIG_STATUS <<\_ACEOF
43551 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
43552   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43553   case $ac_file in
43554   - | *:- | *:-:* ) # input from stdin
43555         cat >$tmp/stdin
43556         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43557         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43558   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43559         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43560   * )   ac_file_in=$ac_file.in ;;
43561   esac
43562
43563   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
43564   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43566          X"$ac_file" : 'X\(//\)[^/]' \| \
43567          X"$ac_file" : 'X\(//\)$' \| \
43568          X"$ac_file" : 'X\(/\)' \| \
43569          .     : '\(.\)' 2>/dev/null ||
43570 echo X"$ac_file" |
43571     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43572           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43573           /^X\(\/\/\)$/{ s//\1/; q; }
43574           /^X\(\/\).*/{ s//\1/; q; }
43575           s/.*/./; q'`
43576   { if $as_mkdir_p; then
43577     mkdir -p "$ac_dir"
43578   else
43579     as_dir="$ac_dir"
43580     as_dirs=
43581     while test ! -d "$as_dir"; do
43582       as_dirs="$as_dir $as_dirs"
43583       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43584 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43585          X"$as_dir" : 'X\(//\)[^/]' \| \
43586          X"$as_dir" : 'X\(//\)$' \| \
43587          X"$as_dir" : 'X\(/\)' \| \
43588          .     : '\(.\)' 2>/dev/null ||
43589 echo X"$as_dir" |
43590     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43591           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43592           /^X\(\/\/\)$/{ s//\1/; q; }
43593           /^X\(\/\).*/{ s//\1/; q; }
43594           s/.*/./; q'`
43595     done
43596     test ! -n "$as_dirs" || mkdir $as_dirs
43597   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43598 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43599    { (exit 1); exit 1; }; }; }
43600
43601   ac_builddir=.
43602
43603 if test "$ac_dir" != .; then
43604   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43605   # A "../" for each directory in $ac_dir_suffix.
43606   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43607 else
43608   ac_dir_suffix= ac_top_builddir=
43609 fi
43610
43611 case $srcdir in
43612   .)  # No --srcdir option.  We are building in place.
43613     ac_srcdir=.
43614     if test -z "$ac_top_builddir"; then
43615        ac_top_srcdir=.
43616     else
43617        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43618     fi ;;
43619   [\\/]* | ?:[\\/]* )  # Absolute path.
43620     ac_srcdir=$srcdir$ac_dir_suffix;
43621     ac_top_srcdir=$srcdir ;;
43622   *) # Relative path.
43623     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43624     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43625 esac
43626
43627 # Do not use `cd foo && pwd` to compute absolute paths, because
43628 # the directories may not exist.
43629 case `pwd` in
43630 .) ac_abs_builddir="$ac_dir";;
43631 *)
43632   case "$ac_dir" in
43633   .) ac_abs_builddir=`pwd`;;
43634   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43635   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43636   esac;;
43637 esac
43638 case $ac_abs_builddir in
43639 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43640 *)
43641   case ${ac_top_builddir}. in
43642   .) ac_abs_top_builddir=$ac_abs_builddir;;
43643   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43644   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43645   esac;;
43646 esac
43647 case $ac_abs_builddir in
43648 .) ac_abs_srcdir=$ac_srcdir;;
43649 *)
43650   case $ac_srcdir in
43651   .) ac_abs_srcdir=$ac_abs_builddir;;
43652   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43653   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43654   esac;;
43655 esac
43656 case $ac_abs_builddir in
43657 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43658 *)
43659   case $ac_top_srcdir in
43660   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43661   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43662   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43663   esac;;
43664 esac
43665
43666
43667   case $INSTALL in
43668   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43669   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
43670   esac
43671
43672   if test x"$ac_file" != x-; then
43673     { echo "$as_me:$LINENO: creating $ac_file" >&5
43674 echo "$as_me: creating $ac_file" >&6;}
43675     rm -f "$ac_file"
43676   fi
43677   # Let's still pretend it is `configure' which instantiates (i.e., don't
43678   # use $as_me), people would be surprised to read:
43679   #    /* config.h.  Generated by config.status.  */
43680   if test x"$ac_file" = x-; then
43681     configure_input=
43682   else
43683     configure_input="$ac_file.  "
43684   fi
43685   configure_input=$configure_input"Generated from `echo $ac_file_in |
43686                                      sed 's,.*/,,'` by configure."
43687
43688   # First look for the input files in the build tree, otherwise in the
43689   # src tree.
43690   ac_file_inputs=`IFS=:
43691     for f in $ac_file_in; do
43692       case $f in
43693       -) echo $tmp/stdin ;;
43694       [\\/$]*)
43695          # Absolute (can't be DOS-style, as IFS=:)
43696          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43697 echo "$as_me: error: cannot find input file: $f" >&2;}
43698    { (exit 1); exit 1; }; }
43699          echo "$f";;
43700       *) # Relative
43701          if test -f "$f"; then
43702            # Build tree
43703            echo "$f"
43704          elif test -f "$srcdir/$f"; then
43705            # Source tree
43706            echo "$srcdir/$f"
43707          else
43708            # /dev/null tree
43709            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43710 echo "$as_me: error: cannot find input file: $f" >&2;}
43711    { (exit 1); exit 1; }; }
43712          fi;;
43713       esac
43714     done` || { (exit 1); exit 1; }
43715 _ACEOF
43716 cat >>$CONFIG_STATUS <<_ACEOF
43717   sed "$ac_vpsub
43718 $extrasub
43719 _ACEOF
43720 cat >>$CONFIG_STATUS <<\_ACEOF
43721 :t
43722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43723 s,@configure_input@,$configure_input,;t t
43724 s,@srcdir@,$ac_srcdir,;t t
43725 s,@abs_srcdir@,$ac_abs_srcdir,;t t
43726 s,@top_srcdir@,$ac_top_srcdir,;t t
43727 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43728 s,@builddir@,$ac_builddir,;t t
43729 s,@abs_builddir@,$ac_abs_builddir,;t t
43730 s,@top_builddir@,$ac_top_builddir,;t t
43731 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43732 s,@INSTALL@,$ac_INSTALL,;t t
43733 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43734   rm -f $tmp/stdin
43735   if test x"$ac_file" != x-; then
43736     mv $tmp/out $ac_file
43737   else
43738     cat $tmp/out
43739     rm -f $tmp/out
43740   fi
43741
43742 done
43743 _ACEOF
43744 cat >>$CONFIG_STATUS <<\_ACEOF
43745
43746 #
43747 # CONFIG_HEADER section.
43748 #
43749
43750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
43752 #
43753 # ac_d sets the value in "#define NAME VALUE" lines.
43754 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
43755 ac_dB='[         ].*$,\1#\2'
43756 ac_dC=' '
43757 ac_dD=',;t'
43758 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
43759 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
43760 ac_uB='$,\1#\2define\3'
43761 ac_uC=' '
43762 ac_uD=',;t'
43763
43764 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43765   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43766   case $ac_file in
43767   - | *:- | *:-:* ) # input from stdin
43768         cat >$tmp/stdin
43769         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43770         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43771   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43772         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
43773   * )   ac_file_in=$ac_file.in ;;
43774   esac
43775
43776   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43777 echo "$as_me: creating $ac_file" >&6;}
43778
43779   # First look for the input files in the build tree, otherwise in the
43780   # src tree.
43781   ac_file_inputs=`IFS=:
43782     for f in $ac_file_in; do
43783       case $f in
43784       -) echo $tmp/stdin ;;
43785       [\\/$]*)
43786          # Absolute (can't be DOS-style, as IFS=:)
43787          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43788 echo "$as_me: error: cannot find input file: $f" >&2;}
43789    { (exit 1); exit 1; }; }
43790          # Do quote $f, to prevent DOS paths from being IFS'd.
43791          echo "$f";;
43792       *) # Relative
43793          if test -f "$f"; then
43794            # Build tree
43795            echo "$f"
43796          elif test -f "$srcdir/$f"; then
43797            # Source tree
43798            echo "$srcdir/$f"
43799          else
43800            # /dev/null tree
43801            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
43802 echo "$as_me: error: cannot find input file: $f" >&2;}
43803    { (exit 1); exit 1; }; }
43804          fi;;
43805       esac
43806     done` || { (exit 1); exit 1; }
43807   # Remove the trailing spaces.
43808   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
43809
43810 _ACEOF
43811
43812 # Transform confdefs.h into two sed scripts, `conftest.defines' and
43813 # `conftest.undefs', that substitutes the proper values into
43814 # config.h.in to produce config.h.  The first handles `#define'
43815 # templates, and the second `#undef' templates.
43816 # And first: Protect against being on the right side of a sed subst in
43817 # config.status.  Protect against being in an unquoted here document
43818 # in config.status.
43819 rm -f conftest.defines conftest.undefs
43820 # Using a here document instead of a string reduces the quoting nightmare.
43821 # Putting comments in sed scripts is not portable.
43822 #
43823 # `end' is used to avoid that the second main sed command (meant for
43824 # 0-ary CPP macros) applies to n-ary macro definitions.
43825 # See the Autoconf documentation for `clear'.
43826 cat >confdef2sed.sed <<\_ACEOF
43827 s/[\\&,]/\\&/g
43828 s,[\\$`],\\&,g
43829 t clear
43830 : clear
43831 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
43832 t end
43833 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
43834 : end
43835 _ACEOF
43836 # If some macros were called several times there might be several times
43837 # the same #defines, which is useless.  Nevertheless, we may not want to
43838 # sort them, since we want the *last* AC-DEFINE to be honored.
43839 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43840 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43841 rm -f confdef2sed.sed
43842
43843 # This sed command replaces #undef with comments.  This is necessary, for
43844 # example, in the case of _POSIX_SOURCE, which is predefined and required
43845 # on some systems where configure will not decide to define it.
43846 cat >>conftest.undefs <<\_ACEOF
43847 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
43848 _ACEOF
43849
43850 # Break up conftest.defines because some shells have a limit on the size
43851 # of here documents, and old seds have small limits too (100 cmds).
43852 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
43853 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
43854 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43855 echo '  :' >>$CONFIG_STATUS
43856 rm -f conftest.tail
43857 while grep . conftest.defines >/dev/null
43858 do
43859   # Write a limited-size here document to $tmp/defines.sed.
43860   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43861   # Speed up: don't consider the non `#define' lines.
43862   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
43863   # Work around the forget-to-reset-the-flag bug.
43864   echo 't clr' >>$CONFIG_STATUS
43865   echo ': clr' >>$CONFIG_STATUS
43866   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43867   echo 'CEOF
43868   sed -f $tmp/defines.sed $tmp/in >$tmp/out
43869   rm -f $tmp/in
43870   mv $tmp/out $tmp/in
43871 ' >>$CONFIG_STATUS
43872   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43873   rm -f conftest.defines
43874   mv conftest.tail conftest.defines
43875 done
43876 rm -f conftest.defines
43877 echo '  fi # grep' >>$CONFIG_STATUS
43878 echo >>$CONFIG_STATUS
43879
43880 # Break up conftest.undefs because some shells have a limit on the size
43881 # of here documents, and old seds have small limits too (100 cmds).
43882 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
43883 rm -f conftest.tail
43884 while grep . conftest.undefs >/dev/null
43885 do
43886   # Write a limited-size here document to $tmp/undefs.sed.
43887   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43888   # Speed up: don't consider the non `#undef'
43889   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
43890   # Work around the forget-to-reset-the-flag bug.
43891   echo 't clr' >>$CONFIG_STATUS
43892   echo ': clr' >>$CONFIG_STATUS
43893   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43894   echo 'CEOF
43895   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43896   rm -f $tmp/in
43897   mv $tmp/out $tmp/in
43898 ' >>$CONFIG_STATUS
43899   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43900   rm -f conftest.undefs
43901   mv conftest.tail conftest.undefs
43902 done
43903 rm -f conftest.undefs
43904
43905 cat >>$CONFIG_STATUS <<\_ACEOF
43906   # Let's still pretend it is `configure' which instantiates (i.e., don't
43907   # use $as_me), people would be surprised to read:
43908   #    /* config.h.  Generated by config.status.  */
43909   if test x"$ac_file" = x-; then
43910     echo "/* Generated by configure.  */" >$tmp/config.h
43911   else
43912     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
43913   fi
43914   cat $tmp/in >>$tmp/config.h
43915   rm -f $tmp/in
43916   if test x"$ac_file" != x-; then
43917     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43918       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43919 echo "$as_me: $ac_file is unchanged" >&6;}
43920     else
43921       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43923          X"$ac_file" : 'X\(//\)[^/]' \| \
43924          X"$ac_file" : 'X\(//\)$' \| \
43925          X"$ac_file" : 'X\(/\)' \| \
43926          .     : '\(.\)' 2>/dev/null ||
43927 echo X"$ac_file" |
43928     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43929           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43930           /^X\(\/\/\)$/{ s//\1/; q; }
43931           /^X\(\/\).*/{ s//\1/; q; }
43932           s/.*/./; q'`
43933       { if $as_mkdir_p; then
43934     mkdir -p "$ac_dir"
43935   else
43936     as_dir="$ac_dir"
43937     as_dirs=
43938     while test ! -d "$as_dir"; do
43939       as_dirs="$as_dir $as_dirs"
43940       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43941 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43942          X"$as_dir" : 'X\(//\)[^/]' \| \
43943          X"$as_dir" : 'X\(//\)$' \| \
43944          X"$as_dir" : 'X\(/\)' \| \
43945          .     : '\(.\)' 2>/dev/null ||
43946 echo X"$as_dir" |
43947     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43948           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43949           /^X\(\/\/\)$/{ s//\1/; q; }
43950           /^X\(\/\).*/{ s//\1/; q; }
43951           s/.*/./; q'`
43952     done
43953     test ! -n "$as_dirs" || mkdir $as_dirs
43954   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43955 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43956    { (exit 1); exit 1; }; }; }
43957
43958       rm -f $ac_file
43959       mv $tmp/config.h $ac_file
43960     fi
43961   else
43962     cat $tmp/config.h
43963     rm -f $tmp/config.h
43964   fi
43965 # Compute $ac_file's index in $config_headers.
43966 _am_stamp_count=1
43967 for _am_header in $config_headers :; do
43968   case $_am_header in
43969     $ac_file | $ac_file:* )
43970       break ;;
43971     * )
43972       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43973   esac
43974 done
43975 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
43976 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43977          X$ac_file : 'X\(//\)[^/]' \| \
43978          X$ac_file : 'X\(//\)$' \| \
43979          X$ac_file : 'X\(/\)' \| \
43980          .     : '\(.\)' 2>/dev/null ||
43981 echo X$ac_file |
43982     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43983           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43984           /^X\(\/\/\)$/{ s//\1/; q; }
43985           /^X\(\/\).*/{ s//\1/; q; }
43986           s/.*/./; q'`/stamp-h$_am_stamp_count
43987 done
43988 _ACEOF
43989 cat >>$CONFIG_STATUS <<\_ACEOF
43990
43991 #
43992 # CONFIG_COMMANDS section.
43993 #
43994 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43995   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43996   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43997   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43998 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43999          X"$ac_dest" : 'X\(//\)[^/]' \| \
44000          X"$ac_dest" : 'X\(//\)$' \| \
44001          X"$ac_dest" : 'X\(/\)' \| \
44002          .     : '\(.\)' 2>/dev/null ||
44003 echo X"$ac_dest" |
44004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44006           /^X\(\/\/\)$/{ s//\1/; q; }
44007           /^X\(\/\).*/{ s//\1/; q; }
44008           s/.*/./; q'`
44009   { if $as_mkdir_p; then
44010     mkdir -p "$ac_dir"
44011   else
44012     as_dir="$ac_dir"
44013     as_dirs=
44014     while test ! -d "$as_dir"; do
44015       as_dirs="$as_dir $as_dirs"
44016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44018          X"$as_dir" : 'X\(//\)[^/]' \| \
44019          X"$as_dir" : 'X\(//\)$' \| \
44020          X"$as_dir" : 'X\(/\)' \| \
44021          .     : '\(.\)' 2>/dev/null ||
44022 echo X"$as_dir" |
44023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44025           /^X\(\/\/\)$/{ s//\1/; q; }
44026           /^X\(\/\).*/{ s//\1/; q; }
44027           s/.*/./; q'`
44028     done
44029     test ! -n "$as_dirs" || mkdir $as_dirs
44030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44032    { (exit 1); exit 1; }; }; }
44033
44034   ac_builddir=.
44035
44036 if test "$ac_dir" != .; then
44037   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44038   # A "../" for each directory in $ac_dir_suffix.
44039   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44040 else
44041   ac_dir_suffix= ac_top_builddir=
44042 fi
44043
44044 case $srcdir in
44045   .)  # No --srcdir option.  We are building in place.
44046     ac_srcdir=.
44047     if test -z "$ac_top_builddir"; then
44048        ac_top_srcdir=.
44049     else
44050        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44051     fi ;;
44052   [\\/]* | ?:[\\/]* )  # Absolute path.
44053     ac_srcdir=$srcdir$ac_dir_suffix;
44054     ac_top_srcdir=$srcdir ;;
44055   *) # Relative path.
44056     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44057     ac_top_srcdir=$ac_top_builddir$srcdir ;;
44058 esac
44059
44060 # Do not use `cd foo && pwd` to compute absolute paths, because
44061 # the directories may not exist.
44062 case `pwd` in
44063 .) ac_abs_builddir="$ac_dir";;
44064 *)
44065   case "$ac_dir" in
44066   .) ac_abs_builddir=`pwd`;;
44067   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44068   *) ac_abs_builddir=`pwd`/"$ac_dir";;
44069   esac;;
44070 esac
44071 case $ac_abs_builddir in
44072 .) ac_abs_top_builddir=${ac_top_builddir}.;;
44073 *)
44074   case ${ac_top_builddir}. in
44075   .) ac_abs_top_builddir=$ac_abs_builddir;;
44076   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44077   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44078   esac;;
44079 esac
44080 case $ac_abs_builddir in
44081 .) ac_abs_srcdir=$ac_srcdir;;
44082 *)
44083   case $ac_srcdir in
44084   .) ac_abs_srcdir=$ac_abs_builddir;;
44085   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44086   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44087   esac;;
44088 esac
44089 case $ac_abs_builddir in
44090 .) ac_abs_top_srcdir=$ac_top_srcdir;;
44091 *)
44092   case $ac_top_srcdir in
44093   .) ac_abs_top_srcdir=$ac_abs_builddir;;
44094   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44095   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44096   esac;;
44097 esac
44098
44099
44100   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
44101 echo "$as_me: executing $ac_dest commands" >&6;}
44102   case $ac_dest in
44103     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
44104   # Strip MF so we end up with the name of the file.
44105   mf=`echo "$mf" | sed -e 's/:.*$//'`
44106   # Check whether this is an Automake generated Makefile or not.
44107   # We used to match only the files named `Makefile.in', but
44108   # some people rename them; so instead we look at the file content.
44109   # Grep'ing the first line is not enough: some people post-process
44110   # each Makefile.in and add a new line on top of each file to say so.
44111   # So let's grep whole file.
44112   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
44113     dirpart=`(dirname "$mf") 2>/dev/null ||
44114 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44115          X"$mf" : 'X\(//\)[^/]' \| \
44116          X"$mf" : 'X\(//\)$' \| \
44117          X"$mf" : 'X\(/\)' \| \
44118          .     : '\(.\)' 2>/dev/null ||
44119 echo X"$mf" |
44120     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44121           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44122           /^X\(\/\/\)$/{ s//\1/; q; }
44123           /^X\(\/\).*/{ s//\1/; q; }
44124           s/.*/./; q'`
44125   else
44126     continue
44127   fi
44128   # Extract the definition of DEPDIR, am__include, and am__quote
44129   # from the Makefile without running `make'.
44130   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
44131   test -z "$DEPDIR" && continue
44132   am__include=`sed -n 's/^am__include = //p' < "$mf"`
44133   test -z "am__include" && continue
44134   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
44135   # When using ansi2knr, U may be empty or an underscore; expand it
44136   U=`sed -n 's/^U = //p' < "$mf"`
44137   # Find all dependency output files, they are included files with
44138   # $(DEPDIR) in their names.  We invoke sed twice because it is the
44139   # simplest approach to changing $(DEPDIR) to its actual value in the
44140   # expansion.
44141   for file in `sed -n "
44142     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
44143        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
44144     # Make sure the directory exists.
44145     test -f "$dirpart/$file" && continue
44146     fdir=`(dirname "$file") 2>/dev/null ||
44147 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44148          X"$file" : 'X\(//\)[^/]' \| \
44149          X"$file" : 'X\(//\)$' \| \
44150          X"$file" : 'X\(/\)' \| \
44151          .     : '\(.\)' 2>/dev/null ||
44152 echo X"$file" |
44153     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44154           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44155           /^X\(\/\/\)$/{ s//\1/; q; }
44156           /^X\(\/\).*/{ s//\1/; q; }
44157           s/.*/./; q'`
44158     { if $as_mkdir_p; then
44159     mkdir -p $dirpart/$fdir
44160   else
44161     as_dir=$dirpart/$fdir
44162     as_dirs=
44163     while test ! -d "$as_dir"; do
44164       as_dirs="$as_dir $as_dirs"
44165       as_dir=`(dirname "$as_dir") 2>/dev/null ||
44166 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44167          X"$as_dir" : 'X\(//\)[^/]' \| \
44168          X"$as_dir" : 'X\(//\)$' \| \
44169          X"$as_dir" : 'X\(/\)' \| \
44170          .     : '\(.\)' 2>/dev/null ||
44171 echo X"$as_dir" |
44172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44173           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44174           /^X\(\/\/\)$/{ s//\1/; q; }
44175           /^X\(\/\).*/{ s//\1/; q; }
44176           s/.*/./; q'`
44177     done
44178     test ! -n "$as_dirs" || mkdir $as_dirs
44179   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
44180 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
44181    { (exit 1); exit 1; }; }; }
44182
44183     # echo "creating $dirpart/$file"
44184     echo '# dummy' > "$dirpart/$file"
44185   done
44186 done
44187  ;;
44188     default )
44189 chmod +x tests/run
44190 date > stamp-h
44191 BACKENDSC="servers/slapd/backends.c"
44192 echo "Making $BACKENDSC"
44193 rm -f $BACKENDSC
44194 cat > $BACKENDSC << ENDX
44195 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
44196  *
44197  * Copyright 1998-2005 The OpenLDAP Foundation.
44198  * All rights reserved.
44199  *
44200  * Redistribution and use in source and binary forms, with or without
44201  * modification, are permitted only as authorized by the OpenLDAP
44202  * Public License.
44203  *
44204  * A copy of this license is available in the file LICENSE in the
44205  * top-level directory of the distribution or, alternatively, at
44206  * <http://www.OpenLDAP.org/license.html>.
44207  */
44208 /* This file is automatically generated by configure; please do not edit. */
44209
44210 #include "portable.h"
44211 #include "slap.h"
44212
44213 ENDX
44214 if test "${STATIC_BACKENDS}"; then
44215         for b in config ${STATIC_BACKENDS}; do
44216                 bb=`echo "${b}" | sed -e 's/back-//'`
44217                 cat >> $BACKENDSC << ENDX
44218 extern BI_init ${bb}_back_initialize;
44219 ENDX
44220         done
44221
44222         cat >> $BACKENDSC << ENDX
44223
44224 BackendInfo slap_binfo[] = {
44225 ENDX
44226
44227         for b in config ${STATIC_BACKENDS}; do
44228                 bb=`echo "${b}" | sed -e 's/back-//'`
44229                 echo "    Add ${bb} ..."
44230                 cat >> $BACKENDSC << ENDX
44231         { "${bb}", ${bb}_back_initialize },
44232 ENDX
44233         done
44234
44235         cat >> $BACKENDSC << ENDX
44236         { NULL, NULL },
44237 };
44238
44239 /* end of generated file */
44240 ENDX
44241 fi
44242
44243 echo Please run \"make depend\" to build dependencies
44244  ;;
44245   esac
44246 done
44247 _ACEOF
44248
44249 cat >>$CONFIG_STATUS <<\_ACEOF
44250
44251 { (exit 0); exit 0; }
44252 _ACEOF
44253 chmod +x $CONFIG_STATUS
44254 ac_clean_files=$ac_clean_files_save
44255
44256
44257 # configure is writing to config.log, and then calls config.status.
44258 # config.status does its own redirection, appending to config.log.
44259 # Unfortunately, on DOS this fails, as config.log is still kept open
44260 # by configure, so config.status won't be able to write to it; its
44261 # output is simply discarded.  So we exec the FD to /dev/null,
44262 # effectively closing config.log, so it can be properly (re)opened and
44263 # appended to by config.status.  When coming back to configure, we
44264 # need to make the FD available again.
44265 if test "$no_create" != yes; then
44266   ac_cs_success=:
44267   ac_config_status_args=
44268   test "$silent" = yes &&
44269     ac_config_status_args="$ac_config_status_args --quiet"
44270   exec 5>/dev/null
44271   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44272   exec 5>>config.log
44273   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44274   # would make configure fail if this is the last instruction.
44275   $ac_cs_success || { (exit 1); exit 1; }
44276 fi
44277